Jump to content
Sign in to follow this  
Lucky

[Help] Gem Lv Problem Forge

Recommended Posts

Anyone know how to fix this bug, i tried looking in .res files only "Lv" i found but for gem lv none, also tried in game.exe i looked for strings just found "Lv" called from .res file

Bug Gem Lv.jpg

 

Game.exe and en_US.txt: Game.rar

 

Share this post


Link to post
Share on other sites

Its not formatting a string but adding it

_itoa_s(rItemForgeInfo.nStoneLevel[0], szBuf,sizeof(szBuf) ,10); // Get gem level and store it in szBuf
sEquipState += szBuf; // Add level to the string
sEquipState += RES_STRING(CL_LANGUAGE_MATCH_837); // Add "Lv  "
sEquipState += rItemForgeInfo.pStoneInfo[0]->szDataName; // Add gem name
sEquipState += "\n"; // Add new line

What you have to do is add CL_LANGUAGE_MATCH_837 first and then add level.

You can do this by just moving code around.

Original code:

Screenshot_341.png

Level after string:

Screenshot_342.png

Note that address will not match for you, search for "CL_LANGUAGE_MATCH_837". There are 3 occurrences, one for each socket.

  • Like 3

Share this post


Link to post
Share on other sites
14 hours ago, Wrexor said:

Its not formatting a string but adding it


_itoa_s(rItemForgeInfo.nStoneLevel[0], szBuf,sizeof(szBuf) ,10); // Get gem level and store it in szBuf
sEquipState += szBuf; // Add level to the string
sEquipState += RES_STRING(CL_LANGUAGE_MATCH_837); // Add "Lv  "
sEquipState += rItemForgeInfo.pStoneInfo[0]->szDataName; // Add gem name
sEquipState += "\n"; // Add new line

What you have to do is add CL_LANGUAGE_MATCH_837 first and then add level.

You can do this by just moving code around.

Original code:

Screenshot_341.png

Level after string:

Screenshot_342.png

Note that address will not match for you, search for "CL_LANGUAGE_MATCH_837". There are 3 occurrences, one for each socket.

its works but how i add a space between GemLv and GemName

For example Lv1 Gem of Rage

forging.jpg

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.

Sign in to follow this  

×
×
  • Create New...