[Error] onScriptload failed to execute

Started by longhackmc, Jun 04, 2016, 03:18 AM

Previous topic - Next topic

longhackmc

[Error] onScriptload failed to execute - check the console for more details
How to fix??
[spoiler]Vice City Multiplayer Server
 -------------------------------
 v0.4, (c) 2007-2014 VC:MP Team

Loaded plugin: squirrel04rel32

Loaded plugin: xmlconf04rel32

Loaded plugin: announce04rel32

Loaded plugin: sockets04rel32

Loaded plugin: hashing04rel32

Loaded plugin: sqlite04rel32

Loaded plugin: mysql04rel32

Loaded plugin: ini04rel32

[WEAPONS] No custom weapons to load.
[VEHICLEMODELS] No custom vehicle models to load.
Unable to start server on host:  port: 5194. Port in use?
[/spoiler]

EK.IceFlake

1. This is a completely different error, this is caused by another application listening to 5194@UDP.
2. It should give you more information including a line and column if you haven't got a custom error handler.
Try commenting out the SetErrorHandler line and then checking.

longhackmc

#2
Quote from: ext-d.CrystalBlue on Jun 04, 2016, 03:43 AM1. This is a completely different error, this is caused by another application listening to 5194@UDP.
2. It should give you more information including a line and column if you haven't got a custom error handler.
Try commenting out the SetErrorHandler line and then checking.
you can guide me in more detail it?
ps: an error has occured [ cannot open the file ]
callstack
*function [onScriptLoad<>] scripts/main.nut line [36]

EK.IceFlake

Quote from: longhackmc on Jun 04, 2016, 03:57 AM
Quote from: ext-d.CrystalBlue on Jun 04, 2016, 03:43 AM1. This is a completely different error, this is caused by another application listening to 5194@UDP.
2. It should give you more information including a line and column if you haven't got a custom error handler.
Try commenting out the SetErrorHandler line and then checking.
you can guide me in more detail it?
The first error means that port 5194 is already used. It can be fixed by changing it, however its totally unrelated to 'onScriptload failed to execute'
If you are somehow still getting 'onScriptload failed to execute', that means there is an error on onScriptLoad or what it calls and the server particularly doesn't like that. However you didn't specify more info so that probably means that the server didn't return more info. This can be fixed by adding the characters // before the statement SetErrorHandler(...);.

longhackmc

Quote from: ext-d.CrystalBlue on Jun 04, 2016, 04:04 AM
Quote from: longhackmc on Jun 04, 2016, 03:57 AM
Quote from: ext-d.CrystalBlue on Jun 04, 2016, 03:43 AM1. This is a completely different error, this is caused by another application listening to 5194@UDP.
2. It should give you more information including a line and column if you haven't got a custom error handler.
Try commenting out the SetErrorHandler line and then checking.
you can guide me in more detail it?
The first error means that port 5194 is already used. It can be fixed by changing it, however its totally unrelated to 'onScriptload failed to execute'
If you are somehow still getting 'onScriptload failed to execute', that means there is an error on onScriptLoad or what it calls and the server particularly doesn't like that. However you didn't specify more info so that probably means that the server didn't return more info. This can be fixed by adding the characters // before the statement SetErrorHandler(...);.
I've tried adding // at the 36th line and * function [onScriptLoad <>] scripts / main.nut line [36]
has changed to * function [onScriptLoad <>] scripts / main.nut line [37]

và tôi không tìm thấy SetErrorHandler
trong main.nut của tôi

longhackmc

this is my main.nut file, you can check and review the fault lies anywhere?
http://www.mediafire.com/download/i4t95zigy8kt6ma/main.nut

EK.IceFlake

Quote from: longhackmc on Jun 04, 2016, 04:23 AMthis is my main.nut file, you can check and review the fault lies anywhere?
http://www.mediafire.com/download/i4t95zigy8kt6ma/main.nut
The error is in Ramps.nut
Try changing
   dofile( SCRIPT_LOC + "Ramps.nut" );
to
   dofile( SCRIPT_LOC + "Ramps.nut", true );

longhackmc

Thank you for trying to help me.
in fact the fault lies in SCRIPT_LOC ,
This script writers have assigned the wrong address .nut files