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

0 users reading SM64DS Editor Help Thread - Post your questions here | 1 bot

Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here Hide post layouts | New reply

Pages: 1 2 3 4 5 ... 43 44 45 46 47 48 49 50 51 ... 62 63 64 65 66
Fiachra
Posted on 03-15-16 07:20 PM Link | #68636
You need to remove any spaces from any of the file names within the "source" folder.

isceptul
Posted on 03-21-16 12:43 AM (rev. 2 of 03-21-16 02:04 AM) Link | #68958
This question is mainly directed at fiachra or staplebutter, but if you know any arm asm feel free to answer. How am I able to play an action based on when a button is pressed. Fiachra explained how to change he animations, but I want to change the action being performed (ex. If b is pressed, mario will start a spin jump)

EDIT: also, im unable to find what value to check if the Y button is being pressed, all i could find from looking through the ASM Template was that the value to check if the B button is being pressed is 0x00F and if LandR are being pressed which is 0xF00

What are the values for all the other buttons to check if they are pressed?

pacmainia&luigi
Posted on 03-25-16 06:18 PM (rev. 2 of 03-26-16 04:28 PM) Link | #69067
I'm trying to import a mkds level to sm64ds by using the "replace(raw)" command, but mkds uses nsbmd and sm64ds uses bmd. Does anyone know a converter?

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

isceptul
Posted on 03-26-16 03:44 AM (rev. 2 of 03-26-16 03:44 AM) Link | #69084
So im writing ASM and my code wont compile onto my ROM because of something in the script but the script seems perfectly fine to me. IDK what the error is, can anyone help? the code is supposed to make Mario grow big if you press the R button while hes not on the ground

#include "SM64DS.h"

bool doNothing = false;

void hook_020e50ac()
{
if (CHARACTER == CHAR_Mario)
{
unsigned short keys = KEYS;
unsigned short pressedLAndR = keys & 0xF00;
unsigned short checkPressedR = (pressedLAndR);

if (checkPressedR);
{
if (isOnGround)
{doNothing = true;
doNothing = false};
else
{Player_PerformAction (MarioActor *, char 0x9A, unsigned int loop_related, unsigned short playspeed_20_12);)}
}
}
}


isceptul
Posted on 03-28-16 06:43 AM (rev. 3 of 03-28-16 07:14 AM) Link | #69176
my codes not working, it says nds_printf was not declared in this scope when its clearly defined in symbols.x

#include "SM64DS.h"

unsigned short X = 80;
unsigned short Y = 80;

void hook_020e50ac()
{
nds_printf(X,Y,"Hello World");
}

EDIT: Whats the syntax for nds_printf? The symbols.x file isnt helpful since it doesnt give the arguments, nor do any of the documents provided, and it obviously doesnt work without the correct arguments. Arguments should be added in sm64dse R95.

Fiachra
Posted on 03-28-16 10:13 AM Link | #69182
isceptul:
1. The compiler errors explain the problems.
bool doNothing = false;
void hook_020e50ac()
{
if (CHARACTER == CHAR_Mario)
{
unsigned short keys = KEYS;
unsigned short pressedLAndR = keys & 0xF00;
unsigned short checkPressedR = (pressedLAndR);

if (checkPressedR);
{
if (PLAYER->isOnGround)
{
doNothing = true;
doNothing = false;
}
else
{
Player_PerformAction (PLAYER, 0x9A, ACT_RUN_ONCE, 0x1000);
}
}
}
}
That won't actually make Mario big though, it'll just play the animation. What I would suggest doing is instead of playing the animation, spawn a Super Mushroom object in Mario's current position, he'll then pick it up straight away.

2. See the examples in the original NSMB ASM Hacking Template here.

pacmainia&luigi:
No and it's unlikely that there ever will be, you'll have to use MKDS Course Modifier to export the MKDS level to OBJ and then import that model in SM64DSe.

pacmainia&luigi
Posted on 03-28-16 03:03 PM Link | #69192
Posted by Fiachra
pacmainia&luigi:
No and it's unlikely that there ever will be, you'll have to use MKDS Course Modifier to export the MKDS level to OBJ and then import that model in SM64DSe.

I've already tried that. The textures never came out when I used the course modifier.

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

isceptul
Posted on 03-28-16 03:24 PM (rev. 9 of 03-29-16 12:18 AM) Link | #69196
1.What hook can i use to do something once? Like for the second code i'm just printing text onscreen, which if its raw text (and not a variable) it only needs to be run once to be put on the screen. The one i used runs every frame.

2.And also, the reason i did grow big on command is because i couldnt find the value for the spin jump, is there anyway to make mario do a spin jump, or do i just have to spawn a spin drift under him? (which i really dont wanna do because im pretty sure youll see the spin drift for one frame)

3. I looked through the NSMBPatchTemplate and the print function is still not compiling. I dont understand what the errors in console mean.

#include "SM64DS.h"
#define GREEN 0xE000

u16** topScrenPtr = (u16**) 0x020859EC;
u16 something[2];
something[0] = GREEN;
something[1] = GREEN;

void hook_020e50ac()
{
(something,*topScreenPtr + 33,"Hello World",ptr);
}

4.The code you gave me still doesnt compile, it says ACT_RUN_ONCE was not declared on the scope

EDIT: NVM i defined ACT_RUN_ONCE and deleted the hover example and it worked, except now my game crashes everytime i load a file. How do i fix the crash?

5. @fiachra do you have skype? I always have a lot of errors and the help thread is very slow and inefficient (especially for someone trying to learn ASM, and as nooby as me)

pacmainia&luigi
Posted on 04-07-16 11:55 PM (rev. 3 of 04-12-16 09:13 PM) Link | #69531
my rom keeps on displaying a white screen when i open it in desmume. can anyone help me?

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

CodingKoopa
Posted on 04-12-16 09:14 PM Link | #69727
Get an earlier version of DesMuMe, try 9.7.

____________________
Website | Twitter


pacmainia&luigi
Posted on 04-13-16 09:20 PM (rev. 2 of 04-13-16 09:21 PM) Link | #69740
Posted by TheKoopaKingdom
Get an earlier version of DesMuMe, try 9.7.

Well, that didn't work!(and neither dod no$GBA, either.)

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

isceptul
Posted on 04-25-16 02:04 AM Link | #69975
anyone know where the graphic for the invisible secret is in the file system? I want to modify it to give it a graphic.

Fiachra
Posted on 04-25-16 07:19 PM Link | #69996
The invisible secret doesn't have an associated model. The only graphics it uses are the number graphics 0 - 8 located in "/ARCHIVE/arc0.narc/data/normal_obj/number/number.bmd".

Posted by pacmainia&luigi
Well, that didn't work!(and neither dod no$GBA, either.)

In what way have you modified the ROM? Have you read the first post in this thread?

isceptul
Posted on 04-25-16 08:04 PM (rev. 3 of 04-25-16 11:01 PM) Link | #69997
How can i give the secret a graphic that will disappear when the secret is collected?

pacmainia&luigi
Posted on 04-25-16 09:14 PM (rev. 2 of 04-25-16 09:14 PM) Link | #70001
Posted by Fiachra
The invisible secret doesn't have an associated model. The only graphics it uses are the number graphics 0 - 8 located in "/ARCHIVE/arc0.narc/data/normal_obj/number/number.bmd".

In what way have you modified the ROM? Have you read the first post in this thread?

It doesn't turn white when I load my custom level, but when I click"adventure" in the title screen. I changed some textures, imported a multicolor pianta, and made a customs level. Yes, the editor said the textures might be to big.
Yes, I read the first post.

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

Fiachra
Posted on 04-26-16 07:51 PM Link | #70030
Did you change the textures for any of the buttons on the menu? What if you delete the save file?

pacmainia&luigi
Posted on 04-26-16 11:29 PM Link | #70034
Posted by Fiachra
Did you change the textures for any of the buttons on the menu? What if you delete the save file?

No, I didn't change the textures.

____________________
Waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka waka.........

isceptul
Posted on 04-27-16 01:44 AM (rev. 2 of 04-27-16 03:33 AM) Link | #70048
Fiachra, I PMed you a question about custom objects because im not sure how long the convo will go on for.

Also, im very confused on updating a spawned objects position even after looking at the text file. This is my code

#include "SM64DS.h"

const int silverstars = 0209F310;
const short int OBZ_ZZZ_ACTOR_ID = 0x00B3;
short int param01 = 0x0000;
short int TmpRot[3] = { xRot, yRot, zRot };
int TmpPos[3] = { xPos + 5, yPos + 5, zPos + 5 };

void hook_020e50ac()
{
if silverstars > 0{

unsigned int spawnedObject = SpawnActor(OBJ_ZZZ_ACTOR_ID, param01, TmpPos, TmpRot);
}
}

I dont know how to address my spawned objects position to update it.

Fiachra
Posted on 04-27-16 05:57 PM Link | #70063
Does that code even compile? In particular the line:
int TmpPos[3] = { xPos + 5, yPos + 5, zPos + 5 };

You should change that to:
int TmpPos[3] = { 0, 0, 0 };

Then:
TmpPos[0] = 0x1234; // Replace this with whatever value you like, similarly for [1], [2]
unsigned int spawnedObject = SpawnActor(OBJ_ZZZ_ACTOR_ID, param01, TmpPos, TmpRot);

If you wanted to change its position later on you'd use:
short int const X_LOC_OFFSET = 0x5C;
short int const Y_LOC_OFFSET = 0x60;
short int const Z_LOC_OFFSET = 0x64;
...

*((volatile int*)(spawnedObject + X_LOC_OFFSET)) += 0x1234;

isceptul
Posted on 04-27-16 07:58 PM Link | #70066
ok i will experiment with position updating. On the other hand, is the "if silverstars > 0 {" line correct? Or is there some other way i have to check the value of an address?
Pages: 1 2 3 4 5 ... 43 44 45 46 47 48 49 50 51 ... 62 63 64 65 66

Main - General SM64DS hacking - SM64DS Editor Help Thread - Post your questions here Hide post layouts | New reply

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