Çözüldü Ekran Gösterilen Fiyatla Satış fiyatı uyumsuzluğu

Bu konu çözüme ulaştırılmıştır. Çözüm için konuya yazılan tüm yorumları okumayı unutmayın. Eğer konudaki yorumlar sorununuzu çözmediyse yeni bir konu açabilirsiniz.
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

me12dd

Üye
Mesaj
16
Beğeni
0
Puan
38
Arkadaşlar bilgisayarımda denemek için bi files indirdim . Oyun içindeki değerler felan item fiyatları değişimini WinScp deki item protodan yapıyorum.Gold barı satıcıya 100mden satıyor ancak ekranda farklı fiyatlar çıkıyor .

Oyun içerisinde hediye bar sistemi var sattığım değerle ekranda gösterilen değer tutmuyor yardımcı olabilecek varmı ;
ÜRÜN 100 GOLD BAR
RESİM 1 İTEM SAT SİL SİSTEMİNDE GÖSTERDİĞİ FİYAT :
RESİM 2 SATICIYA SATARKEN GÖSTERDİĞİ FİYAT :

Not : Locale kısmındaki item protoyla oynama yapamıyorum oyun yüklenme ekranında kilitlenip kalıyor .

Ad222sız.png
asdsasız.png
 
Çözüm
BUDA ROOTUN AÇIK HALİ KRAL


uiinventory.py de arat:
Python:
itemQuestionDialog2.SetText2('(Fiyat: %s)' % localeInfo.NumberToMoneyString(item.GetISellItemPrice() * player.GetItemCount(invenType, slotPos) * 97 / 100))

Değiştir:
Python:
itemQuestionDialog2.SetText2('(Fiyat: %s)' % localeInfo.NumberToMoneyString(item.sellItemPrice() * player.GetItemCount(invenType, slotPos) * 97 / 100))

Bir dene bakalım

Whistle

Ruhsuz Filozof
Mesaj
10.398
Beğeni
6.953
Puan
5.864
Server kısmında protolarda yaptığınız değişiklikleri locale'ye de yapmanız gerekiyor. Aksi halde veriler uyumsuz olur.
Bu sorun bu yüzden mi yoksa sistemlerden mi kaynaklı emin değilim. İki sistemin kodlarını inceleyerek fiyatları nasıl aldığına bakabilirsiniz.
 

me12dd

Üye
Mesaj
16
Beğeni
0
Puan
38
Server kısmında protolarda yaptığınız değişiklikleri locale'ye de yapmanız gerekiyor. Aksi halde veriler uyumsuz olur.
Bu sorun bu yüzden mi yoksa sistemlerden mi kaynaklı emin değilim. İki sistemin kodlarını inceleyerek fiyatları nasıl aldığına bakabilirsiniz.
zaten uyumlu alış satışlar olduğu gibi /usr/main/srv1/share/conf içerisinden alıp dumplayarak attım. localeye atınca oyun komple kapanıyor
 

Dosya Eklentileri

  • asdasız.png
    asdasız.png
    88,7 KB · Gösterim: 21

me12dd

Üye
Mesaj
16
Beğeni
0
Puan
38
BUDA SYSER :

Kod:
0919 14:13:04091 :: CPythonItem::LoadItemTable: invalid item_proto[locale/tr/item_proto] STRIDE[236] != sizeof(SItemTable)
0919 14:13:04092 :: LoadLocaleData - LoadItemProto(locale/tr/item_proto) Error
0919 14:13:07167 :: Unknown Server Command xmas_boom 2 | xmas_boom
0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=42, itemIndex=50826) - Failed to item data

0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=41, itemIndex=50825) - Failed to item data

0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=40, itemIndex=50824) - Failed to item data

0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=37, itemIndex=50822) - Failed to item data

0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=36, itemIndex=50821) - Failed to item data

0919 14:13:07167 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=35, itemIndex=50823) - Failed to item data

0919 14:13:07416 :: CProperty::ReadFromMemory: File format error after FourCC: property/n/obj/snow.m/ice_01.prd

0919 14:13:12790 :: Traceback (most recent call last):

0919 14:13:12790 :: File "networkModule.py", line 239, in SetGamePhase

0919 14:13:12791 :: File "game.py", line 282, in __init__

0919 14:13:12791 :: File "interfaceModule.py", line 647, in MakeInterface

0919 14:13:12791 :: File "interfaceModule.py", line 388, in __MakeTaskBar

0919 14:13:12791 :: File "uiTaskBar.py", line 545, in LoadWindow

0919 14:13:12791 :: File "uiTaskBar.py", line 753, in RefreshQuickSlot

0919 14:13:12792 :: RuntimeError
0919 14:13:12792 :: :
0919 14:13:12792 :: skill.GetSkillType - Failed to find skill by 6
0919 14:13:12792 ::

0919 14:13:14673 :: Traceback (most recent call last):

0919 14:13:14673 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14673 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14673 :: AttributeError
0919 14:13:14673 :: :
0919 14:13:14673 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14673 ::

0919 14:13:14673 :: Traceback (most recent call last):

0919 14:13:14673 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14673 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14674 :: AttributeError
0919 14:13:14674 :: :
0919 14:13:14674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14674 ::

0919 14:13:14674 :: Traceback (most recent call last):

0919 14:13:14674 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14674 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14674 :: AttributeError
0919 14:13:14674 :: :
0919 14:13:14674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14674 ::

0919 14:13:14674 :: Traceback (most recent call last):

0919 14:13:14674 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14674 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14674 :: AttributeError
0919 14:13:14674 :: :
0919 14:13:14674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14674 ::

0919 14:13:14675 :: Traceback (most recent call last):

0919 14:13:14675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14675 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14675 :: AttributeError
0919 14:13:14675 :: :
0919 14:13:14675 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14675 ::

0919 14:13:14675 :: Traceback (most recent call last):

0919 14:13:14675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14675 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14675 :: AttributeError
0919 14:13:14675 :: :
0919 14:13:14675 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14675 ::

0919 14:13:14675 :: Traceback (most recent call last):

0919 14:13:14675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14676 :: AttributeError
0919 14:13:14676 :: :
0919 14:13:14676 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14676 ::

0919 14:13:14676 :: Traceback (most recent call last):

0919 14:13:14676 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14676 :: AttributeError
0919 14:13:14676 :: :
0919 14:13:14676 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14676 ::

0919 14:13:14676 :: Traceback (most recent call last):

0919 14:13:14676 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14677 :: AttributeError
0919 14:13:14677 :: :
0919 14:13:14677 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14677 ::

0919 14:13:14677 :: Traceback (most recent call last):

0919 14:13:14677 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14677 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14677 :: AttributeError
0919 14:13:14677 :: :
0919 14:13:14677 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14677 ::

0919 14:13:14677 :: Traceback (most recent call last):

0919 14:13:14677 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14677 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14678 :: AttributeError
0919 14:13:14678 :: :
0919 14:13:14678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14678 ::

0919 14:13:14678 :: Traceback (most recent call last):

0919 14:13:14678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14678 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14678 :: AttributeError
0919 14:13:14678 :: :
0919 14:13:14678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14678 ::

0919 14:13:14678 :: Traceback (most recent call last):

0919 14:13:14678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14678 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14678 :: AttributeError
0919 14:13:14678 :: :
0919 14:13:14678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14678 ::

0919 14:13:14678 :: Traceback (most recent call last):

0919 14:13:14678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14679 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14679 :: AttributeError
0919 14:13:14679 :: :
0919 14:13:14679 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14679 ::

0919 14:13:14679 :: Traceback (most recent call last):

0919 14:13:14679 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14679 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14679 :: AttributeError
0919 14:13:14679 :: :
0919 14:13:14679 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14679 ::

0919 14:13:14679 :: Traceback (most recent call last):

0919 14:13:14679 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:14679 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:14680 :: AttributeError
0919 14:13:14680 :: :
0919 14:13:14680 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:14680 ::

0919 14:13:19672 :: Traceback (most recent call last):

0919 14:13:19672 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19672 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19672 :: AttributeError
0919 14:13:19672 :: :
0919 14:13:19672 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19672 ::

0919 14:13:19672 :: Traceback (most recent call last):

0919 14:13:19672 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19672 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19673 :: AttributeError
0919 14:13:19673 :: :
0919 14:13:19673 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19673 ::

0919 14:13:19673 :: Traceback (most recent call last):

0919 14:13:19673 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19673 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19673 :: AttributeError
0919 14:13:19673 :: :
0919 14:13:19673 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19673 ::

0919 14:13:19673 :: Traceback (most recent call last):

0919 14:13:19673 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19673 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19674 :: AttributeError
0919 14:13:19674 :: :
0919 14:13:19674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19674 ::

0919 14:13:19674 :: Traceback (most recent call last):

0919 14:13:19674 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19674 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19674 :: AttributeError
0919 14:13:19674 :: :
0919 14:13:19674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19674 ::

0919 14:13:19674 :: Traceback (most recent call last):

0919 14:13:19674 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19674 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19674 :: AttributeError
0919 14:13:19674 :: :
0919 14:13:19674 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19674 ::

0919 14:13:19674 :: Traceback (most recent call last):

0919 14:13:19675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19675 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19675 :: AttributeError
0919 14:13:19675 :: :
0919 14:13:19675 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19675 ::

0919 14:13:19675 :: Traceback (most recent call last):

0919 14:13:19675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19675 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19675 :: AttributeError
0919 14:13:19675 :: :
0919 14:13:19675 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19675 ::

0919 14:13:19675 :: Traceback (most recent call last):

0919 14:13:19675 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19676 :: AttributeError
0919 14:13:19676 :: :
0919 14:13:19676 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19676 ::

0919 14:13:19676 :: Traceback (most recent call last):

0919 14:13:19676 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19676 :: AttributeError
0919 14:13:19676 :: :
0919 14:13:19676 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19676 ::

0919 14:13:19676 :: Traceback (most recent call last):

0919 14:13:19676 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19676 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19677 :: AttributeError
0919 14:13:19677 :: :
0919 14:13:19677 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19677 ::

0919 14:13:19677 :: Traceback (most recent call last):

0919 14:13:19677 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19677 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19677 :: AttributeError
0919 14:13:19677 :: :
0919 14:13:19677 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19677 ::

0919 14:13:19677 :: Traceback (most recent call last):

0919 14:13:19677 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19677 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19678 :: AttributeError
0919 14:13:19678 :: :
0919 14:13:19678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19678 ::

0919 14:13:19678 :: Traceback (most recent call last):

0919 14:13:19678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19678 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19678 :: AttributeError
0919 14:13:19678 :: :
0919 14:13:19678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19678 ::

0919 14:13:19678 :: Traceback (most recent call last):

0919 14:13:19678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19678 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19678 :: AttributeError
0919 14:13:19678 :: :
0919 14:13:19678 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19678 ::

0919 14:13:19678 :: Traceback (most recent call last):

0919 14:13:19678 :: File "game.py", line 3640, in OnRecvEventInformation

0919 14:13:19679 :: File "interfaceModule.py", line 2601, in RefreshEventWindowDialog

0919 14:13:19679 :: AttributeError
0919 14:13:19679 :: :
0919 14:13:19679 :: 'Interface' object has no attribute 'wndEvent'
0919 14:13:19679 ::
 
En son bir moderatör tarafından düzenlenmiş:

burakhangunduz

Forgivén
Mesaj
338
Beğeni
355
Puan
819
Konuyu yeni gördüm çözümü anlatıyorum.

İtem sat sil problemini bu şekilde çözüceksin.

PhytonPlayerModule.cpp açılır ve kod bloğu aratılır.

C++:
PyObject * playerGetISellItemPrice(PyObject * poSelf, PyObject * poArgs)

içinde bulunur ve kaldırılır isterseniz yorum satırı haline getirin.

C++:
iPrice /= 5;

Npcye satarken çözüm ise şu şekilde.

uiinventory.py açılır ve aratılır.

Python:
            if item.Is1GoldItem():
                itemPrice = itemCount / itemPrice / 5
            else:
                itemPrice = itemPrice * itemCount / 5

ve kaldırılır.
 

me12dd

Üye
Mesaj
16
Beğeni
0
Puan
38
Konuyu yeni gördüm çözümü anlatıyorum.

İtem sat sil problemini bu şekilde çözüceksin.

PhytonPlayerModule.cpp açılır ve kod bloğu aratılır.

C++:
PyObject * playerGetISellItemPrice(PyObject * poSelf, PyObject * poArgs)

içinde bulunur ve kaldırılır isterseniz yorum satırı haline getirin.

C++:
iPrice /= 5;

Npcye satarken çözüm ise şu şekilde.

uiinventory.py açılır ve aratılır.

Python:
            if item.Is1GoldItem():
                itemPrice = itemCount / itemPrice / 5
            else:
                itemPrice = itemPrice * itemCount / 5

ve kaldırılır.
zaten onları yaptım kral bu item sat silin kodlarını bi yere saklamış bunlar anlam veremedim bir türlü
 

Dosya Eklentileri

  • PythonPlayerModule.7z
    13,4 KB · Gösterim: 1

me12dd

Üye
Mesaj
16
Beğeni
0
Puan
38
teşekkürler kral çözüm bilen varsa yardımcı olursa sevinirim item sat silde sorun var tek şu anlık %3 lük bi kesintiyle ekranda gösteriyor oyunda sattığında o vergiyi almıyor yani sadece görünmede sıkıntı var
 

Reached

Moderator
Mesaj
679
Beğeni
524
Puan
829
Hazır files kullanmanın sorunlarından bir tanesi. Kendiniz eklemediğiniz için ne nerde bilmiyorsunuz. Kim bilir kaç tane daha hatayla karşılaşıcaksınız. Bununla vakit öldüreceğinize hem kendi filesınızı geliştirin hem de kendinizi, iyi forumlar :)
 
Durum
İçerik kilitlendiği için mesaj gönderimine kapatıldı.

Üst