Casro2 Poison Gauge Sistemi - Python

The system works, but when I enter the group, the game crashes. I have this error all the time:

uiParty.py(line:104) __LoadBoard
ui.py(line:2708) GetChild

PartyMemberInfoBoard.__LoadBoard.BindObject - <type 'exceptions.KeyError'>:'PoisonGauge'

1015 19:50:33360 :: ============================================================================================================
1015 19:50:33360 :: Abort!!!!

game.py
interfacemodule.py
uiparty.py
uiplayerguage.py
uitaskbar.py

uiscript/taskbar.py
Linkleri görebilmek için giriş yap veya kayıt ol.

locale/taskbar.py
Linkleri görebilmek için giriş yap veya kayıt ol.


Can anyone help me?
 
@Noriko
search the uiscriprt/taskbar.py or locale/xx/ui/taskbar.py;
Python:
Genişlet Daralt Kopyala
                        {
                            "name" : "HPGauge",
                            "type" : "ani_image",

                            "x" : 0,
                            "y" : 0,

                            "delay" : 6,

                            "images" :
                            (
                                "D:/Ymir Work/UI/Pattern/HPGauge/01.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/02.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/03.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/04.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/05.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/06.tga",
                                "D:/Ymir Work/UI/Pattern/HPGauge/07.tga",
                            ),
                        },

add bottom;
Python:
Genişlet Daralt Kopyala
                        {
                            "name" : "HPPoisonRecoveryGaugeBar",
                            "type" : "bar",

                            "x" : 0,
                            "y" : 0,
                            "width" : 95,
                            "height" : 13,
                            "color" : 0x55008000,
                        },
                        {
                            "name" : "HPPoisonGauge",
                            "type" : "ani_image",

                            "x" : 0,
                            "y" : 0,

                            "delay" : 6,

                            "images" :
                            (
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/01.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/02.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/03.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/04.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/05.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/06.tga",
                                "D:/Ymir Work/UI/Pattern/HPPoisonGauge/07.tga",
                            ),
                        },

Delete;
Python:
Genişlet Daralt Kopyala
window["children"][1]["children"][2]["children"] = window["children"][1]["children"][2]["children"] + (
                {
                    "name" : "HPPoisonRecoveryGaugeBar",
                    "type" : "bar",
                    "x" : 0,
                    "y" : 0,
                    "width" : 95,
                    "height" : 13,
                    "color" : 0x55008000,
                },
                {
                    "name" : "HPPoisonGauge",
                    "type" : "ani_image",
                    "x" : 0,
                    "y" : 0,
                    "delay" : 6,
                    "images" :
                    (
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/01.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/02.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/03.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/04.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/05.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/06.tga",
                        "D:/Ymir Work/UI/Pattern/HPPoisonGauge/07.tga",
                    ),
                },)
 
Thanks for the quick reply.
After the change, the same problem persists.
Can you give me your files to see how it is done at your place?
 
Son düzenleme:
anyone else have any idea where the problem might be?

uiParty.py(line:104) __LoadBoard
ui.py(line:2708) GetChild

PartyMemberInfoBoard.__LoadBoard.BindObject - <type 'exceptions.KeyError'>:'PoisonGauge'

1015 19:50:33360 :: ============================================================================================================
1015 19:50:33360 :: Abort!!!!
 
@Noriko
My files have special changes. I think I found the source of the error. Would you follow these instructions?

open uiscript/partymemberinfoboard.py and add bottom
Python:
Genişlet Daralt Kopyala
window["children"] = window["children"] + (
        {
            "name" : "PoisonGauge",
            "type" : "gauge",
            "style" : ("not_pick",),

            "x" : 22,
            "y" : 17,
            "width" : 84,
            "color" : "lime",
        },)
 
@Noriko
My files have special changes. I think I found the source of the error. Would you follow these instructions?

open uiscript/partymemberinfoboard.py and add bottom
Python:
Genişlet Daralt Kopyala
window["children"] = window["children"] + (
        {
            "name" : "PoisonGauge",
            "type" : "gauge",
            "style" : ("not_pick",),

            "x" : 22,
            "y" : 17,
            "width" : 84,
            "color" : "lime",
        },)

Thanks!
Now when you enter the group, the game does not turn off, but the effect can not be seen in the group.
rrKZn69.jpg
 
Invisible to other players. You can only see it from your own window. :)
To add this support you need to edit the source code.
 
Do you have a guide on how to do it?
I use this system on my own server. I will add if I make further improvements :confused:

PS: Thanks for all the help, I think you can update the github code with this new information (PartyMemberInfoBoard.__LoadBoard.BindObject - <type 'exceptions.KeyError'>:'PoisonGauge') ;)
When I first published the system, there was no group. I added it later. I forgot to add the uiscript/partymeminfoboard.py code.

I've added the missing code to the topic. I'm gonna update the git repository. Thank you. :)
 
I use this system on my own server. I will add if I make further improvements :confused:


When I first published the system, there was no group. I added it later. I forgot to add the uiscript/partymeminfoboard.py code.

I've added the missing code to the topic. I'm gonna update the git repository. Thank you. :)
Do you know how to add an effect on monsters as well?
 
Bu sistemin bosslar için olanı var mı? boss zehir yediğinde boss canıda yeşil olacak mesela
 
Bu sistemin bosslar için olanı var mı? boss zehir yediğinde boss canıda yeşil olacak mesela

Şuan için sadece oyuncu karakteri için geçerli. Düşmanlar için geçerli değil. Bunu soran baya bi kişi oldu. İleri de sistemi daha da geliştirebilirim. :)
 
Son düzenleme:
Geri
Üst