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

Infinite loop?

broken avatar :(
Created 12 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
4,225 views
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
My map freezes everytime after the first few seconds from the game start from an 'infinite loop', now I've had this before and usually it's caused by a typo on one of my KVPs, however I've checked every KVP and in my scripts and I can't find any? The strange thing is the freeze only occurs on solo (co-op is fine) and if I pause and restart the game it no longer happens?
Anyone have any ideas?
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 10 years ago
Posts
2,789
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
Signature
Let's keep this thread on topic from here on in. -DBZ

+1 to off-topic reply -DBZ

lmao. Too funny.

Goliath Script Placer: http://ugx-mods.com/forum/index.php/topic,11234.msg125257/topicseen.html#new

"...Christ, people. Learn C, instead of just stringing random characters
together until it compiles (with warnings)..."

-Linus Torvalds
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Try using developer and developer script. It might give you a better idea of whats causing the issue.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Add any scripts? One of them may have an infinite loop, like using a while() loop with nothing to make it wait for amount of time or event. (like wait 0.5; or waittill("<notified_event>"))

example:

Code Snippet
Plaintext
example_loop() //INFINITE LOOP
{
while(1)
{
iprintln("Hello");
}
}

Code Snippet
Plaintext
example_loop() //NOT INFINITE LOOP
{
while(1)
{
wait 0.5; // Needed wait timer (or waittill can be here)
iprintln("Hello");
}
}
Last Edit: May 02, 2014, 04:33:30 am by ProGamerzFTW
broken avatar :(
×
broken avatar :(
Location: usbuffalo
Date Registered: 16 August 2013
Last active: 5 months ago
Posts
927
Respect
Forum Rank
The Decider
Primary Group
Mapper
My Groups
More
My Contact & Social Links
More
Personal Quote
Giggity.
Signature
maps:
Undead Town
http://ugx-mods.com/forum/index.php?topic=2294.0 (Release)
Origins 1922
http://ugx-mods.com/forum/index.php?topic=2659.0
[WIP] mapping 39%, weapons 85%, scripts 65%
[/url]
×
RamboBadass's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Mapper Has released one or more maps to the UGX-Mods community.
RamboBadass's Contact & Social LinksRamboDaGreatAsk merambobadass
My map freezes everytime after the first few seconds from the game start from an 'infinite loop', now I've had this before and usually it's caused by a typo on one of my KVPs, however I've checked every KVP and in my scripts and I can't find any? The strange thing is the freeze only occurs on solo (co-op is fine) and if I pause and restart the game it no longer happens?
Anyone have any ideas?

did you use the GCZ Script placer ? theres something in the scripts it came with the only way DualVII fixed it for me was using a dif. script placer
Marked as best answer by Deleted User 7 months ago
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
No I used the UGX script placer, the weird part is that the freeze only happens in solo though, so I think it's gotta be related to something unique to solo mode? The only thing I can think of is Quick Revive but it's been in the map longer than the freeze and I haven't changed it in any way.. ???
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
No I used the UGX script placer, the weird part is that the freeze only happens in solo though, so I think it's gotta be related to something unique to solo mode? The only thing I can think of is Quick Revive but it's been in the map longer than the freeze and I haven't changed it in any way.. ???

I've had a similar issue when adding the random solo starting character. Did you add that to your map?
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
Yes, but I'm pretty sure I added the wait that you mentioned on that topic...but I will double check anyway
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 10 October 2013
Last active: 2 years ago
Posts
541
Respect
Forum Rank
Zombie Enslaver
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
×
ProGamerzFTW's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Yes, but I'm pretty sure I added the wait that you mentioned on that topic...but I will double check anyway

I did make the timer too long (caused a dumb delay when buying perks), and make sure the wait timer is at the top

Code Snippet
Plaintext
get_player_index(player)
{
    wait 0.05;
    assert( IsPlayer( player ) );
    assert( IsDefined( player.entity_num ) );
   
    players = get_players();
   
    if(players.size == 1)
    return player.entity_num_randomized;
    else
    return player.entity_num;
   
}
Last Edit: May 02, 2014, 02:49:42 pm by ProGamerzFTW
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 6 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Mapper Has released one or more maps to the UGX-Mods community.
Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
My map freezes everytime after the first few seconds from the game start from an 'infinite loop', now I've had this before and usually it's caused by a typo on one of my KVPs, however I've checked every KVP and in my scripts and I can't find any? The strange thing is the freeze only occurs on solo (co-op is fine) and if I pause and restart the game it no longer happens?
Anyone have any ideas?

Did you possibly call a function instead of threading it? A function that may run for the time of your delay, or is infinite and times out, and then get back to business?
Example:
Code Snippet
Plaintext
self myfunction();
//versuses
self thread myfunction();

myfunction(){
    while(1){
        iprintln("This never stops");
        wait(.1);
    }
}
Last Edit: May 02, 2014, 03:04:17 pm by MakeCents

 
Loading ...