Crash in game on construction... {FOUND!!}

Crash in game on construction... {FOUND!!}

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Post Reply
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Crash in game on construction... {FOUND!!}

Post by Buggi »

I don't want to jump the gun or anything, but I updated the source with the latest from CVS and the game, map, and units load fine, commander goes up, but as soon as I try to build something, anything, the game crashes.

Even something as simple as dragons teeth crashes it.

-Buggi
Last edited by Buggi on 18 Jun 2005, 23:49, edited 1 time in total.
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

Crash report sent. I got a fresh copy of the source to test.

I'm at a loss for why it crashes when trying to build stuff. Commanders DGun worked fine :-)

Build a dragons teeth.. BOOM!!! natta

-Buggi
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

Just talking out loud here...

I reverted EVERYTHING back to versions 2 days old or older, compiled and it worked fine.

Now I'm going to try and narrow down why it was crashing with the bugfixes submitted.

-Buggi
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

FOUND IT!!!

Code: Select all

if(unitDef->movedata->moveType==MoveData::Hover_Move){
		physicalState = Hovering;		
Crashes the game.

Unfortunatally this was the fix for hovercraft exploding on build. >_<

DOH!

-Buggi
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

That was only to prevent hovers from taking damage from damaging water. Seems like i forgot that buildings might not have movedata. Will fix it.
User avatar
Buggi
Posts: 875
Joined: 29 Apr 2005, 07:46

Post by Buggi »

Should hovers take damage while over damaging water?

Just while over it... not while on the ground. :-)

Maybe change the Mapdamage check.

If !Flying and !InTransport AND heightatlocation < 0
DoDamage();

-Buggi
Post Reply

Return to “Help & Bugs”