Author Topic: Possible teleport incompatability with DS 2.4.2  (Read 2275 times)

Offline amylase

  • Friend
  • **
  • Posts: 75
    • View Profile
    • gpLand
Possible teleport incompatability with DS 2.4.2
« on: May 10, 2007, 09:01:43 am »
Hi everyone. As I upgraded DS2 version 2.1 on my machine to 2.4.2 today, I received the following error messages on executing teleport.c

Error message from within the game:
Quote
2007.05.10-23.43
*Can't catch eval cost too big error.
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:14

'<function>' at /secure/save/creators/a/amylase (<function>) at /:0
'cmdAll' at /secure/save/creators/a/amylase (/lib/command.c) at line 160
'cmd' at /secure/cmds/creators/teleport at line 65
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:14
Trace written to /log/runtime

From \ds\win32\driver.exe c:\ds\lib\secure\cfg\mudos.cfg this is reported:
Quote
object /secure/sefun/sefun: eval_cost too big 5000000
object /secure/daemon/master: eval_cost too big 5000000

If I repeated the command "teleport" three times in a row, it worked better and better each time (exits later and later). For example first go it would display rooms 1 to 30 and exits with error. Second time it would display rooms 1 - 100 and then exits. Third time it would display up to room 150 then exits. By fourth time around and beyond, there was no longer this error message and I could teleport to various places successfully. If I then reboot and try issuing same command, back comes error message on first three attempts. Interestingly this time the exit points are different to previously (ie. previous exits at room 30, 100, 150; but when repeated, it exits at different rooms eg. rooms 80, 110, 160). Such inconsistency makes me suspect there could be instability with the driver. Teleport used to work smoothly in DS version 2.1 without any error message. Any valuable advice from anyone would be greatly appreciated. Thanks! The code for teleport.c is here http://lpmuds.net/forum/index.php?topic=225.0
« Last Edit: May 12, 2007, 07:14:24 am by amylase »

Offline daelaskai

  • BFF
  • ***
  • Posts: 174
    • View Profile
Re: Possible teleport incompatability with DS 2.4.2
« Reply #1 on: May 10, 2007, 09:47:46 am »
When I tested your code on DS 2.4.2 I got the following error:

Code: [Select]
/realms/daelas/cmds/teleport.c line 31: Invalid argument types to '+' ( string
    vs string array )
   
---
2007.05.10-09.36
*Error in loading object '/realms/daelas/cmds/teleport'
Object: /secure/sefun/sefun at /secure/sefun/load_object.c:14

'<function>' at /secure/save/creators/d/daelas (<function>) at /:0
'cmdAll' at /secure/save/creators/d/daelas (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 112
'eventUpdate' at /secure/cmds/creators/update at line 142
'load_object' at /secure/sefun/sefun at /secure/sefun/load_object.c:14
'CATCH' at /secure/sefun/sefun at /secure/sefun/load_object.c:14
Trace written to /log/catch
/realms/daelas/cmds/teleport.c line 31: Invalid argument types to '+' ( string
    vs string array )
   
---
2007.05.10-09.36
*Error in loading object '/realms/daelas/cmds/teleport'
Object: /secure/cmds/creators/update at line 155

'<function>' at /secure/save/creators/d/daelas (<function>) at /:0
'cmdAll' at /secure/save/creators/d/daelas (/lib/command.c) at line 165
'cmd' at /secure/cmds/creators/update at line 112
'eventUpdate' at /secure/cmds/creators/update at line 155
'CATCH' at /secure/cmds/creators/update at line 155
Trace written to /log/catch
/realms/daelas/cmds/teleport: Error in update
*Error in loading object '/realms/daelas/cmds/teleport'

I corrected it by changing line 31

Code: [Select]
if(!str) message("system", "[" + i++ +"] %^YELLOW%^" + foo + "%^RESET%^ (" + sites +")", this_player());

so it now reads:

Code: [Select]
if(!str) message("system", "[" + i++ +"] %^YELLOW%^" + foo + "%^RESET%^", this_player());

I have three very large directories in the list without any errors if that helps anyone.

Daelas
« Last Edit: May 10, 2007, 12:30:28 pm by daelaskai »

Offline amylase

  • Friend
  • **
  • Posts: 75
    • View Profile
    • gpLand
Re: Possible teleport incompatability with DS 2.4.2
« Reply #2 on: May 12, 2007, 07:17:20 am »
Thanks for the reply Daelas. Please see http://lpmuds.net/forum/index.php?topic=225.0. There is still problem.