Jump to content
Dastgir

Display Name to item_db

Recommended Posts

 

 

 

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???

yes ,the name of quest.... :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

It's no matter but just like users aren't good at korean and tranlate it to his native language

will become more friendly

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

 

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: 

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:

{'View', typ.int },

Share this post


Link to post
Share on other sites

 

 

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: 

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:

{'View', typ.int },

 

The error still persists Master, even after the editing suggested by you.

 

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

Share this post


Link to post
Share on other sites
On 2017-6-4 at 2:55 AM, Dastgir said:

Updated. please use the updated version.

I just updated and the error is the same.

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

 

Share this post


Link to post
Share on other sites

@Dastgir

Hello Master! I've been using Hercules for a few weeks, totally giving up on the other emulator I was using. I'm just having some translation problems for item_db.conf. I saw your tool magnified but I could not configure it to have no errors. Could you help me?

I want to update the settings.lua based on the current emulator, how to proceed?

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.