Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

When utilizing the command /costume, players may encounter critical game crashes if the corresponding costume bonus IDs are absent from the fn_string or if they lack the proper formatting with %d.

Solution

To address this issue, adjustments need to be made within the cmd_general.cpp file located in the source_game/game/ directory.

Steps to Fix the Code

  1. Locate the Following Function:
    The function you need to edit is:

     
  • This is the hidden content, please

     

  • Modify the Code Block:
    Within this function, identify the specific cases you need to alter:

     
This is the hidden content, please

Change these lines to:

 
  • This is the hidden content, please

    This adjustment effectively converts the float type to an integer format.

  • Additional Replacement:
    Near the end of the same function, you'll find the following line:

     
This is the hidden content, please

This should be revised to:

 
  1. This is the hidden content, please

    This ensures that any unrecognized IDs are properly formatted for debugging purposes.

 

After implementing these changes, the command /costume should function more reliably, preventing unforeseen core crashes linked to missing or incorrectly formatted data.

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