Idnum to ItemInfo Converter

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
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

 
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.

Code:
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

 
Last edited by a moderator:
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.

Code:
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...)


@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

 
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.

Code:
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. :)

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

 
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.

 
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 . . .
 
Thanks for the updates Dastgir, ClassNum is working properly xD

uIt8Ki8.png


But now I'm having problems with SlotCount :/

IlJyprb.png


Imperial Spear [1] have 1 slot.


Idnums that I have used:

View attachment Idnum.rar

item_db.conf default of Hercules.

@edit: Corrected using no item_db.conf

Thanks for the support Dastgir.

 
Last edited by a moderator:
Back
Top