Banner
Views: 853,027,489
Time:
25 users online: 7 up, blgmadresh0000, bsolt, buggy789, CalHal, Darknubs, Enan63, Epic_Manky, FireSeraphim, Golden Yoshi, iSwaggMaster, LeaderAngelo, LOLRyan2006 the Goombud, Lumy,  Major Flare,  MM102, NewPointless, Nirv, RollingRigatonis, SimFan96, SquidBoi84, supermargot, tjb0607, underway, Zidan3 - Guests: 71 - Bots: 54 Users: 47,044 (2,522 active)
Latest: Jv341211
Tip: If you're using the original SMW ending, remember that level 104 (Yoshi's House) will appear during it.Not logged in.
GPS corrupting SA-1 ROM [Solved, we take those I guess]
Forum Index - SMW Hacking - SMW Hacking Help - GPS corrupting SA-1 ROM [Solved, we take those I guess]
Pages: « 1 »
So I was making a demo for my hack. I selected about 30 sublevels and inserted the graphics and ExGFX before I got to the serious stuff.

1. I started with a clean ROM
2. Expanded to 4MB ROM
3. Added SA-1 patch
4. Imported 30 sublevels
5. Imported GFX and ExGFX
6. Used AddMusicK
7. Added uberASM

Then when I used GPS I noticed the music was way off, and sometimes sound effects wouldn't play or the game would freeze (not crash, just stay on the screen) on "MARIO START!" on certain levels.

SpriteTool seemed to work fine but GPS certainly didn't. I'm sure I did everything fine, is it just the tool? I've heard GPS sometimes corrupts ROMs bigger than 2MB, and, well, my SA-1 ROM is 8MB.

Thanks. #w{=3}
Did you use this GPS or the one in the Tools section? You're supposed to use the one linked since it has SA-1 compatibility. I will yet have to update a few things on it before I replace it with the one in the tools section.

--------------------
https://www.youtube.com/watch?v=3xkRkaXPN_A
---
GitHub - Twitter - YouTube - Blog - SnesLab Discord
I'm now using the one you linked me but...



I'm getting this error message what do I do? The only thing the readme talks about regarding SA-1 is as follows:


Originally posted by SA-1 GPS' readme
Q) Are SA-1 ROMs supported?
A) Yes, as long the new blocks and shared routines you insert are compatible with SA-1. You can convert them using the
SA-1 Convert Tool, available at the Tools section in SMW Central or by asking the block author for a SA-1 or hybrid
(both standard and SA-1) version of the block in case the tool don't work.
Originally posted by ExoticMatter
I think this is an asar bug; you'll have to wait for it to be fixed.

http://smwc.me/1319862


So is there no way for me to fix this myself?
I think, you can delete/ comment at least elsif !sa1 == 1 and the line after it out i.e. something like this:
Code
macro define_sprite_table(name, name2, addr, addr_sa1, addr_more_sprites)
if !sa1 == 0
    !<name> = <addr>
else
    !<name> = <addr_more_sprites>
endif
    !<name2> = !<name>
endmacro

If that doesn't work then you just need !<name> = <addr_more_sprites> and !<name2> = !<name> i.e. something like this:
Code
macro define_sprite_table(name, name2, addr, addr_sa1, addr_more_sprites)
    !<name> = <addr_more_sprites>
    !<name2> = !<name>
endmacro


--------------------
Okay, my layout looks ugly.
Originally posted by MarioFanGamer
I think, you can delete/ comment at least elsif !sa1 == 1 and the line after it out i.e. something like this:

It let the program add the blocks but now I'm at square one with the glitched music and freezing levels.

Could inserting GFX and ExGFX incorrectly make the ROM work improperly like this, or do I need to insert patches in a particular order after installing the SA-1 patch? On my actual hack's ROM GPS works just fine with all the patches.
Originally posted by MarioFanGamer
I think, you can delete/ comment at least elsif !sa1 == 1 and the line after it out i.e. something like this:
Code
macro define_sprite_table(name, name2, addr, addr_sa1, addr_more_sprites)
if !sa1 == 0
    !<name> = <addr>
else
    !<name> = <addr_more_sprites>
endif
    !<name2> = !<name>
endmacro


Alternatively, you could do this as a """proper""" solution, although tbh it's kind of pointless if !sa1 is never 1. I honestly doubt that this will fix whatever problems you're having with glitched music and freezing levels, by the way (unless you accidentally deleted the wrong thing.)

Code
macro define_sprite_table(name, name2, addr, addr_sa1, addr_more_sprites)
if !sa1 == 1
    !<name> = <addr_sa1>	
else ; Nested ifs are nIFty
if !sa1 == 0
    !<name> = <addr> 
else
    !<name> = <addr_more_sprites>
endif
endif
    !<name2> = !<name>
endmacro


--------------------
Yeah, nothing's working. Thanks for the help, I'm probably just going to re-patch everything and check if I missed anything.

EDIT: I started off with another clean ROM and re-patched it in a different order of patches this time. Miraculously it worked.

We take those...? I guess...?
Pages: « 1 »
Forum Index - SMW Hacking - SMW Hacking Help - GPS corrupting SA-1 ROM [Solved, we take those I guess]

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

Copyright © 2005 - 2020 - 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