Language…
18 users online: Dennsen86, DixyNL,  Eden_, GiraffeKiller, Golden Yoshi, Hammerer, JezJitzu, MarkVD100, Metal-Yoshi94, MorrieTheMagpie, Nayfal, Papangu, rafaelfutbal, Sadistic Designer,  Segment1Zone2, SolveForX,  Telinc1, TheOrangeToad - Guests: 282 - Bots: 363
Users: 64,795 (2,369 active)
Latest user: mathew

NSMBWII Secret Passages Error

So I was trying to insert the NSMBWII secret passages included with these patches, but the .txt says to put the ''level.asm'' and ''Secretpassages.asm'' files in Uberasm's hijacks folder. Except there’s not even a hijacks folder! So I assumed that I had to put the files in ''work'' and ''base'' folders in the ''asm'' folder (since they also have a ''level.asm'' file) but even after that I had this error:
Code
(E5088): Define 'Base2' wasn't found.

What could be the problem?

Here is what the .txt says:
...
2.- Replace level.asm in the hijacks folder with the one included. Add SecretPassages.asm to the same folder.
3.- Go to level_code.asm and add this piece of code to the level where you want this effect:
LDA #$XX
STA $0F3A+!Base2
RTS
Where XX is the circle radius, with a maximum of 40. Anything bigger will crash.
4.- Insert uberASM as usual. The included code will, by default, make a circle of a radius of 20 in level 105 whenever you step on layer 2.
...
UNPERISHABLE - July 2023 Prototype (Download)
SMW: Endless Night (currently on pause)
Deviant Art account


Some of the defines are being “renamed” when supporting sa-1 hybrids. In this case:
Code
Base1 -> dp
Base2 -> addr


Many tools moved to the modern sa-1 stuff.
Try replacing !Base2 with !addr
Give thanks to RPG hacker for working on Asar.
It worked, but now I have this error:
Code
Missing load/init/main/nmi label.
And even if I try to add them in ''level_code.asm'' Uberasm just crashes.
UNPERISHABLE - July 2023 Prototype (Download)
SMW: Endless Night (currently on pause)
Deviant Art account


Perhaps you should add main: below the LDA command.
You mean here?
Code

level105:
	LDA #$20
	main:
	STA $0F3A+!addr
	RTS

It's not working.
UNPERISHABLE - July 2023 Prototype (Download)
SMW: Endless Night (currently on pause)
Deviant Art account


I meant before the LDA command and I wanted to say above before.
It's still saying that the label can't be find:
Code
...
Unhandled Exception: System.Exception: can't find label
...


EDIT: Ok it works, but only when I remove the ''level.asm'' file in the ''asm'' folder. So the problem is this file and not ''level_code.asm''.
UNPERISHABLE - July 2023 Prototype (Download)
SMW: Endless Night (currently on pause)
Deviant Art account




The problem is that this code was written for an older version of UberASM (the old patch version), not the tool.

Here's what you should do instead to fix it:
1) Put SecretPassages.asm into uberasm tool's "library" folder. Open it and replace all instances of "!Base2" with "!addr". Then add this code at the top:

Code
SecretPassages:
	PHB : PHK : PLB
	JSR RunsEachFrame
	PLB
	RTL

2) Create a new, blank ASM file, put it in UberASM's level folder, and put this inside it:

Code
init:
main:
	LDA #$20
	STA $0F3A|!addr
	JSL SecretPassages
	RTL

3) Set that new ASM file to run in your level in your list.txt.

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer