How to use mobskilldb convert

fiction

New member
Messages
154
Points
0
Age
32
Location
Santiago, Chile
Emulator
Hi, wondering what i'm doing wrong with this:

Code:
[root@test Hercules]# python2 /home/lothar/Hercules/tools/mobskilldbconverter.py  pre-re /home/lothar/Hercules/
Traceback (most recent call last):
  File "/home/lothar/Hercules/tools/mobskilldbconverter.py", line 264, in <module>
    ConvertDB(sys.argv[1], sys.argv[2])
  File "/home/lothar/Hercules/tools/mobskilldbconverter.py", line 217, in ConvertDB
    MobDB = Tools.LoadDBConsts('mob_db', mode, serverpath)
  File "/home/lothar/Hercules/tools/utils/common.py", line 40, in LoadDBConsts
    config = libconf.load(f)
  File "/home/lothar/Hercules/tools/utils/libconf.py", line 531, in load
    includedir=includedir)
  File "/home/lothar/Hercules/tools/utils/libconf.py", line 304, in from_file
    tokens.extend(tokenizer.tokenize(''.join(lines)))
  File "/home/lothar/Hercules/tools/utils/libconf.py", line 230, in tokenize
    self.filename, self.row, self.column)
  File "/home/lothar/Hercules/tools/utils/libconf.py", line 135, in __init__
    self.value = float(self.text)
ValueError: could not convert string to float: .
 
error said you have some wrong value in field with number

probably you messed your mobdb in some line?

 
issue in mob_db.conf or mob_db2.conf, but you show some csv sample.

 
try convert mob db from hercules repository, if it works, try remove some own mobs and try convert. in this way you probably can find mob with error

 
Try this pr https://github.com/HerculesWS/Hercules/pull/2568

I add some info if it crashing on parsing wrong data, but i cant reproduce your issue. If it crash, show output here
Thank you, with that pr i has knew where was the problem reside.
Anyways, my problem was for some reason i has a dot in JExp, i changed to an integer and problem was fixed.

Exp: 18000
JExp: .


Fixed :D

 
Back
Top