Language…
7 users online: Cristian Cardoso, KoJi, pakkie, Papangu, playagmes169, stormitive, Zavok - Guests: 254 - Bots: 309
Users: 64,795 (2,377 active)
Latest user: mathew

Two uberasm codes for one sublevel

Hi,


my txt file looks like this:

5E levelasm1.asm
5E levelasm2.asm

(in the levelasm directory)


However, when i run the tool it says "Verbose mode enabled, number already used"

So i guess it refers to the level number 5E already used twice in that directory.

How can i have both codes for that sublevel? Im not experienced enough to put both codes on one text file.


See here.

(support for this is planned for a future release of UberASM Tool, though who knows when that'll be finished)

Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
so i checked out the thread and made an asm file called WrapC like this:

Code

init:

	JSL disappear_init
	RTL


main:  
	JSL disappear_init
	JSL vertwrap_main
	RTL


Uberasmtool responds "Label Vertwrap_main not found."

I can insert the dissapear.asm with this method like this:

Code

init:

	JSL disappear_init
	RTL


main:  
	JSL disappear_init
	RTL


But then it doesnt work anymore, the game crashes as soon as Mario jumps on the block (it worked before when i single inserted it with levelasm)

These are the files i used:
https://www.smwcentral.net/?p=section&a=details&id=18441
https://www.smwcentral.net/?p=section&a=details&id=20352


You're calling "disappear_init" under the main label when you should be calling "disappear_main" there.

Also, with the vertwrap_main thing, it's because it should be capitalized to "VertWrap_Main", as labels are case sensitive (check inside the ASM file for what capitalization the coder used). Also, the VertWrap.asm file also contains a "Load" label, which is another section you should include. (some codes also have an "NMI" label as well, which you do the same with)

So altogether, it should look like:

Code
load:
	JSL VertWrap_Load
	RTL

init:
	JSL disappear_init
	RTL

main:
	JSL VertWrap_Main
	JSL disappear_main
	RTL


Professional frame-by-frame time wizard. YouTube - Twitter - SMW Glitch List - SMW Randomizer
Originally posted by thomas
You're calling "disappear_init" under the main label when you should be calling "disappear_main" there.

Oops I typed it wrong here.


So I changed the file and the stuff gets inserted now. Only issue is that the dissappear.asm still has a problem and causes the game to crash.

But only if I use this method. I would have expected it to do the exact same thing.