ID:2176674
 
Problem description:
Hitting error limit but program still running with tons of runtime errors and "syntax" errors, each error is basically
Code\Combat Code.dm:287:error: 'miss.wav': cannot find file

for every external file (sounds and icons) and bad icon operations ingame.
Can you show an example or two of the places where the errors point to?
As Kaiochao said, actual code it better than compiling errors. Although seeing that your code is in a folder called, "Code, I think it's safe to assume that your audio is in a folder as well.

If so, try writing out said folder before miss.wav.
'Audio/miss.wav'
Some examples are:
if(!prob(50))
SoundSystem('miss.wav',src)
else
SoundSystem('miss2.wav',src)


var/icon/H=new/icon('ComboNum.dmi',"hits")

if(!hairon)
haircolor=input("What color would you like your hair to be?","Hair") as color
hair=o.hairicon
eyebrows='Eyebrows.dmi'
eyebrows+=haircolor


What flame guardians suggested seems to work, but besides having literally hundreds of such instances in my code with alot of different names, it used to work before, and the thing is, it started after importing an icon i've been working on and copy pasting an already implemented feature:

Hair3
icon='Objects.dmi'
icon_state="hair3"
hairicon='Hair3.dmi'
sshairicon='SSHair3.dmi'
bsshair='BSSHair3.dmi'
ss2hairicon='SS2Hair3.dmi'

DblClick()
usr.HairApply(src)

HairApply Procedure
    HairApply(obj/o)
if(!icontoget)
alert("You must choose a skin type first")
return
if(!hairon)
haircolor=input("What color would you like your hair to be?","Hair") as color
hair=o.hairicon
eyebrows='Eyebrows.dmi'
eyebrows+=haircolor
basehair=hair
sshair=o.sshairicon
if(!o.bsshair)
basesshair=o.hairicon
else
basesshair=o.bsshair
ss2hair=o.ss2hairicon
hair+=haircolor
hairicon=image(hair,usr,"idle")
usr<<hairicon
hairon=1
else
del(hairicon)
hair=null
basehair=null
sshair=null
ss2hair=null
eyebrows=null
basesshair=null
hairon=0
Found something mildly unsettling after comparing with my backup:
Backup
// BEGIN_FILE_DIR
#define FILE_DIR .
#define FILE_DIR "All Icons"
#define FILE_DIR "All Icons/Attacks"
#define FILE_DIR "All Icons/Base"
#define FILE_DIR "All Icons/Effects"
#define FILE_DIR "All Icons/Hair"
#define FILE_DIR "All Icons/HUD"
#define FILE_DIR "All Icons/Items"
#define FILE_DIR "All Icons/Map Elements"
#define FILE_DIR "All Icons/Mobs"
#define FILE_DIR "All Icons/Other"
#define FILE_DIR "All Icons/Overlays"
#define FILE_DIR "Imports"
#define FILE_DIR "Sounds"
// END_FILE_DIR
<dm>

<b>Current Code</b>
<dm>
// BEGIN_FILE_DIR
#define FILE_DIR .
// END_FILE_DIR


Even when I copy the lines from the back-up, when I compile it just reverts to what it was before
In response to Cheesy pants
In "Build>Preferences...", enable the "Automatically set FILE_DIR for sub-directories" option. This means that all of your resource references (files in single-quotes) can be just the name instead of having to include the relative path in each of them. For large projects, enabling this can actually increase compilation time, though.

As it says at the top of all .dme files, all manual changes to the file should be made outside the BEGIN_ and END_ blocks.
It looks like I removed that comment thinking I would remember it...I was wrong, and thanks, I don't think I would have figured that out on my own and honestly, I was so tilted I was going to stop trying.
If you do not want to individually fix everything, what Kaiochao suggested is the way to go. I do suggest though that you manually include the folders in the code instead though.

I could be mistaken but I believe it does not only increase compile time but could potentially lead to cpu problems too.
In response to Flame Guardian
Dang, guess I'll look into it on a day when I have the time to sort through everything