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

Map testing error. plssend help

broken avatar :(
Created 9 years ago
by ViperDesigns
0 Members and 1 Guest are viewing this topic.
1,876 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 September 2015
Last active: 8 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ViperDesigns's Groups
ViperDesigns's Contact & Social Links
My senior project in high school is to create a custom zombies map, but I cannot test it. For the past three days, I have tried almost everything to fix the errors, but I have come up with nothing. The crash error I get is the following:

ERROR:
Server script compile error
uninitialized variable 'ugx_scriptplacer_fx_init'
UGX_SCRIPTPLACER_FX_INIT
(see console for details)

Console details:

Error: Could not load material "loadscreen_UGX_SCRIPTPLACER_MAPNAM".
(There is no material, but I don't have a clue where it is being called)

Error:
******* Server script compile error *******
Error: Uninitialized variable 'ugx_scriptplacer_fx_init': (file 'maps/nazi_zombie_vocation.gsc', line 118)
(I have tried initializing the variable, and changing it to 'nazi_zombie_vocation_fx_init' but I still got the error)


I have Googled everything I could think of to fix this, but I seem to be the only person with the problem. Send help, pls
broken avatar :(
×
broken avatar :(
Location: kp
Date Registered: 29 July 2015
Last active: 5 years ago
Posts
435
Respect
Forum Rank
Perk Hacker
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
children should not be playing call of duty
Signature
⠀⠀⠀⣴⣴⡤
⠀⣠⠀⢿⠇⡇⠀⠀⠀⠀⠀⠀⠀⢰⢷⡗
⠀⢶⢽⠿⣗⠀⠀⠀⠀⠀⠀⠀⠀⣼⡧⠂⠀⠀⣼⣷⡆
⠀⠀⣾⢶⠐⣱⠀⠀⠀⠀⠀⣤⣜⣻⣧⣲⣦⠤⣧⣿⠶
⠀⢀⣿⣿⣇⠀⠀⠀⠀⠀⠀⠛⠿⣿⣿⣷⣤⣄⡹⣿⣷
⠀⢸⣿⢸⣿⠀⠀⠀⠀⠀⠀⠀⠀⠈⠙⢿⣿⣿⣿⣿⣿
⠀⠿⠃⠈⠿⠆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⠿⠿⠿

⠀⢀⢀⡀⠀⢀⣤⠀⠀⠀⠀⠀⠀⠀⡀⡀
⠀⣿⡟⡇⠀⠭⡋⠅⠀⠀⠀⠀⠀⢰⣟⢿
⠀⣹⡌⠀⠀⣨⣾⣷⣄⠀⠀⠀⠀⢈⠔⠌
⠰⣷⣿⡀⢐⢿⣿⣿⢻⠀⠀⠀⢠⣿⡿⡤⣴⠄⢀⣀⡀
⠘⣿⣿⠂⠈⢸⣿⣿⣸⠀⠀⠀⢘⣿⣿⣀⡠⣠⣺⣿⣷
⠀⣿⣿⡆⠀⢸⣿⣿⣾⡇⠀⣿⣿⣿⣿⣿⣗⣻⡻⠿⠁
⠀⣿⣿⡇⠀⢸⣿⣿⡇⠀⠀⠉⠉⠉⠉⠉⠉⠁
×
Koan's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Oil Rig Beta Access
Oil Rig Beta Access
Koan's Contact & Social Linksh-r_Koan_my website
The uninitialized variable error you're getting because the variable hasn't been declared before it's used. You need to declare them or the function can't proceed, crashing the script.

For example:

Code Snippet
Plaintext
some_function_name()
{
something = randomint(666); // variable declared

if(something >= 115)
{
return;
}
}

This is a working function. If I change it to this:


Code Snippet
Plaintext
some_function_name()
{
if(something >= 115) // function hasn't seen this variable before
{
return;
}
}

The function doesn't know what the variable is. This is why you're getting the error.

You've changed the 'ugx_scriptplacer_fx_init' to 'nazi_zombie_vocation_fx_init', which means functions that look for that variable aren't going to find it, because you renamed it.

As for the material - I may be wrong, but that looks like you didn't give your map a name when you used the UGX script placer. That might also be the reason for your uninitalized variable.

Open your maps/nazi_zombie_vocation.gsc and go to line 118 (as described by console), and copy the function it's referring to in here. This may give more information.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 30 September 2015
Last active: 8 years ago
Posts
6
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
ViperDesigns's Groups
ViperDesigns's Contact & Social Links
Okay, So I fixed it by re-creating it, but now, this is happening. https://gyazo.com/6531e6ecf32879801d9372e9dd83f5ea
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
Okay, So I fixed it by re-creating it, but now, this is happening. https://gyazo.com/6531e6ecf32879801d9372e9dd83f5ea
Alien font. Look it up. You're missing the pc_fonts.iwi image would be my guess.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 4 years ago
Posts
6,877
Respect
1,004Add +1
Forum Rank
Immortal
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Signature
If you want scripts / features made for you, then contact me by PM or email / skype etc
it will cost you tho so if you have no intention of reciprocating don't even waste my time ;)
×
Harry Bo21's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Harry Bo21's Contact & Social Links[email protected]HarryBo21HarryBo000
or have installed UGX mod but not used "Cod Project Mover" after compile

 
Loading ...