Modme Forums
Menu:

Help WARDOGSK93’s Addons Warning.

Game Modding | Call of Duty: Black Ops 3 | Scripting


ModmeBot:

Thread By: Prestige935

Anyone know how to fix this ?

********************************************************************************
UNRECOVERABLE ERROR:
  ^1SCRIPT ERROR: Preprocessor error, No generated data for 'scripts\zm\_zm_perks.gsh'
:3 : (-8) Error:  Macro name already defined PERK_STATE_NOT_OWNED



Linker will now terminate.
********************************************************************************

==================================================
Linker summary:

There was 1 warning and 0 errors.

Warnings:
  ^3Empty asset name given, asset type 'ZONESCRIPTEDIT-FORWARDOGSK93PERKS'

Arguments passed to linker:
  -language english -modsource zm_undead_town



_zm_perks.gsh

#define PERK_STATE_NOT_OWNED			0
#define PERK_STATE_OWNED				1
#define PERK_STATE_PAUSED				2
#define PERK_STATE_DEACTIVATED			3

//perks clientfield name
#define PERK_CLIENTFIELD_ADDITIONAL_PRIMARY_WEAPON	"hudItems.perks.additional_primary_weapon"
#define PERK_CLIENTFIELD_DEAD_SHOT					"hudItems.perks.dead_shot"
#define PERK_CLIENTFIELD_PHDFLOPPER					"hudItems.perks.phdflopper"
#define PERK_CLIENTFIELD_DOUBLETAP2					"hudItems.perks.doubletap2"
#define PERK_CLIENTFIELD_JUGGERNAUT					"hudItems.perks.juggernaut"
#define PERK_CLIENTFIELD_STAMINUP					"hudItems.perks.marathon"
#define PERK_CLIENTFIELD_QUICK_REVIVE				"hudItems.perks.quick_revive"
#define PERK_CLIENTFIELD_SLEIGHT_OF_HAND			"hudItems.perks.sleight_of_hand"
#define PERK_CLIENTFIELD_TOMBSTONE					"hudItems.perks.tombstone"
#define PERK_CLIENTFIELD_WHOSWHO					"hudItems.perks.whoswho"
#define PERK_CLIENTFIELD_ELECTRIC_CHERRY			"hudItems.perks.electric_cherry"
#define PERK_CLIENTFIELD_VULTUREAID					"hudItems.perks.vultureaid"
#define PERK_CLIENTFIELD_WIDOWS_WINE				"hudItems.perks.widows_wine"

// perk names from code
#define PERK_JUGGERNOG								"specialty_armorvest"
#define PERK_QUICK_REVIVE							"specialty_quickrevive"
#define PERK_SLEIGHT_OF_HAND						"specialty_fastreload"
#define PERK_DOUBLETAP2								"specialty_doubletap2"
#define PERK_STAMINUP								"specialty_staminup"
#define PERK_PHDFLOPPER								"specialty_phdflopper"
#define PERK_DEAD_SHOT								"specialty_deadshot"
#define PERK_ADDITIONAL_PRIMARY_WEAPON				"specialty_additionalprimaryweapon"
#define PERK_ELECTRIC_CHERRY						"specialty_electriccherry" 
#define PERK_TOMBSTONE								"specialty_tombstone"
#define PERK_WHOSWHO								"specialty_whoswho"
#define PERK_VULTUREAID								"specialty_vultureaid"
#define PERK_WIDOWS_WINE							"specialty_widowswine"
	
//perk notify prefix/suffix
#define PERK_END_POWER_THREAD						"_power_thread_end"



Used this tutorial


ModmeBot:

Reply By: WARDOGSK93

check to see if there is a more than 1 perk insert in MAPNAME .GSC other than that dont rly know what this error means

#insert scripts\zm\_zm_perks.gsh;


ModmeBot:

Reply By: Prestige935

WARDOGSK93

check to see if there is a more than 1 perk insert in MAPNAME .GSC other than that dont rly know what this error means

#insert scripts\zm\_zm_perks.gsh;

Thank you, looked again in .gsc and .csc and found a dupe for the instert and perk define, removed it and it worked.

Was from other tut.


BIGCountry77x:

I was just having this same problem. thanks for the fix. headache gone now lol