Kuribo64
Views: 14,036,520 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
04-05-21 11:31 PM
Guest:

Main - Posts by isceptul

Pages: 1 2 3
isceptul
Posted on 04-26-16 09:44 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 2 of 04-26-16 11:33 PM) 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.

isceptul
Posted on 04-27-16 03:58 PM, in SM64DS Editor Help Thread - Post your questions here 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?

isceptul
Posted on 04-27-16 07:48 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 5 of 04-27-16 08:32 PM) Link | #70069
So would that be the same for writing values? Ex.

(*((volatile byte*)(SILVER_STARS)) = 0)

also what if i wanted to increment by 1? ex. SILVER_STARS = SILVER_STARS + 1, would it be:

(*((volatile byte*)(SILVER_STARS)) = (*((volatile byte*)(SILVER_STARS)) + 1

?

isceptul
Posted on 04-27-16 08:16 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 2 of 04-27-16 08:17 PM) Link | #70071
@pacmainia&luigi im currently still learning asm, but look up ARM Assembly, study it closely, and play around with it. To do stuff in game you will need to use both no$gba debugger, and desmumes ram search feature. Also, you can learn a lot from NSMBHD, http://nsmbhd.net/forum/8-asm-hacking/ make sure you read the ASM hacking files that come with the patch template too like SM64DS.h, Hover example, etc.

I'm currently still pretty noob-ish with asm, but the above steps have helped me learn. Fiachra has helped me a lot. Go check my "Custom behaviour" thread. Fiachra explains some of the basics and you can try an ASM excercise.

isceptul
Posted on 04-28-16 04:24 PM, in SM64DS Editor Help Thread - Post your questions here Link | #70080
Ok @fiachra I have made the asm code you pmd me to make, it compiles correctly and works too! It gives 2 coins instead of 1.

isceptul
Posted on 05-01-16 01:25 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 2 of 05-01-16 01:26 PM) Link | #70218
I imported my level, and got a white screen, so I removed all texture animations, and now the character falls right through the floor of the map and dies instantly. This was a unmodified rom (before i imported the level.)

isceptul
Posted on 05-04-16 03:30 AM, in SM64DS Editor Help Thread - Post your questions here (rev. 4 of 05-04-16 07:12 PM) Link | #70346
Posted by Fiachra
It sounds like you haven't imported your collision map correctly. This could be a few things:
1. The scale is wrong - did you change import the collision map separately and use a different scale value?
2. You've set "drop faces below" to a value greater than zero and the editor has removed faces whose size is below that threshold upon which Mario tries to land. Try setting it to zero or else merging very small faces together.
3. You've tried to import a collision map with a triangle that is too big for the KCL format to handle. Try subdividing any huge triangles.
4. You havne't assigned a "solid" collision type to the collision map.


The collision map isnt scaling with the model. I dont see any option to set the collision scale.

EDIT: Went into kcl editor and imported my obj as a collision map and scaled it to the same scale and it gives me a white screen.

EDIT#2: I'm having a problem with my code. I'm trying to use the position values in sm64ds.h but when i try to compile it in Msys it says xPos was not declared in this scope (same for Y and Z) I have #include "SM64DS.h" at the very top of my code.

and also I have a line that goes:
unsigned int spawnedObject = SpawnActor(OBJ_ZZZ_ACTOR_ID, param01, TmpPos, TmpRot);

but it says that spawnedObject is an unused variable, how do I fix these errors?

isceptul
Posted on 05-13-16 09:12 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 2 of 05-13-16 09:22 PM) Link | #70715
Anyone know why my input isnt working? Its supposed to give me 5 coins when I press Y but nothing happens.

my code:
#include "SM64DS.h"
#include "keys.h"

const unsigned int COINS = 0x0209F358;

void hook_020e50ac()
{
if (CHARACTER == CHAR_Mario)
{
myScanKeys();
if(keysDw & KEY_Y);
{
*((volatile byte*)(COINS)) += 5;
}
}
}

my keys.h file:
#include<nds.h>

static int keys, oldKeys, keysDw;
static bool first = true;

void myScanKeys()
{
first = false;
int keys = ~REG_KEYINPUT;
if(first) oldKeys = keys;
keysDw = keys & ~oldKeys;
oldKeys = keys;
}

int myKeysHeld()
{
return keys;
}
int myKeysDown()
{
return keysDw;
}


isceptul
Posted on 05-14-16 06:21 PM, in Post Your Cheesy Editor Names! (rev. 2 of 05-14-16 06:22 PM) Link | #70722
Post cheesy ROM editor names, for example:

A Majora's Mask text editor could be called "Majora's Mouth"
A Super Mario Land editor could be called "Land Lord"

Post them here, no matter how cheesy they are!

isceptul
Posted on 05-15-16 11:00 AM, in SM64DS Editor Help Thread - Post your questions here Link | #70729
Fiachra, ye ive tried. I looked through some of the devkit pro files for the ds inputs and found the inputs listed as "KEY_A, KEY_B, etc." but I couldnt get those to work, so I asked a thread and some guy told me to use the keys.cpp that comes with nsmb so I did it and it still doesnt work. I couldnt find anything else about key presses.

isceptul
Posted on 05-15-16 01:15 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 8 of 05-16-16 07:01 PM) Link | #70732
It multiplys r4 and r0 and stores the result in r0.

before the instruction:
r0 = #0x18
r4 has something to do with r2 (idr the ldrb instruction cause I mostly use C but I dont think its storing r2 in r4) and r2 = 0209FC68 (maybe its reading the value of 0209FC68 and storing that in r4, ex 0209FC68 = 8)

What any of this actually does ingame, idk.

BTW: I cannot find the spin jump animation or the mid triple jump front flipping animation. I've looked up and down the list countless times in sm64ds.h
What did you call those actions? Nothing fits MidTripleJumpFlipping or SpinJump.

isceptul
Posted on 05-17-16 04:18 PM, in SM64DS Editor Help Thread - Post your questions here (rev. 3 of 05-17-16 04:33 PM) Link | #70797
Posted by Hiccup
The spin jump animation may not involve spinning; the game may spin the model without an animation file.

well the game would have to put the player model in a position that resembles a T, and I cant find that so I doubt that.

In addition to my animation question, I've imported two different maps over whomps fortress in two seperate roms and both times the collision map was 50 times smaller than the actual map. Doesnt happen with any other maps, perhaps its a bug in the editor?

isceptul
Posted on 05-20-16 01:45 AM, in SM64DS Editor Help Thread - Post your questions here Link | #70879
Also, anyone know how to stop sm64dse from filtering the white off my textures? It makes the mushroom texture im using look terrible.

https://gyazo.com/fb5f071294aef433f0ea593d02051654

isceptul
Posted on 05-22-16 10:50 AM, in SM64DS Editor Help Thread - Post your questions here (rev. 5 of 05-22-16 11:42 AM) Link | #70907
How does assigning texture behaviours work?

Whenever I add my behaviour to the CLPS tab and try to import a level the editor crashes.

Can someone write a step by step guide to texture behaviour?
Pages: 1 2 3

Main - Posts by isceptul

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