Jump to content

Recommended Posts

  • Active Member
On 12/14/2024 at 8:59 PM, gamer6661102 said:

I did everything as described!

1214 20:48:41315 :: Traceback (most recent call last):

1214 20:48:41315 ::   File "ui.py", line 2897, in OnOverInItem

1214 20:48:41316 ::   File "ui.py", line 97, in __call__

1214 20:48:41316 ::   File "ui.py", line 88, in __call__

1214 20:48:41316 ::   File "uiCharacter.py", line 952, in OverInItem

1214 20:48:41316 ::   File "uiToolTip.py", line 3994, in SetSkillNew

1214 20:48:41316 ::   File "uiToolTip.py", line 4141, in AppendSkillDataNew

1214 20:48:41316 :: ValueError
1214 20:48:41316 :: : 
1214 20:48:41316 :: incomplete format
1214 20:48:41316 :: 

 

The error comes on this line

self.AppendTextLine(localeInfo.TOOLTIP_SKILL_BOOKS % (player.GetRemainingBooks(slotIndex), need_bookcount), 0xff375cd4)

The error ValueError: incomplete format typically occurs when the format string and the arguments being passed to it don't match in terms of the number of placeholders and values provided. In your case, it appears that the string localeInfo.TOOLTIP_SKILL_BOOKS expects a certain number of placeholders (like %d for integers), but the arguments provided to it, player.GetRemainingBooks(slotIndex) and need_bookcount, don't align properly.

  • Love 1
On 2024. 12. 15. at 21:19, jking said:

A ValueError: incomplete format hiba általában akkor fordul elő, ha a formátum karakterlánc és a neki átadott argumentumok nem egyeznek a megadott helyőrzők és értékek számát tekintve. Az Ön esetében úgy tűnik, hogy a localeInfo.TOOLTIP_SKILL_BOOKS karakterlánc bizonyos számú helyőrzőt vár (például %d egész számokhoz), de a megadott argumentumok, a player.GetRemainingBooks(slotIndex) és a need_bookcount, nem illeszkednek megfelelően.

 

I installed everything as described.

On one hand: works really great, and is a great idea!

On the other hand: it messes it up well. Messes up the quick access bar, the character "forgets" the skills - it resets everything every teleport / char. change.

The syserr-s are clean, so I really have no idea what happens 😄

 

Edit:

I just saw @ Gurgarath's answer. Anyone would care help me a little with this rewriting thing? ^^

static char text[8192 + 1]; is already there, tried my best but thats all 😞

Edited by farmmedal
New information
  • Active+ Member
On 12/24/2024 at 12:14 PM, farmmedal said:

On one hand: works really great, and is a great idea!

On the other hand: it messes it up well. Messes up the quick access bar, the character "forgets" the skills - it resets everything every teleport / char. change.

The syserr-s are clean, so I really have no idea what happens 😄

 

Edit:

I just saw @ Gurgarath's answer. Anyone would care help me a little with this rewriting thing? ^^

static char text[8192 + 1]; is already there, tried my best but thats all 😞

You would have to create separated table to store all the skills with player id, level and any other remaining stuff moved from the blob and change the loading method a bit. I'll give myself a try with this in 2025 once I find enough time 😏

  • 2 months later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.