Jump to content
V3ct0r

Displaying the player's character level next to its name

Recommended Posts

[Mod] Displaying the player's character level next to its name

 

screenshot_01_en.png

 

This mod allows you to display the level of the player's character next to its name (see screenshot above).

 

Requirements

 

Installed mod loading system for server and client (PKOdev.NET mod loader).

 

 

Modification information

 

Name: pkodev.mod.namelevel;

Version: 1.0;

Author: V3ct0r;

Type: for client (Game.exe);

Supported executable .exe files: GAME_13X_0, GAME_13X_1, GAME_13X_2, GAME_13X_3, GAME_13X_4, GAME_13X_5.

 

 

Installation

 

1) In the "mods" directory of your client, create a "pkodev.mod.namelevel" folder;

2) Place into it the mod DLL file "pkodev.mod.namelevel.client.13x_<ID>.dll" for your version of Game.exe;

3) Place into it the mod settings file "pkodev.mod.namelevel.cfg";

4) In the file "pkodev.mod.namelevel.cfg" write the desired displaying format for the level and character name, for example, format:

Lv{:level:} {:name:}

where {:level:} will be replaced by the mod for the character's level, and {:name:} - for the character's name.

 

in the game will give the result:

Lv80 V3ct0r

 

 

Download

 

1) Binary release (.dll);

2) The source code of the mod for Visual Studio 2019 Community (C++).

 

 

If you encounter any problem, bug or have any questions, then feel free to write in this thread.

  • Like 3
  • Thanks 1

Share this post


Link to post
Share on other sites

 

A question if I already have my client and I do not know the corresponding <ID> or rather I do not know what it is according to a file that was uploaded, how can I identify it is 1.38

 

 

image.png.081dcd0aae726552cdb13a23d2a25dcc.png

 

 

Share this post


Link to post
Share on other sites

@dragontechi

 

Create a .bat file in the root directory of the your client with the following contents:

system\Game.exe startgame > output.txt

Then run it. You will see the corresponding <ID> in the file "output.txt".

  • Like 1

Share this post


Link to post
Share on other sites

my id would be 0 then

 

7 minutes ago, V3ct0r said:

@dragontechi

 

Create a .bat file in the root directory of the your client with the following contents:


system\Game.exe startgame > output.txt

Then run it. You will see the corresponding <ID> in the file "output.txt".

image.png.180c2fc047dc63b46c8d866421e3da99.png

 

 

Edited by dragontechi

Share this post


Link to post
Share on other sites

It was my mistake I thought it was within the system that mobs are already loading but the level mod says that it is active but it does not show

 

[pkodev.mod.loader] -----------------------------------------------
[pkodev.mod.loader]    PKOdev.NET mod loader ver. 1.0 by V3ct0r    
[pkodev.mod.loader] -----------------------------------------------
[pkodev.mod.loader] Detected .exe file: 'Game.exe 1.3x (ID: 0)'.
[pkodev.mod.loader] Searching mods in 'mods' directory . . .
[pkodev.mod.loader] Done! (4) mods found out: 
+----+--------------------------------+----------+----------------+
|  # |                            Mod |  Version |         Author |
+----+--------------------------------+----------+----------------+
|  1.|           pkodev.mod.autologin |      1.0 |         V3ct0r |
|  2.|            pkodev.mod.cooldown |      1.0 |         V3ct0r |
|  3.|           pkodev.mod.namelevel |      1.0 |         V3ct0r |
|  4.|              pkodev.mod.npcpos |      1.0 |         V3ct0r |
+----+--------------------------------+----------+----------------+
[pkodev.mod.loader] Launching mods . . .
[pkodev.mod.loader] All mods launched!

Share this post


Link to post
Share on other sites

@dragontechi

 

The level should be shown in the names of other characters.

  • Like 1

Share this post


Link to post
Share on other sites
24 minutes ago, dragontechi said:

If so, exactly, thank you

Remove the following if-statement if you want to display the level in the player's character name as well and rebuild the mod:

// Check that character is not the player's character
if (cha != main_cha)
{
   Some code here (do not remove, only this if-statement)
}

 

  • Like 1

Share this post


Link to post
Share on other sites

     Do I need to find this number for my Client? 
#Build timestamp: 1259921080


const unsigned int CHeadSay__Render = 0x00470690;
      const unsigned int CGameScene___pMainCha = 0x0067052C;

  // Game.exe 0 (1222073761)
        namespace GAME_13X_0
        {
            // void CHeadSay::Render(D3DXVECTOR3& pos)
            const unsigned int CHeadSay__Render = 0x00470690;

            // CCharacter* CGameScene::_pMainCha 
            const unsigned int CGameScene___pMainCha = 0x0067052C;
        }

Share this post


Link to post
Share on other sites

Hello @flamyman1412!

 

Yes, you have to find addresses of these objects for your Game.exe:

void CHeadSay::Render(D3DXVECTOR3& pos)
CCharacter* CGameScene::_pMainCha 

 

You can try to search the following sequances of bytes in IDA Pro or OllyDBG to get these addresses:

 

void CHeadSay::Render(D3DXVECTOR3& pos)

8B 4E 28 8B 81 14 04 00 00 8B 7C 24 40 D9 80 0C 01 00 00 D8 47 08 8B 57 04 8B 07

 

CCharacter* CGameScene::_pMainCha 

75 2B 3B C2 74 4E

 


Share this post


Link to post
Share on other sites
18 hours ago, V3ct0r said:

Hello @flamyman1412!

 

Yes, you have to find addresses of these objects for your Game.exe:


void CHeadSay::Render(D3DXVECTOR3& pos)
CCharacter* CGameScene::_pMainCha 

 

You can try to search the following sequances of bytes in IDA Pro or OllyDBG to get these addresses:

 

void CHeadSay::Render(D3DXVECTOR3& pos)


8B 4E 28 8B 81 14 04 00 00 8B 7C 24 40 D9 80 0C 01 00 00 D8 47 08 8B 57 04 8B 07

 

CCharacter* CGameScene::_pMainCha 


75 2B 3B C2 74 4E

 

I can't find it I don't have C++ proficiency.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites
1 hour ago, flamyman1412 said:

Here you are:

void CHeadSay::Render(D3DXVECTOR3& pos) = 0x00471C90
CCharacter* CGameScene::_pMainCha       = 0x006A08D4

 


Share this post


Link to post
Share on other sites

unable to make this work. i already done all the step in guide and still the displayed name without level in the front. can you help me in what i had done it wrong

Share this post


Link to post
Share on other sites

Hello, @kyleflow,

 

1) What is the version of the Game.exe you are using? (GAME_13X_0 ... GAME_13X_5);

2) Are there any other modifications and patches in the .exe file?

3) What other mods for PKOdev.NET mod loader are installed?


Share this post


Link to post
Share on other sites

For this part, I able to figure it out after reading the translated reply from comment regarding other account able to see it instead ur own. i'm content seeing others name with level instead of mine. thanks

  • Thanks 1

Share this post


Link to post
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.   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.


×
×
  • Create New...