Display Name to item_db

Could you  make it to support KeepAfterUse

Thanks
default_biggrin.png


 
Hi~Dastgir,
If you are free ,Would you mind to create a tool which can tranlate quest_db.conf

by refrencing to the client file 'questid2display.txt' since quest_db.conf has been

implemented.

 
Hi~Dastgir,If you are free ,Would you mind to create a tool which can tranlate quest_db.confby refrencing to the client file 'questid2display.txt' since quest_db.conf has beenimplemented.
You mean the name of quest???

 
Well, just asking, does it matter?? Since quest name on server side is just for reference I think.

 
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

 

Attachments

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.

Code:
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: 
Your item info is fine, the trouble is with itemdb. Since the tool is almost 6-8 months old, and we have got some new fields added.So open table.lua

Add these:

Code:
{'DisableOptions', typ.bool },
{'DropAnnounce', typ.bool },
Below:
Code:
{'View', typ.int },
 
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.

Code:
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: 
Your item info is fine, the trouble is with itemdb. Since the tool is almost 6-8 months old, and we have got some new fields added.So open table.lua

Add these:

{'DisableOptions', typ.bool },
{'DropAnnounce', typ.bool },
Below:
Code:
{'View', typ.int },
The error still persists Master, even after the editing suggested by you.

Code:
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] ------------------------
-----------------------------------------------------------------
-- 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. . .
 
Updated. please use the updated version.

 
Updated. please use the updated version.
I just updated and the error is the same.

Code:
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] ------------------------
-----------------------------------------------------------------
-- Putting      ItemDB   Items into Memory
lua53.exe: common.lua:397: [string "{..."]:1: unexpected symbol near '{'
stack traceback:
        [C]: in function 'assert'
        common.lua:397: in function 'get_itemdb'
        conf2db.lua:176: in main chunk
        (luac): in main chunk
        [C]: in ?
Pressione qualquer tecla para continuar. . .

 
Can you pass your item db used with tool?

 
Back
Top