Home » PLAYER'S HQ 1.13 » JA2 Complete Mods & Sequels » All about modding JA2 » Copying items into 1.13
Copying items into 1.13[message #352204] Mon, 29 January 2018 00:37 Go to next message
AllisonIsLivid

 
Messages:12
Registered:January 2018
Location: New England
As part of my ongoing "make the Queen's army make sense" project, I've been swapping her troop equipment for American hand-me-downs. Sadly, there aren't as many WW2-Vietnam era choices as I'd like. I've been trying to port some from AIMNAS that fit the bill perfectly as guns that America would export cheap as dirt to Arulco in the 50's, 60's and 70's, in order to stem the tide of Communism, and prop up their agreeable constitutional monarchy.

I've started fairly small, by trying to copy over the classic Grease Gun, and it... kind of works. The game launches (always a plus!) and the enemies in the test sector correctly spawn with it. Unfortunately, when they drop it, it appears as a NADA placeholder on the map, and trying to pick it up crashes the game.

That's about as far as I've gotten. I used to know how to do this, but that was maybe seven years ago. My brain is just not in the right place anymore, I guess. If anyone has advice, I'd be very grateful.

Re: Copying items into 1.13[message #352205 is a reply to message #352204] Mon, 29 January 2018 00:43 Go to previous messageGo to next message
AllisonIsLivid

 
Messages:12
Registered:January 2018
Location: New England
These are the entries in Items and Weapons.xml. I've made sure to copy and rename the GUN363.sti that the grease gun in AIMNAS points to, so it's now GUN373.sti. So it should be the same image. And the grease gun apparently uses the same sound set as the Thompson, so nothing was changed there.

<WEAPON>
<uiIndex>1751</uiIndex>
<szWeaponName>M3 Grease Gun</szWeaponName>
<ubWeaponClass>2</ubWeaponClass>
<ubWeaponType>3</ubWeaponType>
<ubCalibre>3</ubCalibre>
<ubReadyTime>6</ubReadyTime>
<ubShotsPer4Turns>15.4</ubShotsPer4Turns>
<ubBurstPenalty>9</ubBurstPenalty>
<ubBulletSpeed>22</ubBulletSpeed>
<ubImpact>35</ubImpact>
<ubDeadliness>20</ubDeadliness>
<bAccuracy>3</bAccuracy>
<ubMagSize>30</ubMagSize>
<usRange>320</usRange>
<usReloadDelay>200</usReloadDelay>
<BurstAniDelay>43</BurstAniDelay>
<ubAttackVolume>66</ubAttackVolume>
<ubHitVolume>2</ubHitVolume>
<sSound>415</sSound>
<sBurstSound>76</sBurstSound>
<sSilencedBurstSound>111</sSilencedBurstSound>
<sReloadSound>101</sReloadSound>
<sLocknLoadSound>107</sLocknLoadSound>
<SilencedSound>157</SilencedSound>
<bBurstAP>12</bBurstAP>
<bAutofireShotsPerFiveAP>2</bAutofireShotsPerFiveAP>
<APsToReload>22</APsToReload>
<SwapClips>1</SwapClips>
<MaxDistForMessyDeath>9</MaxDistForMessyDeath>
<AutoPenalty>9</AutoPenalty>
<NoSemiAuto>1</NoSemiAuto>
<ManualReloadSound>476</ManualReloadSound>
<nAccuracy>38</nAccuracy>
<bRecoilX>0.46</bRecoilX>
<bRecoilY>1.48</bRecoilY>
<ubAimLevels>5</ubAimLevels>
<Handling>12</Handling>
<usOverheatingJamThreshold>4000</usOverheatingJamThreshold>
<usOverheatingDamageThreshold>5000</usOverheatingDamageThreshold>
<usOverheatingSingleShotTemperature>9</usOverheatingSingleShotTemperature>
</WEAPON>


<ITEM>
<uiIndex>1751</uiIndex>
<szItemName>M3 Grease Gun</szItemName>
<szLongItemName>M3 Grease Gun</szLongItemName>
<szItemDesc>The M3 is an automatic, air-cooled blowback-operated weapon that fires from an open bolt.</szItemDesc>
<szBRName>M3 Grease Gun</szBRName>
<szBRDesc>Still in use in some 3rd World countries all over the globe, the M3 was intended as a replacement for the .45-caliber Thompson SMGs during WW2. Cheap and rugged. Any serious collector should have one of those.</szBRDesc>
<usItemClass>2</usItemClass>
<ubClassIndex>1751</ubClassIndex>
<ubCursor>3</ubCursor>
<ubGraphicNum>373</ubGraphicNum>
<ubWeight>36</ubWeight>
<ItemSize>64</ItemSize>
<usPrice>750</usPrice>
<ubCoolness>1</ubCoolness>
<bReliability>4</bReliability>
<bRepairEase>4</bRepairEase>
<Damageable>1</Damageable>
<Repairable>1</Repairable>
<WaterDamages>1</WaterDamages>
<Metal>1</Metal>
<Sinks>1</Sinks>
<ShowStatus>1</ShowStatus>
<TwoHanded>1</TwoHanded>
<BR_NewInventory>12</BR_NewInventory>
<BR_ROF>500</BR_ROF>
<usOverheatingCooldownFactor>100</usOverheatingCooldownFactor>
<DamageChance>15</DamageChance>
<DirtIncreaseFactor>30</DirtIncreaseFactor>
<STAND_MODIFIERS>
<FlatBase>0</FlatBase>
<PercentBase>0</PercentBase>
<FlatAim>0</FlatAim>
<PercentCap>5</PercentCap>
<PercentHandling>0</PercentHandling>
<PercentTargetTrackingSpeed>2</PercentTargetTrackingSpeed>
<PercentDropCompensation>0</PercentDropCompensation>
<PercentMaxCounterForce>5</PercentMaxCounterForce>
<PercentCounterForceAccuracy>8</PercentCounterForceAccuracy>
<PercentCounterForceFrequency>22</PercentCounterForceFrequency>
<AimLevels>0</AimLevels>
</STAND_MODIFIERS>
<CROUCH_MODIFIERS>
<FlatBase>0</FlatBase>
<PercentBase>0</PercentBase>
<FlatAim>0</FlatAim>
<PercentCap>5</PercentCap>
<PercentHandling>0</PercentHandling>
<PercentTargetTrackingSpeed>2</PercentTargetTrackingSpeed>
<PercentDropCompensation>0</PercentDropCompensation>
<PercentMaxCounterForce>4</PercentMaxCounterForce>
<PercentCounterForceAccuracy>8</PercentCounterForceAccuracy>
<PercentCounterForceFrequency>22</PercentCounterForceFrequency>
<AimLevels>0</AimLevels>
</CROUCH_MODIFIERS>
<PRONE_MODIFIERS>
<FlatBase>0</FlatBase>
<PercentBase>-3</PercentBase>
<FlatAim>0</FlatAim>
<PercentCap>5</PercentCap>
<PercentHandling>0</PercentHandling>
<PercentTargetTrackingSpeed>0</PercentTargetTrackingSpeed>
<PercentDropCompensation>0</PercentDropCompensation>
<PercentMaxCounterForce>0</PercentMaxCounterForce>
<PercentCounterForceAccuracy>8</PercentCounterForceAccuracy>
<PercentCounterForceFrequency>22</PercentCounterForceFrequency>
<AimLevels>0</AimLevels>
</PRONE_MODIFIERS>
</ITEM>
Re: Copying items into 1.13[message #352206 is a reply to message #352205] Mon, 29 January 2018 02:02 Go to previous messageGo to next message
edmortimer

 
Messages:1077
Registered:January 2015
Location: Home Free
It would be easier for you simply to use the same entry and image as v1.13 uses in this instance - as it has the Grease Gun. But otherwise, there are 2 more images to copy over - the medium size image (which you see in inventory) and the small size image (which you see in tactical on the ground). they are found in the Interface folder (MDGUNS.STI) and the TileSets/0 folder (SMGUNS.STI) respectively. Both of those files are multi-image STIs, unlike the single image STI you copied over. That means you'll have to export the image you want as a BMP, and then import the BMP into the multi-image STI in the correct place (in this case, image 373) in both MDGUNS & SMGUNS.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Copying items into 1.13[message #352207 is a reply to message #352206] Mon, 29 January 2018 02:16 Go to previous messageGo to next message
edmortimer

 
Messages:1077
Registered:January 2015
Location: Home Free
Also, AIMNAS is set up for his big maps -- and so has different range parameters than v1.13. For example: the Grease Gun is 200 range in v1.13 and 320 range in AIMNAS. IIRC, AIMNAS also uses modified AmmoStrings.XML and Magazines.XML -- and you can run into trouble there if you don't modify the v1.13 XMLs to match. There can be other differences also, like Item Sizes, so a straight copy of items from one mod into another can cause problems. Basically, you'll have to check and possibly modify AIMNAS items to match v1.13 parameters and XML reference connections.

[Updated on: Mon, 29 January 2018 02:19]





Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Copying items into 1.13[message #352208 is a reply to message #352207] Mon, 29 January 2018 03:59 Go to previous messageGo to next message
AllisonIsLivid

 
Messages:12
Registered:January 2018
Location: New England
Okay, that's super helpful! I kind of remember this being a pain. Although I don't see a Grease gun entry in 1.13 at all. It's not the only weapon I'm after though. My plan was to move the handful of weapons I want over, and then scale them down to fit better with the smaller maps. I need to be more observant about these references, so I appreciate the tip. I noticed the sizes are different too, and now I know I'm going to have to verify all the connections.
Re: Copying items into 1.13[message #352210 is a reply to message #352208] Mon, 29 January 2018 05:02 Go to previous messageGo to next message
edmortimer

 
Messages:1077
Registered:January 2015
Location: Home Free
You're right, there's no Grease Gun entry - I switched out the G11 for the M3A1 so long ago that I forgot it wasn't standard in v1.13!

I have a lot of WWII/Korean/Vietnam-era weapons and gear in my mod - you are welcome to rip them out for your mod. My AmmoStrings.XML and Magazines.XML are slightly different than v1.13, but my Item Sizes, Ranges, and other similar stuff is compatible if not the same.




Arulco Vacations Blog

Arulco Vacations Bears Pit Forum


Re: Copying items into 1.13[message #352212 is a reply to message #352210] Mon, 29 January 2018 16:26 Go to previous message
AllisonIsLivid

 
Messages:12
Registered:January 2018
Location: New England
That might be easier then. I've had an eye on your work, and it's informed a lot of my own decisions so far, so I really appreciate your help.

Edit: getting everything working now. You've been a huge help, as have the folks in the discord chat, so thanks again.

[Updated on: Mon, 29 January 2018 20:49]

Previous Topic: How to download and install Flugentes 8517 patch?
Next Topic: New weapons with inexplicable behavior.
Goto Forum:
  


Current Time: Tue Sep 25 02:29:05 EEST 2018

Total time taken to generate the page: 0.00926 seconds