Author Topic: memory issue?  (Read 2504 times)

0 Members and 1 Guest are viewing this topic.

Joey

  • Guest
memory issue?
« on: October 05, 2002, 10:24:28 AM »
last night, i worked on dq2 for like 4 hours. you know what i got accomplished? half of a 30 second intro. i have a strange problem. it opens and then you press enter to start playing, or if you wait, it will play the intro. i press enter to skip the intro, it loads the first screen, and i can play fine. but, if i watch the intro, it does everything, then it loads the first screen. i can move around, but i cant access the menu. how can i fix this, and is it a memory problem? the quicker i get an answer, the more time i will have to work on the game today. ;)



Joey

  • Guest
Re:memory issue?
« Reply #1 on: October 05, 2002, 10:43:43 AM »
could someone help me with this!!??

Offline Joel

Re:memory issue?
« Reply #2 on: October 05, 2002, 10:47:06 AM »
it's hard to tell, but it probably isn't a memory problem. It's probably that your game does different things if you skip the intro than if you watch it. Make sure the code to create/enable the menu is in a place where it will get executed regardless whether you skip the intro or watch it...one possible location for such a thing is in the "first room" section of your first room.

if ((prev_room_no == 0 || prev_room_no == 1))
{
}

If that's not the problem, then it may be a memory issue, but I can't say for sure.

Joey

  • Guest
Re:memory issue?
« Reply #3 on: October 05, 2002, 10:52:58 AM »
well actually i think it is something about the prev room thing. before that, i hit enter to skip it and it didnt show ego and i couldnt use the menu. i dont think i could use the menu at least. wait, yes i could. but ego didnt show up. i did the prev room thing and he showed up. but now if i watch the intro, it loads ego, but the menu is not accesible. i didnt get what you meant joel. i do prev room? i think i did that.....

Offline Joel

Re:memory issue?
« Reply #4 on: October 05, 2002, 10:57:30 AM »
In logic 2, you should have some code that looks like this:

if (new_room)
{
  ...maybe some junk here...

  if ((prev_room_no == 0 || prev_room_no == 1))
  {
  }

  ...some more junk here...
}

The part that tests the prev_room_no is only true if the game is just starting (or restarting, I think).

Somewhere in your code is code that skips the intro when you press a key...this will probably be in either logic 0 or logic 1. Find this code...

Joey

  • Guest
Re:memory issue?
« Reply #5 on: October 05, 2002, 11:02:27 AM »
i know where that code is. it is like if(have.key)
or something like that. so what do you want me to do with that code?

Offline Joel

Re:memory issue?
« Reply #6 on: October 05, 2002, 11:04:13 AM »
what happens if (have.key) is true?

Joey

  • Guest
Re:memory issue?
« Reply #7 on: October 05, 2002, 11:06:47 AM »
i think that means if you press enter right? if i press enter, it skips the intro and loads the first playable screen. (screen 3) if i dont press anything and wait a little i set it so it plays the intro.

Offline Joel

Re:memory issue?
« Reply #8 on: October 05, 2002, 11:09:00 AM »
are you on aol im right now? this would be easier if we could do this in chat instead of over the message board

Joey

  • Guest
Re:memory issue?
« Reply #9 on: October 05, 2002, 11:10:12 AM »
im on as larrylaffer5

Joey

  • Guest
Re:memory issue?
« Reply #10 on: October 05, 2002, 01:47:42 PM »
ok now i fixed some stuff. if i skip the intro, i can access the menu, and type look and stuff. everything works. if i watch the intro. i can type look and it works. i cannot access the menu. if i type in quit it says i dont understand your request.

the reason the menu didnt work before was because f14 (the menu flag) was not set. :-[ but now if i watch the intro, i make sure f14 is set, but the menu still doesnt work.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.049 seconds with 21 queries.