Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 11 Jan 2010 15:28:45 -0000
Well, I'm still of the opinion that it would be much better to use Hollywood directly. Designer is fine for presentations and smaller games but if for games with complicated engine, I'd always use Hollywood directly because if you use too much custom code in Designer, it becomes a hell to debug it.
Currently page changes are not a problem to me anymore. Or are, but i was able to find solution.
If i use any if, switch, whatever, and i put them to their own line (the GOOD way) it complains that Function without Endfunction thing, but by using IF something THEN pagechange (the BAD way) it works fine for now (who knows for how long, since seems changing code affects which way it decides to work)
I have one page that handles the jumps where it automatically goes after end of each level (page being next to level code page, so when it gets out of loop it goes to next page which is the jump handling page) and that way i have at least for now been able to handle all necessary jumping.
So i however am having now a problem with Designer, and it is a bug i suppose.
Thing is, basically in any page, but one, i have just stuff like "money=100, level=2" that its just telling how much money you ae going to get from next level, or what is the number of level and so on.
But i have this one page that has the actual game engine (about 500 lines of code currently) which is voked when missions starts. And this page gives me trouble now.
For thing is, if i put this code in that page, and then save, designer wont let me load that HWD file next timme anymore but reports error in one of the code lines, (the one i posted in otheer topic here before).
I made new test project and created there only one page and loaded that same code to that one page, saved project and opened it, and it opened wihtout trouble.
So it seems that code bugs only in that real project.
That page in that real project has nothing else but that code. So in that sense its exactly similar to the test project.
So do you have any idea what might be causing this?
Basically this isnt ultimate disaster, since i can always load that code to that page again, test it, compile (havent tried actually) it and so on, without any problem, but if i save the project, then im not able to open that project anymore.
So its bit inconvenient.
Problem is also that i was coding for quite long before i saved that code, so tracing all the new lines that might have affected that situation is pretty hard too.
So just to repeat it shortly again.
If i put that code to page, program works fine, no errors and as supposed, but if i save that project, it wont open it anymore but reports about error in one of the line.
When copied to new project that same code and saved. No problem in opening.
Any idea what i should be trying to look out for?