Jump to content
  • 0

Signboard updating; ASCII to EUR-KR


iwillnot

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   23
  • Joined:  04/28/12
  • Last Seen:  

Hello there, I need some help.

I'm trying to update signboards on my RO server so that newbie game experience and usability is improved. So I'm going over the data/À¯ÀúÀÎÅÍÆäÀ̽º/item folder, looking for nice BMPs to use. I use GRF Editor to open the GRF and view lots of BMP files quickly, and copy the filename of the BMP i want to use.

I found one that I wanted to use, which was the following:

Æ÷¸µ¸ðÀÚ.bmp // Text that I get when I extract the BMP and copy the filename
Æ÷¸Μ¸ÐÀÚ.bmp // Text I get when I copy the filename from within the GRF Editor tool

image.png.66a8d18c39974672b8c441191b92916a.png

So I copied the filename and replaced it in the target signboard that I want to update in signboardlist.lub.
Since it uses suffragium.bmp as plain text, I'm imagining that if I just simply copy-paste the filename of the BMP that I want to use, it will work.

image.png.a93651209a899c883b020635ec9d1348.png

Error

However, this does not work (for both ASCII versions) as shown in the error below. Curiously, that's not the ASCII code that I wrote down but it got transformed when the client was trying to read the file. Why is that?

image.png.a0bcbf9451af9d167296f0be65d68fbc.png

image.png.f3bf34393bee4372e15ec77b8405715b.png

Question

Is this an encoding problem? The signboardlist.lub is opened using my Text editor (Visual Studio Code) with the EUC-KR encoding. 

Changing the title of the signboards (e.g. from korean letters to "Ship to Alberta") and saving the document reflects correctly in the game, which means I have not corrupted my file.

image.png.506311db6968220f58fe0f15995603e1.png

 

Edit: 

I apologize in advance, I posted this in the 3rd party support because I first thought that (a) this is an encoding error (b) Unbolloxer did the transformations from korean to ascii (c) I want to know how to do that on my own so that I can build a tool that does that work.

I realize now that it should be in the client support forum instead. Please, mod, move it when you have the time. Thanks.

Edited by iwillnot
Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

For avoiding problems, use always korean as main language everywhere.

T1W7yvT.png

OKFqd5p.png

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

8 hours ago, iwillnot said:

Is this an encoding problem? The signboardlist.lub is opened using my Text editor (Visual Studio Code) with the EUC-KR encoding. 

 

yes, it is.

This is broken twice encoding:

TUZokm7.png

 



Use next

 

ypnAt4t.png

 

 

dOlZzgf.png

 

 

Your text must be always korean, not broken cp1252 encoding into EUR-KR, or mixes of cp1251, cp1251, euk-r, utf8, etc.

 

 

 

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   23
  • Joined:  04/28/12
  • Last Seen:  

You are a lifeboat in a sea of problems.

Thank you for your effort (images and explanation) in documenting how to solve this issue @Anacondaqq!

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  1096
  • Reputation:   344
  • Joined:  02/26/12
  • Last Seen:  

Also, there can be an issue with VSCode (as far as I see you're using VSCode). By default, they work only with UTF-8 Like or will open cp1252 (depends on your system).

So, ideally if you will open any LUA files with next encoding:

 

7rBcdrR.png

EUC-KR to make sure that everything will be good.

 

Edited by Anacondaqq
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   23
  • Joined:  04/28/12
  • Last Seen:  

12 hours ago, Anacondaqq said:

Also, there can be an issue with VSCode (as far as I see you're using VSCode). By default, they work only with UTF-8 Like or will open cp1252 (depends on your system).

So, ideally if you will open any LUA files with next encoding:

EUC-KR to make sure that everything will be good.

 

Yes. I was experiencing this often when I modify the iteminfo.lub file - it kept corrupting my items (and their resource filenames) which, after I have saved the file, makes it difficult to reverse.

It was kind of annoying to always 'remember' to re-open with a different encoding, and I was considering sticking with Notepad++ whenever I do my LUA/LUB edits. (But I love plenty handiness of the VS Code /sob)

Thank you again!

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