Yardım Hatayı çözemedim

  • Konuyu açan Konuyu açan karus2
  • Açılış Tarihi Açılış Tarihi
  • Yanıt Yanıt 21
  • Gösterim Gösterim 315
Konu sahibi bu konuda soru soruyor. Sorusu ile ilgili bilgisi olanların yanıtlamasını bekliyor.

karus2

Üye
Üye
Mesaj
33
Beğeni
6
Puan
446
Ticaret Puanı
0
Python:
Genişlet Daralt Kopyala
player.AutoHuntSetMaxHitCount(0)

if self.mapNameShower.IsShow():
self.mapNameShower.Update()

if self.isShowDebugInfo:
self.UpdateDebugInfo()

if app.AUTO_SHOUT:
if constInfo.auto_shout_status == 1 and len(constInfo.auto_shout_text) > 0:
if constInfo.CHAT_TELEPORT_NEW == 1:
self.shouttime = app.GetGlobalTimeStamp() + 15
constInfo.CHAT_TELEPORT_NEW = 0
return

if (app.GetGlobalTimeStamp() > self.shouttime):
if len(constInfo.auto_shout_text) > 1:
text = constInfo.auto_shout_text

if constInfo.CHAT_TELEPORT_NEW == 0:
net.SendChatPacket(text, chat.CHAT_TYPE_SHOUT)

self.shouttime = app.GetGlobalTimeStamp() + 7

if self.enableXMasBoom:
self.__XMasBoom_Update()


syserr:
Genişlet Daralt Kopyala
0606 21:22:13902 :: Unknown Server Command xmas_boom 2 | xmas_boom
0606 21:22:14642 :: Traceback (most recent call last):

0606 21:22:14642 :: File "game.py", line 1671, in OnUpdate

0606 21:22:14642 :: AttributeError
0606 21:22:14642 :: :
0606 21:22:14642 :: 'module' object has no attribute 'AutoHuntSetMaxHitCount'
0606 21:22:14642 ::

0606 21:22:15309 :: Traceback (most recent call last):

0606 21:22:15309 :: File "game.py", line 1671, in OnUpdate

0606 21:22:15309 :: AttributeError
0606 21:22:15309 :: :
0606 21:22:15309 :: 'module' object has no attribute 'AutoHuntSetMaxHitCount'
0606 21:22:15309 ::

0606 21:22:15334 :: Traceback (most recent call last):

0606 21:22:15335 :: File "game.py", line 1671, in OnUpdate

0606 21:22:15335 :: AttributeError
0606 21:22:15335 :: :
0606 21:22:15335 :: 'module' object has no attribute 'AutoHuntSetMaxHitCount'
0606 21:22:
 
En son bir moderatör tarafından düzenlenmiş:
Eksik olan tanımlı fonksiyon ne olabilir hocam onu çözemedim dediğinizi yarın bir kurcalıcam problem şu gm çarla serbest açınca client kapanıyor syser de bu
 
Eksik olan tanımlı fonksiyon ne olabilir hocam onu çözemedim dediğinizi yarın bir kurcalıcam problem şu gm çarla serbest açınca client kapanıyor syser de bu
AutoHuntSetMaxHitCount

bu pythonplayermodulede yok oraya ekleyince de muhtemelen pythonplayera da bir şeyler eklemen gerekebilir
 
Büyük ihtimalle tam sayı alan bir değişken yapacaksın fakat değer aralığı nedir bilemem.

PythonPlayer.cpp ::Clear içine bir değişken yap ve 0 ile başlat.

Örneğin

m_iAutoHintCount = 0;

Sonra h dosyasına gel ve

Birtane public ollarka

void AutoHuntSetMaxHintCount(const int iCount) { m_iAutoHintCount = iCount; }

Sonra protected olarak

int m_iAutoHintCount;

Sonra bu fonksiyona poArgs ile pythonplayermodule.cpp den değer atayacaksın. Şuan teldeyim ezbere bilmiyorum o kısmı. Başka bir fonksiyonu var mı mesela değeri alan veya başka nerelerde kullanılıyor bilmiyorum.
 
Büyük ihtimalle tam sayı alan bir değişken yapacaksın fakat değer aralığı nedir bilemem.

PythonPlayer.cpp ::Clear içine bir değişken yap ve 0 ile başlat.

Örneğin

m_iAutoHintCount = 0;

Sonra h dosyasına gel ve

Birtane public ollarka

void AutoHuntSetMaxHintCount(const int iCount) { m_iAutoHintCount = iCount; }

Sonra protected olarak

int m_iAutoHintCount;

Sonra bu fonksiyona poArgs ile pythonplayermodule.cpp den değer atayacaksın. Şuan teldeyim ezbere bilmiyorum o kısmı. Başka bir fonksiyonu var mı mesela değeri alan veya başka nerelerde kullanılıyor bilmiyorum.
void CPythonPlayer::ClearSkillDict()
{
// ClearSkillDict
m_skillSlotDict.clear();

// Game End - Player Data Reset
m_isOpenPrivateShop = false;
m_isObserverMode = false;

m_isConsumingStamina = FALSE;
m_fConsumeStaminaPerSec = 0.0f;
m_fCurrentStamina = 0.0f;

m_bMobileFlag = FALSE;

__ClearAutoAttackTargetActorID();
}

void CPythonPlayer::Clear()
{
memset(&m_playerStatus, 0, sizeof(m_playerStatus));
NEW_ClearSkillData(true);

m_bisProcessingEmotion = FALSE;

m_dwSendingTargetVID = 0;
m_fTargetUpdateTime = 0.0f;

// Test Code for Status Interface
m_stName = "";
m_dwMainCharacterIndex = 0;
m_dwRace = 0;
m_dwWeaponMinPower = 0;
m_dwWeaponMaxPower = 0;
m_dwWeaponMinMagicPower = 0;
m_dwWeaponMaxMagicPower = 0;
m_dwWeaponAddPower = 0;

/////
m_MovingCursorPosition = TPixelPosition(0, 0, 0);
m_fMovingCursorSettingTime = 0.0f;

m_eReservedMode = MODE_NONE;
m_fReservedDelayTime = 0.0f;
m_kPPosReserved = TPixelPosition(0, 0, 0);
m_dwVIDReserved = 0;
m_dwIIDReserved = 0;
m_dwSkillSlotIndexReserved = 0;
m_dwSkillRangeReserved = 0;

m_isUp = false;
m_isDown = false;
m_isLeft = false;
m_isRight = false;
m_isSmtMov = false;
m_isDirMov = false;
m_isDirKey = false;
m_isAtkKey = false;

m_isCmrRot = true;
m_fCmrRotSpd = 20.0f;

m_iComboOld = 0;

m_dwVIDPicked=0;
m_dwIIDPicked=0;

m_dwcurSkillSlotIndex = DWORD(-1);

m_dwTargetVID = 0;
m_dwTargetEndTime = 0;

m_PartyMemberMap.clear();

m_ChallengeInstanceSet.clear();
m_RevengeInstanceSet.clear();

#ifdef OTOMATIK_AV
memset(&m_playerStatus, 0, sizeof(m_playerStatus));
otoAvDurum = false;
otoAvSaldir = false;
otoAvBeceri = false;
otoAvIksir = false;
otoAvOdak = false;
/*Update*/
otoAvSaldiriTipi = false;
/*Update*/
zSonSn = 0;
kpSonMs = 0;
mpSonMs = 0;
ekSonMs = 0;
sonHedefBulMs = 0;
otoAvBaslangicKonumu = TPixelPosition(0, 0, 0);
otoAvKP = false;
otoAvMP = false;
affectKontrol = 0;
otoAvAffect = true;
m_dwMaxHitCount = 0;
m_dwHitCount = 0;
m_dwLastAutoTargetVID = 0;
#endif
bahsettiğiniz bu mu
 
Geri
Üst