Jump to content
  • 0

Duplicating Item


NANORAY

Question


  • Group:  Members
  • Topic Count:  95
  • Topics Per Day:  0.02
  • Content Count:  210
  • Reputation:   3
  • Joined:  12/20/11
  • Last Seen:  

having a problem adding custom item/duplicate in iteminfo.lua (zackdreaver folder). when adding/duplicating item it cause this error:

 image.png.8701c753aee78cc4e0ec8c7ac9d9923c.png

i guess there is other lua file that all custom items/duplicate items must be put there? @zackdreaver

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 2

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1616
  • Joined:  03/26/12
  • Last Seen:  

For goodness sake you guys, it's an encoding issue. Set your editor's encoding correctly and it'll resolve your issue. You don't need VS2017 to open a .lub and if it's jargen then it's still compiled. The item shows it's not a compiled lub, thus, encoding issue.

I stopped using Notepad++ when VS Code was released. It has this handy "encoding switch" feature that actually tells you that you need to change your encoding for the file to be read and saved correctly.

Stop giving rubbish advice after i've already said what's wrong.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

2 hours ago, NANORAY said:

having a problem adding custom item/duplicate in iteminfo.lua (zackdreaver folder). when adding/duplicating item it cause this error:

 image.png.8701c753aee78cc4e0ec8c7ac9d9923c.png

i guess there is other lua file that all custom items/duplicate items must be put there? @zackdreaver

i think there is an error format in the item costume on iteminfo.lua 

show us your item duplicate in here            

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  95
  • Topics Per Day:  0.02
  • Content Count:  210
  • Reputation:   3
  • Joined:  12/20/11
  • Last Seen:  

1 hour ago, melv0 said:

i think there is an error format in the item costume on iteminfo.lua 

show us your item duplicate in here            

    [40000] = {
        unidentifiedDisplayName = "Hat",
        unidentifiedResourceName = "캡",
        unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." },
        identifiedDisplayName = "Costume Beginner Cap",
        identifiedResourceName = "비기너마크",
        identifiedDescriptionName = {
            "A costume awarded to adventurer who barely start his adventure.",
            "HIT +30",
            "MaxHP +1000",
            "MaxSP +200",
            "Reduces variable cast time by 10%.",
            "Increase restoration amount of Novice Potion by 50%.",
            "Increase healing power by 150%.",
            "Every 10 base level increment:",
            "HIT -3",
            "Increases variable cast time by 1%",
            "MaxHP -100, MaxSP -20",
            "Healing power -10%,",
            "Increase healing received and restoration items by 10%.",
            "^FF0000Cannot be traded.^000000",
            "Costume:^6666CC Headgear^000000",
            "Location:^6666CC Lower^000000",
            "Weight:^006600 0^000000",
            "Level Requirement:^006600 1^000000",
            "Jobs:^6666CC All^000000"
        },
        slotCount = 0,
        ClassNum = 1348
    },

 

using custom iteminfo.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1616
  • Joined:  03/26/12
  • Last Seen:  

Your file is encoded incorrectly. There are numerous guides on the forums on how to resolve this issue.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  95
  • Topics Per Day:  0.02
  • Content Count:  210
  • Reputation:   3
  • Joined:  12/20/11
  • Last Seen:  

Just now, Akkarin said:

Your file is encoded incorrectly. There are numerous guides on the forums on how to resolve this issue.

im sorry but how to resolve this? :(

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1616
  • Joined:  03/26/12
  • Last Seen:  

Just now, NANORAY said:

im sorry but how to resolve this? :(

 

1 minute ago, Akkarin said:

There are numerous guides on the forums on how to resolve this issue.

 

  • Love 1
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  626
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

I first encountered that problem too, when i was trying to add an custom item myself.

Weird problem tho:
Without any changes to the original itemInfo.lua file it works fine, but after adding an item it shows many lines where strings are not closed correctly.
What I mean are the " at the end of a line.

I manually corrected it and it worked fine afterwards.
I don't know the exact number of lines anymore, but it should be around 100-200 lines or like that.
Most lines were an ?, instead of ?", like these:

5abceacc13309_itemInfolua.png.25529854daa807734b297c2bc1d0343e.png

Before the changes, theis weird boxes were black, now they are grey.

I hope my information helps.

Regards,
Chris

Edited by llchrisll
Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Its simple miss coded on luafiles in system info or There is 2 kind of error when it comes to lua files in system folder 

1.if you are using the iteminfo.lua you can change the data inside using notepad without any error

2. if you are using iteminfo.lub files this is kinda a bit different from iteminfo.lua. here you cant edit the data inside using just a notepad or notepad ++ . you will encounter error like that if you are using notepad ++ . kindly use VS2017 for editing lub files to avoid error .

There is a threand in our forums i think the author is @Anacondaqq its a guide of what component you should install in your VS to avoid the whole program witch is high amount of GB.
 

Edited by Poring King
VB into VS
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
Answer this question...

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