Traceur3RUN 74 Posted February 9, 2015 Share Posted February 9, 2015 hi dev i try change unsigned32 to unsigned64 on client and binnary i change.i work it 2days but i don't know what i doing bad binnary: PyObject * playerGetEXP(PyObject* poSelf, PyObject* poArgs) { long long dwEXP = CPythonPlayer::Instance().GetStatus(POINT_EXP); return Py_BuildValue("K", dwEXP); } client: taskbar.py ## Gauge def RefreshStatus(self): curHP = player.GetStatus(player.HP) maxHP = player.GetStatus(player.MAX_HP) curSP = player.GetStatus(player.SP) maxSP = player.GetStatus(player.MAX_SP) curEXP = unsigned64(player.GetStatus(player.EXP)) nextEXP = unsigned64(player.GetStatus(player.NEXT_EXP)) recoveryHP = player.GetStatus(player.HP_RECOVERY) recoverySP = player.GetStatus(player.SP_RECOVERY) self.RefreshStamina() self.SetHP(curHP, recoveryHP, maxHP) self.SetSP(curSP, recoverySP, maxSP) self.SetExperience(curEXP, nextEXP) uicharacter.py try: self.GetChild("Level_Value").SetText(str(player.GetStatus(player.LEVEL))) self.GetChild("Exp_Value").SetText(str(unsigned64(player.GetEXP()))) self.GetChild("RestExp_Value").SetText(str(unsigned64(player.GetStatus(player.NEXT_EXP)) - unsigned64(player.GetStatus(player.EXP)))) 0209 19:07:22967 :: NameError 0209 19:07:22968 :: global name 'unsigned64' is not defined 0209 19:33:22827 :: global name 'unsigned64_t' is not defined 0209 19:35:23706 :: global name 'uint64' is not defined Link to comment Share on other sites More sharing options...
Morphe 158 Posted February 9, 2015 Share Posted February 9, 2015 try to make a new def def unsigned64(n): return n & 0x1FFFFFFF 1 Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 9, 2015 Author Share Posted February 9, 2015 try to make a new def def unsigned64(n): return n & 0x1FFFFFFF ok work but why i can't see experience 8.4kkk? Link to comment Share on other sites More sharing options...
Morphe 158 Posted February 9, 2015 Share Posted February 9, 2015 try with return n & 0xFFFFFFFFL Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 9, 2015 Author Share Posted February 9, 2015 try with return n & 0xFFFFFFFFL on game have DWORD q = DWORD(next_exp / 4.0f); need to change? to long long q = long long(next_exp / 4.0f); Link to comment Share on other sites More sharing options...
Morphe 158 Posted February 9, 2015 Share Posted February 9, 2015 long long q = (long long)(next_exp / 4.0f); long long next_exp = GetNextExp(); 1 Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 9, 2015 Author Share Posted February 9, 2015 long long q = (long long)(next_exp / 4.0f); long long next_exp = GetNextExp(); on questlua.cpp too need change? i see [int = max set experience ] int pc_get_next_exp(lua_State* L) { lua_pushnumber(L, CQuestManager::instance().GetCurrentCharacterPtr()->GetNextExp()); return 1; } int pc_get_exp(lua_State* L) { lua_pushnumber(L, CQuestManager::instance().GetCurrentCharacterPtr()->GetExp()); return 1; } on binnary is standard use "l" so? exp table work to lvl 86lv 87-120 i see exp loow lol/? here my constants.cpp const long long exp_table_common[PLAYER_EXP_TABLE_MAX + 1] = { 0, // 0 300, 800, 1500, 2500, 4300, 7200, 11000, 17000, 24000, 33000, // 10 43000, 58000, 76000, 100000, 130000, 169000, 219000, 283000, 365000, 472000, // 20 610000, 705000, 813000, 937000, 1077000, 1237000, 1418000, 1624000, 1857000, 2122000, // 30 2421000, 2761000, 3145000, 3580000, 4073000, 4632000, 5194000, 5717000, 6264000, 6837000, // 40 7600000, 8274000, 8990000, 9753000, 10560000, 11410000, 12320000, 13270000, 14280000, 15340000, // 50 16870000, 18960000, 19980000, 21420000, 22930000, 24530000, 26200000, 27960000, 29800000, 32780000, // 60 36060000, 39670000, 43640000, 48000000, 52800000, 58080000, 63890000, 70280000, 77310000, 85040000, // 70 93540000, 102900000, 113200000, 124500000, 137000000, 150700000, 165700000, 236990000, 260650000, 286780000, // 80 315380000, 346970000, 381680000, 419770000, 461760000, 508040000, 558740000, 614640000, 676130000, 743730000, // 90 1041222000, 1145344200, 1259878620, 1385866482, 1524453130, 1676898443, 1844588288, 2029047116, 2050000000, // 99레벨 일 때 필요경험치 (100레벨이 되기 위한) 2150000000LLU, // 100 2210000000LLU, 2250000000LLU, 2280000000LLU, 2310000000LLU, 2330000000LLU, // 105 2350000000LLU, 2370000000LLU, 2390000000LLU, 2400000000LLU, 2410000000LLU, // 110 2420000000LLU, 2430000000LLU, 2440000000LLU, 2450000000LLU, 2460000000LLU, // 115 2470000000LLU, 2480000000LLU, 2490000000LLU, 8490000000LLU, 52000000000LLU, // 120 }; char.cpp long long CHARACTER::GetNextExp() const { if (PLAYER_EXP_TABLE_MAX < GetLevel()) return 82000000000ULL; else return exp_table[GetLevel()]; Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 10, 2015 Author Share Posted February 10, 2015 (edited) after crossing int (2147483647) long (2147483647) and see experience unsigned long long after level 99 but i have work experience (2050000000) now need level 103 to level experience (2280000000) and see unsigned long long when i set experience anyone know how to fix? Edited September 11, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 11, 2015 Author Share Posted February 11, 2015 ref i try with binnary DWORDLONG and pyhon ULONGLONG but too dont work the same problem Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 11, 2015 Author Share Posted February 11, 2015 up Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 12, 2015 Author Share Posted February 12, 2015 up Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 13, 2015 Author Share Posted February 13, 2015 up i can maximum use 0xffffffff (8xf) but i need more like (16xf) anyone idea? Link to comment Share on other sites More sharing options...
Traceur3RUN 74 Posted February 14, 2015 Author Share Posted February 14, 2015 up Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now