Requested by AngelMelody:
http://herc.ws/board/topic/2954-item-db-file-structure-overhaul/page-4#entry37029
This is a simple tool which allows you to copy display names for range of items from idnum2itemdisplayname.txt or from iteminfo.lua to your item_db.conf, within just 30 seconds.
Link:
https://github.com/dastgir/LuaScripts/tree/master/Lua/CopyDisplayName
just run copyname.bat and input the details it requires.
I'm trying to use the names of my iteminfo.lua, but I can not at all, smp is accused of error in 'function' assert ''. Look:
Enter Item Range to start item_name copying: 501
Enter Item Range to end item_name copying: 31023
Enter item_db.Conf FileName: item_db.conf
Enter idnum2itemdisplaynametable.txt/iteminfo.lua/iteminfo.lub FileName: iteminfo.lua
Output File Name: item_db2.conf
-----------------------------------------------------------------
----------------- itemName to item_db.conf ---------------------
------------------- By Dastgir[Hercules] ------------------------
-----------------------------------------------------------------
-- Putting ItemDB0 Items into Memory
lua53.exe: common.lua:395: [string "{..."]:1: unexpected symbol near '{'
stack traceback:
[C]: in function 'assert'
common.lua:395: in function 'get_itemdb'
conf2db.lua:240: in main chunk
(luac): in main chunk
[C]: in ?
Pressione qualquer tecla para continuar. . .
If I remove "tbl = {" the error remains.
Enter Item Range to start item_name copying: 501
Enter Item Range to end item_name copying: 29027
Enter item_db.Conf FileName: item_db.conf
Enter idnum2itemdisplaynametable.txt/iteminfo.lua/iteminfo.lub FileName: iteminfo.lua
Output File Name: item_db2.conf
-----------------------------------------------------------------
----------------- itemName to item_db.conf ---------------------
------------------- By Dastgir[Hercules] ------------------------
-----------------------------------------------------------------
lua53.exe: iteminfo.lua:1: unexpected symbol near '['
stack traceback:
[C]: in function 'dofile'
copyname_function.lua:17: in function 'GetDispName_Lua'
conf2db.lua:106: in main chunk
(luac): in main chunk
[C]: in ?
Pressione qualquer tecla para continuar. . .
My iteminfo:
iteminfo.rar