-
Setting the second vsTASKER
In order to distribute a simulation, we need to have two Federates.
In our case, we will just duplicate the current database.
You can duplicate the basic Entity (basic1, basic2) but then, do not forget to add all entities to the Used-by list of the publishing FedItem.
So, just Save-As the current database with name hla_sample2
You can also change the background color of the map to distinguish the two databases.
Generate the code, compile and load the simulation
Now, to open the second vsTASKER onto the same computer, you need to execute the batch file vstasker2.bat located into base directory.
This batch file must be executed under Administrator mode.
The simplest way to do it is to open a Console (cmd) under Administrator rights using the Accessory folder of Windows Start::Programs. Then, c:; cd %vstasker_dir%; then vstasker2
A new vsTASKER gui will appear. This one will create another shared-memory segment so, it will not conflict with the first one.
Load the hla_sample database (the hla_sample2 is currently loaded by the first vsTASKER, from the Save-As command).
You can then change also the background color.
Rename the Entity and move it somewhere else (to avoid overlaps).
You can also duplicate the current one.
Now, load all simulation and start them.
You will see on both scenario map the local entity and the others sharing the same area.