Immer noch akut? Dann würde ich ein How to dazu machen morgen
yess, immernoch akut leider
Immer noch akut? Dann würde ich ein How to dazu machen morgen
yess, immernoch akut leider
wenn ich die ITEM_APPLY_MAX_NUM um eins erhöhe bekomm ich die ganzen syserrs im client
0904 02:05:43450 :: Traceback (most recent call last):
0904 02:05:43450 :: File "game.py", line 644, in RefreshStatus
0904 02:05:43450 :: File "game.py", line 638, in CheckGameButton
0904 02:05:43450 :: File "interfaceModule.py", line 1265, in CheckGameButton
0904 02:05:43450 :: AttributeError
0904 02:05:43450 :: :
0904 02:05:43450 :: 'Interface' object has no attribute 'wndGameButton'
0904 02:05:43450 ::
0904 02:05:44120 ::
game.py(line:215) Open
game.py(line:632) StartGame
game.py(line:780) RefreshCharacter
interfaceModule.py(line:712) RefreshCharacter
uiCharacter.py(line:1185) RefreshCharacter
uiCharacter.py(line:1249) __SelectSkillGroup
uiCharacter.py(line:1235) __SetSkillSlotData
uiCharacter.py(line:894) RefreshSkill
uiCharacter.py(line:863) __RefreshSkillPage
GameWindow.Open - <type 'exceptions.RuntimeError'>:skill.GetSkillType - Failed to find skill by 1
0904 02:05:44120 :: ============================================================================================================
0904 02:05:44120 :: Abort!!!!
ProtoReader.cpp: In function 'bool Set_Proto_Item_Table(TItemTable*, cCsvTable&, std::map<int, const char*>&)':
ProtoReader.cpp:829:9: error: redeclaration of 'int dataArray [33]'
829 | int dataArray[33];
| ^~~~~~~~~
ProtoReader.cpp:683:6: note: 'int dataArray [33]' previously declared here
683 | int dataArray[33];
| ^~~~~~~~~
ProtoReader.cpp:837:9: error: 'else' without a previous 'if'
837 | else {
| ^~~~
At global scope:
cc1plus: note: unrecognized command-line option '-Wno-deprecated-enum-enum-conversion' may have been intended to silence earlier diagnostics
Alles anzeigenServer:
item_lenght
ITEM_APPLY_MAX_NUM
ClientMangerBoot.cpp
bool CClientManager::MirrorItemTableIntoDB()
bool CClientManager::InitializeItemTableSQL()
ProtoReader.cpp hier ist ein Beipsiel für applytype3 also standart Bonus (4)
Alles anzeigenCode
- bool Set_Proto_Item_Table(TItemTable *itemTable, cCsvTable &csvTable,std::map<int,const char*> &nameMap)
- #ifdef NEW_STANDART_BONUS
- int dataArray[35];
- #else
- int dataArray[33];
- #endif
- #ifdef NEW_STANDART_BONUS
- else if (i == 24) {
- dataArray[i] = get_Item_ApplyType_Value(csvTable.AsStringByIndex(col));
- validCheck = dataArray[i];
- }
- #endif
- else {
- str_to_number(dataArray[i], csvTable.AsStringByIndex(col));
- }
- #endif
- #ifdef NEW_STANDART_BONUS
- itemTable->alValues[i] = dataArray[26+i];
- #else
- itemTable->alValues[i] = dataArray[24+i];
- #endif
Client:
ItemData.h
ITEM_APPLY_MAX_NUM
Sollte eig alles sonst selbstverständlich sein
Steht im titel
Wie füge ich mehr applytypes hinzu, habe es in der db und im dump2mysql drinnen. Wo kann ich im source applytype, applyvalue 3 , 4 ,5 ,6 etc. hinzufügen.
ne, wie mache ich des
Servus ich habe nach dem guide hier auf dem forum ein neues attribute eingefügt und hänge beim login im client bei dem error:
networkModule.SetSelectCharacterPhase - <type 'exceptions.AttributeError'>:'module' object has no attribute 'APPLY_ATTBONUS_METINS'
Link down reup?
Alles anzeigenCode
- __________
- ClientSrc>GameLib>ItemData.h
- // Search: enum EApplyTypes
- // Add to Enum:
- APPLY_ATTBONUS_NEWATTRTYPE,
- __________
- ClientSrc>UserInterface>PythonPlayerModule.cpp
- // Searcharch:
- PyModule_AddIntConstant(poModule, "APPLY_ANTI_PENETRATE_PCT", CItemData::APPLY_ANTI_PENETRATE_PCT );
- // Add:
- PyModule_AddIntConstant(poModule, "APPLY_ATTBONUS_NEWATTRTYPE", CItemData::APPLY_ATTBONUS_NEWATTRTYPE);
- __________
- ClientSrc>UserInterface>Packet.h
- // Search: enum EPointTypes
- // Add to Enum:
- POINT_ATTBONUS_NEWATTRTYPE,
- __________
- GameSrc>common>length.h
- // Search: enum ERaceFlags
- // Add:
- RACE_FLAG_ATT_NEWATTRTYPE = (1 << /*Last number +1*/)
- // Search: enum EApplyTypes
- // Add to Enum:
- APPLY_ATTBONUS_NEWATTRTYPE,
- __________
- GameSrc>game>char.h
- // Search: enum EPointTypes
- // Add to Enum:
- POINT_ATTBONUS_NEWATTRTYPE,
- __________
- GameSrc>game>char.cpp
- // Search: case POINT_RESIST_SHAMAN:
- // Add:
- case POINT_ATTBONUS_NEWATTRTYPE:
- // Search: case APPLY_NORMAL_HIT_DAMAGE_BONUS:
- // Add:
- case APPLY_ATTBONUS_NEWATTRTYPE:
- __________
- GameSrc>game>cmd_general.cpp
- // Search:
- static const char* [...]
- switch (apply_number)
- {
- // ICINDE BUL
- case POINT_RESIST_SHAMAN: return LC_TEXT("¹«´ç°ø°Ý¿¡ %d%% ÀúÇ×");
- // Add:
- case POINT_ATTBONUS_NEWATTRTYPE: return LC_TEXT("POINT_ATTBONUS_NEWATTRTYPE: %d%%");
- __________
- GameSrc>game>cmd_gm.cpp
- // Search: tch->GetPoint(POINT_ATTBONUS_SHAMAN));
- // Add in do_state command:
- ch->ChatPacket(CHAT_TYPE_INFO, " NEWATTRTYPE:%3d%%",
- tch->GetPoint(POINT_ATTBONUS_NEWATTRTYPE));
- __________
- GameSrc>game>constants.cpp
- // Search: const TApplyInfo aApplyInfo[MAX_APPLY_NUM] =
- // Add in function:
- { POINT_ATTBONUS_NEWATTRTYPE, }, // APPLY_ATTBONUS_NEWATTRTYPE,
- // Search: TValueName c_aApplyTypeNames[] =
- // Search in this: { NULL, 0 }
- // Add above:
- { "ATT_NEWATTRTYPE", APPLY_ATTBONUS_NEWATTRTYPE },
- __________
- GameSrc>game>battle.cpp
- pkVictim (It meanings of defendor)
- pkAttacker is attacker
- if we are adding Defence attr type from mobs we will add this func.
- if (pkAttacker->IsNPC() && pkVictim->IsPC())
- or we are adding attack attr type to mobs we will add this func.
- if (pkAttacker->IsPC() && pkVictim->IsNPC())
- Logic is this
- //Search: iAtk+= (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_ANIMAL)) / 100;
- // Add:
- else if (pkVictim->IsRaceFlag(RACE_FLAG_ATT_NEWATTRTYPE))
- iAtk += (iAtk * pkAttacker->GetPoint(POINT_ATTBONUS_NEWATTRTYPE)) / 100;
- __________
- GameSrc>db>protoreader.cpp
- // Search: string arApplyType[]
- // Add to the end:
- "APPLY_ATTBONUS_NEWATTRTYPE",
- // Search: string arRaceFlag[]
- // Add to the end:
- "ATT_NEWATTRTYPE"
- __________
- Tools>DumpProtoSource>ItemCSVReader.cpp
- // Search: string arApplyType[]
- // Add to the end:
- "APPLY_ATTBONUS_NEWATTRTYPE",
- // Search: string arRaceFlag[]
- // Add to the end:
- "ATT_NEWATTRTYPE"
- __________
- Client>root>uitooltip.py
- // Search: item.APPLY_ATTBONUS_DEVIL : localeInfo.TOOLTIP_APPLY_ATTBONUS_DEVIL,
- // Add:
- item.APPLY_ATTBONUS_NEWATTRTYPE : localeInfo.TOOLTIP_APPLY_ATTBONUS_NEWATTRTYPE,
- __________
- Client>locale>xx>locale_game.txt
- // Add:
- TOOLTIP_APPLY_ATTBONUS_NEWATTRTYPE Strong against to attr type you want xd +%d%% SA
und um ihn dann auch richtig zu nutzen, muss er auch in MySQL eingetragen werden.
Wie meinst du das ? Wie bzw. Was muss ich in MySQL eintragen