Jump to content
Dastgir

Idnum to ItemInfo Converter

Recommended Posts

Hello,

Since gravity has changed the itemInfo format.

Recently, I have been getting quite a few requests to make something for idnum to ItemInfo converter. So here I am, made a tool + optional config in itemInfo to support older clients without changing the format.

Tool Link: https://github.com/dastgir/Scripts/tree/master/Lua/multi-tools

Usage is mentioned in Readme

Share this post


Link to post
Share on other sites

Thanks for this wonderful tool Dastgir, you helped me alot!

I was thinking of developing this same tool in C because I really need this tool to solve alot of wasted time.

Well, I tried to use it and the tool gives me some errors that I really don't understand. If you can help me I appreciate it.

Spoiler

Enter Input Folder: idnum
Enter Output FileName(itemInfo.lub): itemInfo.lub
-----------------------------------------------------------------
------------------- Merge Idnum ---------------------------------
------------------- By Dastgir[Hercules] --------------------------
-----------------------------------------------------------------
===== Checking Required Files =====
idnum2itemdisplaynametable.txt          Found
idnum2itemdesctable.txt         Found
idnum2itemresnametable.txt              Found
num2itemdesctable.txt           Found
num2itemdisplaynametable.txt            Found
num2itemresnametable.txt                Found
===== Checking Optional Files =====
costume.txt     Not Found
itemslotcounttable.txt  Found
accname.lub     Found
accessoryid.lub Found
lua53.exe: copyname_function.lua:162: table index is nil
stack traceback:
        copyname_function.lua:162: in function 'getDescName_Txt'
        conf2db.lua:542: in main chunk
        (luac): in main chunk
        [C]: in ?
Pressione qualquer tecla para continuar. . . (Press any key to continue...)

 

9bAQKaq.png

 

@edit: 

My PC configs (if you need these informations):

OS: Win 10
Architecture: x64
CPU: Intel i5 Kaby Lake 7400

Edited by Sindit

Share this post


Link to post
Share on other sites
4 hours ago, Sindit said:

Thanks for this wonderful tool Dastgir, you helped me alot!

I was thinking of developing this same tool in C because I really need this tool to solve alot of wasted time.

Well, I tried to use it and the tool gives me some errors that I really don't understand. If you can help me I appreciate it.

  Reveal hidden contents


Enter Input Folder: idnum
Enter Output FileName(itemInfo.lub): itemInfo.lub
-----------------------------------------------------------------
------------------- Merge Idnum ---------------------------------
------------------- By Dastgir[Hercules] --------------------------
-----------------------------------------------------------------
===== Checking Required Files =====
idnum2itemdisplaynametable.txt          Found
idnum2itemdesctable.txt         Found
idnum2itemresnametable.txt              Found
num2itemdesctable.txt           Found
num2itemdisplaynametable.txt            Found
num2itemresnametable.txt                Found
===== Checking Optional Files =====
costume.txt     Not Found
itemslotcounttable.txt  Found
accname.lub     Found
accessoryid.lub Found
lua53.exe: copyname_function.lua:162: table index is nil
stack traceback:
        copyname_function.lua:162: in function 'getDescName_Txt'
        conf2db.lua:542: in main chunk
        (luac): in main chunk
        [C]: in ?
Pressione qualquer tecla para continuar. . . (Press any key to continue...)

 

9bAQKaq.png

 

@edit: 

My PC configs (if you need these informations):

OS: Win 10
Architecture: x64
CPU: Intel i5 Kaby Lake 7400

Pass me your idnum tables (pm or discord),

Anyways final version of this tool is yet to come with item_db support for copying ClassNum for weapons

Share this post


Link to post
Share on other sites
10 hours ago, Sindit said:

Thanks for this wonderful tool Dastgir, you helped me alot!

I was thinking of developing this same tool in C because I really need this tool to solve alot of wasted time.

Well, I tried to use it and the tool gives me some errors that I really don't understand. If you can help me I appreciate it.

  Reveal hidden contents


Enter Input Folder: idnum
Enter Output FileName(itemInfo.lub): itemInfo.lub
-----------------------------------------------------------------
------------------- Merge Idnum ---------------------------------
------------------- By Dastgir[Hercules] --------------------------
-----------------------------------------------------------------
===== Checking Required Files =====
idnum2itemdisplaynametable.txt          Found
idnum2itemdesctable.txt         Found
idnum2itemresnametable.txt              Found
num2itemdesctable.txt           Found
num2itemdisplaynametable.txt            Found
num2itemresnametable.txt                Found
===== Checking Optional Files =====
costume.txt     Not Found
itemslotcounttable.txt  Found
accname.lub     Found
accessoryid.lub Found
lua53.exe: copyname_function.lua:162: table index is nil
stack traceback:
        copyname_function.lua:162: in function 'getDescName_Txt'
        conf2db.lua:542: in main chunk
        (luac): in main chunk
        [C]: in ?
Pressione qualquer tecla para continuar. . . (Press any key to continue...)

 

9bAQKaq.png

 

@edit: 

My PC configs (if you need these informations):

OS: Win 10
Architecture: x64
CPU: Intel i5 Kaby Lake 7400

Updated.

Now this kind of errors won't happen. :)

Share this post


Link to post
Share on other sites
On 9/28/2017 at 5:33 PM, deitalk said:

Does CopyDisplayName support the lastest item_db.conf version? I think I got an error because of the new syntax.

new item_db format isn't supported yet, once I do that, all tools will be updated to support new format.

Share this post


Link to post
Share on other sites

Hello Dastgir,

 

i try to test and use this, but seems having problem on

 

Enter Input Folder: new
Enter Output FileName(itemInfo.lub): item
-----------------------------------------------------------------
------------------- Merge Idnum ---------------------------------
------------------- By Dastgir[Hercules] --------------------------
-----------------------------------------------------------------
===== Checking Required Files =====
idnum2itemdisplaynametable.txt          Found
idnum2itemdesctable.txt         Found
idnum2itemresnametable.txt              Found
num2itemdesctable.txt           Found
num2itemdisplaynametable.txt            Found
num2itemresnametable.txt                Found
===== Checking Optional Files =====
costume.txt     Not Found
itemslotcounttable.txt  Found
accname.lub     Found
accessoryid.lub Found
lua53.exe: conf2db.lua:572: attempt to index a nil value (global 'costume')
stack traceback:
        conf2db.lua:572: in main chunk
        (luac): in main chunk
        [C]: in ?
Press any key to continue . . .

Share this post


Link to post
Share on other sites
59 minutes ago, PonyVPS said:

Hello Dastgir,

 

i try to test and use this, but seems having problem on

 

 

 

Fixed @ new Revision

Share this post


Link to post
Share on other sites

Thanks for the updates Dastgir, ClassNum is working properly xD

Spoiler

uIt8Ki8.png

 

But now I'm having problems with SlotCount :/

Spoiler

IlJyprb.png

Imperial Spear [1] have 1 slot.

 

Idnums that I have used:

Idnum.rar

item_db.conf default of Hercules.

 

@edit: Corrected using no item_db.conf

 

Thanks for the support Dastgir.

Edited by Sindit

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
Reply to this topic...

×   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...

×
×
  • Create New...

Important Information

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