UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Black screen upon adding code

broken avatar :(
Created 8 years ago
by i3ick
0 Members and 1 Guest are viewing this topic.
1,147 views
broken avatar :(
×
broken avatar :(
Location: at
Date Registered: 7 October 2016
Last active: 7 years ago
Posts
19
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
i3ick's Groups
i3ick's Contact & Social Links
This is crazy. I can't debug a black screen. How does one turn on the debugging console?

So I add this piece of code (which is initialized in the main function: level thread triggercheck()) and I get a black screen. Wtf is going on?

Code Snippet
Plaintext
function triggercheck(){
PowerActivated = false;
padswitch = false;

while(!PowerActivated)
{

AllClientsPrint("^6Stopping loop sound");

}

}

Marked as best answer by i3ick 8 years ago
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 12 September 2016
Last active: 3 years ago
Posts
306
Respect
Forum Rank
Perk Hacker
Primary Group
Member
My Contact & Social Links
More
×
reckfullies's Groups
reckfullies's Contact & Social LinksReckfulliesReckfullies
This is crazy. I can't debug a black screen. How does one turn on the debugging console?

So I add this piece of code (which is initialized in the main function: level thread triggercheck()) and I get a black screen. Wtf is going on?

Code Snippet
Plaintext
function triggercheck(){
PowerActivated = false;
padswitch = false;

while(!PowerActivated)
{

AllClientsPrint("^6Stopping loop sound");

}

}
Assuming you are being serious about this,

What is is doing is making a loop where it keeps spamming a print constantly as long as the PowerActivated variable is not truewhich is most likely crashing your game as soon as it loads into the map.
Last Edit: November 05, 2016, 05:22:55 pm by reckfullies
broken avatar :(
×
broken avatar :(
Location: at
Date Registered: 7 October 2016
Last active: 7 years ago
Posts
19
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
i3ick's Groups
i3ick's Contact & Social Links
Assuming you are being serious about this,

What is is doing is making a loop where it keeps spamming a print constantly as long as the PowerActivated variable is not truewhich is most likely crashing your game as soon as it loads into the map.

Oh yeah, obviously. Idk how I let that slip. Anyway adding a delay stopped the crashing.
Thanks mate!

 
Loading ...