Post: [GSC] Conection Interupted Freezing
07-27-2016, 03:55 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU community, so i am having a problem with my GSC menu I am using Africanized menu base and I have a 'Weapons' menu which when ever I click on it I get connection interrupted then my PS3 freezes I am not sure what is wrong but if anyone can find a problem with it and tell me it would be very appreciated! Thanks.

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
07-27-2016, 08:54 PM #2
EternalHabit
Former Staff
Originally posted by Quacked View Post
Hello NGU community, so i am having a problem with my GSC menu I am using Africanized menu base and I have a 'Weapons' menu which when ever I click on it I get connection interrupted then my PS3 freezes I am not sure what is wrong but if anyone can find a problem with it and tell me it would be very appreciated! Thanks.

You must login or register to view this content.

You have an infinite loop somewhere that needs a wait time
07-27-2016, 09:37 PM #3
Originally posted by xTurntUpLobbies View Post
You have an infinite loop somewhere that needs a wait time


I'm a noob so I don't know what an infinite loop looks like :/
07-28-2016, 02:15 PM #4
seanhellen
Are you high?
Originally posted by Quacked View Post
I'm a noob so I don't know what an infinite loop looks like :/


Look for this;

    
For(;Winky Winky
{
Some code
}


at the end of the code (before the last }) you need wait 0.5; so it should look like this;

    
For(;Winky Winky
{
Some code
Wait 0.5;
}


For some reason, bo2 doesnt like having an infinite loop without a wait in there. You can replace the 0.5 with any number (time in secs) but it will delay it by that time.
What this for loop does is constantly executes the code within the brackets where I put "some code".
Usually a for loop has parameters for example

    
For(x=0; x < 10; x++)
{
self iprintln(x);
}

This would print numbers 0-10 on your screen - as it loops through, the x is increased by 1 and then stops. This doesnt need a wait command as it has a stop point.
As the infinite loop has no endpoint defined, it just carries on.

I know this isnt a very good explaination but hey, your original question is answered haha Happy
07-29-2016, 03:40 AM #5
Originally posted by Quacked View Post
Hello NGU community, so i am having a problem with my GSC menu I am using Africanized menu base and I have a 'Weapons' menu which when ever I click on it I get connection interrupted then my PS3 freezes I am not sure what is wrong but if anyone can find a problem with it and tell me it would be very appreciated! Thanks.

You must login or register to view this content.


This also happens if you have a try to use a function that is doesn't exist in your GSC.
[That is usually why I get those when I make GSC code]
07-29-2016, 06:21 AM #6
anthonything
Space Ninja
Originally posted by Nothingbutbread View Post
This also happens if you have a try to use a function that is doesn't exist in your GSC.
[That is usually why I get those when I make GSC code]


If you use a non-existant function you hard freeze on app entry. Loops are the connection interrupted because it is overflowing network commands

The following user thanked anthonything for this useful post:

ODLeslie
07-29-2016, 09:09 AM #7
seanhellen
Are you high?
Originally posted by Quacked View Post
Hello NGU community, so i am having a problem with my GSC menu I am using Africanized menu base and I have a 'Weapons' menu which when ever I click on it I get connection interrupted then my PS3 freezes I am not sure what is wrong but if anyone can find a problem with it and tell me it would be very appreciated! Thanks.

You must login or register to view this content.


In your rainbowinit function. The wait is in the wrong place at the end...it should be under the self.menu.sideline2.color line, not after the }
08-09-2016, 10:29 PM #8
Im_YouViolateMe
NextGenUpdate Elite
You guys are all wrong :p

Unknown functions and bad syntax cause you to hard freeze on map loading.
Infinite loops hard freeze the game with no connection interrupted (at least on PC it doesn't).

The reason you are getting connection interrupted is because the game is trying to access a variable or array/2-dimensional array/array value that doesn't exist.

Let's say I have an undefined level.strings array. If I try and access the first value (or any undefined value) of that undefined array I will get connection interrupted.

For mod menus, most of the time people misspell their menu names which causes the game to look inside the arrays for the misspelled menu name, and since it can't find that array key, it throws a connection interrupted error and freezes. Or since on console there is no developer mode, it could be because of bad coding and the game throwing too many errors at once. If you test on PC you'll know what I mean. That's why I always say, if you can't run it in developer mode and get no errors on screen, then you're not coding it correctly.
08-09-2016, 10:35 PM #9
seanhellen
Are you high?
From the many many times i have frozen on console, every time i have the connection interupted error, it has always been from a dodgy for loop...every time. I have never played on pc so cant comment if its different Happy
08-11-2016, 07:37 AM #10
itsSorrow
In my man cave
Originally posted by YouViolateMe View Post
Infinite loops hard freeze the game with no connection interrupted (at least on PC it doesn't).

Every time I forgot the wait connection interrupted came up then I crash so m9 wat u on?

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo