Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

  • Premium+

spacer.png

 

In the gaming community, providing players with robust trading communication features is essential for enhancing their experience. This guide will walk you through implementing a Trade Chat system for the WoM2 platform. The best part? This system is available for free!

Installation Instructions

Step 1: Source Server Configuration

  1. Navigate to the following directory:

     
  • This is the hidden content, please

     

  • Edit the input.h file:

    • Find the line:

       
  • This is the hidden content, please

     

  • Add the following statement right after:

     
  • This is the hidden content, please

     

  • Next, locate the line:

     
  • This is the hidden content, please

     

  • Insert the following code below it:

     

Step 2: Update input_main.cpp

  1. Open the input_main.cpp file and search for:

     
  • This is the hidden content, please

     

  • Add the following code after the found line:

     
  1. This is the hidden content, please

     

Step 3: Update input_p2p.cpp

  1. Search for:

     
  • This is the hidden content, please

     

  • Add the following after this line:

     
  • This is the hidden content, please

     

  • Search for:

     
  • This is the hidden content, please

     

  • Add this functionality below:

     
  1. This is the hidden content, please

     

Step 4: Update packet.h

  1. Find this line:

     
  • This is the hidden content, please

     

  • Add after it:

     
  1. This is the hidden content, please

     

  2. Move to the src/common/ directory.

Step 5: Modify length.h

  1. Search for CHAT_TYPE_MAX_NUM and add:

     
  1. This is the hidden content, please

     

Step 6: Update service.h

  1. Add the following define:

     
  1. This is the hidden content, please

     

Source Binary Configuration

In User Interface Source

  1. Navigate to src/UserInterface/:

    • Open Locale_inc.h and add:

       
  • This is the hidden content, please

     

  • Modify Packet.h by searching for CHAT_TYPE_MAX_NUM, and add before it:

     
  • This is the hidden content, please

     

  • In PythonApplicationModule.cpp, find #ifdef ENABLE_COSTUME_SYSTEM and add after it:

     
  • This is the hidden content, please

     

  • Locate PythonChat.cpp and find:

     
    This is the hidden content, please

     

Add this afterwards:

 
  • This is the hidden content, please

     

  • In PythonChatModule.cpp, find:

     
This is the hidden content, please

And add:

 
  • This is the hidden content, please

     

  • In PythonNetworkStreamPhaseGame.cpp, search for:

     
This is the hidden content, please

And add after it:

 
This is the hidden content, please

Replace the condition:

 
This is the hidden content, please

With:

 

Client Configuration

  1. Decrypt the locale_ro/en/tr/etc files to access locale_game.txt:

    • Add this message:

       
  • Decrypt the root folder to access uichat.py:

    • Within the ChatLine class, locate the __init__ method and insert:

       
  • This is the hidden content, please

     

  • Search for:

     
This is the hidden content, please

And replace it with:

 
This is the hidden content, please

And add this after:

 
  • This is the hidden content, please

     

  • Search for:

     
This is the hidden content, please

Add this after:

 
  • This is the hidden content, please

     

  • Look for the ChatLogWindow class:

     
This is the hidden content, please

And append:

 
  • This is the hidden content, please

     

  • Search for:

     
This is the hidden content, please

After which, insert:

 

 

By following these detailed steps, you will have successfully integrated a Trade Chat feature into your WoM2 game. This will enhance player interaction, providing a platform for trading goods and services. If you have any further questions or need assistance with additional customizations, feel free to seek support!

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