SRL Archive - Suggestions

Running new scripts from current one


mixster

2010-01-13 08:30:07

I believe it is still the case that at some time or another it will be implemented so that a single Simba can run multiple scripts. When that does come up, I was thinking being able to run a new script from the current script would allow for somewhat multithreading in a script.

Specifically relating to SRL, random checking could be put into a separate script and then run without requiring the main script to check and so result in minimal lag with maximum detection ability (maybe even allowing slower, but more accurate checks).

Of course, this does open up a security flaw in that someone could produce a "harmless" script that downloads another, malicious, script and runs it. Thus I think a setting of some kind would best be implemented (possibly relating to maximum number of scripts a single one is allowed to spawn but at the least an option for allowing it).

Nava2

2010-01-13 11:34:17

I'm not 100% sure, but based on that someone reported you could start too many scripts I think that it is already implemented.

Cool idea of using multiple threads to check for randoms. But I really don't know how that would get implemented

Kyle Undefined

2010-01-13 17:07:54

I think that this would be a nice feature, it will allow a script to run and always be checking for randoms too. It could also be used to run an autoresponder.

~Camo

Widget

2010-01-13 20:03:42

What I think would be nice is if you could have two mainloops and have them run side-by-side. This would also mean we can use nice graphical progress reports :)

Kyle Undefined

2010-01-13 21:06:30

Yes, I agree. I was testing this earlier and Simba kept crashing because it only allows one thread to be ran :/ Also, passing variables between the tabbed scripts.

~Camo

Gu3st...

2010-01-14 14:10:43

This will also help me developing my games, making me able to have anti-aliasing without lagging or being slow :)
Would be a very nice feature to have!

marpis

2010-01-16 04:18:44

Is it possible to do things like this

{ THREAD 1 }
Repeat
Proc1;
Proc2;
Proc3;
Until(False);

{ THREAD 2 }
Repeat
Case Application.Threads[0].GetCurrentProcedure Of
Proc1: DoThis;
Proc2: DoThat;
Proc3: DoHoo;
End;
Until(False);
???

mastaraymond

2010-01-16 07:58:17

From: marpis
Is it possible to do things like this

{ THREAD 1 }
Repeat
Proc1;
Proc2;
Proc3;
Until(False);

{ THREAD 2 }
Repeat
Case Application.Threads[0].GetCurrentProcedure Of
Proc1: DoThis;
Proc2: DoThat;
Proc3: DoHoo;
End;
Until(False);
???

Would be a lot of hassle I guess, but yeah certainly possible.

Wizzup?

2010-01-16 10:22:15

From: Zyt3x
This will also help me developing my games, making me able to have anti-aliasing without lagging or being slow :)
Would be a very nice feature to have!


If you're lucky I may implement OpenGL into Simba, so you can make real games. ;)

Gu3st...

2010-01-16 12:17:10

From: Wizzup?
If you're lucky I may implement OpenGL into Simba, so you can make real games. ;)
:O:O:O:O:O:OOO

You made my gam.. err DAY!!!! ;D
Please do it :)

EDIT: lol I'm just tired of making my own 2d engine every time I make a game :P

Dan Cardin

2010-01-17 09:41:16

you could make a better engine that can be reused? And wont you still have to do so with OpenGL? isnt that just niftier for drawing?

Gu3st...

2010-01-17 09:44:04

From: Dan Cardin
you could make a better engine that can be reused? And wont you still have to do so with OpenGL? isnt that just niftier for drawing?
Well yes, I did so, but some of the games had to have faster rendering and/or anti aliasing so I had to redo it every time I made a game..

Dan Cardin

2010-01-17 17:26:43

you do anti aliasing in SCAR? how so? As well as you could make your engine a bit more versitile, but really thats not my business as well as i would like to see some of your games out of nifty interest.

As well as, while i might appreciate an OpenGl plugin for learning's sake of the gl itself, unless one was making a 3d game, its kind of overkill. The current drawing in SCAR is good enough, and i would expect this to be the equal or better of that to keep up the competition, which would render it (very much pun intended) pointless for 2d.

Gu3st...

2010-01-17 17:51:30

From: Dan Cardin
you do anti aliasing in SCAR? how so? As well as you could make your engine a bit more versitile, but really thats not my business as well as i would like to see some of your games out of nifty interest.

As well as, while i might appreciate an OpenGl plugin for learning's sake of the gl itself, unless one was making a 3d game, its kind of overkill. The current drawing in SCAR is good enough, and i would expect this to be the equal or better of that to keep up the competition, which would render it (very much pun intended) pointless for 2d.
I've tried 3D games too, but the rendering of more than 20 points made it slow so I forgot about it.

Anti aliasing is easy, loop through all the pixles gather the color around the current pixel and find the average color (it looks best/works fastest if you only gather two colors, left and right of the current pixel)

The game isn't ready, and I haven't worked on it for about 5 months or so, and it was supposed to be much harder with bigger levels, puzzles and other nifty things, but.. here ya go:

Say hello to "Boxx" he lives on the planet "Boxxy" and his mission is to collect Boxes.

I'm soon done with a game that is based on http://adamatomic.com/canabalt/