bad syntax: (file 'maps/customap1.gsc', line 9) main();

broken avatar :(
Created 1014 days ago
by
0 Members and 1 Guest are viewing this topic.
2,670 views
broken avatar :(
  • DrinkingSpace60
  • Deleted Member
×
broken avatar :(
DrinkingSpace60
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
DrinkingSpace60's Groups
DrinkingSpace60's Contact & Social Links
need help fixing this error, this is my first map so assume im a noob :alone:
broken avatar :(
×
broken avatar :(
Location: itVeneto
Date Registered: 5 September 2014
Last active: 210 days ago
Posts
282
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Personal Quote
I belive purple is getting me...
×
IperBreach86's Groups
IperBreach86's Contact & Social Linksiperbreach86IperBreach86
need help fixing this error, this is my first map so assume im a noob :alone:
Maybe post a screen of your gsc? No? Ok
Anyway try removing the semi-colon after main(); then save and recompile the mod.
If it doesnt work post a screen of your GSC.
Last Edit: July 13, 2016, 11:04:45 am by IperBreach86
broken avatar :(
  • DrinkingSpace60
  • Deleted Member
×
broken avatar :(
DrinkingSpace60
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
DrinkingSpace60's Groups
DrinkingSpace60's Contact & Social Links
this is my customap1.gsc file

main()
{
   level.DLC3 = spawnStruct(); // Leave This Line Or Else It Breaks Everything
   
   // Must Change These To Your Maps
   level.DLC3.createArt = maps\createart\nazi_zombie_field_art::main;
   level.DLC3.createFX = maps\createfx\nazi_zombie_field_fx::main;
   // level.DLC3.myFX = ::preCacheMyFX;
   
   /*--------------------
    FX
   ----------------------*/
   DLC3_FX();
   
   /*--------------------
    LEVEL VARIABLES
   ----------------------*/   
   
   // Variable Containing Helpful Text For Modders -- Don't Remove
   level.modderHelpText = [];
   
   //
   // Change Or Tweak All Of These LEVEL.DLC3 Variables Below For Your Level If You Wish
   //
   
   // Edit The Value In Mod.STR For Your Level Introscreen Place
   level.DLC3.introString = &"nazi zombie tes";
   
   // Weapons. Pointer function automatically loads weapons used in Der Riese.
   level.DLC3.weapons = maps\dlc3_code::include_weapons;
   
   // Power Ups. Pointer function automatically loads power ups used in Der Riese.
   level.DLC3.powerUps =  maps\dlc3_code::include_powerups;
   
   // Adjusts how much melee damage a player with the perk will do, needs only be set once. Stock is 1000.
   level.DLC3.perk_altMeleeDamage = 1000;
   
   // Adjusts barrier search override. Stock is 400.
   level.DLC3.barrierSearchOverride = 400;
   
   // Adjusts power up drop max per round. Stock is 3.
   level.DLC3.powerUpDropMax = 3;
   
   // _loadout Variables
   level.DLC3.useCoopHeroes = true;
   
   // Bridge Feature
   level.DLC3.useBridge = false;
   
   // Hell Hounds
   level.DLC3.useHellHounds = true;
   
   // Mixed Rounds
   level.DLC3.useMixedRounds = true;
   
   // Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
   boxArray = [];
   boxArray[ boxArray.size ] = "start_chest";
   boxArray[ boxArray.size ] = "chest1";
   boxArray[ boxArray.size ] = "chest2";
   boxArray[ boxArray.size ] = "chest3";
   boxArray[ boxArray.size ] = "chest4";
   boxArray[ boxArray.size ] = "chest5";
   level.DLC3.PandoraBoxes = boxArray;
   
   // Initial Zone(s) -- Zone(s) You Want Activated At Map Start
   zones = [];
   zones[ zones.size ] = "start_zone";
   level.DLC3.initialZones = zones;
   
   // Electricity Switch -- If False Map Will Start With Power On
   level.DLC3.useElectricSwitch = true;
   
   // Electric Traps
   level.DLC3.useElectricTraps = true;
   
   // _zombiemode_weapons Variables
   level.DLC3.usePandoraBoxLight = true;
   level.DLC3.useChestPulls = true;
   level.DLC3.useChestMoves = true;
   level.DLC3.useWeaponSpawn = true;
   level.DLC3.useGiveWeapon = true;
   
   // _zombiemode_spawner Varibles
   level.DLC3.riserZombiesGoToDoorsFirst = true;
   level.DLC3.riserZombiesInActiveZonesOnly = true;
   level.DLC3.assureNodes = true;
   
   // _zombiemode_perks Variables
   level.DLC3.perksNeedPowerOn = true;
   
   // _zombiemode_devgui Variables
   level.DLC3.powerSwitch = true;
   
   /*--------------------
    FUNCTION CALLS - PRE _Load
   ----------------------*/
   level thread DLC3_threadCalls();
   
   /*--------------------
    ZOMBIE MODE
   ----------------------*/
   [[level.DLC3.weapons]]();
   [[level.DLC3.powerUps]]();
   
   maps\_zombiemode::main();
   setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);

   maps\_zombiemode_perks_black_ops::bo_perks_thread();
   //thread anti_cheat();
   
   /*--------------------
    FUNCTION CALLS - POST _Load
   ----------------------*/
   level.zone_manager_init_func = ::dlc3_zone_init;
   level thread DLC3_threadCalls2();
} //
Last Edit: July 13, 2016, 03:48:58 pm by HitmanVere
broken avatar :(
×
broken avatar :(
Location: usNUKETOWN
Date Registered: 19 February 2014
Last active: 758 days ago
Posts
177
Respect
Forum Rank
Pack-a-Puncher
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Personal Quote
Zombie Specialist
Signature
×
thezombieproject'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
also try removing the &
level.DLC3.introString = &"nazi zombie tes";
so it looks like this
level.DLC3.introString = "nazi zombie tes";

build mod and try again
Last Edit: July 13, 2016, 06:03:34 pm by thezombieproject
broken avatar :(
  • DrinkingSpace60
  • Deleted Member
×
broken avatar :(
DrinkingSpace60
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
DrinkingSpace60's Groups
DrinkingSpace60's Contact & Social Links
server script compile error
could not find script
'maps/createart/nazi_zombie_field_art'
level.dlc.createart =
maps\createart\nazi_zombie_field_art::main;
broken avatar :(
  • DrinkingSpace60
  • Deleted Member
×
broken avatar :(
DrinkingSpace60
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
DrinkingSpace60's Groups
DrinkingSpace60's Contact & Social Links
bump
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
steviewonder87's Groups
steviewonder87's Contact & Social Links
Did you use a script placer?
broken avatar :(
×
broken avatar :(
Location: be
Date Registered: 17 August 2013
Last active: 53 days ago
Posts
369
Respect
Forum Rank
Perk Hacker
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
Web & Software Developer and Designer
Signature
"Deleted code is debugged code." - Jeff Sickel
"Mathematicians stand on each others' shoulders and computer scientists stand on each others' toes." - Richard Hamming
×
JR-Imagine's Groups
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
Did you use a script placer?
Looks like Script Placer Z 1.x, hella outdated and quite broken most likely.

I'd recommend OP to regenerate with the updated version: [You are not allowed to view external links. Register or Login to see them]

Edit: If I'm being completely honest, you're probably better off using a more barebones script placer. The perks included with this build are hella outdated (3.x whilst Harry's currently on 5.x) so it's better if you were to just install them using the instructions in his thread.
Last Edit: August 03, 2016, 10:48:31 pm by JR-Imagine
broken avatar :(
  • DrinkingSpace60
  • Deleted Member
×
broken avatar :(
DrinkingSpace60
User
Date Registered: N/A
Last active: N/A
Posts
N/A
Respect
Primary Group
Deleted Member
×
DrinkingSpace60's Groups
DrinkingSpace60's Contact & Social Links
i rebuilt the mod and still the same error

Double Post Merge: August 04, 2016, 08:06:32 pm
ok i rebuild the mod once again and got "Could not find script 'clientscripts/_dual_wield'
thread clientscripts\_dual_wield::init();"
Last Edit: August 04, 2016, 08:06:32 pm by DrinkingSpace60
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 July 2016
Last active: 689 days ago
Posts
15
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
TheChattyGamer's Contact & Social Links
this is my customap1.gsc file

main()
{
   level.DLC3 = spawnStruct(); // Leave This Line Or Else It Breaks Everything
   
   // Must Change These To Your Maps
   level.DLC3.createArt = maps\createart\nazi_zombie_field_art::main;
   level.DLC3.createFX = maps\createfx\nazi_zombie_field_fx::main;
   // level.DLC3.myFX = ::preCacheMyFX;
   
   /*--------------------
    FX
   ----------------------*/
   DLC3_FX();
   
   /*--------------------
    LEVEL VARIABLES
   ----------------------*/   
   
   // Variable Containing Helpful Text For Modders -- Don't Remove
   level.modderHelpText = [];
   
   //
   // Change Or Tweak All Of These LEVEL.DLC3 Variables Below For Your Level If You Wish
   //
   
   // Edit The Value In Mod.STR For Your Level Introscreen Place
   level.DLC3.introString = &"nazi zombie tes";
   
   // Weapons. Pointer function automatically loads weapons used in Der Riese.
   level.DLC3.weapons = maps\dlc3_code::include_weapons;
   
   // Power Ups. Pointer function automatically loads power ups used in Der Riese.
   level.DLC3.powerUps =  maps\dlc3_code::include_powerups;
   
   // Adjusts how much melee damage a player with the perk will do, needs only be set once. Stock is 1000.
   level.DLC3.perk_altMeleeDamage = 1000;
   
   // Adjusts barrier search override. Stock is 400.
   level.DLC3.barrierSearchOverride = 400;
   
   // Adjusts power up drop max per round. Stock is 3.
   level.DLC3.powerUpDropMax = 3;
   
   // _loadout Variables
   level.DLC3.useCoopHeroes = true;
   
   // Bridge Feature
   level.DLC3.useBridge = false;
   
   // Hell Hounds
   level.DLC3.useHellHounds = true;
   
   // Mixed Rounds
   level.DLC3.useMixedRounds = true;
   
   // Magic Boxes -- The Script_Noteworthy Value Names On Purchase Trigger In Radiant
   boxArray = [];
   boxArray[ boxArray.size ] = "start_chest";
   boxArray[ boxArray.size ] = "chest1";
   boxArray[ boxArray.size ] = "chest2";
   boxArray[ boxArray.size ] = "chest3";
   boxArray[ boxArray.size ] = "chest4";
   boxArray[ boxArray.size ] = "chest5";
   level.DLC3.PandoraBoxes = boxArray;
   
   // Initial Zone(s) -- Zone(s) You Want Activated At Map Start
   zones = [];
   zones[ zones.size ] = "start_zone";
   level.DLC3.initialZones = zones;
   
   // Electricity Switch -- If False Map Will Start With Power On
   level.DLC3.useElectricSwitch = true;
   
   // Electric Traps
   level.DLC3.useElectricTraps = true;
   
   // _zombiemode_weapons Variables
   level.DLC3.usePandoraBoxLight = true;
   level.DLC3.useChestPulls = true;
   level.DLC3.useChestMoves = true;
   level.DLC3.useWeaponSpawn = true;
   level.DLC3.useGiveWeapon = true;
   
   // _zombiemode_spawner Varibles
   level.DLC3.riserZombiesGoToDoorsFirst = true;
   level.DLC3.riserZombiesInActiveZonesOnly = true;
   level.DLC3.assureNodes = true;
   
   // _zombiemode_perks Variables
   level.DLC3.perksNeedPowerOn = true;
   
   // _zombiemode_devgui Variables
   level.DLC3.powerSwitch = true;
   
   /*--------------------
    FUNCTION CALLS - PRE _Load
   ----------------------*/
   level thread DLC3_threadCalls();
   
   /*--------------------
    ZOMBIE MODE
   ----------------------*/
   [[level.DLC3.weapons]]();
   [[level.DLC3.powerUps]]();
   
   maps\_zombiemode::main();
   setVolFog(200, 1500, 350, 100, 0.4, 0.425, 0.44, 0.0);

   maps\_zombiemode_perks_black_ops::bo_perks_thread();
   //thread anti_cheat();
   
   /*--------------------
    FUNCTION CALLS - POST _Load
   ----------------------*/
   level.zone_manager_init_func = ::dlc3_zone_init;
   level thread DLC3_threadCalls2();
} //


If it says it couldn't find a script, get it from somewhere, making sure everything is up to date in the process, and put it in its proper place both in your mod and your raw files, tick that file and rebuild the mod. So if it says that it couldn't find the script that should be in the clientscripts folder, (I.e _dual_wield.gsc, the one you're dealing with at the moment), put it in your mods clientscript folder and raw folder in your root directory, and rebuild the mod. You must rebuild the mod, because the game only reads the files in the .iwd package, which launcher packages for you when you build the mod with "Build .iwd File" ticked.

This should work. Keep in mind that this set of steps works in any scenario where it says that it kind find a specified script, with the steps of course being tailored to that particular instance.

TL;DR If it's missing, get it from somewhere.
broken avatar :(
×
broken avatar :(
Location: gbMilton Keynes
Date Registered: 17 January 2014
Last active: 68 days ago
Posts
6,879
Respect
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
its a csc not a gsc

and it wont be in raw, coz its a file from my perks ( which is actually the dual wield script from here on ugx, think make cents? or ege? i forget )

im guessing he just hasnt ticked the scripts in launcher, but i dunno, never actually used SPZ
Last Edit: August 12, 2016, 04:51:30 pm by Harry Bo21

 

Login

or login with an authentication provider below
Twitter
Discord
Steam
Twitch
Google
Loading ...