Page 2 of 4

Re: Server error and freez!

Posted: Sun Dec 06, 2009 11:54 am
by Removed20180815
Well bro i cant remove it :| Its a stack sub server i need that one... can it be corrected? What should i add? Please?

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:02 pm
by Probe
then simply close the connections in first script in places you've forgotten to

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:03 pm
by Removed20180815
i dont know how thats the thing :| i know php,html, a little programming to understand the code but not so high to write it... if any1 can give me some tips on how to do it would be awesome.

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:05 pm
by Probe
missing conn.close()
somewhere I guess

although from the quick look I took it seemed like all connections were closed..

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:11 pm
by janiii
for the first one try this: http://pastebin.com/f634a1b69 (i only changed some indent of the con.close() lines, so that it is always executed, not only in case of an error in the rs.get..() line)
the seconds one looks fine for me.

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:22 pm
by Removed20180815
Thank you very much i will try and report back...

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:46 pm
by Removed20180815
This is what i get. It make a init.py error log file with:
Error on: gameserver\data\scripts\custom\855_SubclassNpc\__init__.py.error.log
Line: -1 - Column: -1

Traceback (innermost last):
(no code object) at line 0
SyntaxError: ('invalid syntax', ('__init__.py', 530, 25, '\t\t\texcept : pass\t'))

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:49 pm
by Probe
fix the indentation of that line
and btw janii's a she * :P

Re: Server error and freez!

Posted: Sun Dec 06, 2009 12:53 pm
by Removed20180815
ups sry :) what you mean with that? i just saw the line 530 and it looks ok :|

Re: Server error and freez!

Posted: Sun Dec 06, 2009 1:12 pm
by Probe
there's probably a missing\extra space\tab
gotta love python..

Re: Server error and freez!

Posted: Sun Dec 06, 2009 1:27 pm
by janiii
sry, i forgot to delete one tab (edited the file on pastebin..)

http://pastebin.com/f11a2410e

Re: Server error and freez!

Posted: Sun Dec 06, 2009 1:54 pm
by Removed20180815
Thanks alot. Wel i tryed with what you gave me and now there is no init.py error but when i go ingame at the npc and doubleclick it i get alot of code... like somekind of error...

Re: Server error and freez!

Posted: Sun Dec 06, 2009 2:05 pm
by janiii
EboLLa wrote:Thanks alot. Wel i tryed with what you gave me and now there is no init.py error but when i go ingame at the npc and doubleclick it i get alot of code... like somekind of error...
make a screenshot of the error then.

Re: Server error and freez!

Posted: Sun Dec 06, 2009 2:24 pm
by Removed20180815
Picture from ingame:
Image
Picture from console:
Image

Re: Server error and freez!

Posted: Sun Dec 06, 2009 2:35 pm
by janiii