Game Development Community

Time of Day crashes Torque beta 4

by Kira · in Torque 3D Professional · 07/17/2009 (4:33 pm) · 11 replies

Hi Guys,

On creating a new level and adding Scatter Sky then Time of Day the moment you add Time of Day and place in a name and you hit Create T3D crashes. It happens either before and after scatter sky creation. We've replicated it a dozen times one after the other, it's a constant bug. The exact error is:

level.exe is not working.

It then just shuts T3D. We have just chosen to Debug and this is the debug result thayt comes up:

Unhandled exception at 0x1020119b in RSDigitalStudioTestLevel.exe 0xC0000005: access violation writing location 0x00000028.

Thanks
Regards
Shez

#1
07/18/2009 (3:11 am)
Try adding this line to Sun::onRemove.
TimeOfDay::getTimeOfDayUpdateSignal().remove( this, &Sun::_updateTimeOfDay );
#2
07/18/2009 (3:32 am)
Cool thanks , its not happening every time now though but it is still happening.
Unfortunatly I realise that non consistant failures are a pain , but ..........
#3
07/18/2009 (8:33 am)
Do you mean you are still getting periodic crashes in general, or after the same steps you mentioned in your first post it still sometimes crashes?
#4
07/19/2009 (3:34 pm)
Hey James,

Absolutely!! But let me give the fix a shot to see if it fixes it!

Thanks
Shez
#6
08/05/2009 (12:32 am)
Try this: www.garagegames.com/community/forums/viewthread/97337

It's the same as what James posted above, but the comments contain a bit more info that may help out.
#8
08/05/2009 (10:01 am)
It looks like the crash is with the Sun being removed, not with the adding of the ToD...
So it might make sense that if you say, remove the sun, save, reload, and then later added the ToD (or say, added Scattersky at one point, and added the ToD in later) that might explain why it wasn't crashing in FPS Genre Kit for you?
#10
08/07/2009 (1:22 am)
@TAFE
Do you mean that this is still happening after making the change? Or just trying to debug why the fix worked at this point?