Ge Crash Problem

Non-platform specific questions.

Ge Crash Problem

Postby tzoli » Wed Jun 22, 2011 7:17 am

Hi.I have a big problem.
I'm making a strategy game.
In the battle if I send the all peasnts(type of unit) in the enemy lines the Ge crashes.
Can you fix it?
Controls:
0,1(Select Army 0-Peasants,1-Town Watch)
Numpad:
4-Left
5-Down
6-Right
8-Up
Attachments
Rome-War Against Europe.rar
Source
(173.98 KiB) Downloaded 67 times
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: Ge Crash Problem

Postby rykein » Fri Jun 24, 2011 10:31 pm

thats pretty wierd. you can stop it by removing a collision event or some code triggered by the collide in draw but it goes further than that. im too tired to go further but ill keep lookin.
rykein
 
Posts: 63
Joined: Mon Jul 26, 2010 7:26 am
Score: 6 Give a positive score

Re: Ge Crash Problem

Postby DST » Fri Jun 24, 2011 11:03 pm

i can tell you two things:

1. If you march them in slowly, so only four are fighting at once, it crashes less often, which points to
2. Timers and filled region actors are not the way to create this battle you're making.

Neither of those elements are meant to be used that way, and the crashing probably won't go away as long as you're using them.

If you remove >createactor>createactor>parazstut from the parazs and landszaz events, the game doesn't crash ever. OF course no one dies, but they fight without crashing.

Filled region/timer is the problem.

Timers aren't good for immediate, constant actions. Timers are good for screen fades, music cues, etc.

If you want a fast timer, use an actor variable

Actor>draw actor>
variable++;
if(variable==10){
do this;
variable=0;
}

Or something like that.
It's easier to be clever than it is to be kind.
http://www.lostsynapse.com
http://www.dstgames.com
User avatar
DST
 
Posts: 1117
Joined: Sun Apr 15, 2007 5:36 pm
Location: 20 minutes into the future
Score: 151 Give a positive score

Re: Ge Crash Problem

Postby tzoli » Tue Jun 28, 2011 8:46 am

Thanks :D
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest