Jump to content
  • 0

Custom item encoding problem


Claod

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  11/09/15
  • Last Seen:  

Hey everyone !!! :D

 

So I think it's quite easy to fix this, I edited (Still have all backups) my grf, iteminfo.lub lua etc... nevermind... The problem is :

 

 

"CltemInfoMgr iteminfo.lub unfinished string"

The reason

When I open iteminfo.lub in notepad++ it auto detect euc-kr ... and some end lines are corrupted... so it turn the " in ? with some last characters. And here comes the unfinished string ...

 

My question is, how are you opening // what is your program to edit those file without this problem. I tried to open in UTF-8 etc but I can't --'.

 

Thanks for your solutons :)

 

 

Edit : I fixed it, using the windows program, not notepad++, koreans names were in strange sequences, but after I edit iteminfo.lua and renamed it in iteminfo.lub it worked without errors poping.

 

But my sprites are not displayed correctly, one of my items (blue wand) got its little icon (inventory) right. But not while attacking, (It turns to sword). The second "Ru Golden Wand" got wrong small icon (purple box), and while attacking (sword .. again :o). Descriptions and names are okey by the way, so for a first time that's not so bad x).

 

idnum2itemdisplaynametable.txt

1677#Blue_Wand#
1678#Ru_Gold_Wand# 

idnum2itemresnametable

1677#¼­´ÃÇÑÁöÆÎÀÌ#
1678#RUȲ±ÝÁöÆÎÀÌ# //Not sure about this one 

inteminfo.lua

[1677] = {
unidentifiedDisplayName = "One-Handed Staff",
unidentifiedResourceName = "·Ôµå",
unidentifiedDescriptionName = {
"Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
},
identifiedDisplayName = "Blue Wand",
identifiedResourceName = "¼­´ÃÇÑÁöÆÎÀÌ",
identifiedDescriptionName = {
"Blue Staff which has destructive power.",
"DEX +5, INT +5.",
"MATK +200",
"Premium",
"MAtk+ 20%",
"Reduce 10% cast time.",
"Class: ^777777One-Handed Staff^000000",
"Attack: ^77777750^000000",
"Weight: ^7777770^000000",
"Weapon Level: ^7777773^000000",
"Required Level: ^777777100^000000",
"Jobs: ^777777Warlock^000000"
},
slotCount = 1,
ClassNum = 10
},


[1678] = {
unidentifiedDisplayName = "One-Handed Staff",
unidentifiedResourceName = "·Ôµå",
unidentifiedDescriptionName = {
"Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
},
identifiedDisplayName = "Blue Wand",
identifiedResourceName = "¿À·¡µÈº¸¶ó»óÀÚ", // Not sure about this one, does it matters ?
identifiedDescriptionName = {
"A golden staff which has brutal power.",
"DEX +8, INT +8.",
"MATK +200",
"Premium",
"MAtk+ 20%",
"Reduce 10% cast time.",
"Class: ^777777One-Handed Staff^000000",
"Attack: ^77777750^000000",
"Weight: ^7777770^000000",
"Weapon Level: ^7777773^000000",
"Required Level: ^777777100^000000",
"Jobs: ^777777Warlock^000000"
},
slotCount = 2,
ClassNum = 18 // Is this about job class ? 16 for 3rd job + 2 for transcendant ?
},

 

iteminfo.lub

[1677] = {
		unidentifiedDisplayName = "One-Handed Staff",
		unidentifiedResourceName = "·Ôµå",
		unidentifiedDescriptionName = {
			"Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
		},
		identifiedDisplayName = "Blue Wand",
		identifiedResourceName = "¼­´ÃÇÑÁöÆÎÀÌ",
		identifiedDescriptionName = {
			"Blue Staff which has destructive power.",
			"DEX +5, INT +5.",
			"MATK +200",
			"Premium",
			"MAtk+ 20%",
			"Reduce 10% cast time.",
			"Class: ^777777One-Handed Staff^000000",
			"Attack: ^77777750^000000",
			"Weight: ^7777770^000000",
			"Weapon Level: ^7777773^000000",
			"Required Level: ^777777100^000000",
			"Jobs: ^777777Warlock^000000"
		},
		slotCount = 1,
		ClassNum = 10
	},

	[1678] = {
		unidentifiedDisplayName = "One-Handed Staff",
		unidentifiedResourceName = "·Ôµå",
		unidentifiedDescriptionName = {
			"Unknown Item, can be identified by ^6A5ACDMagnifier^000000."
		},
		identifiedDisplayName = "Blue Wand",
		identifiedResourceName = "¿À·¡µÈº¸¶ó»óÀÚ", // Still not sure of this one, does it matters ?
		identifiedDescriptionName = {
			"A golden staff which has brutal power.",
			"DEX +8, INT +8.",
			"MATK +200",
			"Premium",
			"MAtk+ 20%",
			"Reduce 10% cast time.",
			"Class: ^777777One-Handed Staff^000000",
			"Attack: ^77777750^000000",
			"Weight: ^7777770^000000",
			"Weapon Level: ^7777773^000000",
			"Required Level: ^777777100^000000",
			"Jobs: ^777777Warlock^000000"
		},
		slotCount = 2,
		ClassNum = 18 // Is this about job class ? 16 for 3rd job + 2 for transcendant ?
	},

28908426a.jpg92174799b.jpg86429331c.jpg

 

Can you tell me what's wrong ?

 

Maybe I need to put Àΰ£Á\À§Àúµå\data\sprite in rdata.grf

maybe those Ru_gold_wand.bmp must be in korean ... but which one ¿À·¡µÈº¸¶ó»óÀÚ    or    RUȲ±ÝÁöÆÎÀÌ   ?

Can you light my way please, the wiki is not clear about this ^^'.

 

 

After verification they are both present in rdata.grf. But I don't know how can I enable those items correctly?

golden wand ressource's name :   ºû³ª´ÂÁöÆÎÀÌ

Blue wand ressource's name : ¼­´ÃÇÑÁöÆÎÀÌ

Thanks again :)

Edited by Claod
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Soluction?

 

Link to comment
Share on other sites

  • 0

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

Visual Studio Code

// Place your settings in this file to overwrite the default settings
{
"files.encoding": "utf8",
"files.autoGuessEncoding": true
}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   1
  • Joined:  01/16/12
  • Last Seen:  

On 11/12/2015 at 12:26 PM, Claod said:

When I open iteminfo.lub in notepad++ it auto detect euc-kr ... and some end lines are corrupted... so it turn the " in ? with some last characters. And here comes the unfinished string ...

Try to disable 'autodetecting encoding'

I've managed to fix my problem in this reply 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

download atom editor and select autodected and u will be able to edit lua files fine without errors or issues.

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