Max Payne

Max Payne

Any way to force a level up with the Kung Fu mod?
The mod's cool as ♥♥♥♥ but I have no idea how to actually play around with it like you do with the developer console. Is there any way to forcibly level Max up? It's a pain in the ass getting put back to level 1 every time something important happens. Not to mention that the level system really doesn't add anything in the first place.
Last edited by Hackie P4ckie; Mar 3, 2018 @ 9:24am
Originally posted by TheWall:
Hi! So, I know the thread is old but I'll post this anyway in the attempt to help a fellow Max Payne and Kung Fu Mod lover and also any other people coming here in the future.

I unpacked the mod and in data/console/console.txt I noticed the following lines:

GetLevel4 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );player->P_CreateprojectileToBone( level2_printer, 1, pelvis );player->P_CreateprojectileToBone( level3_printer, 1, pelvis );"; GetLevel3 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );player->P_CreateprojectileToBone( level2_printer, 1, pelvis );"; GetLevel2 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );"; GetKungfu = "player->c_pickupweapon( kungfu ); player->c_setinfiniteammo( kungfu, true );";

We can use these commands to skip Kung Fu levels!

Add
-developer
to the launch options. Launch the game. When in game, press F12 to open the console and type
GetLevel4
. You are going to immediately get Kung Fu Level 4 (same for level 3 and 2).

Have fun and let's keep Max Payne alive!
< >
Showing 1-14 of 14 comments
darkje Mar 3, 2018 @ 3:00pm 
I suppose the same way you would in the game itself:

in console type:
maxpayne_gamemode->gm_init(levelname);

the problem is, I don't know the level names, but you can probably find them if you unpack the mod (with ras.maker) and see if you can find \data\database\levels\levels.txt

usually level names are like 'part1_level3b', and i guess kungfu mod will use names like that too.

edit: if you find them, please post the list of levelnames :D
Last edited by darkje; Mar 3, 2018 @ 3:05pm
Hackie P4ckie Mar 3, 2018 @ 3:33pm 
Originally posted by darkje:
I suppose the same way you would in the game itself:

in console type:
maxpayne_gamemode->gm_init(levelname);

the problem is, I don't know the level names, but you can probably find them if you unpack the mod (with ras.maker) and see if you can find \data\database\levels\levels.txt

usually level names are like 'part1_level3b', and i guess kungfu mod will use names like that too.

edit: if you find them, please post the list of levelnames :D

I'm talking about the levelling system from the mod, where you level up as you perform more Kung Fu moves. After you punch enough goons in certain ways the game flashes up a menu telling you what moves you've unlocked. I'm trying to find out how to just start off at the highest level, if it's even possible to do it.
darkje Mar 3, 2018 @ 11:50pm 
Ah, my bad, i thought you ment loading levels, no then i don't have a clue. Still it is possible to unpack the mod and start digging, but no idea what to look for.
Hackie P4ckie Mar 4, 2018 @ 5:34am 
Originally posted by darkje:
Ah, my bad, i thought you ment loading levels, no then i don't have a clue. Still it is possible to unpack the mod and start digging, but no idea what to look for.

Yeah, I guess unpacking it will probably be the right way to go, although I've got no idea how to. Guess I'll just unpack and start digging like you said. Might find something interesting
Hackie P4ckie Mar 4, 2018 @ 6:40am 
Right, I dug a bit and found the files that seem to handle the level up system. Still not sure where the mod actually says "you hit enough people, level up", but apparently all of the different skill levels are stored as weapons.

Only problem is that every time I try to edit the files I get hit with a 'X_SharedDB: Weapons 'kungfu' and 'kungfu' had same ID'

In the weapons/level1.txt file there's a comment at the top saying "// Experience points for Level 1 kung fu", so it makes sense that this'd be related to the level system. Down below are the lines 'SlotIndex = SLOTID_LEVEL1;
InventoryID = INVENTORYID_LEVEL1;
WeaponID = WEAPONID_LEVEL1;
'

I tried changing LEVEL1 to LEVEL3 in each of these but it throws that error every time. I made sure none of the other files had duplicate IDs but it still throws. I even copied all of the original data before I changed it and tried compressing that again, but it still throws, so I guess I'm just not using RASMaker properly.

Will research more
darkje Mar 4, 2018 @ 1:47pm 
maybe you have to move the original mod away, when trying to run the unpacked / edited one. I'm guessing it might unpack the mod runtime if you don't and conflict on that file. I'm gonne give it a try tomorrow and see if i get bugged out too :)
Hackie P4ckie Mar 5, 2018 @ 12:39pm 
Originally posted by darkje:
maybe you have to move the original mod away, when trying to run the unpacked / edited one. I'm guessing it might unpack the mod runtime if you don't and conflict on that file. I'm gonne give it a try tomorrow and see if i get bugged out too :)

♥♥♥♥♥♥♥♥♥, you're 100% right. Removing the data folder made the game boot right up.

Some of the changes I've made were reflected in the game. I wasn't at level 3 instantly, like I'm trying to do, but whatever changes I made, they definitely messed with the levelling system. I went and played the subway station normally and by the time I'd beaten enough goons to level up, I skipped straight to level 3. Usually you start at 1, so I skipped level 2.

Immediately after that, Max started lunging around the place, roundhouse kicking so fast that his legs weren't even touching the ground, while shouting 'HUP' every 0.1 seconds.

I guided beyblade Max towards another thug and as soon as I hit him I levelled right up to level four, for some reason.

Next, I tried backflipping off a wall and then Max decided not to stop backflipping. Ever. He backflipped out of the map and then the game shat itself.

So altogether, I think I'm changing the right stuff. I'll experiment for a while longer and try to find out what's caused Beyblade Max to appear
Last edited by Hackie P4ckie; Mar 5, 2018 @ 12:39pm
Hackie P4ckie Mar 5, 2018 @ 2:00pm 
It seems like no matter what I change I'm constantly stuck in a loop with the same symptoms. I've found that changing the weapon 'kungfu.txt' in the weapons folder a little bit lets you perform advanced moves from level 1.

Changing WeaponID from WEAPONID_KUNGFU to WEAPONID_LEVEL1 let me access level 1 moves, like the walljump move, but the second I use any of these moves, I get stuck in an infinite loop of the same move. Max keeps performing the move until he ends up in a place where he can't perform it anymore.

Also strangely enough I've managed to make the kung fu weapon invisible in the menu. For some reason, swapping to the invisible weapon and left clicking makes Max take a painkiller from nowhere.

very confused
darkje Mar 5, 2018 @ 3:21pm 
yeah i tried the same, to no avail... also tried accessing the mphq forums through waybackmachine, i can see the post about leveling but then it won't show the actual thread :(
Pangia May 12, 2018 @ 11:52am 
Originally posted by Grizzly:
♥♥♥♥♥♥♥♥♥, you're 100% right. Removing the data folder made the game boot right up.

Some of the changes I've made were reflected in the game. I wasn't at level 3 instantly, like I'm trying to do, but whatever changes I made, they definitely messed with the levelling system. I went and played the subway station normally and by the time I'd beaten enough goons to level up, I skipped straight to level 3. Usually you start at 1, so I skipped level 2.

Immediately after that, Max started lunging around the place, roundhouse kicking so fast that his legs weren't even touching the ground, while shouting 'HUP' every 0.1 seconds.

I guided beyblade Max towards another thug and as soon as I hit him I levelled right up to level four, for some reason.

Next, I tried backflipping off a wall and then Max decided not to stop backflipping. Ever. He backflipped out of the map and then the game shat itself.

So altogether, I think I'm changing the right stuff. I'll experiment for a while longer and try to find out what's caused Beyblade Max to appear
That's the best story I've ever read on those forums.
The author of this thread has indicated that this post answers the original topic.
TheWall May 16, 2021 @ 12:05pm 
Hi! So, I know the thread is old but I'll post this anyway in the attempt to help a fellow Max Payne and Kung Fu Mod lover and also any other people coming here in the future.

I unpacked the mod and in data/console/console.txt I noticed the following lines:

GetLevel4 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );player->P_CreateprojectileToBone( level2_printer, 1, pelvis );player->P_CreateprojectileToBone( level3_printer, 1, pelvis );"; GetLevel3 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );player->P_CreateprojectileToBone( level2_printer, 1, pelvis );"; GetLevel2 = "player->P_CreateprojectileToBone( level1_printer, 1, pelvis );"; GetKungfu = "player->c_pickupweapon( kungfu ); player->c_setinfiniteammo( kungfu, true );";

We can use these commands to skip Kung Fu levels!

Add
-developer
to the launch options. Launch the game. When in game, press F12 to open the console and type
GetLevel4
. You are going to immediately get Kung Fu Level 4 (same for level 3 and 2).

Have fun and let's keep Max Payne alive!
Hackie P4ckie May 16, 2021 @ 1:28pm 
Damn, I'd kinda stopped investigating this. I'm actually pretty surprised that it was as easy as that.

https://i.imgur.com/2spocgg.png

Your suggestion worked perfectly dude. Thanks for resolving a three year old query of mine.

editing to say that the mod doesn't unlock the previous level's abilities if you skip a level using the GetLevel command, so if you do GetLevel4 straight away you will only have the abilities you unlock at level 4 and none of the others. You have to do GetLevel1, 2, 3 and 4 sequentially to get all of the abilities.
Last edited by Hackie P4ckie; May 16, 2021 @ 2:55pm
TheWall May 16, 2021 @ 11:47pm 
You are welcome!

Anyway, when I use GetLevel4 I also get the previous level's abilities (wall jump and wall run). Weird that the behaviour is different for you. I was in chapter "In the Land of the Blind" when I used the code. Maybe it behaves differently on some chapters ?
darkje May 17, 2021 @ 2:25am 
@TheWall, thanks for posting this solution! I think more people will start playing this great mod now.
< >
Showing 1-14 of 14 comments
Per page: 1530 50

Date Posted: Mar 3, 2018 @ 9:24am
Posts: 14