Overland4567
12 years ago
Hello all,

I'm learning to edit the INI codes in a zero hour mod Reborn V6 data folder in the main directory. I have edited some of the INI folders and somehow the game started to crash on start up. I have only edited select parts that I thought would be okay. It worked fine until I edited something that I don't know that made the game start crashing: Here are some of the files I edited:

USA Rogue General INI Folder:
; ***DESIGN parameters ***
DisplayName = OBJECT:Humvee
Side = AmericaRogueGeneral
EditorSorting = VEHICLE
TransportSlotCount = 1(this was originally 3) ;how many "slots" we take in a transport (0 == not transportable)

; ***DESIGN parameters ***
DisplayName = OBJECT:PaladinDouble
Side = AmericaRogueGeneral
EditorSorting = VEHICLE
TransportSlotCount = 1 ;how many "slots" we take in a transport (0 == not transportable)

; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE SCORE PARACHUTABLE

Body = ActiveBody ModuleTag_02
MaxHealth = 750.0(Max and InitialHealth where increased)
InitialHealth = 750.0

; ***DESIGN parameters ***
DisplayName = OBJECT:Tomahawk
Side = AmericaRogueGeneral
EditorSorting = VEHICLE
TransportSlotCount = 1 ;how many "slots" we take in a transport (0 == not transportable)

; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE DONT_AUTO_CRUSH_INFANTRY CAN_ATTACK CAN_CAST_REFLECTIONS VEHICLE SCORE

Body = ActiveBody ModuleTag_02
MaxHealth = 380.0(Increased from 280)
InitialHealth = 380.0


; ***DESIGN parameters ***
DisplayName = OBJECT:Battleship
Side = America
EditorSorting = VEHICLE
TransportSlotCount = 1 ;how many "slots" we take in a transport (0 == not transportable)
ExperienceValue = 500 500 1000 1500 ;Experience point value at each level
ExperienceRequired = 0 500 1000 2000 ;Experience points needed to gain each level
IsTrainable = Yes ;Can gain experience
CommandSet = BattleShipCommandSet
WeaponSet
Conditions = None
Weapon = PRIMARY BattleShipGunReal
Weapon = SECONDARY BattleShipGunReal
Weapon = SECONDARY BattleShipGunReal
AutoChooseSources = PRIMARY FROM_SCRIPT FROM_PLAYER FROM_AI
AutoChooseSources = SECONDARY FROM_SCRIPT FROM_PLAYER FROM_AI
End
MaxSimultaneousOfType = 100(changed from 3)



Mainly all I edited in the INI folders in change the Transport slot count for ground vehicles, increased their health and change some of the build limit of some of the naval ships. It worked fine when I just changed the Transport slot count number, then after I changed the build limit plus increased health on some of the vehicles, it started crashing when I launched the mod from the mod folder. I have one other mod with this but it has worked fine until now. Also I want to add that I changed the healing amount for most of the GLA vehicles to 4 instead of 2.




GLA Terror Leader INI Folder:
Behavior = AutoHealBehavior ModuleTag_08
HealingAmount = 4 (Was 2)
HealingDelay = 1000 ; msec
TriggeredBy = Upgrade_GLAJunkRepair
End



China Rogue Genaral INI Folder:
; ***DESIGN parameters ***
DisplayName = OBJECT:SuperOverlord
Side = ChinaRogueGeneral
EditorSorting = VEHICLE
TransportSlotCount = 1 ;how many "slots" we take in a transport (0 == not transportable)

; *** ENGINEERING Parameters ***
RadarPriority = UNIT
KindOf = PRELOAD SELECTABLE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT CAN_CAST_REFLECTIONS VEHICLE SCORE HUGE_VEHICLE

Body = ActiveBody ModuleTag_02
MaxHealth = 2500.0(Increased Health)
InitialHealth = 2500.0



The Changes in the code are highlighted.
Sponsor
Rrtaya_tsamsiyu
12 years ago
hmm, don't know. Some of the stuff shows a comment you made, like (Increased Health). If these comments are in the code they need a ; in front of them, so the game doesn't pick them up.

If your comments aren't the case, then try opening World Builder and see if it catches anything.
one soul at a time
Overland4567
12 years ago
It's not the comments. I did not put those in the code, however, I will check World Builder. How should I use World Builder to figure out whats wrong anyway? I have never used World Builder for checking codes yet.
Rrtaya_tsamsiyu
12 years ago
When worldbuilder is starting up, it checks the code. If there isn't any problem, it starts up normally. If it finds a problem, it gives you an error popup, and says where it found the error.

If worldbuilder doesn't find anything wrong, but the game is crashing, you'll have to go and undo your changes one by one until it starts working again [process of elimination]. Once the game works again, you found your problem.

Also, if your using finalBIG, when you right click and click Go To, it should have a list of all the objects in that file, then if you hover over one it should show a list of that unit's modules, etc. If it doesn't show some of the units past a certain point, and starts showing modules in the list where all the objects are, then there is an extra END statement or an END missing somewhere.

Note that if worldbuilder finds somthing, it will say what file it's in and give you a line number. To find the line, use notepad [or Edit with Editor, if using finalBIG] and us the GOTO option. when you click GOTO, it will open a small window where you can put the line number, and it will take you there.
one soul at a time
Overland4567
12 years ago
Okay I will give it a shot and I will see what is going on.