Yeah, don't do that..

Found a bug in UOX3? Or experienced a server crash? Perhaps you've noticed a broken feature? Post the details here!
Post Reply
Mindless Automaton
UOX3 Apprentice
Posts: 189
Joined: Wed May 10, 2006 3:48 am
Has thanked: 0
Been thanked: 1 time
Contact:

Yeah, don't do that..

Post by Mindless Automaton »

You might just write this one of as 'stop doing dumb things' (but that may be the majority of my scripting):

Trying to get current x & y, I accidently put

Code: Select all

	var current_x = tChar.x;
	var current_y = tChar.y;
before the function onAISliver( tChar ) instead of after it.

Code: Select all

o----------------------------------------------------------------------------------------------------------------------o| Performing Garbage Collection... Removed 0 objects
| CMD: Loading JS ...CMD: Loading JSE Scripts...
| ERROR: JS script failure: Script Number (65535) Message (ReferenceError: tChar is not defined)
| ERROR: Filename: ./js//custom/fisherman.js
| Line Number: 8
| ERROR: Erroneous Line: (null)
| Token Ptr: (null)
| script result: false
|   o Loaded  129 scripts from section SCRIPT_LIST
|   o Loaded   55 scripts from section COMMAND_SCRIPTS
|   o Loaded    3 scripts from section MAGIC_SCRIPTS
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: Compiling ./js/skill/evaluateintel.js caused a construction failure (Details: Compilation failed)
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
| ERROR: JS script failure: Script Number (65535) Message (out of memory)
| ERROR: No detailed data
|   o Loaded   16 scripts from section SKILLUSE_SCRIPTS
|   o Loaded    0 scripts from section PACKET_SCRIPTS
|   o Loaded    2 scripts from section CONSOLE_SCRIPTS
|                                                                                                                [done]
|    o Loading command levels
| Loading custom ore data                                                                                        [done]
| Loading creation menus                                                                                         [done]

Visual Studio:

Code: Select all

>	UOX3.exe!JS_GetProperty(JSContext * cx, JSObject * obj, const char * name, __int64 * vp) Line 2850	C
 	UOX3.exe!cScript::ScriptRegistration(std::basic_string<char,std::char_traits<char>,std::allocator<char> > scriptType) Line 2494	C++
 	UOX3.exe!cSkills::Load() Line 1918	C++
 	UOX3.exe!DoMessageLoop() Line 197	C++
 	UOX3.exe!main(int argc, char * * argv) Line 2751	C++
 	[External Code]	
oh yes, moving the tChar stuff into the function fixes the crash. :)
Mindless Automaton
Linux - UOX3 - 0.99.5 dev branch
Win10Pro 19042.572 - UOX3 0.99.3a; Razor 1.0.14; Client 7.0.87.11 or 4.0.11c (Patch 0)
Post Reply