Posts: 354
Threads: 11
Joined: May 2002
Quote:I'm getting out of memory errors.
I had same problem. Splitting it into modules doesn't have to be *too* painful, depending on how tidy your code is :-?
Other alternative is optimising & streamling for size, and yeah, you really shouldn't be storing all your sprites in base mem. You *can* actually get away with just having 1 sprite loaded at once, and pulling the next sprite off disk when you need it. It works, but is poor coding and if somebody is running in DOS without disk caching then you can't use it
You are much better off using XMS/EMS, here's some ems routines in .BAS format:
http://www.icon.net/~oasys/emslib.zip
In a world without walls and doors, who needs Windows and Gates?
Posts: 6,419
Threads: 74
Joined: Mar 2002
Don't drop. Just take your code, tidy it, and split it into modules. You should also do a better memory management. It is nonesense to load all the sprites at the beginning. Just load the ones you are goint to use, (for example, when starting a level just load the two characters that are going to fight), and then release the memory. Jill the Goddess stores all sprites in base memory (wrong! bad done!) and it has music and sound effects...
What I am trying to say is: "hey, man, it *can* be done!!"
Posts: 354
Threads: 11
Joined: May 2002
Quote:Jill the Goddess stores all sprites in base memory (wrong! bad done!) and it has music and sound effects...
I didn't mean it was wrong to store the sprites in base mem.. only if you're outta space.. if it fits, that's great
you musta used some cool tricks to squeeze all that into Jill 8)
Megaman: Nathan's idea of only loading what you need is better
i had a quick flick through your code and you're DIMing loads of substantial arrays.. do you need all this data in mem at once? writing stuff to files and reusing array space can reduce the memory overhead too.
In a world without walls and doors, who needs Windows and Gates?
Posts: 749
Threads: 4
Joined: Jun 2002
Quote:...but I can't fix it right now because of the way the game is put together...
No, sir. It's perfectly possible, and to add a good keyhandler to your proggie shouldn't be a problem at all. Take in mind the previous advice and suggestions, and
never throw the towel. Remember, Cobra will be one of the best fighting games made on QB
ever!
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Posts: 1,556
Threads: 298
Joined: Dec 2002
Well, I never said I was cancelling Cobra or anthing like that. I'm pretty sure the game will get finished. But I just have a lot of stuff to work out.
Posts: 3,368
Threads: 195
Joined: Jan 2003
The specials are quite nice!
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Posts: 1,556
Threads: 298
Joined: Dec 2002
That brings another question to mind, were there any character designs or character moves that anyone thought was lame?
Posts: 749
Threads: 4
Joined: Jun 2002
Sara's DM. Pathetic. I mean... life recovery? For a DM? PTHHHH.
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Posts: 1,556
Threads: 298
Joined: Dec 2002
Yeah, I thought it was kind of cheap too. Ideas for a new one anyone?
Posts: 17
Threads: 6
Joined: Jan 2002
Ya Mega, About the sprites, why don't u load the 2 sprites in at a time? Meaning loading the player1 sprite in with animation and such and loading player2 in etc,etc.. I have never in my life try to do what your doin. Load in everything at once is rather crazy especialy in qb. If you do wanna do that xms is your best bet. You can load it into ems, but i would not do that do to the fact that some ppl are running on xp,win2k witch is a pain to configure just to get ems to run :wink:
he Legend Continues..........
Pick up DBZ budaki today!!! ;-)