Page 1 of 1

Yeah, don't do that..

Posted: Wed Nov 11, 2020 8:38 pm
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. :)