Jump to content

Recommended Posts

Posted

Hi all,

I'm trying to help the umpire in a scenario he is adjudicating on simplot. I have a bit of knowledge in manipulating JSON so I though ti'd try to lend him a hand creating units with their weapons and sensors prefilled. 

I'm having a problem understanding how the tracking number is iterated, when I create a new unit it doesn't show up on the map, due I believe to the lack of the proper tracking number.

Posted

The unit's Track Number is a four digit number starting at a random point and incremented by one. The internal UnitId property starts at 001 and increments by one for each new unit. The UnitId is also prefixed by a letter indicating the type of unit.

You can create units using a blank scenario and export them (Units/Export menu item). Send the JSON file to your friend. Your friend can then import the unit (using the Units/Import menu item). The UnitId and Track Number will be assigned at the time of importation.

Posted

Thanks neighbor! I'm trying to make life a little easier by scripting creation of ships and aircraft with python. Sounds like I can first create a blank scenario to get the random seed number, and then feed that JSON into the script to seed whatever else I need!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...