Answered Help with BO3 Scripting

Discussion in 'Call of Duty: Black Ops 3 Answered Questions' started by Kibitz, Oct 4, 2016.

  1. Kibitz

    Kibitz Well-Known Member

    1
    1
    203
    Credits:
    8
    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 login or register to view links or downloads!

    This is the entire _clientids.gsc script: Please login or register to view links or downloads!

    This is the error I get: Please login or register to view links or downloads!

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

    (I am new to GSC scripting)

    Thanks
     
    CabCon likes this.
  2. Joker

    Joker Well-Known Member

    49
    24
    218
    Credits:
    161
    I believe you need a "precache" of sorts for the perks, Not too sure though
     
  3. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    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.
     
    Kibitz likes this.
  4. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    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:
    [​IMG]
    The list is too long.. so I will take a look into it again! Do you get the same?

    Regards,
    CabCon!
     
    Last edited: Oct 4, 2016
  5. Aspire

    Aspire Known Member

    31
    14
    118
    Credits:
    49
    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" ," ");
    
     
  6. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    Yes, I know I tried booth because you can also set , as a delim. :smile:
     
  7. Aspire

    Aspire Known Member

    31
    14
    118
    Credits:
    49
    Are you sure it's the function and not his menu/the rest of the code?
     
  8. Joker

    Joker Well-Known Member

    49
    24
    218
    Credits:
    161
    Also you can set ; as delim
     
    CabCon likes this.
  9. SeriousHD-

    SeriousHD- Guest

    Credits:
    0
    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 and Syndicate like this.
  10. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    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.
     
  11. SeriousHD-

    SeriousHD- Guest

    Credits:
    0
    How are you getting an error? I used that in the Evanescenc3 Base I released for bo3.
     
  12. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    Here: Please login or register to view links or downloads!
     
  13. SeriousHD-

    SeriousHD- Guest

    Credits:
    0
    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" )
     
    CabCon likes this.
  14. SeriousHD-

    SeriousHD- Guest

    Credits:
    0
    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 likes this.
  15. CabCon

    CabCon Head Administrator Staff Member Head Staff Team

    4,123
    2,682
    403
    Credits:
    197,983
    Oh I can see thank you. I will fix it. :smile:


    K

    Regards,
    CabCon.
     

Share This Page