client
var
TEST = ""
proc
loadResources()
for(var/f in flist("anim/"))
if(findtext(f,".css") || findtext(f,".js"))
TEST += "[f]"
src << browse_rsc(f, "[f]") //THIS IS THE RUNTIME ERROR
Problem description:
The "TEST" string displays the file name correctly, but the file/f gives me a runtime.
runtime error: bad resource file
proc name: loadResources (/client/proc/loadResources)
source file: _client.dm,31
usr: null
src: Guest-W3805954320 (/client)
call stack:
Guest-W3805954320 (/client): loadResources()
Guest-W3805954320 (/client): New()
since the file does not exist with the resource cache yet.