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

Maximum Variable error

HOT
broken avatar :(
Created 8 years ago
by HitmanVere
0 Members and 1 Guest are viewing this topic.
7,692 views
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
I decided to make this topic, so I dont need to always explain to everyone why Project C isnt released and to ask for tips.
Basically, after round 20, map does infinite loop, whether Im killing zombies with Sliquifier or running zombies around. When infinite loop happens, it starts printing out this:
Code Snippet
Plaintext
count: 1, var usage: 1, endon usage: 0
@ 607646
count: 1, var usage: 1, endon usage: 0
@ 607902
count: 1, var usage: 2, endon usage: 0
@ 607999
count: 1, var usage: 1, endon usage: 0
@ 608082
count: 1, var usage: 2, endon usage: 0
@ 608325
count: 1, var usage: 5, endon usage: 0
@ 608416
count: 1, var usage: 6, endon usage: 0
@ 608869
count: 2, var usage: 10, endon usage: 0
@ 609181
count: 1, var usage: 2, endon usage: 0
@ 610878
count: 1, var usage: 2, endon usage: 0
@ 611005
count: 1, var usage: 2, endon usage: 0
@ 611128
count: 1, var usage: 11, endon usage: 0
@ 611305
count: 1, var usage: 11, endon usage: 2
@ 614457
called from:
@ 613439
called from:
@ 613277
********************************
var usage: 37635, endon usage: 2066

ent type 'entity'... count: 391, var usage: 9107
ent type 'hudelem'... count: 23, var usage: 91
ent type 'pathnode'... count: 18, var usage: 36
ent type 'vehiclenode'... count: 0, var usage: 0
********************************
It prints it a lot, and there are few freezes before it finally crashes, whether its WaW not responding or showing this error:

I also noticed that with T4M, it crashes at early rounds of 20 and without it crashes at about 27.

Now question is, why does it print all that, just before map crashes and not all the way before? And if it prints something like this, does it mean, that it lets infinite loop run a bit before deleting it?
Code Snippet
Plaintext
count: 7996, var usage: 31988, endon usage: 3
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: 8 years ago
Posts
2,790
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
Use developer and developer_script.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Now question is, why does it print all that, just before map crashes and not all the way before? And if it prints something like this, does it mean, that it lets infinite loop run a bit before deleting it?
Code Snippet
Plaintext
count: 7996, var usage: 31988, endon usage: 3

it doesn't have to be an 'infinite loop' so maybe the game is not killing it at all. Could just as well be a 'valid loop' that keeps creating new var's  untill there's too many..

Have you got any clue to what's causing it, and have you tried temporary removing scripts or w/e to determine where it's comming from? Any scripts being activated around round 20, or something like that?
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Use developer and developer_script.

Your new profile pic fits perfectly in your comment :lol:
As I have said in other topic, it would take ages to get those working in my map, so yeah ._.

it doesn't have to be an 'infinite loop' so maybe the game is not killing it at all. Could just as well be a 'valid loop' that keeps creating new var's  untill there's too many..

Have you got any clue to what's causing it, and have you tried temporary removing scripts or w/e to determine where it's comming from? Any scripts being activated around round 20, or something like that?

I have been commenting out a lot of scripts/checking, if I have used them in other maps. None of the scripts are being activated especially after round 20 and how I play my map, I have everything done in map by round 15 approx.
How can one loop create new var's everytime it runs? Sounds weird to me
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
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
I've seen this before when my hudhintstring script was coupled with trems bank script. It was calling a function repeatedly that had a while loop in it, and once you got to higher rounds, it would do that. Sooner if you used the bank alot. That is what happened in sevengpluke's asylum map the first release.

So if your using my hudhintstring gsc or anything like it, that may be called often like trems hintstring update in his bank script, it could be causing it.
Last Edit: December 08, 2015, 07:34:34 pm by MakeCents
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
As I have said in other topic, it would take ages to get those working in my map, so yeah ._.

No it wouldn't. Half an hour if you know what your doing and the map doesn't have an insane amount of problems.

But developer and developer_script would tell you why. Would also let you see where the loop that is causing the infinite loop is located with log file set.
broken avatar :(
×
broken avatar :(
Location: kh
Date Registered: 9 August 2013
Last active: 5 years ago
Posts
503
Respect
Forum Rank
Zombie Enslaver
Primary Group
Member
×
codmoddd1234's Groups
codmoddd1234's Contact & Social Links
All you need to do for "developer 1" and "developer_script 1" to work is add a second zone and then go to _debug.gsc and remove
Thread debug_character_count();
level thread debug_show_viewpos();

Even without doing that if you load your map with "developer 1" "developer_script 1" and "logfile 1" a text file called "console.log" will be put into your raw/mods/mapname folder and it will list the script and functions those var errors are coming from regardless of the other errors in your map.
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
How can one loop create new var's everytime it runs? Sounds weird to me

It's not likely, but def not impossible..

As I have said in other topic, it would take ages to get those working in my map, so yeah ._.

I had your map running in developer a while back when looking at the gersch issue, but i guess a ton of stuff changed since then.. Shouldn't be too hard to get working again though, and guessing where this come's from is like looking for a needle in a haystack so perhaps dev-mode would be your best option
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
All you need to do for "developer 1" and "developer_script 1" to work is add a second zone and then go to _debug.gsc and remove
Thread debug_character_count();
level thread debug_show_viewpos();

Even without doing that if you load your map with "developer 1" "developer_script 1" and "logfile 1" a text file called "console.log" will be put into your raw/mods/mapname folder and it will list the script and functions those var errors are coming from regardless of the other errors in your map.

Still need to fix all of the developer errors...
Alright, I will try to make it, so map runs in developer and developer_script. Ech

I've seen this before when my hudhintstring script was coupled with trems bank script. It was calling a function repeatedly that had a while loop in it, and once you got to higher rounds, it would do that. Sooner if you used the bank alot. That is what happened in sevengpluke's asylum map the first release.

So if your using my hudhintstring gsc or anything like it, that may be called often like trems hintstring update in his bank script, it could be causing it.

Only thing Im using with hintstrings is Trems hintstring thing and in scripts _setHintstring, nothing else

Double Post Merge: December 08, 2015, 10:28:06 pm
Edit: Fixed that, more errors that I need to fix first, going to update later

Double Post Merge: December 09, 2015, 01:40:00 am
Okay, so this happened, like I feared. I finally got the game to run with developer 1 and developer_script 1. Then I put logfile 2 and r_logfile 1. I get in-game, but after every kill I get notification Cannot Cast undefined to bool, run very bad FPS and worst of all, no logfile in mods folder  :-\
Last Edit: December 09, 2015, 01:40:00 am by HitmanVere
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
Quote
but after every kill I get notification Cannot Cast undefined to bool

Whats the console say?

Quote
run very bad FPS and worst of all,

Console spam maybe?
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Whats the console say?

Console spam maybe?



Would be nice to know what cannot cast undefined to pool means, so I can fix other stuff as well :P
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
942
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
(Image removed from quote.)

Would be nice to know what cannot cast undefined to pool means, so I can fix other stuff as well :P
that a var inside an if  statement is undefined?
it seems that the var is set inside default _zombiemode_powerups at the begining of the script, maybe you removed it
Last Edit: December 09, 2015, 12:48:26 pm by jjbradman
broken avatar :(
×
broken avatar :(
Location: fi
Date Registered: 25 June 2013
Last active: 8 months ago
Posts
3,997
Respect
1,024Add +1
Forum Rank
Eviscerator
Primary Group
UGX V.I.P.
My Groups
More
My Contact & Social Links
More
×
HitmanVere's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
UGX V.I.P.
UGX V.I.P.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
that a var inside an if  statement is undefined?

So, I would need to add isDefined-statement in that line?
broken avatar :(
×
broken avatar :(
drago
Location: mx
Date Registered: 5 July 2013
Last active: 4 years ago
Posts
942
Respect
Forum Rank
The Decider
Primary Group
Member
My Contact & Social Links
More
×
jjbradman's Groups
jjbradman's Contact & Social Linksjjbradmanjjbradmanjjbradman
So, I would need to add isDefined-statement in that line?
it would be a good idea, but make sure why it isnt defined, by default it should be set in zombiemode_powerups
broken avatar :(
×
broken avatar :(
☭ Soviet Commander ☭
Location: us
Date Registered: 13 August 2012
Last active: 8 years ago
Posts
2,790
Respect
Forum Rank
King of the Zombies
Primary Group
Community Daedra
My Groups
More
My Contact & Social Links
More
×
daedra descent's Groups
Community Daedra
Community Daedra
daedra descent's Contact & Social LinksBlueSoviet
it would be a good idea, but make sure why it isnt defined, by default it should be set in zombiemode_powerups

"Casting" or "Type Casting" is the process of converting one data type to another. The reason it can't do that in this instance is simply because the variable isn't defined.

That zombie var is declared in the init function in the _zombiemode_powerups script. Should look like this:

Code Snippet
Plaintext
	set_zombie_var( "zombie_powerup_insta_kill_on", 	false );

 
Loading ...