ID:2797823
 
BYOND Version:514
Operating System:Windows 7 Home Premium
Web Browser:Chrome 102.0.0.0
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:
If you add an rsc file to your source anywhere (ie passing it as an argument in startup()) then it adds it to the rsc file. This looks like it happens again and again, so if you are adding the sources rsc file to the source for some ungodly reason, it'll grow exponentially with each compile.

Numbered Steps to Reproduce Problem:
Hit your head too hard a few times.
Slap 'gamename.rsc' in single quotes somewhere in your source.
Compile.
Compile again.
Compile until you run out of storage space.

Code Snippet (if applicable) to Reproduce Problem:
startup('thisgame.rsc')


Expected Results:
I feel like this is the expected result for this idiocy.

Actual Results:
About what you'd expect for this idiocy.

Workarounds:
Just be normal and don't do this.

Proposed fix
Don't allow a game to build its own rsc into its rsc.
Or just ignore me for being an idiot.
Upon further testing, this looks like it only grows the rsc file after the first compile. It reverts itself back down to the original size after the second.

Still, can we have a compiler warning when adding an rsc to the rsc. Doing this by mistake with a big rsc can be.. troubling