View unanswered posts | View active topics It is currently Fri Dec 27, 2024 10:04 am



Reply to topic  [ 8 posts ] 
 Global Scripts? 
Author Message
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Global Scripts?
Is it possible to have a global script that will run without you having to create an object with the script attached?


Wed Jan 06, 2010 4:51 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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.


Wed Jan 06, 2010 4:52 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post 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.


Wed Jan 06, 2010 4:58 am
Profile
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Global Scripts?
Maybe threads would work.


Sun Jan 10, 2010 2:36 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Global Scripts?
What are those?


Sun Jan 10, 2010 3:41 am
Profile
User avatar

Joined: Mon Jul 16, 2007 9:50 am
Posts: 1512
Location: Tallahassee, FL
Reply with quote
Post 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.


Tue Jan 12, 2010 12:19 am
Profile YIM
User avatar

Joined: Tue Nov 06, 2007 6:58 am
Posts: 2054
Reply with quote
Post Re: Global Scripts?
Lua has threads. Well. Kinda.


Tue Jan 12, 2010 7:40 am
Profile
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post 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.


Wed Jan 13, 2010 12:23 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.043s | 13 Queries | GZIP : Off ]