Banner
Views: 944,798,651
Time:
15 users online:  BeeKaay, DKR_02, Evernn, Foreversmokin,  GlitchCat7, Miscalc, Paithus, Panik FLDV,  quietmason, RainbowShell, SJandCharlieTheCat, Skewer, SmokyShroom, UlticraftMTT, VLSkoot - Guests: 86 - Bots: 67 Users: 52,530 (2,022 active)
Latest: marlowe
Tip: The first column of the palettes list is the transparency. Don't edit it, as it won't do anything.
Not logged in.
Trying to apply 2 UberASM patches to a level, I've tried seemingly everything but nothing works
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Trying to apply 2 UberASM patches to a level, I've tried seemingly everything but nothing works
Pages: « 1 » Link
So I want to apply 2 UberASM patches to 2 different levels (same patches).
These patches are for Horizontal Screenwrap and a patch that disables the player from using specified inputs
(in this case, it prevents the player from pressing start and select).
I have used both of these patches individually and they work perfectly fine.
I have tried putting in several different lines of code trying to get this to work, the codes are down below.


Now with the first one I just might not have enough of an understanding about inserting gamemodes but even then,
throughout all of my attempts (and the file names have been changed many times and no there aren't any spelling mistakes), UberASM always says


"error:<E5060>: Label 'screenwrap_main' wasn't found [JSL screenwrap_main]"


I'm not sure if this is a problem with my file tree, but all of the other patches
I've inserted before worked perfectly fine and I have never once changed
the location of any folders in my UberASM folder...


If anyone could help me out with my probably very easy to fix problem I would GREATELY appreciate it!


These are the different codes I tried
(apologies for my lack of knowledge with coding)

Code
macro call_library(i)
	PHB
	LDA.b #>>16
	PHA
	PLB
	JSL 
	PLB
endmacro

main:
%call_library(noexit_main)
%call_library(screenwrap_main)
RTL



Along with

main:
	JSL noexit_main
	JSL screenwrap_main
	; ...
	RTL



And finally

main:
	JSL noexit_main
	JSL screenwrap_main
	RTL

Tag (i) was not closed.
Tag (pre) was not closed.
Tag (div) was not closed.

--------------------
CEO of having way too many unfinished hacks

always looking for playtesters!

also always complaining about how my footage
of beating the fruit dealer got corrupted
When you call the library files with JSL or the %call_library macro both the file name and the label name must be exactly the same as the file (including capitalizations), if I remember correctly the screen wrap uses "Main" rather than "main" so that might be the issue here (if that's the case, changing to %call_library(screenwrap_Main) should fix it).
problem solved and I feel like an idiot lmao

Thank you very much though!!

--------------------
CEO of having way too many unfinished hacks

always looking for playtesters!

also always complaining about how my footage
of beating the fruit dealer got corrupted
Pages: « 1 » Link
Forum Index - SMW Hacking - SMW Hacking Help - ASM & Related Topics - Trying to apply 2 UberASM patches to a level, I've tried seemingly everything but nothing works

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