Author Topic: A Paradox.  (Read 961 times)

Put the following code into a .CS file and have it run on server's start.
Code: [Select]
echo(getColorIDTable(1));
The result is this:
Code: [Select]
0 0 0 0
The code I have written uses a config file to load a color ID which is then used to do various things. Since the color table does not load at the very start of the server, this simply wont work. A possibility would be to, instead of using the color ID, to save the actual RGBA color to the file. However, this would not work since there, as far as I know, is no reverse-sequence to getting a Color ID from a Color and I need both.

Another possibility would of been to save both, but since I want the code to be as clean-cut and effective as possible, I refuse to do this. Should a person change the color set it would completely throw the code off balance.

I'm absolutely stumped on what to do.
« Last Edit: August 03, 2008, 11:32:04 PM by IbanZ »

Set a schedule to load the script 10 ms after everything else has loaded.

How would I determine if everything is loaded?
« Last Edit: August 04, 2008, 12:47:44 AM by IbanZ »

How about... just try it?


Sheesh, give someone a solution and they'll bitch about how it won't work instead of trying it.

..? I asked how I would know if everything is loaded. That's a question, not a "lol no"

It will take you two seconds to try it. Do it already. You can't be sure it's an issue until you test it and confirm it is an issue.

It will take you two seconds to try it. Do it already. You can't be sure it's an issue until you test it and confirm it is an issue.
What in the HELL are you talking about? HOW would I create a timer that would run exactly 10miliseconds AFTER the server has loaded IF I don't know WHEN it is loaded?

Hm, I don't know, a file with a
Code: [Select]
schedule(10,0,"exec","./otherfile.cs");
perhaps?


I mean, logic isn't that overrated.

Never-loving-mind. Apparently I've worded this topic beyond repair.