Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Pages: 1 [2]  All

Author Topic: Script errors  (Read 8946 times)

0 Members and 1 Guest are viewing this topic.

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Re: Script errors
« Reply #15 on: October 23, 2008, 02:27:12 AM »

I have no further script errors in my log (using my script as modified by you : )) but am not sure how to attach the bomb script to the door.  I can't attach it directly to the door object as it already has one script and I know the new script will "call" the bomb script---but how do I add the bomb script?  Puzzled.
« Last Edit: October 23, 2008, 05:07:29 AM by Catacomber »
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  

Catacomber

  • Supporter
  • Frequent poster
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Female
  • Posts: 443
  • I love mice.
    • View Profile
    • Catacomber.com
Re: Script errors
« Reply #16 on: October 23, 2008, 03:57:00 AM »

Figured out how to make the bomb script and am at the end of the tutorial for that section.  BUT--have new error log using all the scripts ---

********** DEBUG LOG OPENED 22-10-2008 (Release Build) *****************
22:52: Wintermute Engine ver 1.8.6, Compiled on Apr  6 2008, 13:49:35
22:52: Platform: Windows XP Service Pack 3 (Build 2600)
22:52: DirectX version: 9.0
22:52:
22:52: Scanning packages...
22:52:   Registered 0 files in 0 package(s)
22:52: Initializing scripting engine...
22:52:   Script compiler bound successfuly
22:52: Loading plugins...
22:52:   wme_sample_pixel.dll
22:52:   wme_snow.dll
22:52: Loading string table...
22:52:   49 strings loaded
22:52: Enumerating Direct3D devices...
22:52: Enumerating DirectSound devices...
22:52: Available video devices:
22:52:   NVIDIA GeForce4 MX 440 with AGP8X (accelerated)
22:52:     nv4_disp.dll 6.14.10.9371
22:52: Available audio devices:
22:52:   Primary Sound Driver
22:52:   Realtek AC97 Audio
22:52:   [no sound]
22:52:
22:52: User selected:
22:52:   Video: NVIDIA GeForce4 MX 440 with AGP8X (accelerated)
22:52:          Windowed:no  Colors:32bit  T&L:no  Multisample:0
22:52:   Audio: Primary Sound Driver
22:52: Maximum texture size: 2048x2048
22:52: Engine initialized in 32 ms
22:52:
22:52: Runtime error. Script 'scenes\Warehouse\scr\Door.script', line 7
22:52:   actor.GoToObject method accepts an entity refrence only
22:53: Runtime error. Script 'scenes\Warehouse\scr\Door.script', line 7
22:53:   actor.GoToObject method accepts an entity refrence only
22:53:
22:53: Shutting down...
22:53: Shutting down scripting engine


My door script -- copied from the online book unless I made a mistake:

   #include "scripts\base.inc"
 
on "LeftClick"   
{
   Game.Interactive = false;    // We want our player to make more things at once and we don't want to be interrupted.
   global doorClicked = true;
   actor.GoToObject(this);
   this.Active = false;  // We disable the door so the hotspot is not visible or active anymore.
   actor.Talk("Oh no. There's a timed bomb attached to the door! I have to find an exit before it explodes.");   
   Scene.AttachScript("scenes\warehouse\scr\bomb.script");
   Game.Interactive = true; // Allow player to play some more.
}

Sigh. : )  Molly nicely dies and starts over!) : ).  My only problem is that script error and the fact that I can't seem to change scenes here--but then Molly isn't living long enough to change scenes. 

If you get the hourglass during playing a scene does it mean it's somehow bugged?
« Last Edit: October 23, 2008, 05:13:54 AM by Catacomber »
Logged
http://www.catacomber.com/
Code: WME Script
  1. Mnemonic is wonderful.
  2.  
Pages: 1 [2]  All
 

Page created in 0.052 seconds with 20 queries.