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

Script compile error: Bad syntax in powerups.gsc

broken avatar :(
Created 3 years ago
by criderkid
0 Members and 1 Guest are viewing this topic.
593 views
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 19 June 2021
Last active: 3 years ago
Posts
1
Respect
Forum Rank
Fresh Corpse
Primary Group
Member
×
criderkid's Groups
criderkid's Contact & Social Links
Hello all. I'm very new at modding actual .FF's. I'm just trying to mess around with the common_zombie_patch, only changing small things like values, not adding any scripts. It compiles fine but always has an error when running in game on line 402 for bad syntax. With "developer 1" enabled, I get this from the console:

Code Snippet
Plaintext
Error:
******* Server script compile error *******
Error: bad syntax: (file 'maps/_zombiemode_powerups.gsc', line 403)
    {
    *
   
   
====================================================
Com_ERROR:  Server script compile error
bad syntax
maps/_zombiemode_powerups.gsc(402):
    {
(see console for details)

====================================================

(repeats the error one more time then calls for a server shutdown)
I'm not a scripter or coder by any means but I'm failing to understand what's going on because I replaced the powerups.gsc with one I pulled from an unmodified common_zombie_patch. The error is coming from a script that deals with figuring out what the next powerup will be. Here's lines 399 to 405:
Code Snippet
Plaintext
        // Don't bring up fire_sale if the box hasn't moved or it it's already on
        else if( powerup == "fire_sale" &&
                 ( level.zombie_vars["zombie_powerup_fire_sale_on"] == true ||
                   level.chest_moves < 1 ) )
        {
            powerup = get_next_powerup();
        }
There's no open brackets so why is it having an issue here? any help would be appreciated.
EDIT: this is BO1 by the way
Last Edit: June 19, 2021, 06:24:14 am by criderkid

 
Loading ...