Jump to content
  • 0

locale string system


jeddawee
Go to solution Solved by Sonitex,

Question

Hi guys, 

 

Does anyone have any idea of how to translate lines like this

 

spacer.png

 

or

 

spacer.png

 

 

using this system...

 

 

I created a function that send a packet to get the proper string from client, but it didn't work as I expected

 

any tips could be useful .. 

 

thx in advance..

Edited by jeddawee
Link to post

2 answers to this question

Recommended Posts

  • 0
  • VIP
  • Solution
Posted (edited)

In cases such as horse name postfix, you can do it directly in client source. 

 

In the following function, check if an instance is a horse and append the string to its name ('s Horse).

void CInstanceBase::__Create_SetName(const SCreateData& c_rkCreateData)

 

In other cases where you must use a locale string as an argument, you either add multilingual data to the server or create a separate packet just for this locale string. 

 

Edit: There are also other ways like passing "[STRING_221]" as a string argument and on the client side you fetch a locale string with ID 221. This can be also useful for item and monster names :)

Edited by Sonitex
Link to post
  • 0
4 hours ago, Sonitex said:

In cases such as horse name postfix, you can do it directly in client source. 

 

In the following function, check if an instance is a horse and append the string to its name ('s Horse).

void CInstanceBase::__Create_SetName(const SCreateData& c_rkCreateData)

 

In other cases where you must use a locale string as an argument, you either add multilingual data to the server or create a separate packet just for this locale string. 

 

Edit: There are also other ways like passing "[STRING_221]" as a string argument and on the client side you fetch a locale string with ID 221. This can be also useful for item and monster names :)

 

 

Thx man ❤️

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.



  • Activity

    1. 1

      Arrows with another weapons

    2. 0

      Client afk in background - Effects started to fun faster

    3. 1

      Arrows with another weapons

    4. 221

      WorldEditor ReMIX

    5. 31

      [FIX] Fixing Metin2 memory leaks

    6. 1

      Starting a metin2 server on a VPS ?

    7. 1

      Starting a metin2 server on a VPS ?

  • Recently Browsing

    No registered users viewing this page.

Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.