• Please stop embedding files/images from Discord. Discord has anti-hotlinking logic in place that breaks links to Discord hosted files and images when linked to from anywhere outside of Discord. There are a multitude of file/image hosting sites you can use instead.

    (more info here)

Weapons...

Dec 3, 2008 at 11:18 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
Hey,

I was working on my hack (not mod anymore, no) and, felt like changing a weapon. So yeah, The weapon hacking FAQ only has the assembly value for one weapon, the snake. Does anyone have the other assembly values?

(And yes, I did search)
 
Dec 3, 2008 at 11:53 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
0x00004160, 0x000043f0, 0x000047b0
0x00004b30, 0x00005120, 0x000055a0
0x00005d80, 0x00005f30, 0x00006190
0x000064d0, 0x000068b0, 0x000075e0
0x000078a0, 0x00006bb0, 0x00006e60
0x00007110, 0x00007910, 0x00008080
0x00008230, 0x00008710, 0x00008ae0
0x00008230, 0x00008f40, 0x00008f90

That was posted by Runelancer a long time ago.
Well, I don't know which weapon is which value, but you can surely test it out.
 
Dec 4, 2008 at 1:15 AM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Perhaps it's in the order they appear in the weapon pbm?
 
Dec 4, 2008 at 1:21 AM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
Celtic Minstrel said:
Perhaps it's in the order they appear in the weapon pbm?

I don't think so.
The weapons have a general order.
For example Snake is the first weapon while the polar star is the secound.
 
Dec 4, 2008 at 3:32 AM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Well, in the pbm, the snake is first and the polar star is second, so your statement merely supports my hypothesis.

So, if I'm right, the order is as follows:

Snake
Polar Star
Fireball
Machine Gun
Missile Launcher
Bubbler
Blade
Super Missiles
Nemesis
Spur

The only problem is, there are 10 weapons, but only 8 lines in the offsets SP posted.
 
Dec 4, 2008 at 12:58 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
There are 11 weapons (Bubble Thorns)
And even though Rune didn't post where those were, I finally found wher SP got those offstes. Rune said that they were called in 0x00008FC0, so hopefully, the last three would be called there as well.

Is null a weapon? (0008)
Because right now, I have the offsets listed as:

Snake: 0x00004160, 0x000043f0, 0x000047b0
Polar Star: 0x00004b30, 0x00005120, 0x000055a0
Fireball: 0x00005d80, 0x00005f30, 0x00006190
Machine Gun: 0x000064d0, 0x000068b0, 0x000075e0
Missile Launcher: 0x000078a0, 0x00006bb0, 0x00006e60
Bubbler: 0x00007110, 0x00007910, 0x00008080
Blade: 0x00008230, 0x00008710, 0x00008ae0
Super Missile Launcher: 0x00008230, 0x00008f40, 0x00008f90
Nemisis: ?, ?, ?
Spur: ?, ?, ?
Thorn: ?

But if Null was a weapon it would be:
Snake: 0x00004160, 0x000043f0, 0x000047b0
Polar Star: 0x00004b30, 0x00005120, 0x000055a0
Fireball: 0x00005d80, 0x00005f30, 0x00006190
Machine Gun: 0x000064d0, 0x000068b0, 0x000075e0
Missile Launcher: 0x000078a0, 0x00006bb0, 0x00006e60
Bubbler: 0x00007110, 0x00007910, 0x00008080
Blade: 0x00008230, 0x00008710, 0x00008ae0
Null: 0x00008230, 0x00008f40, 0x00008f90
Super Missile Launcher: ?, ?, ?
Nemisis: ?, ?, ?
Spur: ?, ?, ?
Thorn: ?

Thanks for your help,
Lace
 
Dec 4, 2008 at 8:10 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
Lace said:
There are 11 weapons (Bubble Thorns)
What are you talking about? There's no such weapon!
 
Dec 4, 2008 at 10:20 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
Not that you can get, yes, but it is indeed a weapon (the thorns that bubble level 3 makes) Just one level, and is not part of the bubbler coding.
 
Dec 4, 2008 at 10:48 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
Whoa, how do you know so much about Cave Story coding Lace? :o
Anyway, the offsets seem to be rather imcomplete... Well, but I think it wouldn't be too hard to get the rest as well.
 
Dec 4, 2008 at 11:09 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
Whoa, how do you know so much about Cave Story coding Lace? :o
Heh, was I right? I mostly pick up tidbits from random places, and I think this was one of them. :D
Do you know any good assemblers? because I would go and check out the offsets but the assembler I'm currently using will not accept hex value inputs, so I have to convert to decimal, and then it goes to a completely random spot :p
Oh also, the offset for the thorn would be in Bubble level three, right? I don't quite no the difference between mov and jmp, which would it be in/after?

Cheers!
Lace

Edit: Mov appears way to much to be a pointer, because if it was, the whole script would just be hopping around, what it does is put data into a register, right?

mov ax,09
mov cx,ax

would put 9 into ax and than put ax into cx, or in this case, 9 into cx, right?

so the call to the thorn would be a jmp command right?

Edity: What's the point of having the four different registers? do they have different purposes?

Hrmph, another edit....
Does anyone have a copy of discreet?
 
Dec 7, 2008 at 5:23 AM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
It's jump or jmp or something to switch execution to a different part of the code. I'm not sure whether that means a function call or if it's more like a goto statement.

And I had assumed that the damage for the bubbler thorns would be identical to the damage for the bubbler bubbles.
 
Dec 7, 2008 at 2:55 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
they're not, the bubles deal 2 damage, and I think the thorns deal four.
can anyone test that?

also it wouldn't be jump to the thorns, it would be something like

Code:
cmp cx,20 ;compares the value of 20 w/ whats stored in dx, I assumed that dx contains the timer, and that it takes 20 ticks to turn into a thorn.
je 4738h ;if they are equal, jump to the thorn adress.

this is actaually a rather nifty piece of code because by changing the cmp so that the ticks are 0, it automatically hops to the thorn. You could also delete this section completely, so that it only goes to the bubbles after you release x. Speaking of which:

Code:
mov ah,00h ;places 00h into ah
int 16h ;runs function 00h of interupt 16h (gets a char)
mov bl,al ;save al into bl
mov dl,al ;move ascii value of key pressed into dl

cmp bl,'X' ;did you press x?
jne 4738h ;if x is not being pressed, jump to the thorns.

This code would probably be found somewhere else. the first bit is key handling, and would not be coded into the bubbler, but the second part would be.

Of course my code has some problems, 20 ticks is really, really fast to go by, and i have no idea where the key handling code is. However, if someone finds something resembling one or both of these in the bubbler level three, the je/jne/jz/jnz (jz and jnz are duplicate functions) would probably lead to the thorn.

Cheers!
Lace
 
Dec 7, 2008 at 3:20 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
I don't think calling interupts does work.
You may have to use Windows DLL functions, the variable for the keystoring is surely somewhere stored in the stack.
 
Dec 7, 2008 at 7:21 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
Wait - interupts don't work?
I'll look for the key storing variable.
 
Dec 7, 2008 at 9:46 PM
In front of a computer
"Man, if only I had an apple..."
Join Date: Mar 1, 2008
Location: Grasstown
Posts: 1435
By the way, what flavour of assembly would this be?
 
Dec 7, 2008 at 10:00 PM
Been here way too long...
"Life begins and ends with Nu."
Join Date: Jan 4, 2008
Location: Lingerie, but also, like, fancy curtains
Posts: 3052
um, chocolate? xD
 
Dec 7, 2008 at 10:53 PM
Hoxtilicious
"Life begins and ends with Nu."
Join Date: Dec 30, 2005
Location: Germany
Posts: 3218
Age: 33
Pronouns: No homie
80x86 Assembly.
 
Back
Top