Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: Desktop crash in WME  (Read 4583 times)

0 Members and 1 Guest are viewing this topic.

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Desktop crash in WME
« on: August 14, 2008, 10:55:29 PM »

Hi Mnemonic,

I've found and replicate (and already workaround) desktop crash. I don't know if it can be fixed but it's the one which has been sent to you by email.

I've a script which has vaguely something like this:

Code: WME Script
  1. this.AttachScript("scenes\salia3\scr\HoleGame.script");
  2.                
  3. while (!Salia3WreckFound)
  4. {
  5.   Sleep(1000);
  6. }
  7.                        
  8. this.DetachScript("scenes\salia3\scr\HoleGame.script");
  9. while (this.IsScriptRunning("scenes\salia3\scr\HoleGame.script")) Sleep(50);
  10.  

Now in the attached script is a loop:

Code: WME Script
  1. while (true)
  2. {
  3.   {
  4.       if (Game.MouseX < 1000 && Game.MouseX >= 15)
  5.           e.X = Game.MouseX;       
  6.        
  7.         if (Game.MouseY < 740 && Game.MouseY >= 15)
  8.           e.Y = Game.MouseY;
  9.     }
  10.     Sleep(80);  
  11. }
  12.  

In another script is ending condition for the first script. But if you try to detach script while the loop is active, wme desktop crashes. Workaround in my case was to substitute
while(true) for while(!Salia3WreckFound).

Just wanted you to know...
Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet
 

Page created in 0.189 seconds with 23 queries.