|
|
| Line 1: |
Line 1: |
| W.I.P.
| |
|
| |
|
| TODO: add the whole set of test scenarios and paths.
| |
| * 3 ArmA (-server, -connect, -connect)
| |
| * how to resize the -window in ArmA (alt, sysmenu, left+right keys)
| |
| * link some xfire videos
| |
| * don't use cygwin here. Find a tail -f / less +F solution to follo arma.rpt for native windows. http://www.ss64.com/nt/
| |
| <pre>
| |
| @echo off
| |
| setlocal
| |
| rem set BETA=beta\
| |
| rem The line below has a TAB and TWO spaces
| |
| for /F "tokens=3* delims= " %%A in ('reg query "HKLM\Software\Bohemia Interactive Studio\ArmA" /v MAIN') do @set _arma=%%A
| |
| cd /D "%_arma%"
| |
| start %BETA%arma.exe -window -nopause -nosplash -mod=%BETA%;@mod -host -nocdkey -world=intro
| |
| start %BETA%arma.exe -window -nopause -nosplash -mod=%BETA%;@mod -connect=localhost -world=intro
| |
| </pre>
| |
|
| |
| ==How to run 2 ArmAs on the same PC==
| |
| A fast way to setup MP missions is to run two ArmA games on the same computer. Let's call the first ''Editor'' and the second ''Client''
| |
| *''Editor'' run the mission editor, selected by clicking on ''Multiplayer -> New -> Edit/New''
| |
| *''Client'' can now join it selecting ''Multiplayer -> LAN'' or ''Remote'' wiht IP ''127.0.0.1'' or ''localhost''
| |
| **It will see ''Editor'' in edit mode.
| |
| *As ''Editor'' clicks on ''Preview'' to run the mission, a PBO named <tt>__cur_mp.pbo</tt> is created for ''Client'' to be downloaded.
| |
| does*Both now enter the usual lobby and choose the slot they want
| |
| *They play the mission, and when they leave back to the lobby, they can choose:
| |
| **to run it again
| |
| **to go back
| |
| ***''Editor'', in this case, returns in the the mission editor
| |
| ***''Client'', in this case, returns to the ''Wait for host'' screen.
| |
|
| |
| In order to avoid to click through the menus, you can choose to start the two ArmA by command line:
| |
| For ''Editor''<pre>
| |
| \ArmA\arma.exe -host
| |
| </pre>
| |
| For ''Client''<pre>
| |
| \ArmA\arma.exe -connect=localhost
| |
| </pre>
| |
| I would suggest adding<pre>
| |
| -window -nosplash -nopause
| |
| </pre>to speed up things and run safe from alt-tabbing.<br>
| |
| You can start the games at the same time, for instance using a .cmd like this:<pre>
| |
| start \ArmA\arma.exe -window -nopause -host
| |
| start \ArmA\arma.exe -window -nopause -connect=localhost
| |
| </pre>
| |
| ===Problems===
| |
| All of this above should works if ArmA does not check for duplicated CD keys.<br>
| |
| There is an option in [[server.cfg]] called [[server.cfg#Server_Options|kickduplicate]], which if set to 0 allows the same CD key to join a MP game. The problem is that server.cfg, or better, the file you provide with [[-config]], is only read if you run ArmA with [[ArmA:_Startup_Parameters#Network_Options|-server]] or the dedicated <tt>[[ArmA:_Dedicated_Server|arma_server.exe]]</tt> or <tt>server</tt> on [[ArmA:_Dedicated_Server#Linux_2|Linux]].
| |
| Because this check is done online at gamespy, if you drop your internet connection, the check isn't done. But this could be a problem, because while editing or testing, you usually want to search some forums or other online resources.
| |
| ===Solutions===
| |
| # disconnect your PC from the Internet, ''or''
| |
| # use my plugin [[User:Alef/nocdkey|nocdkey]]
| |