Banner
Views: 926,957,093
Time:
13 users online:  Amethyst,  Ayami, Ezel, Friday_D0nat, Giftshaven, imhere, Jazzman287, Julintendo, King Mayro, LaserShark360,  Tahixham, Valentine, WhiteYoshiEgg - Guests: 85 - Bots: 110 Users: 51,807 (2,055 active)
Latest: imhere
Tip: ExAnimation also works on sprites!
Not logged in.
Posts by zltc
zltc's Profile - Posts by zltc
Pages: « 1 »
I know this is a stupid question, but I've been looking everywhere for a single-use bounce block (As used in Invictus and Nightmare Cafe III) That "poofs" away when you use it.

I have thoroughly searched the blocks section, gone through forums, and I still can't find it.

Thanks,
(and sorry)
Originally posted by MarioriaM


Yes - perfect. Thanks so much!
I am trying to apply an HDMA parallax to the title screen of my hack. I am using the Cave Story - Outer Wall background.

I was not satisfied with the default parallax that came in the zip file, so I decided to make my own with Effect Tool. I am a complete noob at coding, and I don't know if the code is the issue or not. With the default parallax, it worked on the title screen, but with the one I made, it looks like the HDMA hasn't been applied.

I apply it in Uberasm\level, as I would any other UberASM file.

Here's the code for the parallax I made in Effect Tool:

Code
; To be upplied to a level using UberASMTool.


INIT:                                   ;\  This section is to be used in the INIT code of levelASM
   REP #$20                             ; | 
   LDA #$0F42                           ; | Use indeirect and mode 2 on register 210F
   STA $4350                            ; | 4350 = Mode, 4351 = Register
   LDA #ParallaxTable_160416162         ; | Address of HDMA table, get high and low byte
   STA $4352                            ; | 4352 = Low-Byte of table, 4353 = High-Byte of table
   SEP #$20                             ; | 
   LDA.b #ParallaxTable_160416162>>16   ; | Address of HDMA table, get bank byte
   STA $4354                            ; | 4354 = Bank-Byte of table
   LDA #$7F                             ; | Address of indirect table in RAM bank byte
   STA $4357                            ; | 4354 = Bank-Byte of indirect table
   LDA #$20                             ; | 
   TSB $0D9F|!addr                      ; | Enable HDMA channel 5
   RTL                                  ;/  Return	  	

;The Table takes up 10 bytes of the free RAM
;It ranges from $7F9E00 - $7F9E09 (both addresses included)

MAIN:                                   ;\  This section is to be used in the MAIN code of levelASM
   REP #$20                             ;/  16 bit action starts here. (To load the x position of the BG)

   LDA #$0000                           ;\  Multiplied by 0
   PHA                                  ; | Preserve A (current multiplication result)
   CLC : ADC #$01FE                     ; | Add rate.
   STA $7F9E00                          ; | Store to FreeRAM for indirect HDMA
   PLA                                  ;/  Restore A (current multiplication result)
   LDA $1E                              ;\  Load BG x Position
   LSR #2                               ; | Multiplied by 0.25
   PHA                                  ; | Preserve A (current multiplication result)
   CLC : ADC #$0006                     ; | Add rate.
   STA $7F9E02                          ; | Store to FreeRAM for indirect HDMA
   PLA                                  ;/  Restore A (current multiplication result)
   LDA $1E                              ;\  Load BG x Position
   ASL #0                               ; | Multiplied by 1
   PHA                                  ; | Preserve A (current multiplication result)
   CLC : ADC #$01F8                     ; | Add rate.
   STA $7F9E04                          ; | Store to FreeRAM for indirect HDMA
   PLA                                  ;/  Restore A (current multiplication result)
   LDA $1E                              ;\  Load BG x Position
   ASL #2                               ; | Multiplied by 4
   PHA                                  ; | Preserve A (current multiplication result)
   CLC : ADC #$01F2                     ; | Add rate.
   STA $7F9E06                          ; | Store to FreeRAM for indirect HDMA
   PLA                                  ;/  Restore A (current multiplication result)
   LDA $1E                              ;\  Load BG x Position
   ASL #1                               ; | Multiplied by 2
   STA $7F9E08                          ;/  Store to FreeRAM for indirect HDMA
   SEP #$20                             ; Back to 8bit
   RTL                                  ; Return

ParallaxTable_160416162:                ;\  
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E00                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E02                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E04                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E06                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $01 : dw $9E08                    ; | 
   db $00                               ;/  



Sorry for the inconvenience...
Okay - I just removed the RTL from the INIT:, and it looked like nothing happened. (This is how it loads with the Effect Tool versions, no matter whether I removed the RTL from the INIT or not):


Just for reference, here is the parallax that came with the bg:


This parallax worked right off the bat, but as you can see, there are some flaws with it (pieces of cloud clip and front three layers move at same speed.)



Don't know what to do...
WYE - Inserting the code and putting in the Fast BG Scroll WORKED in the level! Here's what it looked like. Granted, I'll have to rework effect tool because I screwed up and some clouds move at the wrong pace...


However, the HDMA was a bit weird on the title screen - everything moved at the same pace. Here's what it looked like.


I really appreciate your help, and I'm glad we're making progress. Don't know what else could be going wrong...
Where would I find that, perchance? (sorry, I'm fairly new)
Okay - I am trying to set a breakpoint in Mesen-S. I have the debugger open and in the very bottom in the middle section there is the "Breakpoints" spot - I'm trying to make a new breakpoint, and set the ram address (ASM file says it uses 7F9E00 - 7F9E09). The text where I type the address in turns red when I go beyond 4 digits and won't let me press "OK"- how should I proceed?

(Also - would the Breakpoint Type count as "Video RAM"?)

So sorry to keep bothering you guys..
I got it working! Thanks so much!
Pages: « 1 »
zltc's Profile - Posts by zltc

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks