Well I think replay recording is hardcoded, plus it doesn't really even affect the gameplay (maybe like 0.05 fps impact). If you want faster games, try not playing a map that requires hard/complicated pathing algarithems (e.g. plain open map). For some odd reason its really bad pathing code they have an even lags my computer (which is pretty good).
Well for creating a new unit the easiest way is to:
- get a unit you want to base it off of (in the objects folder)
- copy the entire object and paste it in a new file in the objects folder (so it's eaiser to edit)
- rename the object to some unique name
- Change some simple settings (eg - health, buildcost, buildtime, etc.)
- Copy the build button of the unit (eg if you copied the humvee you should copy Command_ConstructAmericaVehicleHumvee in the CommandButton.ini)
- rename the newly copied CommandButton, and change Object to what's your name of your object. (eg - Command_ConstructMyUberHumvee)
- Find a building for the button to be on (in CommandSet.ini). Make sure that it isn't filled (max is 12 buttons). In this eg(continuing from above) I'm add my button inbetween 2 & 4 in AmericaCommandCenterCommandSet (vanilla usa's command center). I'll add it like this:
3 = Command_ConstructMyUberHumvee
Change 3 to where ever you want the button to be on the command bar (the comments on the top of the file should give you a visual) and change 'Command_ConstructMyUberHumvee' to whatever your command button's name was.
*Don't forget to save your edited files!
*
*Note - Names CANNOT HAVE SPACES. You can use _.*
Your files should be in CnCGZH Base Directory\Data\INI
Test it out!
*Editing Weapons* (for your custom unit)
- Open up Weapon.ini and copy a weapon you'd like to mimic. Try not to use the superweapons, or kamikazi weapons (they work a bit differently).
*Note dummy weapons weapons that "help" the unit/its child objects to fire at stuff ordered by the player and are not suppose to do any damage.*
- Rename the weapon name and change some stuff (eg. primarydamage, range, primarydamageraduis, etc.)
- In your unit find something simular to this (in this case, its from the humvee):
Code:
WeaponSet
Conditions = None
Weapon = PRIMARY HumveeGun
Weapon = SECONDARY HumveeMissileWeaponAirDummy
End
- Replace the PRIMARY weapon (word after the PRIMARY text) with your weaponname.
- Test it out
If you get an error you can generally pinpoint where it's coming from by reading the text file generated at My Documents\Command and Conquer Generals Zero Hour Data\ReleaseCrashInfo.txt. Its Command and Conquer Generals Data for regular generals.
If you still don't think that's detailed enough, just specify where your unsure and I'll post more details.
*Edit - Little more friendly on the eye*
You can also visit
gendev and
their adding a new unit tutorial specifically