Kuribo64
Views: 19,852,060 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
03-28-24 07:47 PM
Guest:

0 users reading ASM requests | 1 bot

Main - General SM64DS hacking - ASM requests Hide post layouts | New reply


Splatterboy
Posted on 07-25-18 08:42 PM (rev. 2 of 07-25-18 08:44 PM) Link | #95194
I have trouble creating ASM hacks, this is because I understand nothing about code.
That's why I'm looking for kind people that are willing to create a few ASM hacks for my upcoming hack:
Super Mario 64 DS 2: a new adventure.

Here are a few things I need:
1. make it so that whenever you save and exit, you keep your lifes instead of reverting them back to 4.
2. for tiny huge island (and other levels with sub areas), make it so whenever you switch sizes, silver stars dont respawn
3. skip the intro cutscene
4. remove the 100 coin stars
5. add a 8th star to each of the 15 main courses
6. make it so that whatever character hits a ? block with a feather inside gets the feather, not Mario only.

And you will be credited in all hacks that use the ASM code you created.

Gota7
Posted on 07-26-18 03:42 AM Link | #95197
You can't just expect people to just make ASM for you, especially since a lot of these things are very ambitious. Here is what I know of so far:

1. That requires editing how the game saves and loads saves. A lot of work. Same goes for 5. 5 is even worse because the game will need to actually have to be able to count it, and another star would have to be added to the selection screen.

2. Kinda counter intuitive, but just use red-coins. Idk how this works at all.

3. Already has been done, you just haven't look hard enough. It's in the Additional Patches in the editor itself.

4. I'm sure this shouldn't be too hard, just overwrite some code somewhere.

6. I want this too, so if I do make it, I'll share the code. However, it requires object hacking which I don't know much about.

But the best solution is to actually go and learn assembly. Look up some ARM assembly tools. Once you do that, you can learn how inserting custom code works with NSMBe's make and insert. Start out with simple hacks like changing the number of lives or coins, then make you lose a life when you get a coin, etc.




Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt

Thierry
Posted on 07-26-18 10:03 AM Link | #95199
Posted by Splatterboy
4. remove the 100 coin stars
5. add a 8th star to each of the 15 main courses

rather than removing the 100 coins stars and adding another star to each level, how about changing the cue that spawns the star?

Splatterboy
Posted on 07-26-18 12:21 PM Link | #95200
Posted by Gota7
You can't just expect people to just make ASM for you, especially since a lot of these things are very ambitious. Here is what I know of so far:

1. That requires editing how the game saves and loads saves. A lot of work. Same goes for 5. 5 is even worse because the game will need to actually have to be able to count it, and another star would have to be added to the selection screen.

2. Kinda counter intuitive, but just use red-coins. Idk how this works at all.

3. Already has been done, you just haven't look hard enough. It's in the Additional Patches in the editor itself.

4. I'm sure this shouldn't be too hard, just overwrite some code somewhere.

6. I want this too, so if I do make it, I'll share the code. However, it requires object hacking which I don't know much about.

But the best solution is to actually go and learn assembly. Look up some ARM assembly tools. Once you do that, you can learn how inserting custom code works with NSMBe's make and insert. Start out with simple hacks like changing the number of lives or coins, then make you lose a life when you get a coin, etc.

So 1 and 5 are too hard (especially 5).
For 2 I can always use Red Coins I guess.
3 is already in the editor so no problems.
For 4 I'm going to try and learn ASM sometime.
And if you ever make and share code for 6, it would be really appreciated.

And I've already watched some tutorials of you online on how to compile and insert code.

StarPants
Posted on 07-26-18 01:00 PM (rev. 2 of 07-26-18 01:01 PM) Link | #95201
1. As others said, this is hard but i might want to try it in the future

2. Tiny and huge islands are different levels, so the silver stars kinda have to respawn unless you do some trickery. Even if they didn't, it wouldn't work so well. If you switched from huge to tiny, the stars would be too far away from the mountain to collect, and if you switched from tiny to huge they would be inside the mountain. You would have to make it so that their position vectors are divided and multiplied accordingly when changing the level.

3. As Gota said there's an additional patch for that, but i personally prefer asm patches so i've made a one that does the same thing:

/*overwrite

ovr_02013df4:
orr r1, r1, #0x88

overwrite*/

4. I made a code for this because it felt interesting

/*overwrite

ovr_020b1950_ov_02:
add r13, r13, #0x18
pop {r4, r14}
bx r14

overwrite*/

6. dy has already found out what needs to be changed in here

mibts
Posted on 07-26-18 02:12 PM (rev. 2 of 07-26-18 02:13 PM) Link | #95202
#1 should just be a matter of storing the life counter at a certain offset in the RAM save (there's a free byte) and loading it from there instead of loading a constant 4.

#2 is problematic because you can lose silver stars in SM64DS. If the silver stars respawn, you could collect a 6th silver star, which either true-softlocks (weird true softlock, as you can control the character!) or crashes the game, I forgot which. If they don't respawn, you could accidentally lock yourself out of a star.

#3 is a patch, as others have mentioned.

#4: Look at the above post.

#5 would require adding a star to the star select (better be good at 3D graphics manipulation) and the hub pause menu top screen (better be good at 2D graphics manipulation), and removing all "starID == 0" checks that rely on it being a 100-coin star. In addition, any place where the star isn't counted (for being a 100-coin star) would have to actually count it. At least you wouldn't have to mess with save data. Adding a 9th star would be a whole nother story.

#6: Look at the above post.

____________________
Current hack: Excerpt from Super Mario 256

Any map on a flat torus can be colored with at most 7 colors.

Splatterboy
Posted on 07-26-18 07:25 PM (rev. 3 of 07-26-18 07:58 PM) Link | #95204
1. Maybe I will add it later if someone figures this out
2. I'm going to use Red Coins.
3. StarPants code
4. StarPants code
5. is way too hard so I will scratch that.
6. I'm trying it right now.
Edit: 6. is not working, could someone please help me?

StarPants
Posted on 07-26-18 10:56 PM Link | #95207
Those images dy posted show what needs to be changed, but not excactly how. I made this code based of them since i'm probably gonna need it too at some point

/*overwrite

@ Spawn a feather and not a power flower

ovr_02149ab0_ov_66:
mov r4, #0
b 0x02149ac4

@ Don't despawn it if the player isn't Mario

ovr_020b2ed0_ov_02:
cmp r0, r0

@ Give wings if collected

ovr_020e03e4_ov_02:
cmp r0, r0

overwrite*/

Gota7
Posted on 07-26-18 11:21 PM Link | #95209
Lol, StarPants Ninja'd me when I was making the code. :p

@ Make conditional check for Mario never despawn feather.
ovr_020B2ED4_ov_02:
nop

@ Pretend Mario is getting the wings.
ovr_020E03E4_ov_02:
mov r0, #0x0

@ Same thing as above, but for ? boxes.
ovr_02149AAC_ov_66:
mov r4, #0x0




Join the SM64DS Hacking Discord: https://discord.gg/PhpA9Wt

Thierry
Posted on 07-26-18 11:34 PM Link | #95210
further commenting on #2

just saying, but even if it worked the mountain isn't a good place for silver stars as they can.. fall off into oblivion. also, a rookie player would not know about switching areas to respawn them, so they'd end up confused.

even ASM aside, it's too much trouble for what it's worth.

StarPants
Posted on 07-26-18 11:42 PM Link | #95211
he's most likely to replace the level model with something else, i was dumb writing my first post lol

but there's still a problem of silver stars getting stuck inside walls unless the two levels are gonna be the same model with different textures or something

Splatterboy
Posted on 07-27-18 05:00 AM Link | #95212
Thanks StarPants and Gota7!
I'm fine for now, thanks for the help.

Shugabush
Posted on 09-07-18 03:08 AM Link | #95807
oh hey if no one else said skip intro is in the additional patches tab. it should be compatible with all versions.

____________________
check out my CLPS Document: https://docs.google.com/document/d/11tHJ77km4EPITucU9RMdhW5ImPEvCyxPxUAbxqzm6Ks/edit


Main - General SM64DS hacking - ASM requests Hide post layouts | New reply

Page rendered in 0.031 seconds. (2048KB of memory used)
MySQL - queries: 29, rows: 225/225, time: 0.011 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.