Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

Hello, developers!

It's common knowledge that there's a limitation on the maximum length for item and mob names, which is capped at just 24 characters by default. This often forces players to abbreviate names, which can be less than ideal for clarity and immersion.

For instance, we often find ourselves writing names like:

Christmas Costume+(Blk)

Not a fan of these abbreviations myself, I decided to extend the character limit. Here's a step-by-step guide on how to accomplish this.

Step 1: Modify the Server-Side Source Code

Begin by navigating to the server-side source directory. Open the file located at common/item_length.h and look for this line:

 
This is the hidden content, please

Feel free to change this to a higher value of your choice. I opted for 30, so it should read like this:

 
This is the hidden content, please

Remember to compile your source code afterward! Don’t forget to compile both the database and the game, since this change is made in the common settings.

Step 2: Adjust the Client-Side Source Code

Next, head over to the client-side source code. Open GameLib/ItemData.h and perform another search for:

 
This is the hidden content, please

Just as before, you can update this value. I set it to 30, resulting in:

This is the hidden content, please

Step 3: Update the DumpProto Source Code

Now, navigate to dump_proto.cpp in your dumpProto source code. Search again for:

 
This is the hidden content, please

Change this line to match the new limit, like so:

This is the hidden content, please

Step 4: Modify the Database

After making these adjustments in the code, open Navicat and access both itemProto and mobProto. Design the tables and change the length of the name and locale_name columns from 24 to 30.

That’s it! You have successfully modified the naming limit for your prototypes, allowing for item and mob names up to 30 characters long.

With this enhancement, players can enjoy more descriptive names, adding to their overall experience and enjoyment. Happy coding!

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

Important Information

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.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...