News:

Currently available MegaGlest gameservers are listed on Play.MG.

Main Menu

Bug: Unloading Units

Started by ChupaReaper, 9 May 2011, 01:09:53

ChupaReaper

<skill>
<type value="unload"/>
<name value="unload_skill"/>
<ep-cost value="0"/>
<speed value="120"/>
<anim-speed value="20"/>
<animation path="models/asmodeus_idle.g3d"/>
<sound enabled="false"/>
<max-range value="3"/>
</skill>


Above is the XML for the unload skill. I was playing GAE and went to unload a lot of units when after a few attempts my unit just wouldn't unload then eventually the game crashed.
Here's the screenie: [spoiler=Crash Pic][/spoiler]
And I think this is the crash log:
Crash
Version: Advanced Engine v0.4beta MRise v1.8
Built: May  3 2011
Time: Sun May 08 00:42:12 2011
Description: Access violation (Reading address: 0x066950CC)

Call Stack:
  Frame       Code address
  0x00FAE38C  0x0021D0DA Glest::Widgets::MouseCursor::renderTex+0x2a at widgets_base.cpp(1177)
  0x00FAE3D4  0x00204AE3 Glest::Widgets::ImageSetMouseCursor::render+0x263 at mouse_cursor.cpp(154)
  0x00FAE3DC  0x00215917 Glest::Widgets::CellStrip::render+0x7 at widgets.cpp(538)
  0x00FAE45C  0x00132450 Glest::Main::Program::loop+0x540 at program.cpp(271)
  0x00FAE4E8  0x00132BAC Glest::Main::Program::crash+0x19c at program.cpp(455)
  0x00FAFC50  0x0012F97B Glest::Main::glestMain+0x3fb at main.cpp(195)
  0x00FAFC98  0x003007C3 __tmainCRTStartup+0x10b at crt0.c(278)
  0x00FAFCA4  0x76DF3677 BaseThreadInitThunk+0x12
  0x00FAFCE4  0x77319F02 RtlInitializeExceptionChain+0x63
  0x00FAFCFC  0x77319ED5 RtlInitializeExceptionChain+0x36

=======================

John.d.h

The unload range might not be long enough to reach from the center of a unit that big.  Try increasing it to about five and see if it can unload after that.

hailstone

It seems like something to do with the command icons on the mouse cursor. I've changed the custom mouse cursor code to be a bit more like the hard coded one so hopefully that fixes it (commit 59977b5ed6..).
Glest Advanced Engine - Admin/Programmer
https://sourceforge.net/projects/glestae/