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: Can't find source of the bug  (Read 1624 times)

0 Members and 1 Guest are viewing this topic.

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Can't find source of the bug
« on: April 25, 2008, 08:27:14 AM »

I have a bug in game_daemon.script:

When I press left mouse button on some interactive scene's entity and wait about 1-2 seconds, it writes in log

Quote
14:28:00:  Runtime error. Script 'scripts\game_daemon.script', line 47
14:28:00:    Call to undefined method 'ResetButtons'. Ignored.
14:28:00:  Runtime error. Script 'scripts\game_daemon.script', line 50
14:28:00:    Call to undefined method 'GetWidget'. Ignored.

This bug appears for the first time only. Then all is OK.

Line 47
Code: [Select]
WinMenu.ResetButtons();

Line 50
Code: [Select]
var Caption = WinMenu.GetWidget("caption");

What's wrong?
Logged

manarius

  • Lurker
  • *
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 27
  • node it. node it all together my brethren :)
    • View Profile
    • Thats one of our Games :-)
Re: Can't find source of the bug
« Reply #1 on: April 25, 2008, 09:50:48 AM »

seems like winMenu does not point somewhere as far as i see it.

maybe try to Game.Msg(winMenu) and query type, name and so on :-)

and if you want better help pls post your complete game_loop.script.

cheers
Logged

Dionysius

  • Frequent poster
  • ****
  • Karma: 3
  • Offline Offline
  • Gender: Male
  • Posts: 361
    • View Profile
    • On the Tracks of Dinosaurs
Re: Can't find source of the bug
« Reply #2 on: April 25, 2008, 05:37:18 PM »

I found the problem:

I deleted this code from game.script

Code: [Select]
// load the right-click menu
global WinMenu = Game.LoadWindow("interface\actions\actions.window");
WinMenu.Visible = false;

That is why game_daemon.script had this bug.

Excuse me for my hurry with starting this thread  :-[
Logged
 

Page created in 0.849 seconds with 23 queries.