Please login or register.

Login with username, password and session length
Advanced search  

News:

Forum rules - please read before posting, it can save you a lot of time.

Author Topic: 3 clicks to shut down - or something that way  (Read 4758 times)

0 Members and 1 Guest are viewing this topic.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
3 clicks to shut down - or something that way
« on: September 06, 2006, 04:53:50 PM »

Sorry for the stupid subject, but I do not know how to write it short.

Following problem. With double click you have an immediate scene change. When clicking very fast 3 times doesn't change anything, the normal scene change like with an double click and nothing more. Now the problem:
In one specific scene causes this behaviour a crash. WME log says nothing, the post mortem log the following:

-----------------------------------------------------------------
---------- WME 1.6.001 crash report: 06-09-2006, 17:47 ----------
-----------------------------------------------------------------
wme.exe caused a EXCEPTION_ACCESS_VIOLATION in module wme.exe at 001B:00493677
EAX=00000000  EBX=41C0B63C  ECX=00CA4CD0  EDX=00000010  ESI=00CC8008
EDI=00CC8148  EBP=00000001  ESP=0012F8B4  EIP=00493677  FLG=00010246
CS=001B   DS=0023  SS=0023  ES=0023   FS=003B  GS=0000
Stack trace:
001B:00493677 (0x00000000 0x00000000 0x00000000 0x00000000) wme.exe

Thanks for upcoming help
Amo

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3 clicks to shut down - or something that way
« Reply #1 on: September 06, 2006, 05:14:37 PM »

It seems to crash somewhere in the pathfinding phase. So it crashes when you triple-click?
I wasn't able to replicate the issue. Could you post your on "LeftClick" and on "LeftDoubleClick" handlers?
I assume you're using 3D pathfinding in the scene..? (the "Use 2D elements for pathfinding" checkbox is not checked).
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: 3 clicks to shut down - or something that way
« Reply #2 on: September 06, 2006, 05:43:44 PM »

Yes we are using the 3d pathfinding. I wrote unclear. It is not really a double click, it is more clicking twice, sounds stupid, I know. Double click is reserved for later, so there is nothing attached yet.
The code for the left click is the following:

Code: [Select]
on"LeftClick"
{
actor.GoTo(90,420);
actor.TurnTo(0);
Game.ChangeScene("path...");
}

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3 clicks to shut down - or something that way
« Reply #3 on: September 06, 2006, 06:05:10 PM »

Um, there must be some other factor involved then, this is pretty standard code, I guess.
Does it crash always or randomly? Does it crash while the character is walking, turning, or when the scene is changing?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: 3 clicks to shut down - or something that way
« Reply #4 on: September 06, 2006, 07:48:38 PM »

It is crashing when the scene is changing, the screen is changing to black and than it is crashing.

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3 clicks to shut down - or something that way
« Reply #5 on: September 06, 2006, 08:02:41 PM »

So can you explain exactly what happens?
1) The actor is standing somewhere.
2) You click the exit twice.
3) The actor walks to the exit, turns.
4) The scene fades and the game crashes?
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: 3 clicks to shut down - or something that way
« Reply #6 on: September 06, 2006, 08:29:26 PM »

Near miss  ;D

1) The actor is standing somewhere.
2) You click the exit twice.
3) The actor walks to the exit, turns.
4) The scene fades and everything is right

1) The actor is standing somewhere.
2) You click the exit three times
3) The actor walks to the exit, turns.
4) The scene fades and WME crashes

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3 clicks to shut down - or something that way
« Reply #7 on: September 06, 2006, 08:49:06 PM »

Hm, nope, can't seem to replicate it no matter what I try. And I don't see anything wrong with the code either. There must be something specific about your setup what I'm missing...
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: 3 clicks to shut down - or something that way
« Reply #8 on: September 06, 2006, 09:16:27 PM »

It is high time that we create a demo version for you.
 ::)

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: 3 clicks to shut down - or something that way
« Reply #9 on: September 07, 2006, 07:04:54 AM »

Well, it's certainly about 1000000 times faster to track down a bug if you can actually replicate it :)
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

adonf

  • Regular poster
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 124
    • View Profile
Re: 3 clicks to shut down - or something that way
« Reply #10 on: September 07, 2006, 10:05:33 AM »

we've had a similar problem (using 3D pathfinding as well): our exit zones had callback functions for left click and left double-click (double click was used to exit the scene immediately and on single-click the actor would walk to the exit then leave the scene). when "triple-clicking" the game would sometimes crash.

it looks like the actor's Goto function was called when the scene and pathfinding information was already unloaded.

i worked around this crash by setting the game to non-interactive first thing in the callback functions for left double-click:
Game.Interactive = false
(of course i had to set it back to interactive in each scene's main script.)

hope this helps

olivier
Logged
I am the Milkman. My milk is good.

Amo

  • Supporter
  • Regular poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 206
    • View Profile
    • Sunrise The Game
Re: 3 clicks to shut down - or something that way
« Reply #11 on: September 07, 2006, 07:40:21 PM »

Hi Olivier,
our problem seems to be the same. Interesting is, that we "solved" it at the same way like you. OK, we are not really lucky with this, but we are on it. I guess mnemonic can help us, when we find the time to make a demo for him.
 

Page created in 0.035 seconds with 23 queries.