Quote:
|
Originally Posted by Quicksilva
hmmm sounds nice but still is there a tut around where i can add upgrades with
|
What EXACTLY is the problem you encounter when creating upgrades? I have created several custom upgrades (although cameo's still refuse to show for customized items) succesfully.
Also, try attaching the map.ini you use...
Anyways, a quick rough scetch of problems you might encounter when making custom upgrades:
-New customized buttons need to be stated/defined BEFORE the code that defines the commandsets (in case you use map.ini). Otherwise, the game will crash because it has not yet encountered the code that defines the new commandbutton (even though it is there, the game will immediately crash if you do not define the new commandset AFTER the new commandbutton codes). This also goes for upgrade buttons (which are also customized buttons after all).
-Custom made sciences (thus not yet existing ones), should be defined NOT in a map.ini, but in the science.ini instead (just extract science.ini from ini.big to your "Generals directory\data\ini"). Best thing is to add the new science at the very BOTTOM.
-Same goes for SpecialPower.ini. Anything that defines a new SpecialPower entry should be added to SpecialPower.ini (only the SpecialPower code though

). If you try to define SpecialPower code in a map.ini, the game will crash because it checks the SpecialPower.ini for validation and it won't find the SpecialPower definition in there unless stated in the SpecialPower.ini itself.
-To enable aiming AND firing of the new SW, you have to ensure that the factionbuidling.ini holds the correct code to allow it. However, with new SWs, factionbuilding.ini will NOT have such codes. Instead, add the following bit to your map.ini:
Quote:
Object [insert valid factionbuilding]
AddModule
Behavior = OCLSpecialPower ModuleTag_87 ;Make sure that the number is different from ANY other ModuleTag (it seems that there are no ModuleTags defined above 50 in the normal ini's, but to be sure, I always go above 80)
SpecialPowerTemplate = [insert valid SuperWeapon entry] (example: SuperWeaponArtilleryBarrage...depends on SpecialPower.ini name for the SW)
OCL = [insert valid ObjectCreationList.ini entry here]
CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE ;Another valid entry is "CREATE_AT_LOCATION"...look up under other SWs for valid entries
End
End
End
|
That's about it...apart from the commandbutton definition and other obvious stuff. However, these points are the tricks that can mess you up pretty good, while in fact, they are quite easy to overcome. Especially the CommandSet crash (if you define the CommandSet before the button) is a bitchy thing...you wouldn't guess that directly....