Scripting help

Login to reply  Page: « < 1 of 1 > »
20 Feb 2009 - 03:151115
Scripting help
I have this script:

room 1
%echoaround% %actor% %actor.name% undocks %actor.hisher% ship.
%teleport% %actor% 35040
%send% %actor% Undocking...
wait 2 s
%send% %actor% Checking navigation systems...
wait 2 s
%teleport% %actor% 35201
%force% %actor% look

room 2
%echoaround% %actor% %actor.name% docks %actor.hisher% ship into the station.
%teleport% %actor% 35040
%send% %actor% Docking...
  wait 2 s
%send %actor% Your ship is being towed into the station.
  wait 2 s
%teleport% %actor% 35008
%force% %actor% look

This script works on TBA but not on mine, this is the error i get:

 Debug Assertion Failed!

Program: circlemud.exe
File: f:\dd\vctolls\crt_bld\self_x86\crt\src\isctype.c
Line: 56

Expression: (unsigned)(c + 1) <=256
this is on line 56:
#if defined (_DEBUG)
extern "C" int __cdecl _chvalidator(
int c,
int mask
)
{
_ASSERTE((unsigned)(c + 1) <= 256);
return _chvalidator_l(NULL, c, mask);
}


I guess something is wrong with the file?
I have no idea how to fix this



Last edited by citrix (20 Feb 2009 - 04:31)
20 Feb 2009 - 09:331116
Your script is fine, it appears to be a code problem.

This problem seems to affect people compiling in Windows using Visual Studio 2008, and according to this site, your problem may be fixed by recompiling in 'Release mode' (set in the Configuration Manager).

This just means that this bit of code isn't used, because it's only used in debug mode.

According to this site and also this site, the problems seems to occur when 'non-english letters' are used in filenames. If your MUD has any filenames with accented characters, it might also cure the problem if you simply renamed them...

Hope that helps.


__________________
20 Feb 2009 - 10:031117
Yeah after searching for that .c i kinda noticed the debug problem, ill try it in released, thanks

Results
- 19 error(s), 1887 warning(s)



Last edited by citrix (20 Feb 2009 - 10:05)
26 Feb 2010 - 17:342393
Those errors are all wsock32.lib related. I had the very same problem. When you change from debug to release in removes the wsock32.lib dependency from the input config. You'll need to write it in again and everything should go according to plan.


Login to reply  Page: « < 1 of 1 > »