!JavaScript /sbbs/exec/xtrn_sec.js line 135: uncaught exception: error connecting to server
This happens with like the TW2 game that is preinstalled. I'm scratching
!JavaScript /sbbs/exec/xtrn_sec.js line 135: uncaught exception: error connecting to server
This happens with like the TW2 game that is preinstalled. I'm scratching
Paging Deuce ...
The game is likely trying to connect to a JSON-DB service on your local system, which you haven't configured yet. You can either set that up, or point the game at another server (probably wlarb.synchro.net.) How do you do this, exactly? A brief look at the docs doesn't make this clear - Deuce ought to update the documentation, or perhaps he'll just post here and tell you what to do.
The game is likely trying to connect to a JSON-DB service on your
local system, which you haven't configured yet. You can either set
that up, or point the game at another server (probably
wlarb.synchro.net.) How do you do this, exactly? A brief look at the
docs doesn't make this clear - Deuce ought to update the
documentation, or perhaps he'll just post here and tell you what to
do.
I setup the json-service.js on port 10088, i found that in a doc somewhere (i can't remember now where), i don't know if thats the right port for that. If someone knows the port number for the json-service please post it.. Here is what I have for that right now in my services.ini file
!JavaScript /sbbs/exec/xtrn_sec.js line 135: uncaught exception:
error connecting to server
You don't necessarily have to do that, you can connect to another server that's already running TW2 and play that way, but assuming json-service is starting up correctly (Watch the Services tab in SBBSCTRL startup, make
sure it doesn't say something like JSON could not startup), then you should make sure you ran the tw2init program.
cd c:\sbbs\xtrn\tw2 (or wherever you put TW2)
\sbbs\exec\jsexec tw2int500.js
That'll reset the game and should give no errors, then try running the game from your board.
--
Andy/Android8675
I setup the json-service.js on port 10088, i found that in a doc somewhere (i can't remember now where), i don't know if thats the right port for that. If someone knows the port number for the json-service please post
[JSON]
Port=10088
Options=STATUS | LOOP | NO_RECYCLE
Command=json-service.js
-+-
So i'm guessing i need to setup one for the json-db.js file as well.. What
should i use in the services.ini file to set that up?
-+-
So i'm guessing i need to setup one for the json-db.js file as well.. What
should i use in the services.ini file to set that up?
What you posted above is what would go in services.ini. You'll also need
to create a JSON-DB module for tradewars 2, by adding a section like this
to ctrl/json-service.ini:
[tw2]
dir=../xtrn/tw2/
I have tried to run the twint500.js script thats in the tw directory to initialize the game, but it gets the same error, cannot connect to server... thats why i was wondering if i had something on a wrong port.
Port shouldn't matter because you're connecting to the JSON dB server from the same computer, unless you have 2 computers, one running your BBS with the JSON Server, and a second computer where you're trying to run the twint500.js script.
If the program can't connect to the server it's probably because the server isn't running. When you startup your board, in the SBBSCTRL window under Services it should say something about JSON starting up, and chances are it's failing somewhere (producing an error), Might want to startup the BBS, scan that Services tab and see if JSON Server is even running.
--
srvc 0019 JSON database initialized (v1.38) <-- i get this about 10 times
srvc 0019 JSON !JavaScript : uncaught exception: error connecting to server srvc 0019 JSON !JavaScript : uncaught exception: error connecting to server srvc 0019 JSON !JavaScript warning /sbbs/exec/json-service.js line 216: Terminated
srvc 0019 JSON service thread terminated (0 clients served)
Is there a doc somewhere that has the default ports for all the services
run on Synchronet, especially for the JSON and other services other than
the standard ones like web,term,ftp,rlogin,irc and such..
there's a control script in sbbs\exec. json-svc-ctrl can be run
from a command line (jsexec json-svc-ctrl). if you run that you can
tell whether or not you can connect to the service.
seems to be broken... i tried it on my friend's system and can't put in a username without it being corrupted...
ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄæ
³ Server Configuration ³ ĆÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ ³Server hostname localhost ³
³ ³Server port 10088 ³
³ ³User Name ~~ H name ³
³ ³User Password ******** ³
³ ³Connect to Server ³ ĄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄŁ
if i type the name again, the corruption changes...
seems to be broken... i tried it on my friend's system and can't put
in a username without it being corrupted...
ŚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄæ
³ Server Configuration ³ ĆÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ ³Server hostname localhost ³
³ ³Server port 10088 ³
³ ³User Name ~~ H name ³
³ ³User Password ******** ³
³ ³Connect to Server ³ ĄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄŁ
if i type the name again, the corruption changes...
I had this problem at one point as well. I don't recall the exact
cause but I think the solution was to update to the latest build of synchronet. I blame deuce. something to do with the UIFC code
incorrectly converting values.
hummm... interesting... the system was installed from SVN and updated once f SVN by doing another update and install from SVN instead of following the wi update procedure... only three config files had to be replaced, though... everything else seemed to be up to date and working properly... that last update was only a month or two ago...
hummm... interesting... the system was installed from SVN and
updated once f
SVN by doing another update and install from SVN instead of
following the wi
update procedure... only three config files had to be replaced,
though... everything else seemed to be up to date and working
properly... that last update was only a month or two ago...
you mean CVS, i presume.
when you say you did an install from svn,
do you mean you updated your js files? or do you mean you compiled
the bbs from source. are you running sbbs on linux or windows? if
you are running on windows, and no specific reason not to update to
the latest build, i recommend grabbing sbbs_dev.zip from
ftp://synchro.net and putting that shite in place (and do a full
backup beforehand).
so now, the question is this... with a full make processing being run a seco time, that process performing a SVN update, why would it miss out on updatin the js files if that's where the problem is?
Re: Javascript issues
By: mark lewis to MCMLXXIX on Fri Nov 22 2013 19:26:06
so now, the question is this... with a full make processing being
run a seco
time, that process performing a SVN update, why would it miss out
on updatin
the js files if that's where the problem is?
there was a lot in that message, so ill just address this :|
it's more likely that it's the build of sbbs that is causing the
problem,
and not the scripts being out of date. the problem, when i
was experiencing it myself, was addressed 6 months ago and seems to
have been fixed, at least for me.. which tells me your build is
outdated by at least 6 months.
if it's not, then you could try updating all of the scripts (sbbs/exec/*.js && sbbs/exec/load/*.js) and see if that helps.
if that still doesnt help, we can take it from there, eh?
Sysop: | Ragnarok |
---|---|
Location: | Dock Sud, Bs As, Argentina |
Users: | 136 |
Nodes: | 10 (0 / 10) |
Uptime: | 15:57:51 |
Calls: | 15,171 |
Calls today: | 4 |
Files: | 19,857 |
D/L today: |
84 files (7,771K bytes) |
Messages: | 1,691,827 |