Language…
9 users online: ASMagician Maks, iamfromwinnipeg, Idrinkgrapesoda, Jordan, LightAligns, rafaelfutbal, SolveForX, TR618, VitorSMHack - Guests: 67 - Bots: 324
Users: 66,263 (2,216 active)
Latest user: onyxblaster

*UberASM* Error: line 99 - file does not exist

I'm very new to this, but everything I've come across makes me feel like this should work, but I have no idea what I'm doing wrong.
Here's what I have in list.txt:
-----
verbose: on



# UBERASM TOOL: LIST FILE
# This is a list of all the code files you're using, and when to run them.



# LEVEL CODE
# Code files in this list will be run in specific levels.

# EXAMPLE:
# To run the code from the file "mycode.asm" in level 105,
# put "mycode.asm" in the "level" folder
# and add an entry to this list saying "105 mycode.asm"
# (without the quotes, and without # in front).

# - You can use the same code file in multiple levels!
# - If you want to use multiple code files in the same level,
# check https://www.smwcentral.net/?p=faq&page=1515827-uberasm .
# - To run the same code in every level, apply it to game mode 14 (see below).

level:
105 example.asm





# OVERWORLD CODE
# Code files in this list will be run on specific overworld maps.

# Each map has a number:
# 0: Main Map
# 1: Yoshi's Island
# 2: Vanilla Dome
# 3: Forest of Illusion
# 4: Valley of Bowser
# 5: Special World
# 6: Star Road

# EXAMPLE:
# To run the code from the file "mycode.asm" on the Vanilla Dome map,
# put "mycode.asm" in the "overworld" folder
# and add an entry to this list saying "2 mycode.asm"
# (without the quotes, and without # in front).

overworld:
1 example.asm





# GAME MODE CODE
# Code files in this list will be run during specific game modes.

# Some common game modes are:
# 01: "Nintendo Presents" screen
# 07: Title Screen
# 08: Title Screen (File select)
# 0E: Overworld
# 14: Level
# You can also define your own (from 2A to FF).

# EXAMPLE:
# To run the code from the file "mycode.asm" in game mode 14 (i.e. in all levels),
# put "mycode.asm" in the "gamemode" folder
# and add an entry to this list saying "14 mycode.asm"
# (without the quotes, and without # in front).

gamemode:
14 duck.asm
14 max_speed_invincibility.asm
14 WallStickAndJump.asm
14 yoshi_afraid.asm
14 YoshiFly.asm
0E OverworldExitCounter.asm


# OTHER OPTIONS

# Global code - this will be run all the time.
global: other/global_code.asm

# Status bar code - this will be run when the status bar is drawn to the screen.
statusbar: other/status_code.asm

# A file containing macros.
macrolib: other/macro_library.asm

# Sprite-related RAM (see README). You probably don't need to change this.
sprite: $7FAC80 # 38 (SNES) or 68 (SA-1) bytes of free RAM.
sprite-sa1: $41AC80 # Optional for SA-1 ROMs.

# The name of your ROM file - this will be used if you don't specify a ROM name
# when running UberASM Tool.
rom: SMW.smc
-----
For starters, you want to place the content of list.txt into [code] blocks for nicer formatting and prevent your post from getting stretched out.

UberASM will always look for the ROM specified in list.txt (that's the purpose of the line rom: SMW.smc and is incidentally the line where it throwns an error).

There are three options you can do:
  • Change your ROM to SMW.smc
  • Change SMC.smc into the name of your ROM (that's the most recommend option)
  • Remove the line and provide the ROM yourself through the command line (if you're a fan of command lines and scripts).
Thank you, that helped.
But now it seems I can't use more than one gamemode asm?
Is there a way to compile them into one file, and the have list.txt call that up instead?
You can either use the workaround that's detailed in the FAQ here, or you can try out 2.0, which is still in the waiting section here, which adds that as a built-in feature (make sure to read the readme).
Originally posted by Fernap
You can either use the workaround that's detailed in the FAQ here, or you can try out 2.0, which is still in the waiting section here, which adds that as a built-in feature (make sure to read the readme).


Thank you! This has been very helpful! Now everything works! Now it's time to really get started!