Jump to content

bug python and bug flag


Go to solution Solved by xTryhard,

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
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
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
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
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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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