Jump to content
  • 0

global name 'unsigned64' is not defined


Traceur3RUN

Question

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

12 answers to this question

Recommended Posts

  • 0

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
  • 0

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?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 2

      [Python] Code Translator 2 to 3

    2. 0

      bug gaya

    3. 5

      Fix Core Crash (unused serverside packet)

    4. 45

      Chest Drop View

    5. 0

      How to add Python 3.9 script?

    6. 15

      Metin2 Download Center - Specifications & Documentation

    7. 5

      Fix Core Crash (unused serverside packet)

    8. 45

      Chest Drop View

    9. 5

      Fix Core Crash (unused serverside packet)

  • 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.