Jump to content

Recommended Posts

title subImage
version 1.0
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"
left 0
top 0
right 253
bottom 37
 

why this code not work

https://metin2.download/picture/LzFG8VPNzgeU7xf11B1YuE2rKW15uQU9/.png

0308 16:37:14916 :: ui:4288: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

0308 16:37:14916 :: 
uiCharacter.py(line:811) __LoadWindow
uiCharacter.py(line:302) __LoadScript
ui.py(line:4281) LoadScriptFile
ui.py(line:4497) LoadChildren
ui.py(line:4497) LoadChildren
ui.py(line:4497) LoadChildren
ui.py(line:4288) LoadChildren

CharacterWindow.__LoadWindow - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/game/windows/char_tab_01.sub)

0308 16:37:14916 :: ============================================================================================================
0308 16:37:14916 :: Abort!!!!

 

 

bug flag

 

flag work en  but ae now work

https://metin2.download/picture/wqVQrT4IbYKGERh5TirBw2qwAPbLKYgs/.png

 

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/
Share on other sites

  • Premium
35 minutes ago, ahmedmohamed said:

title subImage
version 1.0
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"
left 0
top 0
right 253
bottom 37
 

why this code not work

https://metin2.download/picture/LzFG8VPNzgeU7xf11B1YuE2rKW15uQU9/.png

0308 16:37:14916 :: ui:4288: RuntimeWarning: tp_compare didn't return -1 or -2 for exception

0308 16:37:14916 :: 
uiCharacter.py(line:811) __LoadWindow
uiCharacter.py(line:302) __LoadScript
ui.py(line:4281) LoadScriptFile
ui.py(line:4497) LoadChildren
ui.py(line:4497) LoadChildren
ui.py(line:4497) LoadChildren
ui.py(line:4288) LoadChildren

CharacterWindow.__LoadWindow - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/game/windows/char_tab_01.sub)

0308 16:37:14916 :: ============================================================================================================
0308 16:37:14916 :: Abort!!!!

 

 

bug flag

 

flag work en  but ae now work

https://metin2.download/picture/wqVQrT4IbYKGERh5TirBw2qwAPbLKYgs/.png

 

 

make sure your file name use small characters if you name it Image.TGA it will not work because python and C++ is case sensitive

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148063
Share on other sites

1 minute ago, xTryhard said:

make sure your file name use small characters if you name it Image.TGA it will not work because python and C++ is case sensitive

 this work
title subImage
version 1.0
image "tabchar.tga"
left 0
top 0
right 253
bottom 37

 

 

but this no

 

title subImage
version 1.0
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"
left 0
top 0
right 253
bottom 37

Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148064
Share on other sites

  • Premium
  • Solution
2 minutes ago, ahmedmohamed said:

 this work
title subImage
version 1.0
image "tabchar.tga"
left 0
top 0
right 253
bottom 37

 

 

but this no

 

title subImage
version 1.0
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"
left 0
top 0
right 253
bottom 37

create 2 sub files:
a default one and the new one and use this:
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"

inside python and not inside the sub file

  • Love 1
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148065
Share on other sites

this file 
.sub

https://paste2.org/yBpGcnF9

this file .py

https://paste2.org/0AjFtPv1

7 minutes ago, xTryhard said:

create 2 sub files:
a default one and the new one and use this:
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"

inside python and not inside the sub file

 

7 minutes ago, xTryhard said:

create 2 sub files:
a default one and the new one and use this:
if localeInfo.IsARABIC():
    image "tabchararab.tga"
else:
    image "tabchar.tga"

inside python and not inside the sub file

im fix this 

but flag no can you help me fix flag ?

Edited by ahmedmohamed
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148066
Share on other sites

  • Premium
2 minutes ago, ahmedmohamed said:

this file 
.sub

https://paste2.org/yBpGcnF9

this file .py

https://paste2.org/0AjFtPv1

 

create this file as sub file :

 

title subImage
version 1.0
image "tabchararab.tga"
left 0
top 0
right 253
bottom 37

now go to python and select it with the if statement
 

Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148067
Share on other sites

  

16 minutes ago, xTryhard said:

create this file as sub file :

 

title subImage
version 1.0
image "tabchararab.tga"
left 0
top 0
right 253
bottom 37

now go to python and select it with the if statement
 

 

fix 

can you help me fix flag?

not work arab 

but en work good

 

Edited by ahmedmohamed
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148069
Share on other sites

1 hour ago, xTryhard said:

create this file as sub file :

 

title subImage
version 1.0
image "tabchararab.tga"
left 0
top 0
right 253
bottom 37

now go to python and select it with the if statement
 

https://metin2.download/picture/wqVQrT4IbYKGERh5TirBw2qwAPbLKYgs/.png

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148070
Share on other sites

  • Contributor

https://www.w3schools.com/python/python_intro.asp
Also that's a .sub file ffs.
Learn some basics then start using ur own magic.

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148071
Share on other sites

23 minutes ago, MrQuin said:

https://www.w3schools.com/python/python_intro.asp
Also that's a .sub file ffs.
Learn some basics then start using ur own magic.

Thank you, it is very useful, but it does not show an error during the problem
put tga
On track, but still the same problem

Link to comment
https://metin2.dev/topic/28837-bug-python-and-bug-flag/#findComment-148073
Share on other sites

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.