Blockland Forums > Modification Help
Opening scripts ingame
MagicAhrim:
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: ---for(%file = findFirstFile("Add-Ons/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/*.cs"))
{
--- End code ---
Could I do
--- Code: ---for(%file = findFirstFile("Add-Ons/Script_*/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/Script_*.zip/*.cs"))
{
--- End code ---
or
--- Code: ---for(%file = findFirstFile("Add-Ons/*/*.cs"); %file !$= ""; %file = findNextFile("Add-Ons/*.zip/*.cs"))
{
--- End code ---
Syntax:
--- Quote from: MagicAhrim on August 20, 2010, 07:42:51 PM ---
--- Code: --- findNextFile("Add-Ons/*.cs"))
--- End code ---
--- End quote ---
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
Kalphiter:
Yes, scripts in ZIP files can be treated as files due to the way the resource manager works.
Chrono:
You also don't use .zip when reading files within a zip.
cciamlazy:
Use console I'm pretty sure it's
Exec("Nameofscript.cs")