Cutting the size of the Script by creating variables to use instead of using full statements. So instead of "1=Patrol Craft" 2 times?
I add that once and call it as such M1 = "1=Patrol Craft"
That saves 11 bytes! Estimated savings is about 800 bytes!
I also don't type all the UnitTypes. I use 010 to modify the files in each version so I just cut and paste into the Script!
Example:
Stock list from the Names.cfg in SH4..........
Type0=Patrol Craft
Type1=Corvette
Type2=Frigate
Type3=Destroyer Escort
Type4=Destroyer
Type5=Minesweeper
Type6=Light Cruiser
Type7=Heavy Cruiser
Type8=Escort Carrier
Type9=Fleet Carrier
Type10=Battlecruiser
Type11=Battleship
Type12=Minelayer
Type13=Auxiliary Cruiser
Type14=Special OPS Boat
Type15=Landing Craft
Type16=Elite Patrol Craft
Type17=Elite Destroyer escort
Type18=Elite Escort Carrier
Type19=Super Fleet carrier
Type20=Super Battleship
010 Modified list.......
"0=Patrol Craft", "1=Corvette", "2=Frigate", "3=Destroyer Escort", "4=Destroyer", "5=Minesweeper", "6=Light Cruiser", "7=Heavy Cruiser", "8=Escort Carrier", "9=Fleet Carrier", "10=Battlecruiser", "11=Battleship", "12=Minelayer", "13=Auxiliary Cruiser", "14=Special OPS Boat", "15=Landing Craft", "16=Elite Patrol Craft", "17=Elite Destroyer escort", "18=Elite Escort Carrier", "19=Super Fleet carrier", "20=Super Battleship"
In 010 I used column mode to cut Type off the text.
Then edited it in Hex mode to replace bytes 0D 0A to 22 2C 20 22
__________________
I don't do Stupid. So don't ask.
Last edited by Jeff-Groves; 02-06-22 at 12:21 PM.
|