Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (Full Version)

All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Mods and Scenarios >> Useful Material



Message


mikmykWS -> Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (3/12/2014 11:40:31 PM)

quote:

You can add new magazines to any ship, sub or facility using an INI config fil. This is basically a script that can apply various mods to the units in the scenario without having to edit the database.

To rebuild a scenario using an INI file you first need to make an INI template file. Go to Editor -> SBR -> Generate Template. This will generate a template file listing all units in the simulator. If you have manually altered magazines, mounts, etc, in the scenario editor, go to Editor -> SBR -> Generate Delta Template to only export the diff between the scenario setup and the database.

Then edit the exported INI file by opening it in Notepad. When you open the file it contains an entry for all platforms in the scenario. Delete everything except the unit you want to edit, like this:

<?xml version="1.0" encoding="utf-8"?>
<ScenarioUnits>
<Unit_a25be2bd-d06f-4162-959b-b3d7ccc1e5ff>
<!--LCS 1 Freedom (LCS 1 Freedom [1839])-->
</Unit_a25be2bd-d06f-4162-959b-b3d7ccc1e5ff>
</ScenarioUnits>

Note that 'Unit_a25be2bd-d06f-4162-959b-b3d7ccc1e5ff' is the unique identifier for the LCS 1 in the test scenario that I've used on this end. It will be different on your end. The line '<!--LCS 1 Freedom (LCS 1 Freedom [1839])-->' is a comment and can be altered as you see fit. It is good practice to always add comments for all lines in the INI.

Then add a 'Add Magazine' line, like this:

<MagAdd_240 /><!--Torpedo Magazine [Internal Tubes] -- USN, 2005-->

The above line will add Magazine #240 to the ship. I've also added a comment for future reference.

The full file look like this:

<?xml version="1.0" encoding="utf-8"?>
<ScenarioUnits>
<Unit_a25be2bd-d06f-4162-959b-b3d7ccc1e5ff>
<!--LCS 1 Freedom (LCS 1 Freedom [1839])-->
<MagAdd_240 /><!-- Torpedo Magazine Internal Tubes, USN 2005 -->
</Unit_a25be2bd-d06f-4162-959b-b3d7ccc1e5ff>
</ScenarioUnits>

Then go to Editor -> SBR -> Apply SBR to apply the changes. Open the Magazines window for the LCS and check that the magazine has been added.

Magazine with ID# 240 adds 8 Mk54s. If you want 18 torps used ID# 244, and for 30 torps use ID# 246.

Neat, huh :)




mikmykWS -> RE: Adding a Magazine via config file (3/12/2014 11:43:10 PM)

quote:



emsoy
INI Config file commands are:

Add mount, ID# 434 used as an example. Note that Coverage has to be added as well, either each segment of a limited arc, or a full 360 deg arc:

<MountAdd_434>
<!--CADS-N-1 [3M87 Kortik]-->
<Cov>
Alternative 1:<Seg>PMA1,PMA2,PMF1,PMF2,PS1,PS2,PB1,PB2</Seg>
Alternative 2:<Seg>360</Seg>
</Cov>
</MountAdd_434>

Add magazine, ID# 240 used as an example:

<MagAdd_240 /><!-- Torpedo Magazine Internal Tubes, USN 2005 -->

Add sensor, ID# 4 used as an example. Note that Coverage has to be added as well, both search coverage and illumination/target tracking coverage (the two coverages have been given different arcs for illustration purposes):

<SensorAdd_4>
<!--Toad Stool [RBP-2]-->
<Cov>
<Seg>360</Seg>
</Cov>
<Cov_Ill>
<Seg>PMA1,PMA2,PMF1,PMF2,PS1,PS2,</Seg>
</Cov_Ill>
</SensorAdd_4>

Add comm link (typically missile guidance link), ID# 3 used as an example:

<CommAdd_3 /><!--SA-10 Missile Datalink-->

Delete mount, mag, sensor and comm link, item #3 on the unit used as an example, with ID#222 (a ship may carry several instances of a given mount/mag/etc, so have to specify exactly which one to remove):

<MountRemove_3_222 />
<MagRemove_3_222 />
<SensorRemove_3_222 />
<CommRemove_3_222 />

Edit, add and remove weapon record on mount, in mount magazines or in magazines. In this case mount #3 on the ship, which has ID# 552 and is a Sea Sparrow mount (as per comment). Also note that we're playing around with the mount magazine a bit:

<Mount_3_552><!--Mk29 Sea Sparrow-->
<WeaponRecAdd_5188 /><!--RIM-8J Talos-->
<WeaponRecAdd_1557 /><!--RUM-139A VLA [Mk46 Mod 5]-->
<WeaponRecAdd_2626 /><!--Roland 3-->
<WeaponRecAdd_944 /><!--RUR-5A Mod 3 ASROC RTD [10kT Nuclear DC]-->
<WeaponEdit_1687_2 /><!--RIM-7M Sea Sparrow-->
<WeaponEdit_885_22 /><!--RIM-8J Talos-->
<WeaponEdit_1643_77 /><!--RUR-5A Mod 3 ASROC RTD [10kT Nuclear DC]-->
<WeaponRemove_233 /><!--Mk182 SRBOC Chaff [Seduction]-->
<MountMag>
<WeaponRecAdd_5188 /><!--RIM-8J Talos-->
<WeaponRecAdd_154 /><!--RUM-139C VLA [Mk54]-->
<WeaponRecAdd_4015 /><!--S-8KO 80mm Rocket-->
<WeaponRecAdd_2765 /><!--SAM-3 Kin-SAM [Type 93]-->
<WeaponEdit_885_3 /><!--RIM-8J Talos-->
<WeaponEdit_1193_88 /><!--SAM-3 Kin-SAM [Type 93]-->
<WeaponRemove_233 /><!--Mk182 SRBOC Chaff [Seduction]-->
</MountMag>
</Mount_3_552>

<Mag_1_717><!--Mk36 SRBOC-->
<WeaponRecAdd_2541 /><!--Generic Chaff Salvo [5x Cartridges]-->
<WeaponRecAdd_5188 /><!--RIM-8J Talos-->
<WeaponRecAdd_154 /><!--RUM-139C VLA [Mk54]-->
<WeaponRecAdd_4015 /><!--S-8KO 80mm Rocket-->
<WeaponRecAdd_2765 /><!--SAM-3 Kin-SAM [Type 93]-->
<WeaponEdit_232_222 /><!--Mk182 SRBOC Chaff [Seduction]-->
<WeaponEdit_885_3 /><!--RIM-8J Talos-->
<WeaponEdit_1193_88 /><!--SAM-3 Kin-SAM [Type 93]-->
<WeaponRemove_233 /><!--Mk182 SRBOC Chaff [Seduction]-->
</Mag_1_717>




Jorm -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (3/12/2014 11:49:53 PM)

brilliant.. thanks for the pointer :-)

you guys really do give excellent support to the game.. huzahhh !!!




Sardaukar -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (3/13/2014 9:09:33 AM)

It's great, even when bit complicated.

Now we just need someone to make a program or "feature" that does this "automagically"...[:D]




mikmykWS -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (3/13/2014 12:13:48 PM)

You can add and delete weapons, mounts, records and sensors from within the game already. Add magazine is on our list.
thanks!

Mike




Sardaukar -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (3/13/2014 12:24:35 PM)


quote:

ORIGINAL: mikmyk

You can add and delete weapons, mounts, records and sensors from within the game already. Add magazine is on our list.
thanks!

Mike


I meant easier editing of INI config files. [8D]




blh42 -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (11/4/2014 6:17:19 AM)


quote:

ORIGINAL: mikmyk

You can add and delete weapons, mounts, records and sensors from within the game already. Add magazine is on our list.
thanks!

Mike


Is it possible to add thing as helo landing capability too?

Blh




mikmykWS -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (11/4/2014 4:14:39 PM)

Not yet but there are really a ton of ship hulls in the game that would probably match what you're looking for.

If its an error or something missing in a db post to the relevant string and we can bang out a fix in a build or two.

Mike




orca -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (12/14/2014 9:08:19 PM)

I know someone posted a link with the datalink id's. I searched but can't seem to find it. Does anyone know that link?




ClaudeJ -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (12/14/2014 9:53:22 PM)


quote:

ORIGINAL: orca

I know someone posted a link with the datalink id's. I searched but can't seem to find it. Does anyone know that link?


That one?

[image]http://i.gyazo.com/d2a58ed067fe8c4fa89cf4060db93778.png[/image]
http://www.matrixgames.com/forums/fb.asp?m=3441817




orca -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (12/14/2014 11:12:01 PM)

Yes. Thanks.




VistaJohn1 -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (1/23/2015 9:44:21 PM)

This is a great tool! Have learned to use it to add comms, took a bit before I understood the exact steps required. Your examples have the information, just takes some trial and error to see the "/" added to the end of changes. Multiples can be done as long as you remember to end the changes for each unit. Can you post an example of how a loadout is changed via the ini file. Weapons and quantity please. Can you export and import these to a file for use in other scns? Thanks for a great game! It goes where I always wanted Harpoon to go. The changes in the last update really fixed the things I found frustrating with air operations[:)].
In Reply to mikmyk




Rudd -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (1/24/2015 12:46:27 PM)

quote:

ORIGINAL: VistaJohn

...Can you export and import these to a file for use in other scns? Thanks for a great game! It goes where I always wanted Harpoon to go. The changes in the last update really fixed the things I found frustrating with air operations[:)].
In Reply to mikmyk



You can copy and paste specific info from those, to use in others... http://www.matrixgames.com/forums/tm.asp?m=3766341&mpage=1&key=modifications�




VistaJohn1 -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (1/27/2015 8:03:40 PM)

Thanks for the info. I have no problem with mounts, sensor, or comms. Cannot figure out how to change weapons/quantities for aircraft loadouts. For example, change all the aim-120 load out for carrier aircraft to all be the 120D instead of a mix. F-24A, F-35C, A-12A aircraft. I can change the quantities to for the 120c to zero, but when I add the record for the 120d, it goes into the defensive stores mount. How do I get it to go into the weapons mount for aims.




Mgellis -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (1/28/2015 5:06:44 PM)

In case anyone needs this information...

<MagAdd_120 /> adds a carrier magazine
<MagAdd_10 /> adds a helicopter magazine

(Both come with certain weapons, but you can delete those and add whatever weapons you want to include, then use the delta template command to record those changes to the .ini file so when the scenario is updated to new versions of the database the changes are not erased/reset to the default. But these work well as sort of "generic" magazines if you want to add a magazine to a ship that does not have any at all. I'm sure there are others, but these are the ones I've found so far.)








VistaJohn1 -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (1/30/2015 4:49:49 AM)

Thanks for the response. I am trying to edit aircraft as was explained for ships. It seems to work for planes aloft, but not for ones on a base or carrier. The script runs without error, but only the planes aloft are changed. I copied the unit info from the template to the delta template and made the changes to jammers I wanted. Save the file and run the SBR script, says it's done. Save the scn., then load as a game. The airborne planes are good, the ones on the base and carrier are unaffected. Am I missing something? Is it just not possible to change planes not airborne? Anyone with an answer, please respond.
Thanks





orca -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (2/18/2015 2:43:31 PM)

Thanks Mgellis for info on magazines.

Is there a link with a list of all magazines similar to the link out there for datalinks?




jptheronmd -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (4/25/2015 5:42:36 PM)

Sorry for the dumb question, but I am trying to change one sensor for another on a particular ship but don't know how to look up sensors in the DB in the first place. Any ideas?




Splinter00S -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (10/11/2015 1:04:06 AM)

What you can do is add the sensor through the mission editor, make a delta ini for that ship, then the sensor being added should be listed with it's relevant id.

Anyone know if you can add properties (e.g. refuel, replenish, etc.) in the same way you can add sensors weapons and mags? If so, does anyone know the property reference number for refuel from port/starboard and replenish from port/starboard?




taffthomas -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (10/21/2015 1:05:50 PM)

Can I bump the last request
I would like to replenish Frigates & destroyers with munitions They will refuel but not replenish so do I need to add a From port/starboard to their properties?




mikmykWS -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (10/21/2015 11:05:43 PM)


quote:

ORIGINAL: taffthomas

Can I bump the last request
I would like to replenish Frigates & destroyers with munitions They will refuel but not replenish so do I need to add a From port/starboard to their properties?


What vessels?

Thanks!

Mike




taffthomas -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (10/22/2015 9:09:35 AM)

Thanks for the quick reply
They are for Rn type 42s in CWBD I want to replenish Sea Darts I read Gunners thread on corrupt mags so it may be something I am doing wrong(a good chance)




somi83 -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (5/21/2016 6:19:31 AM)

Hi,

These are ARC Lua Codes for Sensors and Mounts if anyone needs them.

quote:

<Cov>
<Seg>CODES</Seg>
</Cov>


[image]local://upfiles/53563/BF0B90019F484D5CA313DC41D5B13F46.jpg[/image]




mikmykWS -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (8/26/2016 4:16:15 PM)

Nuclear Warheads

ID NAME Type Type Damage
17 B-28 Nuclear (1.45mT) Bomb Nuclear Nuclear [kT] 1450
934 B-43 Nuclear (1mT) Bomb Nuclear Nuclear [kT] 9000
462 B-53 Nuclear (9mT) Bomb Nuclear Nuclear [kT] 9000
458 B-57 Nuclear (20kT) Bomb Nuclear Nuclear [kT] 20
460 B-61 Nuclear (340kT) Bomb Nuclear Nuclear [kT] 340
459 B-83 Nuclear (1.2 mT) Bomb Nuclear Nuclear [kT] 1200
417 Nuclear (1.0mT) Nuclear Nuclear [kT] 1000
298 Nuclear (1.1mT) Nuclear Nuclear [kT] 1100
583 Nuclear (1.2mT) Nuclear Nuclear [kT] 1200
215 Nuclear (1.3mT) Nuclear Nuclear [kT] 1300
1042 Nuclear (1.5kT) Nuclear Nuclear [kT] 1.5
434 Nuclear (100kT) Nuclear Nuclear [kT] 100
410 Nuclear (10kT) Nuclear Nuclear [kT] 10
412 Nuclear (120kT) Nuclear Nuclear [kT] 120
742 Nuclear (12kT) Nuclear Nuclear [kT] 12
433 Nuclear (150kT) Nuclear Nuclear [kT] 150
300 Nuclear (15kT) Nuclear Nuclear [kT] 15
911 Nuclear (18mT) Nuclear Nuclear [kT] 18000
53 Nuclear (1kT) Nuclear Nuclear [kT] 1
1033 Nuclear (1kT) Nuclear Nuclear [kT] 1
819 Nuclear (2.3mT) Nuclear Nuclear [kT] 2300
541 Nuclear (200kT) Nuclear Nuclear [kT] 200
419 Nuclear (20kT) Nuclear Nuclear [kT] 20
611 Nuclear (20mT) Nuclear Nuclear [kT] 25000
545 Nuclear (24mT) Nuclear Nuclear [kT] 24000
248 Nuclear (25kT) Nuclear Nuclear [kT] 25
910 Nuclear (25mT) Nuclear Nuclear [kT] 25000
912 Nuclear (2kT) Nuclear Nuclear [kT] 2000
741 Nuclear (3.3mT) Nuclear Nuclear [kT] 3300
610 Nuclear (3.5mT) Nuclear Nuclear [kT] 3500
336 Nuclear (300kT) Nuclear Nuclear [kT] 350
950 Nuclear (30kT) Nuclear Nuclear [kT] 350
548 Nuclear (350kT) Nuclear Nuclear [kT] 350
129 Nuclear (3mT) Nuclear Nuclear [kT] 3000
429 Nuclear (450kT) Nuclear Nuclear [kT] 450
102 Nuclear (500kT) Nuclear Nuclear [kT] 500
1061 Nuclear (50kT) Nuclear Nuclear [kT] 50
355 Nuclear (50mT) Nuclear Nuclear [kT] 50000
587 Nuclear (550kT) Nuclear Nuclear [kT] 550
482 Nuclear (5kT) Nuclear Nuclear [kT] 5
113 Nuclear (5mT) Nuclear Nuclear [kT] 5000
29 Nuclear (60kT) Nuclear Nuclear [kT] 60
586 Nuclear (70kT) Nuclear Nuclear [kT] 70
99 Nuclear (750kT) Nuclear Nuclear [kT] 750
431 Nuclear (800kT) Nuclear Nuclear [kT] 800
969 Nuclear (80kT) Nuclear Nuclear [kT] 80
523 Nuclear W44 (10kT) Nuclear Nuclear [kT] 10
589 Nuclear W50 (400kT) Nuclear Nuclear [kT] 400
593 Nuclear W53 (9mT) Nuclear Nuclear [kT] 9000
851 Nuclear W54 (0.25kT) Nuclear Nuclear [kT] 0.25
98 Nuclear W56 (1.2mT) Nuclear Nuclear [kT] 1200
430 Nuclear W58 (200kT) Nuclear Nuclear [kT] 200
588 Nuclear W62 (170kT) Nuclear Nuclear [kT] 335
436 Nuclear W69 (200kT) Nuclear Nuclear [kT] 200
92 Nuclear W70 (100kT) Nuclear Nuclear [kT] 200
591 Nuclear W76 (100kT) Nuclear Nuclear [kT] 100
117 Nuclear W78 (335kT) Nuclear Nuclear [kT] 335
592 Nuclear W80-0 (200kT) Nuclear Nuclear [kT] 150
566 Nuclear W80-1 (150kT) Nuclear Nuclear [kT] 200
590 Nuclear W85 (50kT) Nuclear Nuclear [kT] 50
116 Nuclear W87 (400kT) Nuclear Nuclear [kT] 400
594 Nuclear W88 (475kT) Nuclear Nuclear [kT] 475
40 WE-177 Type A Depth Charge [15kT Nuclear] Nuclear Nuclear [kT] 15
39 WE-177 Type B Bomb [400kT Nuclear] Nuclear Nuclear [kT] 400
36 WE-177 Type C Bomb [300kT Nuclear] Nuclear Nuclear [kT] 300




tieberion -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (12/7/2016 4:49:50 PM)

Hi all, new to Command, and finally was able to get it and all the DLC with the sale. (Restricted in funds this past year thanks to some Cancer that really wouldn't go away until last month, hooray!)
Was wondering if there were any pre-made ships similar to the 2016? Lake Erie that have the onboard systems for Anti-Ballistic Missile Defense-Should be RIM-3 Block IIA/B. I saw in a video someone using the Zumwalt this way
and it was full of the TUBES with the RIM-3's. I've tried to add magazines/change/add weapons, but on the Zumwalt it never works, I just end up with it full of tomahawks. Any helps or tips would be awesome as I'm building a nuclear strike campaign, but the AEGIS ships and ground facilities play a big part in it. Also, is it possible to shoot down satellites, or is that not modeled yet?

Thanks, and great to meet you all, Tib [&o]




mikmykWS -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (12/7/2016 7:12:02 PM)

Glad you are now well!

You likely need the correct weapon's links. Look at Rag's post above for the datalinks. You can look at another ship to see what's needed. Then add it via delta file.

Thanks!

Mike




inanetunaman -> RE: Adding Ship Components via Config File (Add Magazine, Add Comms, Add Weapons etc). (2/17/2017 7:06:48 PM)

what is the data value for the sonarbouy links?, i want to add them to my AEW planes in a near future scenario

also, is there a place to look these up, as comms and datalinks can't be done in the editor without the data values




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.140625