Author Topic: Opening scripts ingame  (Read 952 times)

Is it possible to still open scripts in game even though they are in zips. I know this was possible when in v8 but if it is possible what would i change out of solarflare's ingameeditor to achieve this?

This is just one line
Code: [Select]
for(%file = findFirstFile("Add-Ons/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/*.cs"))
   {

Could I do
Code: [Select]
for(%file = findFirstFile("Add-Ons/Script_*/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/Script_*.zip/*.cs"))
   {

or
Code: [Select]
for(%file = findFirstFile("Add-Ons/*/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/*.zip/*.cs"))
   {
« Last Edit: August 21, 2010, 12:08:42 PM by MagicAhrim »

Code: [Select]
findNextFile("Add-Ons/*.cs"))

i am not familiar with what the star is representing, but yes, im pretty sure it is possible, try making your own function for this type of thing
« Last Edit: August 20, 2010, 07:55:42 PM by Syntax »

Yes, scripts in ZIP files can be treated as files due to the way the resource manager works.

You also don't use .zip when reading files within a zip.

Use console I'm pretty sure it's
Exec("Nameofscript.cs")

Use console I'm pretty sure it's
Exec("Nameofscript.cs")
That's not what he's asking

2 and 3 worn't work, you can only include the file extention at the end of the path, so you cannot do:
exec("Add-ons/script_lol.zip/server.cs");

Use console I'm pretty sure it's
Exec("Nameofscript.cs")
If you don't know what you're talking about, don't speak.

2 and 3 worn't work, you can only include the file extention at the end of the path, so you cannot do:
exec("Add-ons/script_lol.zip/server.cs");
The resource manager treats add-on ZIPs like they were folders.

Yes, but you do not put .zip when executing and referencing files inside of them.

Use McTwist's add-on loader.

Use McTwist's add-on loader.
There is a fine line between loading an add-on and opening a script. What are you doing here.