Backyardcabinxy said:
I have a question.
Is there a limit to the amount of code that can be put on a single map?
The game I was modding had an error where Sue's Workshop froze and quit every time I entered a certain map I was working on. (Running the game, enter door, Sue's Worksop laqs and quits, Windows 7) I had to delete the exe and restart work on using backup file I made. (I'm so happy I made a backup!). Is there a way to prevent game-breaking glitches like this? Is there a cause? I'm still able to work on my mod, but it is scary that I can loose progress so easily. For good measure, send me a list of DON"T (Don't do this, this, this,ect) so I can avoid making game-breaking mistakes in the future. Thanks Again!
There is a limit - a maximum of 20480 text characters for each script in each map (including line breaks, which count as 2 characters I believe).
Information Source:
http://www.cavestory.org/forums/threads/934/
It is possible to change this, but you'd need to hack the executable.
I'm not sure why that happened with Sue's Workshop. I've never gotten such an error. Of course, I'm not using Sue's Workshop anymore so I can't give you specifics.
There aren't too many ways to fix problems with the editors unless you want to get real complicated. However, backing up is always a really good idea. Just make multiple copies of your mod folder and then delete the old copies later on.
Don't do this:
--If you ever use Cave Editor, do NOT set your Cave Story files to read-only. Make sure that you have unchecked read-only properties for the entire mod folder. (Use Right Click > Properties on the folder. Look under attributes and uncheck Read-Only)
--Do not use Cave Editor and Sue's Workshop on the same mod. They are not compatible. Even though some people say that SW -> CE is okay but not the other way around, this is not entirely true because game settings will not be read correctly by CE after editing with SW.
--Do not forget to make back ups!
===============
LunarSoul said:
I also have a question. Can you change the frames of a weapon while that game is open? (i.e. To make an upgraded version, complete with new images, without taking up an extra spot)
Yes.
Code:
[COLOR="Blue"][B]if [/B][/COLOR](weapon_is_upgraded_version)
[COLOR="Blue"][B]then[/B][/COLOR]
load framerect 1
load framerect 2
load framerect 3
etc...
jmp address A
[COLOR="blue"][B]otherwise[/B][/COLOR]
load different framerect 1
load different framerect 2
load different framerect 3
etc...
address A
Translate that to assembly.