|
You last visited: Today at 19:19
Advertisement
Quest compile Problem
Discussion on Quest compile Problem within the Metin2 Private Server forum part of the Metin2 category.
06/10/2015, 22:48
|
#1
|
elite*gold: 26
Join Date: May 2010
Posts: 865
Received Thanks: 767
|
Quest compile Problem
Hey,
ich hab folgendes Problem. Und zwar kriege ich diesen Fehler , wenn ich manche Quest einfügen will. Eine Beispiel Quest ist die "leicht zu verwaltende Bioquest" von Sensenmann. Diese Quest geht eig. Fehlerfrei.
Hier der Fehler:
PHP Code:
Traceback (most recent call last):
File "make.py", line 10, in <module>
r = pre_qc.run (line)
File "/home/game/share/locale/germany/quest/pre_qc.py", line 159, in run
start = MakeParameterTable (lines, parameter_table, keys)
File "/home/game/share/locale/germany/quest/pre_qc.py", line 149, in MakeParameterTable
return start
UnboundLocalError: local variable 'start' referenced before assignment
Hoffe jemand weiß wie man das fixxt.
|
|
|
07/15/2015, 19:52
|
#2
|
elite*gold: 26
Join Date: May 2010
Posts: 865
Received Thanks: 767
|
#push
|
|
|
12/23/2015, 12:51
|
#3
|
elite*gold: 0
Join Date: Mar 2010
Posts: 510
Received Thanks: 89
|
Push....Hab das gleiche Problem.
Bitte um Hilfe!
|
|
|
12/23/2015, 17:52
|
#4
|
elite*gold: 83
Join Date: Nov 2013
Posts: 2,891
Received Thanks: 2,765
|
MakeParameterTable mit der folgenden ersetzen:
Code:
def MakeParameterTable(lines, parameter_table, keys):
names = []
values = []
group_names = []
group_values = []
idx = 0
start = idx
for line in lines:
idx += 1
line = line.strip("\n")
if(-1 != line.find("--")):
line = line[0:line.find("--")]
tokens = my_split(line, ["\t", ",", " ", "=", "[", "]", "\r", "\n"])
if len(tokens) == 0:
continue
if cmp(tokens[0], "quest") == 0:
start = idx
break
if cmp(tokens[0], "define") == 0:
if cmp(tokens[1], "group") == 0:
group_value = []
for value in tokens[3:]:
if parameter_table.get(value, 0) != 0:
value = parameter_table[value]
group_value.append(value)
parameter_table[tokens[2]] = group_value
keys.append(tokens[2])
elif len(tokens) > 5:
print "%d Invalid syntax" % idx
print "define [name] = [value]"
print "define group [name] = \"[\"[v0],[v1], ... \"]\""
else:
value = tokens[2]
if parameter_table.get(value, 0) != 0:
value = parameter_table[value]
parameter_table[tokens[1]] = [value]
keys.append(tokens[1])
parameter_table = dict(zip(group_names, group_values))
return start
|
|
|
 |
Similar Threads
|
Quest fehler error occured on compile amuleta.quest
01/22/2015 - Metin2 Private Server - 3 Replies
Überschrift :D
|
unbugged Invoice Files, Quest Compile (make.sh) PROBLEM
02/24/2014 - Metin2 Private Server - 0 Replies
Hallo Zusammen!
baue gerade einen neuen Server mit unbugged Serverfiles by Invoice !
das Problem:
Wenn ich den Server gestartet habe und die Quest neu Lade mit dem Befehl sh make.sh werden die Quests neu geladen und laufen alle ohne Fehler durch.
Beim nächsten Schritt gebe ich ingame /reload q ein und das geht auch !
|
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest
07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies
ENGLISH
Hello dear community, this is a very simple guide but at the same time useful.
How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"?
Easy!
Open the file "make" and replace the content of the file with this:
for f in *.quest; do ./qc $f; done
Oki. Now set the 0777 permission to the file.
Finally open a SSH client and sign in. Write the command:
cd /game_file_folder
|
All times are GMT +2. The time now is 19:20.
|
|