|
You last visited: Today at 01:36
Advertisement
Offline PN System Problem...
Discussion on Offline PN System Problem... within the Metin2 Private Server forum part of the Metin2 category.
08/19/2015, 13:58
|
#1
|
elite*gold: 1308
Join Date: Jun 2012
Posts: 1,104
Received Thanks: 74
|
Offline PN System Problem...
Hallo liebe Com,
Aus dem Abschied´s Release von Kilroy. habe ich das Offline PN System
eingebaut.
PHP Code:
http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3771182-abschied-release-handelscenter-hangman-schicksalrad-craftwindow-und-mehr.html
Jedoch funktioniert es noch nicht so wie es funktionieren soll  ... Die PN Kommt nicht an und es öffnet sich immer ein Eingabefenster beim abschiken der Naricht...
Screen:
Sysser client:
PHP Code:
0819 13:53:50667 :: Unknown Server Command getinputbegin | getinputbegin
0819 13:53:50898 :: Unknown Server Command getinputend | getinputend
0819 13:54:29387 :: interface.CloseWhisperDialog - Failed to find key
0819 13:55:49770 :: ============================================================================================================
0819 13:55:49770 :: Abort!!!!
Sysser game core:
PHP Code:
SYSERR: Aug 19 13:46:52 :: RunState: LUA_ERROR: [string "ktOyp3hm2u7v"]:6: attempt to call global `split' (a nil value)
SYSERR: Aug 19 13:46:52 :: WriteRunningStateToSyserr: LUA_ERROR: quest ktOyp3hm2u7v.start letter
lG Tom
|
|
|
08/19/2015, 14:06
|
#2
|
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
|
Code:
Unknown Server Command getinputbegin | getinputbegin
|
|
|
08/19/2015, 14:10
|
#3
|
elite*gold: 1308
Join Date: Jun 2012
Posts: 1,104
Received Thanks: 74
|
ja aber.. versteh nicht was genau da nun falsch ist...
|
|
|
08/19/2015, 14:18
|
#4
|
elite*gold: 0
Join Date: Nov 2011
Posts: 1,448
Received Thanks: 1,257
|
Lookee, Lookee.
Quote:
Originally Posted by Kilroy.
Input Window appears/ Input Fenster erscheint
It appears a window with an input.
Error message / Screenshot:
solution:
open your game.py
and search for
Code:
def OpenQuestWindow(self, skin, idx):
now add the following code exactly under the function name
Code:
if constInfo.INPUT_IGNORE == 1:
return
now search for
Code:
def __ServerCommand_Build(self):
and add the following 2 lines, like the other lines in the function.
Code:
"getinputbegin" : self.__Inputget1,
"getinputend" : self.__Inputget2,
Now scroll down to the end of the game.py and add the 2 following functions
Code:
def __Inputget1(self):
constInfo.INPUT_IGNORE = 1
def __Inputget2(self):
constInfo.INPUT_IGNORE = 0
Than open constInfo.py and add at the top
Now open uiquest.py
search for
Code:
def __init__(self,skin,idx):
and add exactly under the functionname the following code:
Code:
import constInfo
if constInfo.INPUT_IGNORE == 1:
return
pack all and try.
Problem:
Es erscheint ein Fenster mit einer Input drin.
Fehlermeldung/Screenshot:
Lösung:
In der game.py direkt unter
Code:
def OpenQuestWindow(self, skin, idx):
folgenden code hinzufügen, ganz egal ob dort schon was steht,
packt es einfach direkt unter den Funktionsnamen!
Code:
if constInfo.INPUT_IGNORE == 1:
return
dann noch in der
Code:
def __ServerCommand_Build(self):
folgendes hinzufügen:
Code:
"getinputbegin" : self.__Inputget1,
"getinputend" : self.__Inputget2,
Die zwei Funktionen ans Ende der game.py:
Code:
def __Inputget1(self):
constInfo.INPUT_IGNORE = 1
def __Inputget2(self):
constInfo.INPUT_IGNORE = 0
Und in die constInfo.py öffne die uiquest.py und suche nach
Code:
def __init__(self,skin,idx):
und direkt unter dem Funktionsnamen fügst du dann folgenden Code ein:
Code:
import constInfo
if constInfo.INPUT_IGNORE == 1:
return
|
und die split Funktion findest du in der split_function.lua. Kopier dir die Funktion (den Inhalt) in die questlib.lua und schreibe den Funktionsnamen "split" in die quest_functions.
|
|
|
08/19/2015, 14:56
|
#5
|
elite*gold: 1308
Join Date: Jun 2012
Posts: 1,104
Received Thanks: 74
|
Nun kann man sich nicht mehr ausloggen, charakter wechsel und beenden...
und die naricht kommt immer noch nicht an..
Sysser:
PHP Code:
0819 14:55:22606 :: interface.CloseWhisperDialog - Failed to find key
0819 14:55:28814 :: Traceback (most recent call last):
0819 14:55:28831 :: File "uiPhaseCurtain.py", line 61, in OnUpdate
0819 14:55:28832 :: File "networkModule.py", line 147, in __ChangePhaseWindow
0819 14:55:28832 :: File "game.py", line 296, in Close
0819 14:55:28834 :: File "interfaceModule.py", line 420, in Close
0819 14:55:28834 :: File "uiWhisper.py", line 136, in Destroy
0819 14:55:28834 :: File "ui.py", line 1960, in Destroy
0819 14:55:28834 :: NameError
0819 14:55:28834 :: :
0819 14:55:28834 :: global name 'elf' is not defined
0819 14:55:28834 ::
|
|
|
08/19/2015, 15:07
|
#6
|
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,764
|
Quote:
Originally Posted by saver345
Nun kann man sich nicht mehr ausloggen, charakter wechsel und beenden...
und die naricht kommt immer noch nicht an..
Sysser:
PHP Code:
0819 14:55:22606 :: interface.CloseWhisperDialog - Failed to find key 0819 14:55:28814 :: Traceback (most recent call last):
0819 14:55:28831 :: File "uiPhaseCurtain.py", line 61, in OnUpdate
0819 14:55:28832 :: File "networkModule.py", line 147, in __ChangePhaseWindow
0819 14:55:28832 :: File "game.py", line 296, in Close
0819 14:55:28834 :: File "interfaceModule.py", line 420, in Close
0819 14:55:28834 :: File "uiWhisper.py", line 136, in Destroy
0819 14:55:28834 :: File "ui.py", line 1960, in Destroy
0819 14:55:28834 :: NameError 0819 14:55:28834 :: : 0819 14:55:28834 :: global name 'elf' is not defined 0819 14:55:28834 ::
|
uiPhaseCurtain.py Zeile 61 hast du da vielleicht irgendwo "elf" anstatt "elif" oder "self" geschrieben?
|
|
|
08/19/2015, 16:45
|
#7
|
elite*gold: 1308
Join Date: Jun 2012
Posts: 1,104
Received Thanks: 74
|
EDIT: Python side alles gefixxt, Serversice noch errors:
PHP Code:
SYSERR: Aug 19 17:07:54 :: RunState: LUA_ERROR: [string "ktOyp3hm2u7v"]:7: attempt to call global `mysql_query' (a nil value)
SYSERR: Aug 19 17:07:54 :: WriteRunningStateToSyserr: LUA_ERROR: quest ktOyp3hm2u7v.start click
|
|
|
Similar Threads
|
[Help]-Offline Shop System
06/01/2015 - Metin2 Private Server - 2 Replies
Hi
Does anyone have this system somehow offline shop?
Or you could help me with some functions to make.
Thanks for the help
https://www.youtube.com/watch?v=VoIakvZ2Aog
|
[Release] Iphone-System (Offline Message System)
04/19/2013 - Metin2 PServer Guides & Strategies - 74 Replies
Da ich dafür kein nutzen mehr habe und dies nun alles per Python geregelt habe (ein Dankeschön an .Nova, der mir dabei geholfen hat).
Release ich mein iPhone System. mit dem konnte man Nachrichten ingame an andere Spieler senden.
Lief knapp halbes (server ist seit 2 monaten down) jahr und bisher tratt auch nie ein Fehler auf...
Quest ist im Anhang sowie die Datenbank...
Fuktionen:
|
All times are GMT +1. The time now is 01:36.
|
|