Kibitz

Veteran
Messages
1
Reaction score
1
Points
778
Anyone know why I am getting this error? I can't seem to find out. The Mod Menu works when I remove the code. But when I add it back, it fails to compile? Anyone?

This is the function:
Please, Log in or Register to view URLs content!


This is the entire _clientids.gsc script:
Please, Log in or Register to view URLs content!


This is the error I get:
Please, Log in or Register to view URLs content!


(Ignore the "self SetPerk=strTok", Forgot to remove that when I was messing with things)

(I am new to GSC scripting)

Thanks
 

Joker

Veteran
Messages
52
Reaction score
24
Points
793
I believe you need a "precache" of sorts for the perks, Not too sure though
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Anyone know why I am getting this error? I can't seem to find out. The Mod Menu works when I remove the code. But when I add it back, it fails to compile? Anyone?

This is the function:
Please, Log in or Register to view URLs content!


This is the entire _clientids.gsc script:
Please, Log in or Register to view URLs content!


This is the error I get:
Please, Log in or Register to view URLs content!


(Ignore the "self SetPerk=strTok", Forgot to remove that when I was messing with things)

(I am new to GSC scripting)

Thanks
Thank you for sharing this. I will take a look into this issue when I'm home and update you later that day.

Regards,
CabCon.
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
Anyone know why I am getting this error? I can't seem to find out. The Mod Menu works when I remove the code. But when I add it back, it fails to compile? Anyone?

This is the function:
Please, Log in or Register to view URLs content!


This is the entire _clientids.gsc script:
Please, Log in or Register to view URLs content!


This is the error I get:
Please, Log in or Register to view URLs content!


(Ignore the "self SetPerk=strTok", Forgot to remove that when I was messing with things)

(I am new to GSC scripting)

Thanks
Try this:
Code:
function func_giveAllPerks()
{
    self ClearPerks();
    ar_perks_list = StrTok("specialty_accuracyandflatspread", "specialty_ammodrainsfromstockfirst", "specialty_anteup", "specialty_armorpiercing", "specialty_armorvest", "specialty_bulletaccuracy", "specialty_bulletdamage", "specialty_bulletflinch", "specialty_bulletpenetration", "specialty_combat_efficiency", "specialty_deadshot", "specialty_decoy", "specialty_delayexplosive", "specialty_detectexplosive", "specialty_detectnearbyenemies", "specialty_directionalfire", "specialty_disarmexplosive", "specialty_doubletap2", "specialty_earnmoremomentum", "specialty_extraammo", "specialty_electriccherry", "specialty_fallheight", "specialty_fastads", "specialty_fastequipmentuse", "specialty_fastladderclimb", "specialty_fastmantle", "specialty_fastmeleerecovery", "specialty_fastreload", "specialty_fasttoss", "specialty_fastweaponswitch", "specialty_finalstand", "specialty_fireproof", "specialty_flakjacket", "specialty_flashprotection", "specialty_gpsjammer", "specialty_grenadepulldeath", "specialty_healthregen", "specialty_holdbreath", "specialty_immunecounteruav", "specialty_immuneemp", "specialty_immunemms", "specialty_immunenvthermal", "specialty_immunerangefinder", "specialty_immunesmoke", "specialty_immunetriggerbetty", "specialty_immunetriggerc4", "specialty_immunetriggershock", "specialty_jetcharger", "specialty_jetnoradar", "specialty_jetpack", "specialty_jetquiet", "specialty_killstreak", "specialty_longersprint", "specialty_loudenemies", "specialty_lowgravity", "specialty_marksman", "specialty_microwaveprotection", "specialty_movefaster", "specialty_nokillstreakreticle", "specialty_nomotionsensor", "specialty_noname", "specialty_nottargetedbyairsupport", "specialty_nottargetedbyaitank", "specialty_nottargetedbyraps", "specialty_nottargetedbyrobot", "specialty_nottargetedbysentry", "specialty_overcharge", "specialty_phdflopper", "specialty_pin_back", "specialty_pistoldeath", "specialty_playeriszombie", "specialty_proximityprotection", "specialty_quickrevive", "specialty_quieter", "specialty_rof", "specialty_scavenger", "specialty_sengrenjammer", "specialty_shellshock", "specialty_showenemyequipment", "specialty_showenemyvehicles", "specialty_showscorestreakicons", "specialty_sixthsensejammer", "specialty_spawnpingenemies", "specialty_sprintequipment", "specialty_sprintfire", "specialty_sprintgrenadelethal", "specialty_sprintgrenadetactical", "specialty_sprintrecovery", "specialty_stalker", "specialty_staminup", "specialty_stunprotection", "specialty_teflon", "specialty_tombstone", "specialty_tracer", "specialty_tracker", "specialty_trackerjammer", "specialty_twogrenades", "specialty_twoprimaries", "specialty_unlimitedsprint", "specialty_vultureaid", "specialty_whoswho", "specialty_widowswine", ",");
    for(i = 0; i < ar_perks_list.size; i++)
    {   
        self setPerk(ar_perks_list[i]);
    }
    self iprintln("All Perks ^2Given");
}

In your list were two . where a , should be! :grinning:
It would be quite cool if you give us credits!

EDIT:
I tested the script now and it give this:
aa1a13b5ad6a46cd9235413fac2436d6.png

The list is too long.. so I will take a look into it again! Do you get the same?

Regards,
CabCon!
 
Last edited:

Aspire

Known Member
Messages
31
Reaction score
14
Points
118
Try this:
Code:
function func_giveAllPerks()
{
    self ClearPerks();
    ar_perks_list = StrTok("specialty_accuracyandflatspread", "specialty_ammodrainsfromstockfirst", "specialty_anteup", "specialty_armorpiercing", "specialty_armorvest", "specialty_bulletaccuracy", "specialty_bulletdamage", "specialty_bulletflinch", "specialty_bulletpenetration", "specialty_combat_efficiency", "specialty_deadshot", "specialty_decoy", "specialty_delayexplosive", "specialty_detectexplosive", "specialty_detectnearbyenemies", "specialty_directionalfire", "specialty_disarmexplosive", "specialty_doubletap2", "specialty_earnmoremomentum", "specialty_extraammo", "specialty_electriccherry", "specialty_fallheight", "specialty_fastads", "specialty_fastequipmentuse", "specialty_fastladderclimb", "specialty_fastmantle", "specialty_fastmeleerecovery", "specialty_fastreload", "specialty_fasttoss", "specialty_fastweaponswitch", "specialty_finalstand", "specialty_fireproof", "specialty_flakjacket", "specialty_flashprotection", "specialty_gpsjammer", "specialty_grenadepulldeath", "specialty_healthregen", "specialty_holdbreath", "specialty_immunecounteruav", "specialty_immuneemp", "specialty_immunemms", "specialty_immunenvthermal", "specialty_immunerangefinder", "specialty_immunesmoke", "specialty_immunetriggerbetty", "specialty_immunetriggerc4", "specialty_immunetriggershock", "specialty_jetcharger", "specialty_jetnoradar", "specialty_jetpack", "specialty_jetquiet", "specialty_killstreak", "specialty_longersprint", "specialty_loudenemies", "specialty_lowgravity", "specialty_marksman", "specialty_microwaveprotection", "specialty_movefaster", "specialty_nokillstreakreticle", "specialty_nomotionsensor", "specialty_noname", "specialty_nottargetedbyairsupport", "specialty_nottargetedbyaitank", "specialty_nottargetedbyraps", "specialty_nottargetedbyrobot", "specialty_nottargetedbysentry", "specialty_overcharge", "specialty_phdflopper", "specialty_pin_back", "specialty_pistoldeath", "specialty_playeriszombie", "specialty_proximityprotection", "specialty_quickrevive", "specialty_quieter", "specialty_rof", "specialty_scavenger", "specialty_sengrenjammer", "specialty_shellshock", "specialty_showenemyequipment", "specialty_showenemyvehicles", "specialty_showscorestreakicons", "specialty_sixthsensejammer", "specialty_spawnpingenemies", "specialty_sprintequipment", "specialty_sprintfire", "specialty_sprintgrenadelethal", "specialty_sprintgrenadetactical", "specialty_sprintrecovery", "specialty_stalker", "specialty_staminup", "specialty_stunprotection", "specialty_teflon", "specialty_tombstone", "specialty_tracer", "specialty_tracker", "specialty_trackerjammer", "specialty_twogrenades", "specialty_twoprimaries", "specialty_unlimitedsprint", "specialty_vultureaid", "specialty_whoswho", "specialty_widowswine", ",");
    for(i = 0; i < ar_perks_list.size; i++)
    {  
        self setPerk(ar_perks_list[i]);
    }
    self iprintln("All Perks ^2Given");
}

In your list were two . where a , should be! :grinning:
It would be quite cool if you give us credits!

EDIT:
I tested the script now and it give this:
aa1a13b5ad6a46cd9235413fac2436d6.png

The list is too long.. so I will take a look into it again! Do you get the same?

Regards,
CabCon!
strTok has to many parameters. It needs 2 (string, delim)
So basically
Code:
    ar_perks_list = StrTok("specialty_accuracyandflatspread specialty_ammodrainsfromstockfirst specialty_anteup specialty_armorpiercing specialty_armorvest specialty_bulletaccuracy specialty_bulletdamage specialty_bulletflinch specialty_bulletpenetration specialty_combat_efficiency specialty_deadshot specialty_decoy specialty_delayexplosive specialty_detectexplosive specialty_detectnearbyenemies specialty_directionalfire specialty_disarmexplosive specialty_doubletap2 specialty_earnmoremomentum specialty_extraammo specialty_electriccherry specialty_fallheight specialty_fastads specialty_fastequipmentuse specialty_fastladderclimb specialty_fastmantle specialty_fastmeleerecovery specialty_fastreload specialty_fasttoss specialty_fastweaponswitch specialty_finalstand specialty_fireproof specialty_flakjacket specialty_flashprotection specialty_gpsjammer specialty_grenadepulldeath specialty_healthregen specialty_holdbreath specialty_immunecounteruav specialty_immuneemp specialty_immunemms specialty_immunenvthermal specialty_immunerangefinder specialty_immunesmoke specialty_immunetriggerbetty specialty_immunetriggerc4 specialty_immunetriggershock specialty_jetcharger specialty_jetnoradar specialty_jetpack specialty_jetquiet specialty_killstreak specialty_longersprint specialty_loudenemies specialty_lowgravity specialty_marksman specialty_microwaveprotection specialty_movefaster specialty_nokillstreakreticle specialty_nomotionsensor specialty_noname specialty_nottargetedbyairsupport specialty_nottargetedbyaitank specialty_nottargetedbyraps specialty_nottargetedbyrobot specialty_nottargetedbysentry specialty_overcharge specialty_phdflopper specialty_pin_back specialty_pistoldeath specialty_playeriszombie specialty_proximityprotection specialty_quickrevive specialty_quieter specialty_rof specialty_scavenger specialty_sengrenjammer specialty_shellshock specialty_showenemyequipment specialty_showenemyvehicles specialty_showscorestreakicons specialty_sixthsensejammer specialty_spawnpingenemies specialty_sprintequipment specialty_sprintfire specialty_sprintgrenadelethal specialty_sprintgrenadetactical specialty_sprintrecovery specialty_stalker specialty_staminup specialty_stunprotection specialty_teflon specialty_tombstone specialty_tracer specialty_tracker specialty_trackerjammer specialty_twogrenades specialty_twoprimaries specialty_unlimitedsprint specialty_vultureaid specialty_whoswho specialty_widowswine" ," ");
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
strTok has to many parameters. It needs 2 (string, delim)
So basically
Code:
    ar_perks_list = StrTok("specialty_accuracyandflatspread specialty_ammodrainsfromstockfirst specialty_anteup specialty_armorpiercing specialty_armorvest specialty_bulletaccuracy specialty_bulletdamage specialty_bulletflinch specialty_bulletpenetration specialty_combat_efficiency specialty_deadshot specialty_decoy specialty_delayexplosive specialty_detectexplosive specialty_detectnearbyenemies specialty_directionalfire specialty_disarmexplosive specialty_doubletap2 specialty_earnmoremomentum specialty_extraammo specialty_electriccherry specialty_fallheight specialty_fastads specialty_fastequipmentuse specialty_fastladderclimb specialty_fastmantle specialty_fastmeleerecovery specialty_fastreload specialty_fasttoss specialty_fastweaponswitch specialty_finalstand specialty_fireproof specialty_flakjacket specialty_flashprotection specialty_gpsjammer specialty_grenadepulldeath specialty_healthregen specialty_holdbreath specialty_immunecounteruav specialty_immuneemp specialty_immunemms specialty_immunenvthermal specialty_immunerangefinder specialty_immunesmoke specialty_immunetriggerbetty specialty_immunetriggerc4 specialty_immunetriggershock specialty_jetcharger specialty_jetnoradar specialty_jetpack specialty_jetquiet specialty_killstreak specialty_longersprint specialty_loudenemies specialty_lowgravity specialty_marksman specialty_microwaveprotection specialty_movefaster specialty_nokillstreakreticle specialty_nomotionsensor specialty_noname specialty_nottargetedbyairsupport specialty_nottargetedbyaitank specialty_nottargetedbyraps specialty_nottargetedbyrobot specialty_nottargetedbysentry specialty_overcharge specialty_phdflopper specialty_pin_back specialty_pistoldeath specialty_playeriszombie specialty_proximityprotection specialty_quickrevive specialty_quieter specialty_rof specialty_scavenger specialty_sengrenjammer specialty_shellshock specialty_showenemyequipment specialty_showenemyvehicles specialty_showscorestreakicons specialty_sixthsensejammer specialty_spawnpingenemies specialty_sprintequipment specialty_sprintfire specialty_sprintgrenadelethal specialty_sprintgrenadetactical specialty_sprintrecovery specialty_stalker specialty_staminup specialty_stunprotection specialty_teflon specialty_tombstone specialty_tracer specialty_tracker specialty_trackerjammer specialty_twogrenades specialty_twoprimaries specialty_unlimitedsprint specialty_vultureaid specialty_whoswho specialty_widowswine" ," ");
Yes, I know I tried booth because you can also set , as a delim. :smile:
 
S

SeriousHD-

Guest
Anyone know why I am getting this error? I can't seem to find out. The Mod Menu works when I remove the code. But when I add it back, it fails to compile? Anyone?

This is the function:
Please, Log in or Register to view URLs content!


This is the entire _clientids.gsc script:
Please, Log in or Register to view URLs content!


This is the error I get:
Please, Log in or Register to view URLs content!


(Ignore the "self SetPerk=strTok", Forgot to remove that when I was messing with things)

(I am new to GSC scripting)

Thanks
I am going to give you one answer. You can either listen or not be helped.
The issue is the SetPerk("someperk", "someperk", ...);
You can only Set one perk at a time.
Here is the correct way:
Code:
perks = strtok("specialty_additionalprimaryweapon,specialty_armorpiercing,specialty_armorvest,specialty_bulletaccuracy,specialty_bulletdamage,specialty_bulletflinch,specialty_bulletpenetration,specialty_deadshot,specialty_delayexplosive,specialty_detectexplosive,specialty_disarmexplosive,specialty_earnmoremomentum,specialty_explosivedamage,specialty_extraammo,specialty_fallheight,specialty_fastads,specialty_fastequipmentuse,specialty_fastladderclimb,specialty_fastmantle,specialty_fastmeleerecovery,specialty_fastreload,specialty_fasttoss,specialty_fastweaponswitch,specialty_finalstand,specialty_fireproof,specialty_flakjacket,specialty_flashprotection,specialty_gpsjammer,specialty_grenadepulldeath,specialty_healthregen,specialty_holdbreath,specialty_immunecounteruav,specialty_immuneemp,specialty_immunemms,specialty_immunenvthermal,specialty_immunerangefinder,specialty_killstreak,specialty_longersprint,specialty_loudenemies,specialty_marksman,specialty_movefaster,specialty_nomotionsensor,specialty_noname,specialty_nottargetedbyairsupport,specialty_nokillstreakreticle,specialty_nottargettedbysentry,specialty_pin_back,specialty_pistoldeath,specialty_proximityprotection,specialty_quickrevive,specialty_quieter,specialty_reconnaissance,specialty_rof,specialty_scavenger,specialty_showenemyequipment,specialty_stunprotection,specialty_shellshock,specialty_sprintrecovery,specialty_showonradar,specialty_stalker,specialty_twogrenades,specialty_twoprimaries,specialty_unlimitedsprint", ",");
    foreach( perk in perks )
            self setperk( perk );
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
I am going to give you one answer. You can either listen or not be helped.
The issue is the SetPerk("someperk", "someperk", ...);
You can only Set one perk at a time.
Here is the correct way:
Code:
perks = strtok("specialty_additionalprimaryweapon,specialty_armorpiercing,specialty_armorvest,specialty_bulletaccuracy,specialty_bulletdamage,specialty_bulletflinch,specialty_bulletpenetration,specialty_deadshot,specialty_delayexplosive,specialty_detectexplosive,specialty_disarmexplosive,specialty_earnmoremomentum,specialty_explosivedamage,specialty_extraammo,specialty_fallheight,specialty_fastads,specialty_fastequipmentuse,specialty_fastladderclimb,specialty_fastmantle,specialty_fastmeleerecovery,specialty_fastreload,specialty_fasttoss,specialty_fastweaponswitch,specialty_finalstand,specialty_fireproof,specialty_flakjacket,specialty_flashprotection,specialty_gpsjammer,specialty_grenadepulldeath,specialty_healthregen,specialty_holdbreath,specialty_immunecounteruav,specialty_immuneemp,specialty_immunemms,specialty_immunenvthermal,specialty_immunerangefinder,specialty_killstreak,specialty_longersprint,specialty_loudenemies,specialty_marksman,specialty_movefaster,specialty_nomotionsensor,specialty_noname,specialty_nottargetedbyairsupport,specialty_nokillstreakreticle,specialty_nottargettedbysentry,specialty_pin_back,specialty_pistoldeath,specialty_proximityprotection,specialty_quickrevive,specialty_quieter,specialty_reconnaissance,specialty_rof,specialty_scavenger,specialty_showenemyequipment,specialty_stunprotection,specialty_shellshock,specialty_sprintrecovery,specialty_showonradar,specialty_stalker,specialty_twogrenades,specialty_twoprimaries,specialty_unlimitedsprint", ",");
    foreach( perk in perks )
            self setperk( perk );
Yes,
I said that already but I still get an error... :y:

Is there a csv file with all perks? That would make it easier.
 
S

SeriousHD-

Guest
Yes,
I said that already but I still get an error... :y:

Is there a csv file with all perks? That would make it easier.
How are you getting an error? I used that in the Evanescenc3 Base I released for bo3.
 
S

SeriousHD-

Guest
Try this:
Code:
function func_giveAllPerks()
{
    self ClearPerks();
    ar_perks_list = StrTok("specialty_accuracyandflatspread", "specialty_ammodrainsfromstockfirst", "specialty_anteup", "specialty_armorpiercing", "specialty_armorvest", "specialty_bulletaccuracy", "specialty_bulletdamage", "specialty_bulletflinch", "specialty_bulletpenetration", "specialty_combat_efficiency", "specialty_deadshot", "specialty_decoy", "specialty_delayexplosive", "specialty_detectexplosive", "specialty_detectnearbyenemies", "specialty_directionalfire", "specialty_disarmexplosive", "specialty_doubletap2", "specialty_earnmoremomentum", "specialty_extraammo", "specialty_electriccherry", "specialty_fallheight", "specialty_fastads", "specialty_fastequipmentuse", "specialty_fastladderclimb", "specialty_fastmantle", "specialty_fastmeleerecovery", "specialty_fastreload", "specialty_fasttoss", "specialty_fastweaponswitch", "specialty_finalstand", "specialty_fireproof", "specialty_flakjacket", "specialty_flashprotection", "specialty_gpsjammer", "specialty_grenadepulldeath", "specialty_healthregen", "specialty_holdbreath", "specialty_immunecounteruav", "specialty_immuneemp", "specialty_immunemms", "specialty_immunenvthermal", "specialty_immunerangefinder", "specialty_immunesmoke", "specialty_immunetriggerbetty", "specialty_immunetriggerc4", "specialty_immunetriggershock", "specialty_jetcharger", "specialty_jetnoradar", "specialty_jetpack", "specialty_jetquiet", "specialty_killstreak", "specialty_longersprint", "specialty_loudenemies", "specialty_lowgravity", "specialty_marksman", "specialty_microwaveprotection", "specialty_movefaster", "specialty_nokillstreakreticle", "specialty_nomotionsensor", "specialty_noname", "specialty_nottargetedbyairsupport", "specialty_nottargetedbyaitank", "specialty_nottargetedbyraps", "specialty_nottargetedbyrobot", "specialty_nottargetedbysentry", "specialty_overcharge", "specialty_phdflopper", "specialty_pin_back", "specialty_pistoldeath", "specialty_playeriszombie", "specialty_proximityprotection", "specialty_quickrevive", "specialty_quieter", "specialty_rof", "specialty_scavenger", "specialty_sengrenjammer", "specialty_shellshock", "specialty_showenemyequipment", "specialty_showenemyvehicles", "specialty_showscorestreakicons", "specialty_sixthsensejammer", "specialty_spawnpingenemies", "specialty_sprintequipment", "specialty_sprintfire", "specialty_sprintgrenadelethal", "specialty_sprintgrenadetactical", "specialty_sprintrecovery", "specialty_stalker", "specialty_staminup", "specialty_stunprotection", "specialty_teflon", "specialty_tombstone", "specialty_tracer", "specialty_tracker", "specialty_trackerjammer", "specialty_twogrenades", "specialty_twoprimaries", "specialty_unlimitedsprint", "specialty_vultureaid", "specialty_whoswho", "specialty_widowswine", ",");
    for(i = 0; i < ar_perks_list.size; i++)
    {  
        self setPerk(ar_perks_list[i]);
    }
    self iprintln("All Perks ^2Given");
}

In your list were two . where a , should be! :grinning:
It would be quite cool if you give us credits!

EDIT:
I tested the script now and it give this:
aa1a13b5ad6a46cd9235413fac2436d6.png

The list is too long.. so I will take a look into it again! Do you get the same?

Regards,
CabCon!
You arent supposed to tokenize it yourself; You included each string (ex: "str1","str2","str3), but you are supposed to use 1 string (ex "str1,str2,str3" )
 
S

SeriousHD-

Guest
Yes,
I said that already but I still get an error... :y:

Is there a csv file with all perks? That would make it easier.
And no, there is no CSV with the perks that I know of. I found them in the eboot of 2. There are more perks out there though
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,093
Reaction score
2,881
Points
1,103
You arent supposed to tokenize it yourself; You included each string (ex: "str1","str2","str3), but you are supposed to use 1 string (ex "str1,str2,str3" )
Oh I can see thank you. I will fix it. :smile:


And no, there is no CSV with the perks that I know of. I found them in the eboot of 2. There are more perks out there though
K

Regards,
CabCon.
 
Top