Menu causing crashes??

Non-platform specific questions.

Menu causing crashes??

Postby jimmynewguy » Wed Apr 29, 2009 10:34 pm

I had my game running very smooth, untill i made a menu.....
now it crashes almost all the time, but the menu barely has any coding, so i have no idea what going on
Code: Select all
if(cloneindex == 0)
{
yvelocity  += .9;
}

and
Code: Select all
if(select == 0)
{
select = 1;
PlaySound2("data/hit03.wav", 1.000000, 1, 0.000000);
PlayMusic2("data/song.mid", 1.000000, 8, HIGH_PRIORITY_MUSIC);
}

are basically the only codes, other than x = 0;
and y = 0; and some enable events....
i don't see any problems, so i don't know how i should go about fixing this

even GE seems to be messing up, random letters in windows will start scrolling through symbals
im scared, alone, and cold...........help.......
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Menu causing crashes??

Postby j2graves » Wed Apr 29, 2009 10:57 pm

I think I know what it is. the playsound event you have plays a .wav sound, and .wav is a BIG music file.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Menu causing crashes??

Postby jimmynewguy » Thu Apr 30, 2009 12:12 am

it can't be wav is too big, since the .wav file is 24kb

i deleted the menu and it works fine...so it's not something else :cry:
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Menu causing crashes??

Postby j2graves » Thu Apr 30, 2009 12:14 am

you may just have to code the menu differently.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Menu causing crashes??

Postby factorman » Tue May 05, 2009 12:43 am

Probably a bad menu.
Projects
1 Tim's First Day
a. Tutorial Level 100%
b.Level 1 0%

Website
http://talkmotion.freeforums.org/
User avatar
factorman
 
Posts: 34
Joined: Mon May 04, 2009 1:14 am
Score: 0 Give a positive score

Re: Menu causing crashes??

Postby jimmynewguy » Tue May 05, 2009 1:41 am

it was actually bieng caused by play music on a collision.......don't know why though but it doesn't work so i just mayed a delay in the music instead :lol:
Working on a probably too ambitious project! Wild-west-adventure-RPG-shooter-thing.
User avatar
jimmynewguy
 
Posts: 1137
Joined: Sat Mar 31, 2007 6:27 pm
Score: 89 Give a positive score

Re: Menu causing crashes??

Postby j2graves » Fri May 08, 2009 4:43 pm

well it's great that you got it working :)
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron