king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
This is what I have done so far but keep getting an error message, that there is a problem in Upgrade.ini.

Here's my file: Upgrade.ini, CommandButton.ini, & CommandSet.ini:

  New Upgrades.doc (4kb) downloaded 4 time(s).
Sponsor
Me Myself and Pi
17 years ago
I can't see anything wrong with the code you uploaded. Could you upload the original files?
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Thanx. Here's the original data:

  Original Upgrades.doc (4kb) downloaded 5 time(s).
Me Myself and Pi
17 years ago
I meant the CommandButton.ini, Upgrade.ini, & the CommandSet.ini files. You can put these files into a .zip folder & upload that.
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Cant you see the doc file with the original data: commandbutton,commandset and the upgrade.ini.

Thanx
Me Myself and Pi
17 years ago
Well it looks like that second .doc file is pretty much the same as the first you uploaded. But on second thought, if you're not modifying a mod, then could you just upload your entire mod so that I can test it myself?
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
The original is the files without any modding. The first file I uploaded I changed the Upgrade.ini, the commandbutton and the commandset to the airforcegeneral and to the american side. But it doesn't work. ????????????????????????????????

I play the destructive forces mod 1.21 full. I have altered some sciences and specialpowers from china to the americas and they work just fine, just not the upgrades. Its the best mod i have seen because I used to play last stand 5.0, and it was filled with errors and bugs.
Me Myself and Pi
17 years ago
Well I'm going to need those .ini files to find the error. Here are some step by step instructions on how to upload them:

1) Go to the location in the game directory where the Ugrade.ini, CommandSet.ini, & the CommandButton.ini files are. If they're in a .big file, extract them some place.
2) Right click on empty space in the window where you currently see the .ini files.
3) In the little menu that comes up, click New > Compressed (zipped) Folder. A .zip folder will then be created, you can name it if you want.
4) Drag the 3 .ini files over the .zip folder to create a copy of them in the .zip folder.
5) Then just upload that .zip folder in a post.
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
here you go.


  Original files.rar (65kb) downloaded 2 time(s).
Me Myself and Pi
17 years ago
Okay, I got them. I installed the Upgrade.ini file & the game loaded up fine. Are you sure that the Upgrade.ini file is causing the problem?

If the problem is in the CommandButton.ini or CommandSet.ini, I will need the complete mod to fully debug the errors.
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Ok. The game loads up fine with the last file I send you. But heres the real problem: I want the China upgrades: Nuclear tanks, UraniumShells, NanoArmor and Nationalism. The last files I send you are just fine, but I cannot get the upgrades over to the airforce general. Because wherever I put the AirF_............. in the uprade.ini it comes up with an error??
Me Myself and Pi
17 years ago
Well as I said before, I'll need all of the mod files in order to fully debug the errors.
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
I want to ask you directly how to change the original china upgrades to be used by the Airforce general?


I appreciate all your help for a modding Noob like me!

Thanx
Me Myself and Pi
17 years ago
Okay, here they are, but let me know if you're copying upgrades from one mod to another:

1) Go to the command sets in the CommandSet.ini file & copy an upgrade command button line.
2) Go to an objects command set that you want the upgrade to be available on & paste the line there. Be sure it takes up a number slot that hasn't been taken up. Do this for any other upgrades.
3) If you want the upgrades to apply to the Air Force Generals' units, go to an china unit's object code that uses the upgrade.
4) Scroll down through the module tags until you find one in reference to the upgrade, copy it.
5) Now paste it into each of the units object codes that you want the upgrade to apply to. You'll also have to change the module tags number so that it doesn't conflict with another module tag with the same number.
6) If you want the little icons that appear in the control bar indicating whether or not the units upgrade has been purchased, go to the top of the Art Parameters. Copy & paste the UpgradeCameos that you want from one of the china units to the Air Force Generals units. This is what you're looking for:
     Object AmericaInfantryColonelBurton

       ; *** ART Parameters ***
       SelectPortrait         = SABurton_L
       ButtonImage            = SABurton
-----> UpgradeCameo1 = Upgrade_AmericaAdvancedTraining <-----
-----> UpgradeCameo2 = Upgrade_AmericaChemicalSuits <--------

       Draw = W3DModelDraw ModuleTag_01
       OkToChangeModelColor = Yes
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Allright I followed your guide, and I get the Cameos to show ingame. But I want to transfer NUCLEAR TANK UPGRADE to be researched in an american Building, how do I do that, because as now, i cant research it????????? What parameters do I need to change??????


And I need to research it, to make it available to my tanks.

Thanx
Me Myself and Pi
17 years ago
Well the Air Force General doesn't have any tanks. Did you add them yourself? Non the less, if you give me the name of the units you want the upgrade to apply to, I'll give you step by step instructions on how to do it.
king
  • king
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Hi, I want to upgrade the paladin. I have the cameo and the Ocl for creating the upgrade. But it doesnt work, because the nuclear tanks upgrade is a china upgrade and I want to apply the upgrade to the American Airforce general.

Thanx
Me Myself and Pi
17 years ago
Okay, let me see if I have this right, have you added the Paladin tank to the Air Force General? If so, follow the instructions below. Although you may have done some of them, it just so that you can find what you're doing wrong. If you still can't get it working, upload you mod files in a .zip folder so I can check it out.

1) Go to the CommandSet.ini & to the AmericaStrategyCenterCommandSet. (Based that you would want to put the upgrade on the strategy center. If you want it on the particle cannon, then you'll need to create a new command set because the Air Force particle cannon uses the USA particle cannons command set.)
2) Add the Command_UpgradeChinaNuclearTanks to an available slot, like this:
CommandSet AmericaStrategyCenterCommandSet
  1 = Command_InitiateBattlePlanBombardment
  2 = Command_CIAIntelligence
  3 = Command_InitiateBattlePlanHoldTheLine
  4 = Command_UpgradeChinaNuclearTanks ; <----------
  5 = Command_InitiateBattlePlanSearchAndDestroy
  6 = Command_UpgradeAmericaChemicalSuits
  7 = Command_UpgradeAmericaMOAB
  8 = Command_UpgradeAmericaCompositeArmor
  9 = Command_UpgradeAmericaAdvancedTraining
 10 = Command_UpgradeAmericaDroneArmor
 11 = Command_StrategyCenter_Stop
 13 = Command_UpgradeAmericaSupplyLines
 14 = Command_Sell   
End
3) Go to the AmericaVehicle.ini file, (if you copied & pasted the paladin tank's code into the AirForceGeneral.ini, then go to that instead) & to paladin tank code. Now scroll down to the *** ENGINEERING Parameters ***
4) Go down to the Locomotor = SET_NORMAL CrusaderLocomotor line & add Locomotor = SET_NORMAL_UPGRADED NuclearBattleMasterLocomotor just under that. (You can copy & paste the crusader locomotor to speed up for the upgrade if the paladin ask differently becuase it uses the battlemasters locomotor.)
5) Continue to scroll down to just above the geometry. Copy & paste this code there:
  Behavior = LocomotorSetUpgrade ModuleTag_50
    TriggeredBy = Upgrade_ChinaNuclearTanks
  End
So the code should look like:
  Behavior = FlammableUpdate ModuleTag_21
    AflameDuration = 5000         ; If I catch fire, I'll burn for this long...
    AflameDamageAmount = 3       ; taking this much damage...
    AflameDamageDelay = 500       ; this often.
  End


  Behavior = LocomotorSetUpgrade ModuleTag_50 ; <------
    TriggeredBy = Upgrade_ChinaNuclearTanks   ; <------
  End                                         ; <------


  Geometry = BOX
  GeometryMajorRadius = 15.0
  GeometryMinorRadius = 10.0
  GeometryHeight = 10.0     
  GeometryIsSmall = Yes    
  Shadow = SHADOW_VOLUME
  ShadowSizeX = 45  ; minimum elevation angle above horizon. Used to limit shadow length

End

I haven't tested this so if it doesn't work, let me know.