Jump to content

ItemConverter


xazax

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

-Slaps face- Ahh! I'm so dumb! Thanks again Judas... Gotta remind myself to read and absorb all wordy things. XD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  119
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

Sooo any idea on how to compile the produced iteminfo.lua into a .lub? So far renaming it seems to have sorta worked, but I'm curious as to if converting it to a lub would fix my not seeing equips issue. luac does not want to convert it and my client refuses to read it as a .lua, even though I have read lua before lub diffed into it, it seems to only want to read the lua's inside LuaFiles514 and not in the system folder.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

not seeing equips is only due to classnum being 0.

if that's the case you probably didn't have the item_db.txt inside where the program was

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  119
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

Already tried that. But if people can see their equips with the classnum being at the proper value then I guess that isn't the issue. >:

[11125] = {

unidentifiedDisplayName = "Haruhi Ribbons",

unidentifiedResourceName = "Haruhi_Ribbons",

unidentifiedDescriptionName = {

"A ribbon that was worn by Haruhi Suzumiya. The effects are a secret...",

"Class :^777777 Headgear^000000",

"Defense :^777777 3^000000",

"Equipped on :^777777 Upper^000000",

"Weight :^777777 1^000000",

"Applicable Job :^777777 Every Job^000000",

"Spriter :^777777 Katze^000000",

},

identifiedDisplayName = "Haruhi Ribbons",

identifiedResourceName = "Haruhi_Ribbons",

identifiedDescriptionName = {

"A ribbon that was worn by Haruhi Suzumiya. The effects are a secret...",

"Class :^777777 Headgear^000000",

"Defense :^777777 3^000000",

"Equipped on :^777777 Upper^000000",

"Weight :^777777 1^000000",

"Applicable Job :^777777 Every Job^000000",

"Spriter :^777777 Katze^000000",

},

slotCount = 0,

ClassNum = 1102

},

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  2244
  • Reputation:   182
  • Joined:  11/19/11
  • Last Seen:  

ohh okay, so these are customs, I was referring to mainly weapons since they need it.

So probably the way you implemented your customs in your lua files then.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  119
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

Oh okay. And you'd think but everything looks fine to me. :\ I figured if it was something in the lua files I'd error before even getting in-game too.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

Which version of luac are you using and what errors do you get? If it isn't compiling because of errors those could be causing errors in-game even if you just rename the file.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  119
  • Reputation:   19
  • Joined:  11/14/11
  • Last Seen:  

I tried both 5.0.2 and 5.1.4 and no errors, just no .lub produced and no visible custom headgears.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

The file by default produces an output luac.lub file. Do you want to try compiling your .lua file for you? I was struggling with this a couple days ago.

As another note, the "read LUA before LUB" hex only makes the lua files in the "lua files" folder read.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

after convert to itemInfo.lua

where i must add the files?

if grf what path?

or RO/system folder?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   19
  • Joined:  09/27/12
  • Last Seen:  

itemInfo.lub goes in the RO/System folder once it is compiled. If you're talking about where you put the item_db.txt and the text files with the descriptions, those go in the data folder (the item text files have always been located there).

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

im using 10.4.2012 client . should i use this or old method ?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

2012-10-04a client uses the old system.

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   3
  • Joined:  03/27/12
  • Last Seen:  

right, add the item_db.txt into the folder to convert classnum... but what about a sql item_db? lol i got 657 items there with a viewid

Edited by Pinky
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  806
  • Reputation:   220
  • Joined:  03/13/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   3
  • Joined:  03/27/12
  • Last Seen:  

yea thanks honey i fogured i had to export it myself to save the trouble, well now that i got the iteminfo working i guess i can sniff into these new clients to see whats new.

Link to comment
Share on other sites

  • 3 years later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/14/16
  • Last Seen:  

This is too convenient,thanks!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/12/16
  • Last Seen:  

Thanks for your tool

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/09/16
  • Last Seen:  

It's very useful ,thanks for your tool

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/22/16
  • Last Seen:  

Finally able to find the tool i've been looking for for so long!!!
Thanks for the tool~~

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  01/31/13
  • Last Seen:  

very good!

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   5
  • Joined:  07/18/13
  • Last Seen:  

This is awesome thank you very much for making it and sharing it !

Link to comment
Share on other sites

  • 6 months later...

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  37
  • Reputation:   2
  • Joined:  08/30/18
  • Last Seen:  

Thanks for sharing this tool, help me much, i need help, why show me this?

rathena custom dif.jpg

Edited by kukas9
edit
Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.02
  • Content Count:  69
  • Reputation:   0
  • Joined:  10/22/19
  • Last Seen:  

Como utilizo esta gran utilidad? saludos.

Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  11/23/15
  • Last Seen:  

Can i request new fuction ?
costume ?

new version iteminfo.lub have costume column
add a txt file (that include costume id)
if have, lub file will add costume = true
if not have, will add costume = false
below
slotCount = 0,
ClassNum = 0,
Costume = true / Costume = false

use [=[ ]=] replace " " to prevent some chinese word problem

[13200] = {
  unidentifiedDisplayName = [=[]=],
  unidentifiedResourceName  = [=[]=],
  unidentifiedDescriptionName = {
  },
  identifiedDisplayName = [=[子彈]=],
  identifiedResourceName = [=[綰葩]=],
  identifiedDescriptionName = {
   [=[系列 : ^777777彈藥^000000]=],
   [=[屬性 : ^777777無^000000]=],
   [=[物攻 : ^77777725^000000]=],
   [=[重量 : ^7777770.1^000000]=],
   [=[要求 : ^777777Lv1^000000]=],
  },
  slotCount = 0,
  ClassNum = 0
 }
-- Function #0
main = function()
    for ItemID, DESC in pairs(tbl) do
        result, msg = AddItem(ItemID, DESC.unidentifiedDisplayName, DESC.unidentifiedResourceName, DESC.identifiedDisplayName, DESC.identifiedResourceName, DESC.slotCount, DESC.ClassNum)
        if not result == true then
            return false, msg
        end
        for k, v in pairs(DESC.unidentifiedDescriptionName) do
            result, msg = AddItemUnidentifiedDesc(ItemID, v)
            if not result == true then
                return false, msg
            end
        end
        for k, v in pairs(DESC.identifiedDescriptionName) do
            result, msg = AddItemIdentifiedDesc(ItemID, v)
            if not result == true then
                return false, msg
            end
        end
        if nil ~= DESC.costume then
            result, msg = AddItemIsCostume(ItemID, DESC.costume)
            if not result == true then
                return false, msg
            end
        else
            continue
        end
        k = DESC.unidentifiedResourceName
        v = DESC.identifiedDisplayName
    end
    return true, "good"
end


Thank you

Edited by skyiing
Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...