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

Runtime Error

broken avatar :(
Created 3 years ago
by Dark_Ninja
0 Members and 1 Guest are viewing this topic.
687 views
broken avatar :(
×
broken avatar :(
Location: gb
Date Registered: 20 July 2019
Last active: 2 years ago
Posts
14
Respect
Forum Rank
Legless Crawler
Primary Group
Member
My Contact & Social Links
More
×
Dark_Ninja's Groups
Dark_Ninja's Contact & Social LinksDark_Ninjaa_DarkNinjaa_DarkNinjaaDarkNinja#3633
So I am very new to mapping and such, and I'm working on my first relativley big map and I wanted to add a moving mystery box. So I put the ugx_mystery_box prefab in instead of the regular treasure_chest and did the whole Enter Prefab and gave the trigger key 'script_noteworthy'  value 'start_chest' and on the second mystery box 'chest1' as that's what I've seen you were meant to do. Now when I launch my map I am encountering a script runtime error.
Code Snippet
Plaintext
******* script runtime error *******
pair 'default_treasure_chest_' and 'undefined' has unmatching types 'string' and 'undefined': (file 'maps/_zombiemode_weapons.gsc', line 730)
 self set_hint_string( self, "default_treasure_chest_" + cost );
                                                       *
Error: called from:
(file 'common_scripts/utility.gsc', line 586)
  entities ] thread [[ process ]]();
                                  *
Error: called from:
(file 'maps/_zombiemode_weapons.gsc', line 582)
 array_thread( level.chests, ::treasure_chest_think );
 *
Error: called from:
(file 'maps/_zombiemode_weapons.gsc', line 11)
 treasure_chest_init();
 *
Error: called from:
(file 'maps/_zombiemode.gsc', line 59)
  maps\_zombiemode_weapons::init();
  *
Error: called from:
(file 'maps/infected_street.gsc', line 119)
 maps\_zombiemode::main();
 *
Error: started from:
(file 'maps/infected_street.gsc', line 9)
main()
As I had said I am new to mapping and don't understand what I can do to fix this. Any help is appreciated.​
Last Edit: March 21, 2021, 02:16:41 pm by Dark_Ninja
broken avatar :(
×
broken avatar :(
Location: aznew york
Date Registered: 11 February 2023
Last active: 8 months ago
Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
Мика Тян's Contact & Social Links
hi bro, I'm a newbie too, have you solved this problem

 
Loading ...