Jump to content
  • 0
Sign in to follow this  
fiction

How to use mobskilldb convert

Question

Hi, wondering what i'm doing wrong with this:

 

[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: .

 

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

error said you have some wrong value in field with number

probably you messed your mobdb in some line?

 

Share this post


Link to post
Share on other sites
  • 0

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

 

Share this post


Link to post
Share on other sites
  • 0
4 hours ago, 4144 said:

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

 

Sorry, didn't get it. What should i do?

Share this post


Link to post
Share on other sites
  • 0

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

 

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, 4144 said:

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.