Jump to content

global name 'unsigned64' is not defined


Recommended Posts

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

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

after crossing int (2147483647) long (2147483647) and see experience unsigned long long Screen_Shot_02_10_15_at_11_11_AM.jpg
after level 99 but i have work experience (2050000000)

Screen_Shot_02_10_15_at_11_35_AM.jpg
now need level 103 to level experience (2280000000) and see unsigned long long
Screen_Shot_02_10_15_at_11_19_AM.jpg
when i set experience
Screen_Shot_02_10_15_at_11_26_AM.jpg

 

anyone know how to fix?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 13

      Metin2 Closed Beta Content (2003-2004)

    2. 25

      [SRC] Metin2 on LINUX - The Old Metin2 Project

    3. 2

      United/Club/Midgard serverfiles?

    4. 13

      Metin2 Closed Beta Content (2003-2004)

    5. 13

      Metin2 Closed Beta Content (2003-2004)

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.