Jump to content
  • 0

Iteminfo.lub editing


ToiletMaster

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Hi there everyone,

i was hoping that i would be able to add 1 etc item to test. However after tons of searching, i can't seem to figure out why it doesn't work. My iteminfo.lub by default from Zack works perfectly with the client version 2017-01-25 that i'm currently using. However upon adding 1 more item in, an error would state that my iteminfo.lub was missing quotations on the item description.

The strange thing is that when i went into the iteminfo.lub to look for info, i notice it wasn't just one line that had missing quotations, it was multiple lines instead. such as you can see here. I've written on the parts where the quotes are missing. The part that makes it strange is that if i were to take my original iteminfo.lub it works fine even without the quotes there, but if i edit anything at all and save afterwards, then the errors will start to appear.

	[13081] = {
		unidentifiedDisplayName = "Dagger",
		unidentifiedResourceName = "나이프",
		unidentifiedDescriptionName = { "Unknown Item, can be identified by using a ^6666CCMagnifier^000000." },
		identifiedDisplayName = "Seafood Knife",
		identifiedResourceName = "문어조리식칼",
		identifiedDescriptionName = {
			"�h�g�p�??��B",
			"�n�n�???�A",
			"�l�??_�????B",
			"------------------------",
			"�?B'l�?�???x� ",
			"Hit +1",
			"------------------------",
			"[�J�j�J�[�h]",
			"�?? ���?��A",
			"�?��U�����A",
			"����?����X�^�[�??, <------- missing quotes 
			"_���[�W +8%",
			"------------------------",
			"[�qgfJ�[�h]",
			"�?? ���?��A",
			"�?��U�����A",
			"����?����X�^�[�??, <-------- missing quotes 
			"�_���[�W +8%",
			"------------------------",
			"[�??�L�J�[�h]",
			"�?? ���?��A",
			"�?��U�����A",
			"����?����X�^�[�??,
			"_���[�W +8%",
			"------------------------",
			"[�JjJ�[�h]",
			"[�qgfJ�[�h]",
			"[�??�LJ�[�h]",
			"�?? ���?��A",
			"'????��U�����A",
			"����?����X�^�[�??, <--------- missing quotes 
			"�_���[�W +16%",

 

Here's the item that i wanted to add in. in this case i've added 40000 in my item_db.txt

	[40000] = {
		unidentifiedDisplayName = "Red Potion",
		unidentifiedResourceName = "빨간포션",
		unidentifiedDescriptionName = { "" },
		identifiedDisplayName = "Red Potion",
		identifiedResourceName = "빨간포션",
		identifiedDescriptionName = {
			"A potion made from grinded Red Herbs.",
			"^FFFFFF_^000000",
			"Class:^0000FF Restorative item^000000",
			"Heal:^006600 45 ~ 65^000000 HP",
			"Weight:^006600 7^000000"
		},
		slotCount = 0,
		ClassNum = 0
	},

 

Things that i've tried

  • Redownload the entire Zack translation patch (did not work)
  • Removed all edits what i've done on the iteminfo.lub (did not work)

What could possibly be the issue? Thank you in advance.

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 1

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

It's an encoding issue. I've noticed recently that editors like notepad++ (which i would normally swear-by) converts areas of the text that it shouldn't. In this case it's attempting to convert the end-of-expression " quote marks into the rest of the string, which removes the quotes and then the client screams.

I've found that using Visual Code works - open up itemInfo.lub and then click the encoding link at the bottom, select re-open in new encoding and it should auto detect euc_kr, then you shouldn't have any further problems.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

can you upload the not working iteminfo you have ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

2 hours ago, Akkarin said:

It's an encoding issue. I've noticed recently that editors like notepad++ (which i would normally swear-by) converts areas of the text that it shouldn't. In this case it's attempting to convert the end-of-expression " quote marks into the rest of the string, which removes the quotes and then the client screams.

I've found that using Visual Code works - open up itemInfo.lub and then click the encoding link at the bottom, select re-open in new encoding and it should auto detect euc_kr, then you shouldn't have any further problems.

thank you very much for the help!

I've tested this with visual code instead of notepad++ and it works perfectly, my item was able to display without a hitch. I'll take note of this next time i'm editing an item from the iteminfo.lub /wah

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   23
  • Joined:  01/30/12
  • Last Seen:  

I also had issue like this before by using a broken text editor that mess the encoding of text areas not modified like the Akkarin's comment above.

Usually I edit all the Korean text using the Windows Latin 1 encoding that works fine. If you like to see the Korean characters, I suggest you to use the Korean Windows DOS encoding.

Note that if you open the text as Windows Latin 1 and reinterpret it as Korean Windows DOS it should work without need to convert the text, convertion that could mess the text encoding.

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