Modding Issues and Questions

User avatar
Sireyn
First Sergeant
Posts: 231
Joined: Sat 5 Jan 2013 06:57
Contact:

Re: Modding Issues and Questions

Postby Sireyn » Thu 5 Sep 2019 16:00

3xANikolai wrote:Would you happen to know what these values mean (the ones within the Red Square)? The top value is obviously the cost for us players in order for us to purchase the unit, however the rest im not sure of, does it have anything to do with the 4 AI's difficulty cost of this particular unit?


I believe those are vestigial values from European Escalation, where each rank of a unit increased its price.

3xANikolai
Specialist
Posts: 12
Joined: Sat 20 Jul 2019 20:58
Contact:

Re: Modding Issues and Questions

Postby 3xANikolai » Fri 13 Sep 2019 11:11

1. Eventually for my mod I would like to implement new ammunition, well in particular different versions of ATGM's, AA missiles or separation of RPG HEAT and Frag-HE rounds. Would I have to replace the new stuff with an already existing ammunition or would I just be able to add a completely new instance?

2. If I was going to change a unit from 'recon' tab to 'vehicle' tab, would I only need to change a few things within the units modules?

3. Sireyn I believe you have added a Mortar to the Merkava if im not mistaken, how did you go about with the other Machine Guns on the tank(considering that it would now have 4 weapons? And how did you display them within the stats menu or did you have it like how ships are done with CIWS?

User avatar
Sireyn
First Sergeant
Posts: 231
Joined: Sat 5 Jan 2013 06:57
Contact:

Re: Modding Issues and Questions

Postby Sireyn » Fri 13 Sep 2019 18:01

3xANikolai wrote:1. Eventually for my mod I would like to implement new ammunition, well in particular different versions of ATGM's, AA missiles or separation of RPG HEAT and Frag-HE rounds. Would I have to replace the new stuff with an already existing ammunition or would I just be able to add a completely new instance?


This is a complex topic that can have multiple ways to accomplish something.

You can add as many weapons to a unit as you want, but problems can arise by the inability of the game to properly display them in the unit's info window, with getting the unit's animations to play properly, and with the unit's weapon firing priorities. Vanilla tanks already stack AP and HE ammo on the main weapon without conflict because they are fired at two different targets and vanilla infantry stack a long range and short range version of their rifles. Many FIST teams also stack AP and HE rockets, so you can use one to model off of.

In the WeaponManager, each turret is independently aimed and fired. If you want your weapon to fire at the same time as existing weapons, then add a new turret. To have an alternative ammo, you need to add a new TMountedWeapon to an existing turret.

Within a TMountedWeapon, SalvoStockIndex controls which ammo pool the weapon draws from and SalvoStockIndex_ForInterface controls which slot on the unit card the weapon shows up in (null, 1, 2). You can merge weapons using this.

Infantry use the GroupeCombat module to display animations, but it is very similar to the ApparenceModule. The TCompositeHappening references typically follow the following order.
Spoiler : :
Image


3xANikolai wrote:2. If I was going to change a unit from 'recon' tab to 'vehicle' tab, would I only need to change a few things within the units modules?


The only thing you have to do is change the Factory on the TUniteAuSol page, but there are many minor details that may be relevant.
- In the TUniteAuSol page, AcknowUnitType and TypeForAcknow control the radio acknowledgements.
- In the TypeUnit module are two things; TypeUnitHintToken and the first localization hash in the Filters.
Spoiler : :
Map 1 contains unit the subtype filter (Light infantry, tank destroyer, etc)
[D2036A5F57468B07] - Fire Support
[15E6814B53468B07] - Cavalry Tank
[DDE3545E192D1E00] - Tank Destroyer
[AA6CC61000000000] - Flamethrower
[8DB6000000000000] - Transport: Armored Personnel Carrier
[2034010000000000] - Transport: Infantry Fighting Vehicle
[CED55CDC52468B07] - Command: Tracked
[CED594D1E2010000] - Command: Wheeled
[D623395753468B07] - Command: Helicopter
[CED540D854468B07] - Command: Infantry
[D623459955468B07] - Supply: Helicopter
[1FE7459955468B07] - Supply: Vehicle
[4C0695D1E2010000] - Supply: FOB
[99733565B4780000] - Infantry: Commando
[5E374165B4780000] - Infantry: Fire Support
[10365965B4780000] - Infantry: Light
[CB026153192D1E00] - Infantry: Anti-Aircraft
[DE026153192D1E00] - Infantry: Anti-Tank
[103645D853468B07] - Infantry: Engineer
[D1C341D854468B07] - Infantry: Rifle
[4F3359D355468B07] - Infantry: Reserve
[D7D295D1E2010000] - Air Defense: Missile
[D1B2685D192D1E00] - Air Defense: Gun
[A3C72D65B4780000] - Artillery: Howitzer
[1D675D65B4780000] - Artillery: MLRS
[DCE271D955468B07] - Artillery: Mortar
[93D4490F58468B07] - Artillery: Anti-Ship
[42852D5E192D1E00] - MBT: 40$ and less
[43852D5E192D1E00] - MBT: 45$ to 85$
[44852D5E192D1E00] - MBT: 90$ and more
[D203360F57468B07] - Recon: Vehicle
[D623350F57468B07] - Recon: Helicopter
[CDC36153192D1E00] - Recon: Infantry
[9D963D5A57468B07] - Recon: Special Forces
[8F847D51192D1E00] - Helicopter: Gunship
[99F548CB52468B07] - Helicopter: Anti-Aircraft
[99F548DE52468B07] - Helicopter: Anti-Tank
[93D4598F54468B07] - Helicopter: Anti-Ship
[8F842D9C57468B07] - Helicopter: Transport
[57B494D1E2010000] - Aircraft: Anti-Tank
[5EF7594D192D1E00] - Aircraft: Bomber (Cluster)
[CEF27450192D1E00] - Aircraft: SEAD
[93D471D352468B07] - Aircraft: Anti-Ship
[DAD771D352468B07] - Aircraft: Air Superiority
[CC95318F54468B07] - Aircraft: Bomber
[0DF778D854468B07] - Aircraft: Interceptor
[DCE459DF55468B07] - Aircraft: Multirole
[1307395753468B07] - Ship: Command
[DAD7795D53468B07] - Ship: Coastal support
[DE9231DD53468B07] - Ship: Escort
[5166810B56468B07] - Ship: Supply

- In the CompanyUnit module are the Label module and IAStratModule. The Label module contains several UI-related items.
- Recon units have stealth and different optics, so the Visibility, Scanner Configuration, and Scanner module must be changed.
- The IAStratModule must be changed for the AI to utilize the unit correctly and it should match the one in the CompanyUnit module.
- Recon units have a symbol in their name, so the name should be edited in the ZZ_Win.

3xANikolai wrote:3. Sireyn I believe you have added a Mortar to the Merkava if im not mistaken, how did you go about with the other Machine Guns on the tank(considering that it would now have 4 weapons? And how did you display them within the stats menu or did you have it like how ships are done with CIWS?


Technically there are up to six weapons: Main gun AP/HE, MG/Grenade Launcher, and Mortar HE/Smoke. I merged similar weapons and edited the name to make it intuitive. The second image shows a few problems with merging weapons; the C-06 apparently has a helicopter range, but that is from the machine gun, and the ammo counts are not displayed for both weapons. In battle, the ammo counts between all merged weapons will be added together, making it difficult to know which weapon is running low.

Spoiler : :
Image
Image

Return to “Modding”

Who is online

Users browsing this forum: No registered users and 12 guests