Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cobra: demo number one,
#11
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 Wink 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?
Reply
#12
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!!"
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#13
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 Wink 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 Smile 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?
Reply
#14
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! [Image: xyxthumbs.gif]
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply
#15
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.
Reply
#16
The specials are quite nice! Smile
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.
Reply
#17
That brings another question to mind, were there any character designs or character moves that anyone thought was lame?
Reply
#18
Sara's DM. Pathetic. I mean... life recovery? For a DM? PTHHHH. [Image: eviltongue.gif]
img]http://usuarios.vtr.net/~disaster/sigs/annoyizer.php[/img]
Reply
#19
Yeah, I thought it was kind of cheap too. Ideas for a new one anyone?
Reply
#20
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!!! ;-)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)