Facepunch / sbox-issues

180 stars 12 forks source link

Getting the Indent wrong when targeting a game will brick your project #7515

Open Retroeer opened 5 days ago

Retroeer commented 5 days ago

Describe the bug

If you're making an addon project, targeting a game and typing in the wrong indent will brick it by giving you an error while the project is starting. You can resolve this by manually changing the target in the sbproj file, but this isn't ideal for a primarily artist audience.

Image

To Reproduce

  1. Make a new Addon Project
  2. Type in the wrong indent (ie: lmfao.xdxdxd)
  3. Upon restart, the project is now bricked

Expected behavior

If the project can't be found swap the target indent back to nothing before something catastrophic happens and warn the user it couldn't find the package maybe?

Media/Files

No response

Additional context

No response