Hey guys! I ran into a problem when trying to compile and run my map after installing Harry's perks. I followed his instructions to a T and installed everything correctly. When I run my game, I get a bad syntax error. I checked console and even ran in dev 1 mode and all pointed me towards the _zombiemode_perks.GSC that HE setup, that was placed in my mapname/mods folder. I checked line 549 like it said to, and the only thing on that line was a bracket. This is the _zombiemode_perks.gsc in my mapname, and I made NO changes to it. Any ideas, did I install incorrectly, or did I mess something up? Any help is appreciated. Thanks!
Hey guys! I ran into a problem when trying to compile and run my map after installing Harry's perks. I followed his instructions to a T and installed everything correctly. When I run my game, I get a bad syntax error. I checked console and even ran in dev 1 mode and all pointed me towards the _zombiemode_perks.GSC that HE setup, that was placed in my mapname/mods folder. I checked line 549 like it said to, and the only thing on that line was a bracket. This is the _zombiemode_perks.gsc in my mapname, and I made NO changes to it. Any ideas, did I install incorrectly, or did I mess something up? Any help is appreciated. Thanks!
Post a screen shot of the error and the error in the zombiemode_perks.gsc so we can see what the problem is.
As you haven't posted any images of the bad syntax you are receiving it is very hard to help with the issue so I would recommend doing so as others above have said. A bit of advise I could probably give though would be to ensure you have the latest version of Harry's Perks and make sure you do follow the tutorial word by word, maybe even on a test map with no other custom scripts. Hope that helps, good luck with fixing the issue!
Sorry it took me so long to respond. Steam wouldn't let me screenshot the error for some reason, but I do have the console log here.
Code Snippet
Plaintext
T4-SP (r44) Current language: english Current search path: C:\Users\antiq\AppData\Local\Activision\CoDWaW\mods\nazi_zombie_carentan\nsz_bo2_weapons_v1.3.2.iwd (330 files) C:\Users\antiq\AppData\Local\Activision\CoDWaW\mods\nazi_zombie_carentan\nazi_zombie_carentan.iwd (56 files) C:\Users\antiq\AppData\Local\Activision\CoDWaW\mods\nazi_zombie_carentan\harrybo21_bo1_2_3_perks_v4.0.2.iwd (474 files) C:\Users\antiq\AppData\Local\Activision\CoDWaW\mods\nazi_zombie_carentan\dlc3_weapons.iwd (67 files) C:\Users\antiq\AppData\Local\Activision\CoDWaW/mods/nazi_zombie_carentan C:\Users\antiq\AppData\Local\Activision\CoDWaW/usermaps C:\Users\antiq\AppData\Local\Activision\CoDWaW/mods C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_27.iwd (60 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_26.iwd (522 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_25.iwd (139 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_24.iwd (502 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_23.iwd (3 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_22.iwd (529 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_21.iwd (13 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_20.iwd (69 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_19.iwd (52 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_18.iwd (51 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_17.iwd (42 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_16.iwd (44 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_15.iwd (145 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_14.iwd (655 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_13.iwd (400 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_12.iwd (453 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_11.iwd (366 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_10.iwd (549 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_09.iwd (413 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_08.iwd (484 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_07.iwd (755 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_06.iwd (537 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_05.iwd (569 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_04.iwd (711 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_03.iwd (743 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_02.iwd (694 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_01.iwd (350 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\iw_00.iwd (808 files) C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/main C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/main_shared C:\Users\antiq\AppData\Local\Activision\CoDWaW/players C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/raw C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/raw_shared C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/devraw C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/devraw_shared C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw06.iwd (1804 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw05.iwd (1246 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw04.iwd (363 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw03.iwd (28 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw02.iwd (3163 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw01.iwd (5164 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\localized_english_iw00.iwd (4592 files) localized assets iwd file for english C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War/raw/english localized assets game folder for english
File Handles: handle 1: console.log ---------------------- 27945 files in iwd files Adding channel: error Adding channel: gamenotify Adding channel: boldgame Adding channel: subtitle Adding channel: obituary Adding channel: logfile_only Adding channel: console_only Adding channel: gfx Adding channel: sound Adding channel: files Adding channel: devgui Adding channel: profile Adding channel: ui Adding channel: client Adding channel: server Adding channel: system Adding channel: playerweap Adding channel: ai Adding channel: anim Adding channel: physics Adding channel: fx Adding channel: leaderboards Adding channel: parserscript Adding channel: script Adding channel: coopinfo No channels added or hidden Adding channel: error Adding channel: error No channels added or hidden Adding channel: gamenotify Adding channel: obituary No channels added or hidden Adding channel: boldgame No channels added or hidden Adding channel: subtitle No channels added or hidden Adding channel: coopinfo execing default.cfg from disk execing default_controls.cfg from disk execing coop_arcademode.cfg from disk No channels added or hidden execing language.cfg from disk execing profiles/CamberedZomb/config.cfg from disk Hiding channel: error Hiding channel: gamenotify Hiding channel: boldgame Hiding channel: subtitle Hiding channel: obituary Hiding channel: logfile_only Hiding channel: console_only Hiding channel: gfx Hiding channel: sound Hiding channel: files Hiding channel: devgui Hiding channel: profile Hiding channel: ui Hiding channel: client Hiding channel: server Hiding channel: system Hiding channel: playerweap Hiding channel: ai Hiding channel: anim Hiding channel: physics Hiding channel: fx Hiding channel: leaderboards Hiding channel: parserscript Hiding channel: script Hiding channel: coopinfo No channels added or hidden Adding channel: error Adding channel: gamenotify Adding channel: boldgame Adding channel: subtitle Adding channel: obituary Adding channel: logfile_only Adding channel: console_only Adding channel: gfx Adding channel: sound Adding channel: files Adding channel: devgui Adding channel: profile Adding channel: ui Adding channel: client Adding channel: server Adding channel: system Adding channel: playerweap Adding channel: ai Adding channel: anim Adding channel: physics Adding channel: fx Adding channel: leaderboards Adding channel: parserscript Adding channel: script Adding channel: coopinfo Unknown command "updategamerprofile" Unknown command "updategamerprofile" Unknown command "updategamerprofile" useFastFile is write protected. fs_usedevdir is write protected. fs_game is write protected. CPU vendor is "AuthenticAMD" CPU name is "AMD A10-7300 Radeon R6, 10 Compute Cores 4C+6G " 4 logical CPUs reported 4 physical CPUs detected Measured CPU speed is 0.00 GHz Total CPU performance is estimated as 0.01 GHz System memory is 1024 MB (capped at 1 GB) Video card is "AMD Radeon(TM) R6 Graphics" Streaming SIMD Extensions (SSE) supported
Winsock Initialized Opening IP socket: localhost:28960 Hostname: LAPTOP-MIP0LIDE IP: 25.12.137.253 IP: 192.168.0.12 ----- Initializing Renderer ---- execing ragdoll.cfg from disk ----- Client Initialization ----- ----- Client Initialization Complete ----- useFastFile is write protected. fs_usedevdir is write protected. fs_game is write protected. Trying SMP acceleration... ...succeeded. ----- R_Init ----- Getting Direct3D 9 interface... Pixel shader version is 3.0 Vertex shader version is 3.0 Shader model 2.0 code path is available. Shader model 3.0 code path is available. Using Shader model 3.0 code path because it is the best available path on this hardware. Attempting 1280 x 720 fullscreen with 32 bpp at 60 hz Game window successfully created. Using 4x anti-aliasing Creating Direct3D device... Com_TouchMemory: 0 msec. Using sum: 0 Database: Assets Sync Started Database: Assets Sync Finished Loading fastfile code_post_gfx Loading fastfile mod Database: Assets Sync Started Loading fastfile 'code_post_gfx' used 1.13 MB memory in DB alloc Loading fastfile 'mod' used 14.80 MB memory in DB alloc Database: Assets Sync Finished Database: Assets Sync Started Database: Assets Sync Finished Loading fastfile ui Loading fastfile localized_common Loading fastfile common Loading fastfile patch Initializing render targets... Requested frame buffer to be 24-bit color with 8-bit alpha DirectX returned a frame buffer that is 24-bit color with 8-bit alpha Initializing static model cache... Initializing dynamic buffers... Initializing particle cloud buffer... Creating Direct3D queries... Loading fastfile 'ui' used 39.48 MB memory in DB alloc Setting initial state... DirectX reports 512 MB of video memory and 3972 MB of available texture memory. Using video memory size to cap used texture memory at 496 MB. Texture detail is set automatically. Using picmip 0 on most textures, 0 on normal maps, and 0 on specular maps Error: Could not load material "zombie_electric_shock_overlay". Error: Could not load material "zombie_transporter_overlay". Error: Could not load material "water_droplet". Error: Could not load material "water_dynamic_spray".
------- sound system initialization ------- ------- sound system successfully initialized ------- Hostname: LAPTOP-MIP0LIDE PC IP: 25.12.137.253 end $init 8012 ms --- Common Initialization Complete --- useFastFile is write protected. fs_usedevdir is write protected. Database: Assets Sync Started WARNING: Could not find zone 'C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\zone\english\localized_common.ff' Loading fastfile 'common' used 41.51 MB memory in DB alloc Loading fastfile 'patch' used 2.06 MB memory in DB alloc Database: Assets Sync Finished Loading fastfile nazi_zombie_carentan_load g_gametype cmp is not a valid gametype, defaulting to dm WARNING: Could not find zone 'C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\zone\english\nazi_zombie_carentan_load.ff' Database: Assets Sync Started Database: Assets Sync Finished PROFILES: setting server info to 0.0.0.0:0 Couldn't get profiles instance, are we logged on? Huffman Took 14 Milliseconds BinkOpen failed on C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\main\video\nazi_zombie_carentan_load.bik because: Error opening file. BinkOpen failed on C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War\raw\video\nazi_zombie_carentan_load.bik because: Error opening file. R_Cinematic_BinkOpen 'nazi_zombie_carentan_load' failed: BinkOpen: Error opening file.; trying default. ------ Server Initialization ------ Server: nazi_zombie_carentan Database: Assets Sync Started Database: Assets Sync Finished ----- R_Init ----- DirectX reports 512 MB of video memory and 3888 MB of available texture memory. Using video memory size to cap used texture memory at 496 MB. Texture detail is set automatically. Using picmip 0 on most textures, 0 on normal maps, and 0 on specular maps Error: Could not load material "loadscreen_nazi_zombie_carentan". Save Message First Frame Shown: 15360 Database: Assets Sync Started Database: Assets Sync Finished Unloaded fastfile ui PMem_Free( ui, 0 ) Loading fastfile localized_nazi_zombie_carentan Database: Assets Sync Started Loading fastfile 'localized_nazi_zombie_carentan' used 25.47 MB memory in DB alloc ERROR: image 'images/_-gviewarm_zom_dempsey_device_c.iwi' is missing ERROR: image 'images/viewarm_zom_dempsey_n.iwi' is missing ERROR: image 'images/viewarm_zom_dempsey_device_n.iwi' is missing ERROR: image 'images/~__-gviewarm_zom_dempsey_devi~6cd94c77.iwi' is missing ERROR: image 'images/~__-gviewarm_zom_dempsey_spc-~7beb67cd.iwi' is missing ERROR: image 'images/_-gviewarm_zom_dempsey_c.iwi' is missing Database: Assets Sync Finished Loading fastfile nazi_zombie_carentan_patch Database: Assets Sync Started Loading fastfile 'nazi_zombie_carentan_patch' used 36.96 MB memory in DB alloc ERROR: image 'images/gc_usa_mp_fbi_helmet_c.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_lower1_c.iwi' is missing ERROR: image 'images/gc_gen_arm_clean_c.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_shotgun_gear_n.iwi' is missing ERROR: image 'images/~gc_mul_nospecgloss_spec-rgb&~afd5fdf4.iwi' is missing ERROR: image 'images/c_gen_arm_clean_n.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_sniper_hood_c.iwi' is missing ERROR: image 'images/c_chn_mp_pla_upper1_vest_n.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_lmg_gear_c.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_sniper_hood_n.iwi' is missing ERROR: image 'images/~gc_chn_mp_pla_upper1_vest_sp~95614e80.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_sniper_gear_c.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_shotgun_gear_s~cbe12426.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_lmg_gear_n.iwi' is missing ERROR: image 'images/char_base_fabric_nocloth.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_smg_gear_c.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_sniper_gear_n.iwi' is missing ERROR: image 'images/~gc_chn_mp_pla_lower_spec-rgb~5eabd680.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_lmg_gear_spec-~453ce21e.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_smg_gear_n.iwi' is missing ERROR: image 'images/gc_mul_mp_pmc_glasses_c.iwi' is missing ERROR: image 'images/gc_usa_unioninsp_backpack_alpha_c.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_smg_gear_spec-~01d90244.iwi' is missing ERROR: image 'images/~gc_mul_mp_pmc_glasses_spec-r~a9f74efe.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_helmet_spec-rg~97c38133.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_shotgun_gear_c.iwi' is missing ERROR: image 'images/gc_usa_mp_fbi_vest_c.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_sniper_gear_sp~0f6cd999.iwi' is missing ERROR: image 'images/c_chn_mp_pla_lower_n.iwi' is missing ERROR: image 'images/c_usa_mp_fbi_helmet_n.iwi' is missing ERROR: image 'images/~gc_usa_mp_fbi_sniper_hood_sp~6cf33a6d.iwi' is missing ERROR: image 'images/c_mul_mp_pmc_glasses_n.iwi' is missing ERROR: image 'images/~gc_gen_arm_clean_spec-rgb&gc~d0ba41e9.iwi' is missing Database: Assets Sync Finished Loading fastfile nazi_zombie_carentan Loading fastfile 'nazi_zombie_carentan' used 59.37 MB memory in DB alloc Waited 1664 msec for asset 'maps/nazi_zombie_carentan.d3dbsp' of type 'col_map_mp'. Error: ******* Server script compile error ******* Error: bad syntax: (file 'maps/_zombiemode_perks.gsc', line 549) } * ************************************ Database: Assets Sync Started Database: Assets Sync Finished ******************** ERROR: Server script compile error bad syntax } (see console for details)
******************** PROFILES: setting server info to 0.0.0.0:0 Couldn't get profiles instance, are we logged on? ----- Server Shutdown ----- --------------------------- Database: Assets Sync Started Database: Assets Sync Finished ----- R_Init ----- DirectX reports 512 MB of video memory and 3589 MB of available texture memory. Using video memory size to cap used texture memory at 496 MB. Texture detail is set automatically. Using picmip 0 on most textures, 0 on normal maps, and 0 on specular maps Working directory: C:\Program Files (x86)\Steam\steamapps\common\Call of Duty World at War Save Message First Frame Shown: 31339 - R_Cinematic_BeginLostDevice()... DB_BeginRecoverLostDevice()... R_ResetModelLighting()... R_ReleaseAllModels()... R_ReleaseLostImages()... Material_ReleaseAll()... R_ReleaseWorld()...
Not too sure exactly why steam wouldn't let me screenshot, but due to that, this is all I've got.
And here's a chunk of text surrounding the error line, the syntax that's giving me the error is the bracket right under "self thread mustang_thread( grenade, weapname )".
Code Snippet
Plaintext
// REVIEW ============================= harrybo21_perks_solo_game() { // If its a solo game, make your changes here ============================================================================== level.zombie_perks[ "specialty_quickrevive" ].perk_hint = "Press & hold ^6&&1^7 to buy Revive [Cost: 500]"; level.zombie_perks[ "specialty_quickrevive" ].perk_cost = 500; level thread harrybo21_perks_limit_perk_usage( "specialty_quickrevive", level.zombie_vars[ "solo_revive_uses" ] ); level thread harrybo21_perks_ignore_power( "specialty_quickrevive" ); if ( !isDefined( level.zombie_vars[ "tombstone_enable_solo_version" ] ) || !level.zombie_vars[ "tombstone_enable_solo_version" ] ) { level thread harrybo21_perks_remove_perk( "specialty_reconnaissance" ); // if ( isDefined( level.has_wunderfizz ) && level.has_wunderfizz ) // maps\_zombiemode_wunderfizz::harrybo21_perks_wonderfizz_remove( "specialty_reconnaissance" );
} }
// DONE ============================= harrybo21_perks_co_op_game() { // If its a co-op game, make your changes here ============================================================================== }
And here's a chunk of text surrounding the error line, the syntax that's giving me the error is the bracket right under "self thread mustang_thread( grenade, weapname )".
Code Snippet
Plaintext
// REVIEW ============================= harrybo21_perks_solo_game() { // If its a solo game, make your changes here ============================================================================== level.zombie_perks[ "specialty_quickrevive" ].perk_hint = "Press & hold ^6&&1^7 to buy Revive [Cost: 500]"; level.zombie_perks[ "specialty_quickrevive" ].perk_cost = 500; level thread harrybo21_perks_limit_perk_usage( "specialty_quickrevive", level.zombie_vars[ "solo_revive_uses" ] ); level thread harrybo21_perks_ignore_power( "specialty_quickrevive" ); if ( !isDefined( level.zombie_vars[ "tombstone_enable_solo_version" ] ) || !level.zombie_vars[ "tombstone_enable_solo_version" ] ) { level thread harrybo21_perks_remove_perk( "specialty_reconnaissance" ); // if ( isDefined( level.has_wunderfizz ) && level.has_wunderfizz ) // maps\_zombiemode_wunderfizz::harrybo21_perks_wonderfizz_remove( "specialty_reconnaissance" );
} }
// DONE ============================= harrybo21_perks_co_op_game() { // If its a co-op game, make your changes here ============================================================================== }
I just tried that and I'm still getting the same error. Any other ideas? Double Post Merge: August 01, 2016, 08:14:49 pmOkay, I just realized I had the wrong version. I updated to latest version and now I get this error:
Code Snippet
Plaintext
******* Server script compile error ******* Error: unknown function: (file 'maps/_harrybo21_utilities.gsc', line 916) self maps\_zombiemode_bo2_utility::set_player_current_grenade( stuff.weap_inventory[ i ], stuff.weap_ammo[ stuff.weap_inventory[ i ] ][ "clip" ] ); * ************************************
Any ideas?
Last Edit: August 01, 2016, 08:14:49 pm by CamberedZombies
Well problem is, I updated to the newest version of Nate's BO2 guns and also latest version on Harry's perks, and that error was fixed, only to create a new one:
Hey guys! I ran into a problem when trying to compile and run my map after installing Harry's perks. I followed his instructions to a T and installed everything correctly. When I run my game, I get a bad syntax error. I checked console and even ran in dev 1 mode and all pointed me towards the _zombiemode_perks.GSC that HE setup, that was placed in my mapname/mods folder. I checked line 549 like it said to, and the only thing on that line was a bracket. This is the _zombiemode_perks.gsc in my mapname, and I made NO changes to it. Any ideas, did I install incorrectly, or did I mess something up? Any help is appreciated. Thanks!
An extra bracket can very well cause syntax errors. Make sure that the bracketing is correct. All that a syntax error means is that something isn't being formatted correctly programming-wise.