SRL Archive - OSR Help

Is this possible?


fluffycluffy

2013-05-03 01:04:30

Is it possible for a script to be made into an .exe file?

So what I'm trying to do is make a portable version of my script in one single .exe file. So when I click that file it starts simba and the script starts.

Just wondering.

Kevin

2013-05-03 01:27:28

From: fluffycluffy
Is it possible for a script to be made into an .exe file?

So what I'm trying to do is make a portable version of my script in one single .exe file. So when I click that file it starts simba and the script starts.

Just wondering.


This explicitly can't be done natively as we are an open-source community and that would prevent people from reading the code (and thus could possibly be given a dangerous file).

meanderingmonk

2013-05-03 01:42:47

From: fluffycluffy
Is it possible for a script to be made into an .exe file?

So what I'm trying to do is make a portable version of my script in one single .exe file. So when I click that file it starts simba and the script starts.

Just wondering.


I'm not sure there's a way to make scripts auto-play once they are loaded into Simba. To open the script more quickly, you could create a short-cut and place it on your desktop. (Instead of having to File->Open in simba client.)

fluffycluffy

2013-05-03 10:19:39

I just want to do this for one of my scripts that I made though, one I wouldn't release.

King

2013-05-03 10:33:30

From: fluffycluffy
I just want to do this for one of my scripts that I made though, one I wouldn't release.


For personal use yes, just make the .Exe open the file and have it run it. Saw this somewhere awhile ago. Check out the SRL 6 hour fix from awhile ago, it restarted I believe

Kevin

2013-05-03 11:09:09

From: King
For personal use yes, just make the .Exe open the file and have it run it. Saw this somewhere awhile ago. Check out the SRL 6 hour fix from awhile ago, it restarted I believe


I think what he's saying, is that he wants a single exe file that can be run without having simba even installed on said computer.

While I do believe that's possible, I do not believe in a legitimate reason to support it…

wthomas

2013-05-03 11:33:44

I think you can start simba with a batch file and give it the script to run as a parameter.

Brandon

2013-05-03 12:01:08

Yes it can be done..

Download Winrar, put the script in your scripts folder. Create a C++ file with something similar to:

system("Simba.exe -o scriptname.simba -r");

or

CreateProcess("Simba.exe", "-o scriptname.simba -r", ……….);

Place it in the Simba folder and zip it with Winrar. Enable Auto-exec on the rar file.

When you double click it, your script will run.