wolfling wrote:I tried to edit number 12 in notepad and change LASER_BURST_3 to LASER_BURST_4 and it crashed. I haven't tried anything else; when that didn't work I came straight here.
Don't edit binary files in notepad (or any other straight text editor), it does not play well with binary files.
An ASCII text file (what notepad was made to edit) is a binary file with a specific interpretation filter on top - for example, reading the byte value 77 is interpreted as "M" and 109 is "m". But it also contains a bunch of non-character or control codes, such as 8 (backspace) or 11 (tab).
Specifically, what goes wrong here (or at least when I test with notepad on my computer) is that it reads a file which is full of 0's, interprets them as spaces, and then saves them again using the space control code (32). Since the game saves its numbers as 32 bit integers (4 bytes long), this means that if the game saved the value "1" as "01 00 00 00", then this has now been changed to "01 20 20 20" (32 in hexdecimal is 20), and the value of the resulting integer has jumped to 538976257 - which is a bit far from the intended 1.
If you want to play around with editing files like this, then get a proper
hex editor - that link should have a few suggestions.
... Also, there is no LASER_BURST_4 in the game
, though putting it in your save does not crash the game - you just get a blank dummy weapon. There are:
LASER_BURST_1 = Defense Laser Mark I
LASER_BURST_2 = Dual Shot Laser
LASER_BURST_2_A = Burst Laser Mark I
LASER_BURST_3 = Burst Laser Mark II
LASER_BURST_5 =Burst Laser Mark III