hi. i'm doing development for a friends server. he hosts on his computer so i cannot edit an ftp and develop for that. instead i can only edit files by injecting them thru eval. nothing malicious, its just writing prefs or editing script files in the gamemode folder
im able to write and read the files fine. im writing a file as a .cs file and it can be read, but for some reason attempting to exec(); that file in the path will break things. like it executes stuff, but it like breaks certain contents. example
new scriptObject(hello) {
test =5;
};
when i multi-line eval this, the object is created and works. i can create as many clones as necessary and delete them. but when i write this to a .cs file on my friends computer and execute it, the object becomes corrupted or deleted automatically. isObject(hello) will return 0
is there some limitation im not understanding