like that change ''60'' to whatever map you want.Quote:
@ECHO OFF
C:\Python26\Python.exe src\svmap.py 60
PAUSE
Without being home and just reading the output, it looks like it is complaining about a value being wrong, either blank or wrong type. Double check your changes.Quote:
ZeroSignal, I am having problems with one of the files. I wanted to edit few things in NPCQuest.SData. It extracted nicely but when I tried to put it back together I got an error. I tried to find the problem but I don't understand your source code. I'm not a programmer. Could you help me with this one?
Here's a picture of the error:
[Only registered and activated users can see links. Click Here To Register...]
I followed your advice and uncommented a line in source listing NPC Name's. I found what the problem is. It doesn't read GateKeeper.csv properly. There are two rows of data for one Gate Keeper:Quote:
Without being home and just reading the output, it looks like it is complaining about a value being wrong, either blank or wrong type. Double check your changes.
Did you modify a line with an NPCType? (I would guess this was left blank or has the wrong data type, but sometimes it's hard to tell from this output)
Sometimes I open the files in notepad to verify that it is comma delimited correctly. Sometimes if you delete lines in Excel it will leave the last line as all commas, which you should delete.
To further debug you can add a "Print i" near line 335 under the CombineNPCRec to see which line it stops at. Look for a For loop either in CombineNPCRec(335) or FuncCombineRec(280) and add the print statement there.
From just looking at the stack here, it looks like FuncCombineRec is calling CombineNPCRec, it is passing in an "i" which is probably an interation integer from a For loop. (from looking at this I would guess the For loop is in CuncCombineRec). But it doesn't really matter, as long as you are printing "i", it should tell you which line the error is on. (It iterates through each line adding it to the combined file.)
Possibly.Quote:
I followed your advice and uncommented a line in source listing NPC Name's. I found what the problem is. It doesn't read GateKeeper.csv properly. There are two rows of data for one Gate Keeper:
2,1,42,16,8000,1,Geneaa Irwen,May the goddess bless you in your travels. ,,,,,,,,,,,,,,,,,,
,,,19,586.25,11.3999996185,1902.14001465,Arktuis Vill,8600 | 28,1042.33996582,39.2599983215,1078.36999512,Huigr onn Stronghold,32700 | 35,597.799987793,27.0,224.36000061,Apulune,20
First is it's name and what it says, second is where it can send you. When I ran the script again it showed me the 2nd NPC name as 1902.14001465. This value is in the same column, but it is gate keepers configuration. Could this be an error in source?
HaHa, awesome. Glad you got that figured out.Quote:
It was edit problem. I took a look at file size. The modified one is larger than the unmodified one. Must be a problem with my editor adding unnecessary data. I'll do the edits manually and see how it goes.
EDIT:
It definitely was the editor. I compared those two files and look what I found:
,,,,,,,,,,,,,,, <-- that's what the editor added to first line where column names are. No wonder the script panicked.
>ITM_csv.bat 01Quote:
I get nothing but "Press any key to continue..." :/
Edited the .bat files to use "C:\Python26\python.exe"
Placed ITM.py in the "src" folder.
Placed 01.ITM in the "\Input\MLT" folder.
Ran ITM_csv.bat
Any ideas? Do I need Python27 like your .bat files are already set to use, or does that not matter?