Jump to content

Xynvaroth_TextManager 3.0


Recommended Posts


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

TextManager is a script package used to separate texts from scripts with an optional multilangual support.

You will never have to touch a script to change the texts. If you have staff members which should only translate or correct texts, they will only have to receive and change the data area of the Xynvaroth_TextManager. There is no need to spread all your scripts anymore.

There is a detailed documentation inside the file.

Xynvaroth_TextManager

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

That's... a lot of SQL queries. It's a convenient way of doing this, but is not very good for performance.

That aside, why don't you integrate this with our Multilanguage Support feature? (#langtype stores a player's language setting.)

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

Thanks for your feedback.

I have recently returned to rAthena, so I am not a hundret percent up to date.

If the engine featured a better solution to store data (to a file or so), then I would surely use it. If there is a better way today, I will welcome it if you let me know.

I did not know about the Multilanguage Support feature; thank you for informing me. I will consider changing my script to feature it, because there are also downsides like that the possible languages are pre-defined.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  562
  • Reputation:   152
  • Joined:  02/21/12
  • Last Seen:  

Without SQL this would be much easier and better. Anyways, good idea. I should have something similiar without SQL.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

2.0

Thank you again for your feedback.

It actually let me to making some runtime analaysis (I wrote a custom script command to do so) and if I store the data in server variables instead of MySQl, the script will be about ten folds faster.

Thus, here is the new version without MySQL!

2.1

- Changed the length of the variable names.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

2.2

- Revised the documentation.

- Added @ReloadText.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

2.3

- Revised the documentation.

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

3.0

- Added a functionality to split the texts over multiple arrays due to the rAthena's scripting engine's array size limit of 127.
- Revised the examples.
  • Upvote 1
Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   32
  • Joined:  01/21/13
  • Last Seen:  

Great! Well done Xynvaroth! Are it going to work with rA multi lang system?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  254
  • Reputation:   72
  • Joined:  07/10/13
  • Last Seen:  

Great! Well done Xynvaroth! Are it going to work with rA multi lang system?

Thank you!

I never used the Multilanguage Support, but I believe you only have to replace #TextManager_Language with #langtype (you are hereby allowed to do so) and of course fill the arrays according to the predefined languages.

Let me know if you try that and it still does not work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  128
  • Reputation:   32
  • Joined:  01/21/13
  • Last Seen:  

K, soon I'll :D

maybe in a week I'll be back here.

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
Reply to this topic...

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