if failure?
Moderator: Core Staff
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
Create a seperate thread that simply loops...
If the HUD units are not defined then print a message.
hopefully we should be able to find otu whether or not the HUd is being created or just ignored.
If the HUD units are not defined then print a message.
hopefully we should be able to find otu whether or not the HUd is being created or just ignored.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
Thank you for the fast reply
On the first try, without reconnect I see this in console:
Warn ^7is ^2working
Warn^62 ^7is ^2working
And the hud looks perfect
After a reconnect I still see this in console:
Warn ^7is ^2working
Warn^62 ^7is ^2working
But then the hud fails, I only have a black screen
And if I use a loop in it then the text "7You can continue in: [number]" isn't visible @ the first try.
On the first try, without reconnect I see this in console:
Warn ^7is ^2working
Warn^62 ^7is ^2working
And the hud looks perfect
After a reconnect I still see this in console:
Warn ^7is ^2working
Warn^62 ^7is ^2working
But then the hud fails, I only have a black screen
And if I use a loop in it then the text "7You can continue in: [number]" isn't visible @ the first try.
Last edited by Moustache on September 23rd, 2010, 6:55 am, edited 1 time in total.
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
Are you trying this on a server or just through mod tools?
Developer 1 or 0?
Developer 1 or 0?
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
On a dedicated 1 server.Drofder2004 wrote:Are you trying this on a server or just through mod tools?
Developer 1 or 0?
I have not defined developer so I think it is 0.
I can place it online tomorrow on a dedicated 2 server and then try it, but would that make any difference?
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
Potentially.Moustache wrote:but would that make any difference?
But I cannot see a problem with the code, which is why I turn to the server setup.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
K, I will test it after school.
Re: if failure?
It only works the first time. The second time I just get the same shit at my home host. A black screen without any text
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
try placing a "0.05" wait after your "destroy()" threads.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
That gives the same failureDrofder2004 wrote:try placing a "0.05" wait after your "destroy()" threads.
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
Try removing everything but the warning text (comment everything else out).
Also try using setShader on the ones with text, instead of text to see if they are being drawn at all.
Also try using setShader on the ones with text, instead of text to see if they are being drawn at all.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
When I replace both text lines for shades it works perfect, even after a reconnect.
How is that possible?
Is there something special about those text lines?
How is that possible?
Is there something special about those text lines?
Last edited by Moustache on September 25th, 2010, 8:13 am, edited 1 time in total.
Re: if failure?
Should I run the script as a players thread or a level thread?
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
Sorry, was too tired to look further into this yesterday and the same applies today.
I am totally stumped on why the text is not appearing, by I suggest using a level variable with a precached text, and see if that works.
I am totally stumped on why the text is not appearing, by I suggest using a level variable with a precached text, and see if that works.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Re: if failure?
Please don't apologize. This is not your job or something like that. You are just being friendly by helping a noob with his lack of scripting skills.
I have tried to set the blackscreen and the text in 2 different threads. But then I only get both text HUD elements. But not the black screen.
I also see the two text HUD elements after a reconnect. But the blackscreen is taking a trip to an other dimension or so, I don't know where it is.
I have tried to set the blackscreen and the text in 2 different threads. But then I only get both text HUD elements. But not the black screen.
I also see the two text HUD elements after a reconnect. But the blackscreen is taking a trip to an other dimension or so, I don't know where it is.
Last edited by Moustache on September 25th, 2010, 4:21 pm, edited 1 time in total.
-
- Core Staff
- Posts: 13313
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: if failure?
you have not added your wait in your blackscreen function, the moment you create the screen you are deleting it.
Add a "wait 20;" before your delete "if(isDefined)2 at the bottom of the blackscreen function.
Add a "wait 20;" before your delete "if(isDefined)2 at the bottom of the blackscreen function.
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
Who is online
Users browsing this forum: No registered users and 29 guests