Views: 537,522,662
Time: 2017-05-28 10:34:22 AM
7 users online: Epic_Manky, glitch4, Maniek, NGB, RanAS, toad64, user23507 - Guests: 19 - Bots: 238Users: 31,460 (1,332 active)
Latest: eNeNico707
Tip: Yoshi wings take you to level C8 or 1C8. Which one you get depends on the overworld level you're in.Not logged in.
Official Hex/ASM/Etc. Help Thread
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Official Hex/ASM/Etc. Help Thread
Pages: « 1 ... 226 227 228 229 230 ... 392 393 »
Originally posted by yoshicookiezeus
Using that routine but changing it to aim at a position one tile lower will make it always hit Mario.

In this case, that's not the problem. What I need is about twice as much accuracy. As in, if Mario moves 4 pixels to the left, then the angle should change to accommodate. Right now it takes 8 or so pixels for any change to occur. In my case, 4 would probably be the minimum that would be allowable, but more accuracy is always better.
I should get a new layout.

Probably won't, though.
Originally posted by Kipernal
Does anybody have an aiming routine I could use? I'd use the default one that Magikoopas use but it's too inaccurate for what I'm trying to do.

Replace "inaccurate" with "uncustomizable", and you'd get what I've always said about the aiming routine edit1754 used for some of his dynamic sprites. I really wish he'd make a version of that that was more flexible; it could really be useful.
What I really need is a routine that will fire an object from point A to point B with a large amount of precision (within 4 or so pixels to any side), hence why SMW's default routine won't work. But I've found a formula for finding the value of an arctangent, only problem is it involves a lot of division and multiplication. In that case, can the division and multiplication registers work at the same time? If not then this method might not be so feasible.
I should get a new layout.

Probably won't, though.
Quick question:

Is it possible reference a register using long addressing? Or are they only writable using absolute?
If you mean hardware registers, LDA #$80 STA $002100 works fine. It's just a little slower and larger than STZ $2100, but that shouldn't matter.

<MercuryPenny> NEW MEME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
So they use bank 00 then. Alright.
They actually exist in all of banks 00 through 3F. LDA #$00 STA $292100 would give exactly the same results. Using bank 00 is probably less confusing, that's the only difference.

<MercuryPenny> NEW MEME!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Well it was my biggest fear if I ever had to use banks $40+ for code that I wouldn't be able to write to registers without changing the bank. Guess I don't need to worry.
Does anyone know anything about the GFX uploading routine beginning at $00AA6B? I'm trying to figure out what $1BA2-$1BE2 are for, but I'm getting nowhere fast. About all I can figure out is that $1BBC-$1BBD seem to be either FFFF or 0000 depending on whether or not the GFX file being uploading is GFX01 (to check for the Special World GFX). I also discovered that $1BA2 is definitely used in some of the Mode 7 bosses, including Reznor and Bowser.
Is there a part of the whole palette that's not used by anything?
I'm trying to find space for extra Mario palettes.

Waluigi needs his own game, he doesn't even have character!
Currently working on Waluigi's Treasure Hunt.
Originally posted by deffon1993
Is there a part of the whole palette that's not used by anything?
I'm trying to find space for extra Mario palettes.

well let's see, the second half of Palettes C-F and there's also the second half of Palettes 5-7 that aren't used at all in levels so you can use those.
I change my layout every 4-5 months
Could somebody tell me what I'm doing wrong here?
LDA $C681
ADC #$01
STA $C681


In theory, this should add one to $C681 (which is free RAM according to the SNES9x debug) and then write that to the coin counter, and back to itself. But for some reason it writes 1 to the coin counter every frame (this is in LevelASM).

Also the last INC works fine (I just put that in to make sure the code was being run).
the problem is with the $C681, if anything is past $8000, it's considered loading the ROM Address from Bank 00. you have to use long addressing mode instead, so $C681 would become $7EC681

Edit: Also, are you trying to make it so when the freeram is a specified value, it increses your coin counter? if so, then you would use this code instead

LDA $7EC681
CMP #$xx       ; replace xx with the specified value
BCC +            ; If less than specified value, branch
LDA #$00         ;\ Can't STZ $7EC681 since it's
STA $7EC681    ;/ a invalid opcode/command
LDA $7EC681
ADC #$01
STA $7EC681
I change my layout every 4-5 months
That was actually an extremely simplified version of my code, the actual thing is much different. But putting 7E in front fixed the problem perfectly, thanks!
Hi everybody.
I'm trying to use Multiple Midway Points patch. Whenever I touch in a midway point and die, I am redirected to level 0. Any suggestions?
I'm inserting the midway point custom blocks. But nothing changes.
dw $01C0 : dw $11C1 : dw $11C2 : dw $11C3 : dw $11C4 : dw $11C5 : dw $11C6 : dw $11C7 : dw $11C8 : dw $11C9

This happens in all levels.

Image and video hosting by TinyPic
First, make sure you're not loading from a savestate to check. The title screen needs to be run.

Still it's rather baffling that you'd always be sent to level 0. Does it do the same on a lunar magic edited but otherwise clean ROM?
It works properly when I don't expand the table. I'm trying to expand to 10. After this change nothing works normally.

!MIDWAY_NUMBER	= $0009	; max number of midway points per level
			; using more vastly increases the size of the table
			; if you changed it to, for example, 0003
			; the tables for EVERY level would look similar to this:
			; dw $0001 : dw $0001 : dw $0001
			; the maximum of midway points would be 00FF (256 decimal)

;levels 0-F
dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000		; 
dw $0001 : dw $0001 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000		; place the level number which you want to use here
dw $0002 : dw $0002 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000 : dw $0000		; 


Image and video hosting by TinyPic
Ah, are you using $000A or $0010?
I tried using $000A and nothing happens. I'm still being transferred to level 0.

Image and video hosting by TinyPic
I want Ladida's scroll code to effect layer 3, but when I change the 1E to 22, nothing happens. Why is that? It's especially odd because it will work fine on layer two when it is 1E.
(Here's the code.)

        LDX #$06 ; The amount of bytes in the scroll table.
	LDA ScrollTable,x
	STA $7FA000,x

	db $7F,$01,$01
	db $10,$01,$01
	db $00 	; End byte, don't remove it


	REP #$20
	LDA #$0F02
	STA $4330
	SEP #$20

	LDA #$00 ; Last byte of free RAM address
	STA $4332 

	LDA #$A0 ; Middle byte of RAM address
	STA $4333

	LDA #$7F ; First byte of RAM address
	STA $4334

	REP #$20
	LDA $22 ; Layer 3 X-position
	STA $7FA000+$4
	STA $7FA000+$1
	SEP #$20

	LDA #$08
	TSB $0D9F

Pages: « 1 ... 226 227 228 229 230 ... 392 393 »
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Official Hex/ASM/Etc. Help Thread

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2017 - SMW Central
Legal Information - Privacy Policy - Link To Us

Total queries: 23


Follow Us On

  • Facebook
  • Twitter
  • YouTube


  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • MFGG
  • Gaming Reinvented