• Hey everyone happy Christmas Eve we're aware of what's happened with the source code so to keep this simple absolutely don't post it on the site or use it to make mods with (it's not particularly preferable toward this end anyway) and tread lightly in general until we see how this settles, thanks to all and have a great holiday season -DT

Quick Modding/Hacking Answers Thread

Feb 21, 2016 at 3:45 AM
Bonds that separate us
Forum Administrator
"Life begins and ends with Nu."
Join Date: Aug 20, 2006
Location:
Posts: 2859
Age: 34
Pronouns: he/him
@Fixer90 you only need post once and then edit your old post, double posting is frowned upon.
He didn't double post, he made two threads which both got merged into this one

This is why you shouldn't try to comment on other people's behaviour
 
Feb 22, 2016 at 7:20 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
Right. Since nobody is telling me the offsets for the boss HPs, I've figured it out for myself.
Monster X: 0x047E813______________________________MOV DWORD PTR DS:[ECX+40],2BC
Balfrog: 0x04793E4________________________________MOV DWORD PTR DS:[ECX+40],12C
Core: 0x04744CD__________________________________MOV DWORD PTR DS:[ECX+40],28A
Ironhead: 0x047AA4B______________________________MOV DWORD PTR DS:[ECX+40],190
Sisters: 0x047D2EE________________________________MOV DWORD PTR DS:[ECX+40],1F4
Undead Core: 0x04754C0____________________________MOV DWORD PTR DS:[ECX+40],2BC
Heavy Press: 0x047C985_____________________________MOV DWORD PTR DS:[ECX+40],2BC
Ballos 2nd Form: 0x04774C4_________________________MOV DWORD PTR DS:[ECX+40],320
Ballos 4th Form: 0x0477AE6_________________________MOV DWORD PTR DS:[ECX+40],4B0
 
Feb 22, 2016 at 7:31 AM
Snacker
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2857
Age: 30
Pronouns: She/Her
If you also need the HP offset for Omega, here you go.
Code:
CPU Disasm
Address   Hex dump          Command                                  Comments
0047B7C9  |.  C705 98BA4B00 MOV DWORD PTR DS:[4BBA98],190
 
Feb 22, 2016 at 7:36 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
@TLincoln:
Oh oops I forgot that sorry

EDIT: Looking at it again, it's the only boss health that doesn't use [ECX+40].
I wonder why.


Awesome, thanks. Still need help with the big bosses health, but this is a good start.
Also would someone be able to help me make the spur go trough solid entities?
Oh yes. I'm sorry to answer this so late, but I'm going to answer this now. I sorta forgot how to do this, since I did it a long time ago.
I think it was because for the Spur bullets, I set all the flags except 'Ignore Solid' and 'No destroy Solid'.
Either that, or just change the number of hits and damage to a ridiculously high value and it'll go through.

EDIT: Oops double post. Meh
 
Last edited by a moderator:
Feb 22, 2016 at 7:47 AM
Snacker
"Life begins and ends with Nu."
Join Date: Jun 27, 2013
Location:
Posts: 2857
Age: 30
Pronouns: She/Her
@TLincoln:
Oh oops I forgot that sorry

EDIT: Looking at it again, it's the only boss health that doesn't use [ECX+40].
I wonder why.
From the wise words put in this post:
Omegas coding is so wierd
Really though, when I was making CSTSF Mod, I took a guess based on this thread. The offsets didn't really match up, but they were close, and it worked. And I guess I never bothered to mention it at the time.
 
Last edited:
Feb 22, 2016 at 4:37 PM
Its dark in here
"Deaths: 4000"
Join Date: Nov 21, 2013
Location: farther
Posts: 922
Age: 27
Pronouns: he/him
Thank you both very much.
Now I can make Ballos truly impossible.
If you're just gonna give him a shit ton of health, then that doesn't really count.
 
Feb 22, 2016 at 10:24 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
because it wasn't programmed to use ammo
 
Feb 22, 2016 at 11:28 PM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
@zxin:
If you're going to give the booster infinite fuel, just change the 32 in
4157A1: MOV DWORD PTR DS:[49E6E8],32 for Booster v2.0;
4157B7: MOV DWORD PTR DS:[49E6E8],32 for Booster v0.8.
Otherwise you could do the <IBF command:
; <IBF Infinite Booster Fuel
; 0002 = infinite fuel
; 0000 = not infinite fuel


offset 0046D5D0 ;replaces npc 352

#define

:variable = 493873

#enddefine

MOV EAX,DWORD PTR DS:[4A5AD8]
ADD EAX,DWORD PTR DS:[4A5AE0]
CMP BYTE [ECX+1],49 ;Check for the letter I
JNE SHORT 00424F33
CMP BYTE [ECX+2],42 ;Check for the letter B
JNE SHORT 00424F33
CMP BYTE [ECX+3],46 ;Check for the letter F
JNE SHORT 00424F33


;---First Argument---


MOV EAX,DWORD PTR DS:[4A5AE0]
ADD EAX,4
PUSH EAX
CALL 00421900
ADD ESP,4 ;Get the argument from the <IBF command, and store it into EAX

CMP EAX,2
JE :infinite_fuel
mov [:variable],0
JMP :END


:infinite_fuel
mov [:variable],2 ; infinite fuel

:end
ADD [4A5AE0],8 ;Fix the script position
JMP 004252A7 ;Jump back to the beginning of the TSC parser


;===============================
;===============================
;===============================




:after_the_fact
ADD BYTE PTR DS:[EAX],AL ;this is just a buffet to keep my sanity

:NONONONONONO ;begining of booster fuel branch
MOV EAX,DWORD PTR DS:[49E6E8]
CMP [:variable],2 ;Was our variable set in the above code?
JE :end_booster_code
SUB EAX,1
:end_booster_code
MOV [49E6E8],EAX
JMP 00415C64

; jump address 00415C5D
offset 00415C5D


JMP 0046D633
NOP
NOP
NOP
NOP
NOP
NOP
NOP
NOP
offset 00424EAF

JMP 0046D5D0
^That's the <IBF command.
EDIT: Also remember to give credit to Bombchu Link for this, otherwise he'll destroy you
@Kenzo ITC:
Curly can only use 2 types of bullet: Polar Star and Machine Gun.
The most I know about Curly AI is that its offset is 0x044B210
EDIT: Oh I thought you meant Curly AI. Yes, you can change the bullets shot by Curly Carried.
 
Last edited:
Feb 22, 2016 at 11:36 PM
Lvl 1
Forum Moderator
"Life begins and ends with Nu."
Join Date: May 28, 2008
Location: PMMM MMO
Posts: 3713
Age: 32
So another question, is there like, an offset where I could change what type of bullet curly shoots when she's on your back?

You can, and it's hilarious when you do. I changed it once to fire fully charged spur shots and it was great.

I don't remember the offest off the top of my head, but check the AI function for the "curly on your back" entity (it'll be an entity in the top left corner of the hell maps where she appears).
 
Feb 23, 2016 at 5:13 AM
Catz R cool
Modding Community Discord Moderator
"..."
Join Date: Nov 23, 2015
Location: Somewhere within a world far away from reality...
Posts: 381
Age: 24
Pronouns: he/him
I have a question. I was editing some asm stuff and looks like I messed with the wrong offsets, because now my mod crashes whenever I level up any weapon. The crash is an access violation at 0x0040C7A6. Could you guys maybe find the problem?
 
Feb 23, 2016 at 1:31 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
looks fine to me
 
Feb 23, 2016 at 1:45 PM
In my body, in my head
Forum Moderator
"Life begins and ends with Nu."
Join Date: Aug 28, 2009
Location: The Purple Zone
Posts: 5998
Pronouns: he/him
the jet puffs are tied to the amt of fuel it has. So if you keep the fuel a constant #, it will either always or never puff.
The correct way to do it is to make the fuel reset when it hits zero but that's more work.
 
Back
Top