Data Realms Fan Forums
http://45.55.195.193/

Global Scripts?
http://45.55.195.193/viewtopic.php?f=73&t=17510
Page 1 of 1

Author:  CaveCricket48 [ Wed Jan 06, 2010 4:51 am ]
Post subject:  Global Scripts?

Is it possible to have a global script that will run without you having to create an object with the script attached?

Author:  Grif [ Wed Jan 06, 2010 4:52 am ]
Post subject:  Re: Global Scripts?

If you attach it to a scene, then yes.

Alternately, you can call dofile with some kind of thing. But that still requires you to have some kind of object.

General purpose scripts across all scenes are a no-go, unfortunately.

Author:  CaveCricket48 [ Wed Jan 06, 2010 4:58 am ]
Post subject:  Re: Global Scripts?

Thanks for the quick reply.

Quote:
General purpose scripts across all scenes are a no-go, unfortunately.

Hmm, that stinks, oh well. Perhaps I can make the object and name it as global and check for it.

Author:  mail2345 [ Sun Jan 10, 2010 2:36 am ]
Post subject:  Re: Global Scripts?

Maybe threads would work.

Author:  CaveCricket48 [ Sun Jan 10, 2010 3:41 am ]
Post subject:  Re: Global Scripts?

What are those?

Author:  Darlos9D [ Tue Jan 12, 2010 12:19 am ]
Post subject:  Re: Global Scripts?

We're in a thread right now.








... okay, joking aside, a thread is basically a processing idea. Your computer has processes, which are the different programs and services that are running. Inside a program, there can be multiple threads, which is basically one program running two different bunches of code at the same time. It's a parallel processing thing.

HOW this would help us here I have no clue.

Author:  mail2345 [ Tue Jan 12, 2010 7:40 am ]
Post subject:  Re: Global Scripts?

Lua has threads. Well. Kinda.

Author:  TheLastBanana [ Wed Jan 13, 2010 12:23 am ]
Post subject:  Re: Global Scripts?

Lua has an unofficial which allows for process threading. However, it involves recompiling the entire Lua engine. Whether you can achieve this or not by simply overwriting the DLLs that come with CC, I'm not too sure.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/