Game Development Community

Unable to exec scripts in the root dir

by Olafur Osvaldsson · in Torque Game Engine · 08/15/2001 (9:24 am) · 1 replies

Hi,
I'm trying to make main.cs in the root dir of the example app execute autoexec.cs in the same dir if it exists, but every time it gives me the error:

"Missing file: autoexec.cs!"

But if I put this file in base/autoexec.cs and execute that I get no errors, has anyone fixed this?

Oli

#1
08/15/2001 (9:47 am)
This isn't a bug. Beside main.cs, the engine only allows files to be accessed from "mounted" mod directories. This is mainly for client security as it keeps downloaded client mods from messing with the client exe, main.cs, or anything else on their hard drive.