Jun 19, 2016 at 2:20 AM
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
You don't need ADD ESP, 4. POP EAX will do just fine, plus it uses less space. It does run very slightly slower though, but that's not going to affect anything, since the game processes millions of lines of code every second anyway. You can also condense the NOPs into FNOPs since they do nothing anyway.Alright I have it! The exp capsule now gives the exp directly to the weapon, instead of spawning it. The flag id determines the amount of exp, like before.
Code:Have fun!00457A4B nop
00457A4E nop
00457A51 nop
00457A52 nop
00457A55 nop
00457A58 nop
00457A59 CALL 004196F0
00457A5E ADD ESP,4
I believe you can only give NPCs 10 digits of health. I've made an NPC with 1000000000 health before, --unless your weapons are doing fuck-tons of damage--nobody will ever kill an NPC with that much health.
Also if you make an NPC run an event on death, and that event is, say 0, it will just end the event and the NPC will never die. Although this may let people skip H/V Triggers if they have the Spur and they can get the game to constantly run an event other than the H/V Trigger's event whilst they walk trough it.
If you want the illusion that the player is making no headway turn off the "Show Damage #" flag. In BL it's actually the second "Interactable" flag.
Max HP = 2,147,483,647 (dec)you can always make an npc with like ~1000 health and set it to 1000 every frame
unless one of your weapons deals 1000 health in one blow you can never destroy it
7FFFFFFF (hex)
More than that and it will go into the negative (since the values are signed)
So it's larger than 1,000,000,000
But even if you've filled all weapon slots with bullets dealing the max of 127 damage/frame, you'd still only reach about 406,400 dps. That would take half an hour to kill an enemy with 1,000,000,000 HP, and over an hour to kill one with 2,147,483,647
Find some empty space or optimise the weapon slightly, then add in a CALL 0419890Pretty sure this has been asked before, but can I prevent a weapon from reaching level 3?(Other than not including experience in stages or requiring 9999 experience)
Easiest way to do it is to replace the
MOV ESP,EBP
POP EBP
RETN
with
CALL 419890
LEAVE
RETN
You'll have to use some of the INT3s after the command, don't use this method if there's no space.
MOV ESP,EBP
POP EBP
RETN
with
CALL 419890
LEAVE
RETN
You'll have to use some of the INT3s after the command, don't use this method if there's no space.
I got to 110. But I think I know why it broke the game. Cave Story is just very tricky.
![]()
It appears that more than 0x80 maps will write into the player's flags! Probably not the best idea.from what I remember, you could have something like over 180 maps with cave editor and like thousands with boosters lab (I remember noxid saying this somewhere, but I can't remember where).
I've created a working (hopefully) hack that allows you to have up to 256 maps in total:
0x0414B00
55 8B EC A1 F0 57 4A 00 0F BE 88 00 49 49 00 85
C9 75 04 33 C0 EB 05 B8 01 00 00 00 5D C3 CC CC
55 8B EC 68 00 01 00 00 6A 00 68 00 49 49 00 E8
FC C1 06 00 83 C4 0C 5D C3 CC CC CC CC CC CC CC
55 8B EC 8B 45 08 C6 80 00 49 49 00 01 5D C3
0x041D1EE
68 00 49 49 00
0x041D3D2
68 00 49 49 00
0x0494900
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
If there's anything wrong with this, tell me immediately. To add even more maps, just add more 0s behind the array of 0s above, two per map over 256
55 8B EC A1 F0 57 4A 00 0F BE 88 00 49 49 00 85
C9 75 04 33 C0 EB 05 B8 01 00 00 00 5D C3 CC CC
55 8B EC 68 00 01 00 00 6A 00 68 00 49 49 00 E8
FC C1 06 00 83 C4 0C 5D C3 CC CC CC CC CC CC CC
55 8B EC 8B 45 08 C6 80 00 49 49 00 01 5D C3
0x041D1EE
68 00 49 49 00
0x041D3D2
68 00 49 49 00
0x0494900
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
If there's anything wrong with this, tell me immediately. To add even more maps, just add more 0s behind the array of 0s above, two per map over 256
Okay guys, now for my question.
Why can you only give NPCs a direction of up to 4 using <CNP? It's a DWORD value!
Last edited: