def MainQuest(outFmt): global work_dir work_dir += 'NPCQuest/'
if not os.path.exists(work_dir): os.makedirs(work_dir)
def MainQuest(outFmt): global work_dir work_dir += 'NPCQuest/' [b]if not os.path.exists(work_dir): os.makedirs(work_dir)[/b] # ... rest of function ...
I dunno if there is an issue or not. When converted to be used in database data the values seem to be ok at least from what we tested. Try it and see if the values are ok or if there is something wrong with them and if so look at the binary data structure part of the source code.Quote:
ZeroSignal ... please PM me. I am curious as to what kind of problems you are having with ReqStr - Reqluc fields. I might be able to assist.
.\src\NpcQuest.pyQuote:
I am having a problem with NpcQuest.SData
[Only registered and activated users can see links. Click Here To Register...]
Errors then doesn't complete the job i have redownloaded the scripts and tried multiple versions of NpcQuest.SData all with the same result
[Only registered and activated users can see links. Click Here To Register...]
I Have Tried Multiple NpcQuest.SData files on multiple computers same error no matter.
def extractQuestChain(input, fileOut):
# Open File for output.
print("Creating " + fileOut)
try:
fout = open(fileOut, mode='wb')
except IOError:
return False
fout.write("\n");
record_total = 0
while True:
record_total = struct.unpack('i', input.read(4))[0]
[b]if (record_total == 1531):
input.seek(-4, 1)
break[/b]
data = struct.unpack(str(record_total) + 'H', input.read(record_total * 2))
csv_data = ','.join( map( str, data ) )
if (csv_data == ''):
csv_data = '0';
fout.write(csv_data + "\n");
return
For more info on Environment Variables please read the following and make sure you read the PATH Environment Variable Reference as that is the one you should modify.Quote:
Sorry but what do you mean? Would you elaborate just a little? pretty pls?
if (record_total == 1531):
if (record_total > 100):
def extractQuestChain(input, fileOut):
# Open File for output.
print("Creating " + fileOut)
try:
fout = open(fileOut, mode='wb')
except IOError:
return False
fout.write("\n");
record_total = 0
while True:
record_total = struct.unpack('i', input.read(4))[0]
[b]if (record_total > 100):[/b]
input.seek(-4, 1)
break
data = struct.unpack(str(record_total) + 'H', input.read(record_total * 2))
csv_data = ','.join( map( str, data ) )
if (csv_data == ''):
csv_data = '0';
fout.write(csv_data + "\n");
return
I am having the same problem... But still its amazing work by ZeroSignal and friends to be honest.Quote:
Okay zero its worked fine before now i get erros with Monster.Sdata
''Creating ./Output/SData/Monster.complete.csv
Traceback (most recent call last):
File "src\SData.py", line 113, in <module>
main(sys.argv[1:])
File "src\SData.py", line 102, in main
result = SDataItems[SDataName](outFmt)
File "C:\ShaiyaDataEdit\Monster\src\Monster.py", line 52, in MainMonster
return ExtractMonster(outFmt)
File "C:\ShaiyaDataEdit\Monster\src\Monster.py", line 114, in ExtractMonster
for i in range(record_total):
MemoryError
Press any key to continue . . .''