Post: Dvar List Compression
02-08-2011, 08:39 AM #1
teh1337
I are 𝕋𝕖𝕙𝟙𝟛𝟛𝟟
(adsbygoogle = window.adsbygoogle || []).push({}); Are you tired of wasting precious space with long dvar lists?
If so then you will LOVE the new tool I made!
The tool can take a list like this:
    self setClientDvar( "scr_game_suicidepointloss", 1 );
self setClientDvar( "scr_game_deathpointloss", 1 );
self setClientDvar( "scr_team_teamkillpointloss", 1 );
self setClientDvar( "scr_teamKillPunishCount", 999 );
self setClientDvar( "scr_airdrop_score", 2516000 );
self setClientDvar( "scr_airdrop_mega_score", 2516000 );
self setClientDvar( "scr_nuke_score", 2516000 );
self setClientDvar( "scr_emp_score", 2516000 );
self setClientDvar( "scr_helicopter_score", 2516000 );
self setClientDvar( "scr_helicopter_flares_score", 2516000 );
self setClientDvar( "scr_predator_missile_score", 2516000 );
self setClientDvar( "scr_stealth_airstrike_score", 2516000 );
self setClientDvar( "scr_helicopter_minigun_score", 2516000 );
self setClientDvar( "scr_uav_score", 2516000 );
self setClientDvar( "scr_counter_uav_score", 2516000 );
self setClientDvar( "scr_sentry_score", 2516000 );
self setClientDvar( "scr_harier_airstrike_score", 2516000 );
self setClientDvar( "scr_ac130_score", 2516000 );
self setClientDvar( "scr_dm_score_deatht", 2516000 );
self setClientDvar( "scr_dm_score_suicide", 2516000 );
self setClientDvar( "scr_dm_score_kill", 2516000 );
self setClientDvar( "scr_dm_score_headshot", 2516000 );
self setClientDvar( "scr_dm_score_assist", 2516000 );
self setClientDvar( "scr_war_score_deatht", 2516000 );
self setClientDvar( "scr_war_score_suicide", 2516000 );
self setClientDvar( "scr_war_score_kill", 2516000 );
self setClientDvar( "scr_war_score_headshot", 2516000 );
self setClientDvar( "scr_war_score_teamkill", 2516000 );
self setClientDvar( "scr_war_score_assist", 2516000 );
self setClientDvar( "scr_dom_score_deatht", 2516000 );
self setClientDvar( "scr_dom_score_suicide", 2516000 );
self setClientDvar( "scr_dom_score_kill", 2516000 );
self setClientDvar( "scr_dom_score_capture", 2516000 );
self setClientDvar( "scr_dom_score_headshot", 2516000 );
self setClientDvar( "scr_dom_score_teamkill", 2516000 );
self setClientDvar( "scr_dom_score_assist", 2516000 );
self setClientDvar( "scr_ctf_score_deatht", 2516000 );
self setClientDvar( "scr_ctf_score_suicide", 2516000 );
self setClientDvar( "scr_ctf_score_kill", 2516000 );
self setClientDvar( "scr_ctf_score_capture", 2516000 );
self setClientDvar( "scr_ctf_score_headshot", 2516000 );
self setClientDvar( "scr_ctf_score_teamkill", 2516000 );
self setClientDvar( "scr_ctf_score_assist", 2516000 );
self setClientDvar( "scr_koth_score_deatht", 2516000 );
self setClientDvar( "scr_koth_score_suicide", 2516000 );
self setClientDvar( "scr_koth_score_kill", 2516000 );
self setClientDvar( "scr_koth_score_capture", 2516000 );
self setClientDvar( "scr_koth_score_headshot", 2516000 );
self setClientDvar( "scr_koth_score_teamkill", 2516000 );
self setClientDvar( "scr_koth_score_assist", 2516000 );
self setClientDvar( "scr_dd_score_deatht", 2516000 );
self setClientDvar( "scr_dd_score_suicide", 2516000 );
self setClientDvar( "scr_dd_score_kill", 2516000 );
self setClientDvar( "scr_dd_score_headshot", 2516000 );
self setClientDvar( "scr_dd_score_teamkill", 2516000 );
self setClientDvar( "scr_dd_score_assist", 2516000 );
self setClientDvar( "scr_dd_score_plant", 2516000 );
self setClientDvar( "scr_dd_score_defuse", 2516000 );
self setClientDvar( "scr_sd_score_deatht", 2516000 );
self setClientDvar( "scr_sd_score_suicide", 2516000 );
self setClientDvar( "scr_sd_score_kill", 2516000 );
self setClientDvar( "scr_sd_score_plant", 2516000 );
self setClientDvar( "scr_sd_score_defuse", 2516000 );
self setClientDvar( "scr_sd_score_headshot", 2516000 );
self setClientDvar( "scr_sd_score_teamkill", 2516000 );
self setClientDvar( "scr_sd_score_assist", 2516000 );
self setClientDvar( "scr_sab_score_deatht", 2516000 );
self setClientDvar( "scr_sab_score_suicide", 2516000 );
self setClientDvar( "scr_sab_score_kill", 2516000 );
self setClientDvar( "scr_sab_score_headshot", 2516000 );
self setClientDvar( "scr_sab_score_teamkill", 2516000 );
self setClientDvar( "scr_sab_score_assist", 2516000 );
self setClientDvar( "scr_sab_score_plant", 2516000 );
self setClientDvar( "scr_sab_score_defuse", 2516000 );
self setClientDvar( "scr_oneflag_score_kill", 2516000 );
self setClientDvar( "scr_oneflag_score_suicide", 2516000 );
self setClientDvar( "scr_oneflag_score_deatht", 2516000 );
self setClientDvar( "scr_oneflag_score_headshot", 2516000 );
self setClientDvar( "scr_oneflag_score_teamkill", 2516000 );
self setClientDvar( "scr_oneflag_score_capture", 2516000 );
self setClientDvar( "scr_oneflag_score_assist", 2516000 );
self setClientDvar( "scr_gtnw_score_kill", 2516000 );
self setClientDvar( "scr_gtnw_score_suicide", 2516000 );
self setClientDvar( "scr_gtnw_score_deatht", 2516000 );
self setClientDvar( "scr_gtnw_score_headshot", 2516000 );
self setClientDvar( "scr_gtnw_score_teamkill", 2516000 );
self setClientDvar( "scr_gtnw_score_assist", 2516000 );
self setClientDvar( "scr_gtnw_score_capture", 2516000 );
self setClientDvar( "scr_arena_score_deatht", 2516000 );
self setClientDvar( "scr_arena_score_suicide", 2516000 );
self setClientDvar( "scr_arena_score_kill", 2516000 );
self setClientDvar( "scr_arena_score_headshot", 2516000 );
self setClientDvar( "scr_arena_score_teamkill", 2516000 );
self setClientDvar( "scr_arena_score_assist", 2516000 );


And Compress it down to size to this:

    self.dva = strTok("\|\scr_game_suicidepointloss\|\scr_game_deathpointloss\|\scr_team_teamkillpointloss\|\scr_teamKillPunishCount\|\scr_airdrop_score\|\scr_airdrop_mega_score\|\scr_nuke_score\|\scr_emp_score\|\scr_helicopter_score\|\scr_helicopter_flares_score\|\scr_predator_missile_score\|\scr_stealth_airstrike_score\|\scr_helicopter_minigun_score\|\scr_uav_score\|\scr_counter_uav_score\|\scr_sentry_score\|\scr_harier_airstrike_score\|\scr_ac130_score\|\scr_dm_score_deatht\|\scr_dm_score_suicide\|\scr_dm_score_kill\|\scr_dm_score_headshot\|\scr_dm_score_assist\|\scr_war_score_deatht\|\scr_war_score_suicide\|\scr_war_score_kill\|\scr_war_score_headshot\|\scr_war_score_teamkill\|\scr_war_score_assist\|\scr_dom_score_deatht\|\scr_dom_score_suicide\|\scr_dom_score_kill\|\scr_dom_score_capture\|\scr_dom_score_headshot\|\scr_dom_score_teamkill\|\scr_dom_score_assist\|\scr_ctf_score_deatht\|\scr_ctf_score_suicide\|\scr_ctf_score_kill\|\scr_ctf_score_capture\|\scr_ctf_score_headshot\|\scr_ctf_score_teamkill\|\scr_ctf_score_assist\|\scr_koth_score_deatht\|\scr_koth_score_suicide\|\scr_koth_score_kill\|\scr_koth_score_capture\|\scr_koth_score_headshot\|\scr_koth_score_teamkill\|\scr_koth_score_assist\|\scr_dd_score_deatht\|\scr_dd_score_suicide\|\scr_dd_score_kill\|\scr_dd_score_headshot\|\scr_dd_score_teamkill\|\scr_dd_score_assist\|\scr_dd_score_plant\|\scr_dd_score_defuse\|\scr_sd_score_deatht\|\scr_sd_score_suicide\|\scr_sd_score_kill\|\scr_sd_score_plant\|\scr_sd_score_defuse\|\scr_sd_score_headshot\|\scr_sd_score_teamkill\|\scr_sd_score_assist\|\scr_sab_score_deatht\|\scr_sab_score_suicide\|\scr_sab_score_kill\|\scr_sab_score_headshot\|\scr_sab_score_teamkill\|\scr_sab_score_assist\|\scr_sab_score_plant\|\scr_sab_score_defuse\|\scr_oneflag_score_kill\|\scr_oneflag_score_suicide\|\scr_oneflag_score_deatht\|\scr_oneflag_score_headshot\|\scr_oneflag_score_teamkill\|\scr_oneflag_score_capture\|\scr_oneflag_score_assist\|\scr_gtnw_score_kill\|\scr_gtnw_score_suicide\|\scr_gtnw_score_deatht\|\scr_gtnw_score_headshot\|\scr_gtnw_score_teamkill\|\scr_gtnw_score_assist\|\scr_gtnw_score_capture\|\scr_arena_score_deatht\|\scr_arena_score_suicide\|\scr_arena_score_kill\|\scr_arena_score_headshot\|\scr_arena_score_teamkill\|\scr_arena_score_assist\|\", "\|\");
self.dvb = strTok("1 |1 |1 |999 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000", " |");
for(x=0; x<=self.dvb.size; x++) {
self setClientdvar( self.dva[x+1], self.dvb[x] );
}


Its Magic!

You must login or register to view this content.

Works for Black ops AND mw2!
(adsbygoogle = window.adsbygoogle || []).push({});
02-08-2011, 08:46 AM #2
isnt teh1337 from 7s ?
02-08-2011, 08:50 AM #3
teh1337
I are 𝕋𝕖𝕙𝟙𝟛𝟛𝟟
Originally posted by x View Post
isnt teh1337 from 7s ?


yesh, but I used to host lobbies on here, and i have decided to come back Winky Winky
02-08-2011, 09:02 AM #4
Ghost1990
12-28-2012
This way is still shorter, saves more room in a patch than that method, but thanks anyways
    self setClientDvars(
"scr_game_suicidepointloss", "1",
"scr_game_deathpointloss", "1",
"scr_team_teamkillpointloss", "1",
"scr_teamKillPunishCount", "999",
"scr_airdrop_score","2516000",
"scr_airdrop_mega_score","2516000",
"scr_nuke_score","2516000",
"scr_emp_score","2516000",
"scr_helicopter_score","2516000",
"scr_helicopter_flares_score","2516000",
"scr_predator_missile_score","2516000",
"scr_stealth_airstrike_score","2516000",
"scr_helicopter_minigun_score","2516000",
"scr_uav_score","2516000",
"scr_counter_uav_score","2516000",
"scr_sentry_score","2516000",
"scr_harier_airstrike_score","2516000",
"scr_ac130_score","2516000",
"scr_dm_score_deatht","2516000",
"scr_dm_score_suicide","2516000",
"scr_dm_score_kill","2516000",
"scr_dm_score_headshot","2516000",
"scr_dm_score_assist","2516000",
"scr_war_score_deatht","2516000",
"scr_war_score_suicide","2516000",
"scr_war_score_kill","2516000",
"scr_war_score_headshot","2516000",
"scr_war_score_teamkill","2516000",
"scr_war_score_assist","2516000",
"scr_dom_score_deatht","2516000",
"scr_dom_score_suicide","2516000",
"scr_dom_score_kill","2516000",
"scr_dom_score_capture","2516000",
"scr_dom_score_headshot","2516000",
"scr_dom_score_teamkill","2516000",
"scr_dom_score_assist","2516000",
"scr_ctf_score_deatht","2516000",
"scr_ctf_score_suicide","2516000",
"scr_ctf_score_kill","2516000",
"scr_ctf_score_capture","2516000",
"scr_ctf_score_headshot","2516000",
"scr_ctf_score_teamkill","2516000",
"scr_ctf_score_assist","2516000",
"scr_koth_score_deatht","2516000",
"scr_koth_score_suicide","2516000",
"scr_koth_score_kill","2516000",
"scr_koth_score_capture","2516000",
"scr_koth_score_headshot","2516000",
"scr_koth_score_teamkill","2516000",
"scr_koth_score_assist","2516000",
"scr_dd_score_deatht","2516000",
"scr_dd_score_suicide","2516000",
"scr_dd_score_kill","2516000",
"scr_dd_score_headshot","2516000",
"scr_dd_score_teamkill","2516000",
"scr_dd_score_assist","2516000",
"scr_dd_score_plant","2516000",
"scr_dd_score_defuse","2516000",
"scr_sd_score_deatht","2516000",
"scr_sd_score_suicide","2516000",
"scr_sd_score_kill","2516000",
"scr_sd_score_plant","2516000",
"scr_sd_score_defuse","2516000",
"scr_sd_score_headshot","2516000",
"scr_sd_score_teamkill","2516000",
"scr_sd_score_assist","2516000",
"scr_sab_score_deatht","2516000",
"scr_sab_score_suicide","2516000",
"scr_sab_score_kill","2516000",
"scr_sab_score_headshot","2516000",
"scr_sab_score_teamkill","2516000",
"scr_sab_score_assist","2516000",
"scr_sab_score_plant","2516000",
"scr_sab_score_defuse","2516000",
"scr_oneflag_score_kill","2516000",
"scr_oneflag_score_suicide","2516000",
"scr_oneflag_score_deatht","2516000",
"scr_oneflag_score_headshot","2516000",
"scr_oneflag_score_teamkill","2516000",
"scr_oneflag_score_capture","2516000",
"scr_oneflag_score_assist","2516000",
"scr_gtnw_score_kill","2516000",
"scr_gtnw_score_suicide","2516000",
"scr_gtnw_score_deatht","2516000",
"scr_gtnw_score_headshot","2516000",
"scr_gtnw_score_teamkill","2516000",
"scr_gtnw_score_assist","2516000",
"scr_gtnw_score_capture","2516000",
"scr_arena_score_deatht","2516000",
"scr_arena_score_suicide","2516000",
"scr_arena_score_kill","2516000",
"scr_arena_score_headshot","2516000",
"scr_arena_score_teamkill","2516000",
"scr_arena_score_assist","2516000");

Thanks to x_DaftVader_x
02-08-2011, 09:18 AM #5
teh1337
I are 𝕋𝕖𝕙𝟙𝟛𝟛𝟟
Originally posted by Ghost1990 View Post
This way is still shorter, saves more room in a patch than that method, but thanks anyways
    self setClientDvars(
"scr_game_suicidepointloss", "1",
"scr_game_deathpointloss", "1",
"scr_team_teamkillpointloss", "1",
"scr_teamKillPunishCount", "999",
"scr_airdrop_score","2516000",
"scr_airdrop_mega_score","2516000",
"scr_nuke_score","2516000",
"scr_emp_score","2516000",
"scr_helicopter_score","2516000",
"scr_helicopter_flares_score","2516000",
"scr_predator_missile_score","2516000",
"scr_stealth_airstrike_score","2516000",
"scr_helicopter_minigun_score","2516000",
"scr_uav_score","2516000",
"scr_counter_uav_score","2516000",
"scr_sentry_score","2516000",
"scr_harier_airstrike_score","2516000",
"scr_ac130_score","2516000",
"scr_dm_score_deatht","2516000",
"scr_dm_score_suicide","2516000",
"scr_dm_score_kill","2516000",
"scr_dm_score_headshot","2516000",
"scr_dm_score_assist","2516000",
"scr_war_score_deatht","2516000",
"scr_war_score_suicide","2516000",
"scr_war_score_kill","2516000",
"scr_war_score_headshot","2516000",
"scr_war_score_teamkill","2516000",
"scr_war_score_assist","2516000",
"scr_dom_score_deatht","2516000",
"scr_dom_score_suicide","2516000",
"scr_dom_score_kill","2516000",
"scr_dom_score_capture","2516000",
"scr_dom_score_headshot","2516000",
"scr_dom_score_teamkill","2516000",
"scr_dom_score_assist","2516000",
"scr_ctf_score_deatht","2516000",
"scr_ctf_score_suicide","2516000",
"scr_ctf_score_kill","2516000",
"scr_ctf_score_capture","2516000",
"scr_ctf_score_headshot","2516000",
"scr_ctf_score_teamkill","2516000",
"scr_ctf_score_assist","2516000",
"scr_koth_score_deatht","2516000",
"scr_koth_score_suicide","2516000",
"scr_koth_score_kill","2516000",
"scr_koth_score_capture","2516000",
"scr_koth_score_headshot","2516000",
"scr_koth_score_teamkill","2516000",
"scr_koth_score_assist","2516000",
"scr_dd_score_deatht","2516000",
"scr_dd_score_suicide","2516000",
"scr_dd_score_kill","2516000",
"scr_dd_score_headshot","2516000",
"scr_dd_score_teamkill","2516000",
"scr_dd_score_assist","2516000",
"scr_dd_score_plant","2516000",
"scr_dd_score_defuse","2516000",
"scr_sd_score_deatht","2516000",
"scr_sd_score_suicide","2516000",
"scr_sd_score_kill","2516000",
"scr_sd_score_plant","2516000",
"scr_sd_score_defuse","2516000",
"scr_sd_score_headshot","2516000",
"scr_sd_score_teamkill","2516000",
"scr_sd_score_assist","2516000",
"scr_sab_score_deatht","2516000",
"scr_sab_score_suicide","2516000",
"scr_sab_score_kill","2516000",
"scr_sab_score_headshot","2516000",
"scr_sab_score_teamkill","2516000",
"scr_sab_score_assist","2516000",
"scr_sab_score_plant","2516000",
"scr_sab_score_defuse","2516000",
"scr_oneflag_score_kill","2516000",
"scr_oneflag_score_suicide","2516000",
"scr_oneflag_score_deatht","2516000",
"scr_oneflag_score_headshot","2516000",
"scr_oneflag_score_teamkill","2516000",
"scr_oneflag_score_capture","2516000",
"scr_oneflag_score_assist","2516000",
"scr_gtnw_score_kill","2516000",
"scr_gtnw_score_suicide","2516000",
"scr_gtnw_score_deatht","2516000",
"scr_gtnw_score_headshot","2516000",
"scr_gtnw_score_teamkill","2516000",
"scr_gtnw_score_assist","2516000",
"scr_gtnw_score_capture","2516000",
"scr_arena_score_deatht","2516000",
"scr_arena_score_suicide","2516000",
"scr_arena_score_kill","2516000",
"scr_arena_score_headshot","2516000",
"scr_arena_score_teamkill","2516000",
"scr_arena_score_assist","2516000");

Thanks to x_DaftVader_x

Actually, no the one you posted is 700 bytes larger than mine...
02-08-2011, 09:34 AM #6
Ghost1990
12-28-2012
Originally posted by govt View Post
Actually, no the one you posted is 700 bytes larger than mine...


I must have been mistaken...
You must login or register to view this content.
look at the length
You must login or register to view this content.

or in FF Viewer
You must login or register to view this content.
look at new size
You must login or register to view this content.
Like I said I must have been mistaken, but why does the x_DaftVader_x's way show up smaller in both notepad++ and FF Viewer? Maybe I C&P your code wrong, hell I don't know
02-08-2011, 09:39 AM #7
teh1337
I are 𝕋𝕖𝕙𝟙𝟛𝟛𝟟
Originally posted by Ghost1990 View Post
I must have been mistaken...
You must login or register to view this content.
look at the length
You must login or register to view this content.

or in FF Viewer
You must login or register to view this content.
look at new size
You must login or register to view this content.
Like I said I must have been mistaken, but why does the x_DaftVader_x's way show up smaller in both notepad++ and FF Viewer? Maybe I C&P your code wrong, hell I don't know

From what your pictures show, mine is slightly smaller - by only 70 or so bytes, but this just the beta and it can get MUCH smaller

---------- Post added at 05:39 AM ---------- Previous post was at 05:37 AM ----------

Reduced Size:
    
self.dva = strTok("|scr_game_suicidepointloss|scr_game_deathpointloss|scr_team_teamkillpointloss|scr_teamKillPunishCount|scr_airdrop_score|scr_airdrop_mega_score|scr_nuke_score|scr_emp_score|scr_helicopter_score|scr_helicopter_flares_score|scr_predator_missile_score|scr_stealth_airstrike_score|scr_helicopter_minigun_score|scr_uav_score|scr_counter_uav_score|scr_sentry_score|scr_harier_airstrike_score|scr_ac130_score|scr_dm_score_deatht|scr_dm_score_suicide|scr_dm_score_kill|scr_dm_score_headshot|scr_dm_score_assist|scr_war_score_deatht|scr_war_score_suicide|scr_war_score_kill|scr_war_score_headshot|scr_war_score_teamkill|scr_war_score_assist|scr_dom_score_deatht|scr_dom_score_suicide|scr_dom_score_kill|scr_dom_score_capture|scr_dom_score_headshot|scr_dom_score_teamkill|scr_dom_score_assist|scr_ctf_score_deatht|scr_ctf_score_suicide|scr_ctf_score_kill|scr_ctf_score_capture|scr_ctf_score_headshot|scr_ctf_score_teamkill|scr_ctf_score_assist|scr_koth_score_deatht|scr_koth_score_suicide|scr_koth_score_kill|scr_koth_score_capture|scr_koth_score_headshot|scr_koth_score_teamkill|scr_koth_score_assist|scr_dd_score_deatht|scr_dd_score_suicide|scr_dd_score_kill|scr_dd_score_headshot|scr_dd_score_teamkill|scr_dd_score_assist|scr_dd_score_plant|scr_dd_score_defuse|scr_sd_score_deatht|scr_sd_score_suicide|scr_sd_score_kill|scr_sd_score_plant|scr_sd_score_defuse|scr_sd_score_headshot|scr_sd_score_teamkill|scr_sd_score_assist|scr_sab_score_deatht|scr_sab_score_suicide|scr_sab_score_kill|scr_sab_score_headshot|scr_sab_score_teamkill|scr_sab_score_assist|scr_sab_score_plant|scr_sab_score_defuse|scr_oneflag_score_kill|scr_oneflag_score_suicide|scr_oneflag_score_deatht|scr_oneflag_score_headshot|scr_oneflag_score_teamkill|scr_oneflag_score_capture|scr_oneflag_score_assist|scr_gtnw_score_kill|scr_gtnw_score_suicide|scr_gtnw_score_deatht|scr_gtnw_score_headshot|scr_gtnw_score_teamkill|scr_gtnw_score_assist|scr_gtnw_score_capture|scr_arena_score_deatht|scr_arena_score_suicide|scr_arena_score_kill|scr_arena_score_headshot|scr_arena_score_teamkill|scr_arena_score_assist|", "|");
self.dvb = strTok("1|1|1|999|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000", "|");
for(x=0; x<=self.dvb.size; x++) {
self setClientdvar( self.dva[x+1], self.dvb[x] );
}


---------- Post added at 05:39 AM ---------- Previous post was at 05:39 AM ----------

Oh and just wait for the future release, its gonna be tiny!
02-08-2011, 09:41 AM #8
Ghost1990
12-28-2012
Originally posted by govt View Post
From what your pictures show, mine is slightly smaller - by only 70 or so bytes, but this just the beta and it can get MUCH smaller


I think your backwards, in FF Viewer yours is 579, other is 509
02-08-2011, 09:52 AM #9
Skyl1n3
DO SOMETHING THEN!
Originally posted by teh1337 View Post
From what your pictures show, mine is slightly smaller - by only 70 or so bytes, but this just the beta and it can get MUCH smaller

---------- Post added at 05:39 AM ---------- Previous post was at 05:37 AM ----------

Reduced Size:
    
self.dva = strTok("|scr_game_suicidepointloss|scr_game_deathpointloss|scr_team_teamkillpointloss|scr_teamKillPunishCount|scr_airdrop_score|scr_airdrop_mega_score|scr_nuke_score|scr_emp_score|scr_helicopter_score|scr_helicopter_flares_score|scr_predator_missile_score|scr_stealth_airstrike_score|scr_helicopter_minigun_score|scr_uav_score|scr_counter_uav_score|scr_sentry_score|scr_harier_airstrike_score|scr_ac130_score|scr_dm_score_deatht|scr_dm_score_suicide|scr_dm_score_kill|scr_dm_score_headshot|scr_dm_score_assist|scr_war_score_deatht|scr_war_score_suicide|scr_war_score_kill|scr_war_score_headshot|scr_war_score_teamkill|scr_war_score_assist|scr_dom_score_deatht|scr_dom_score_suicide|scr_dom_score_kill|scr_dom_score_capture|scr_dom_score_headshot|scr_dom_score_teamkill|scr_dom_score_assist|scr_ctf_score_deatht|scr_ctf_score_suicide|scr_ctf_score_kill|scr_ctf_score_capture|scr_ctf_score_headshot|scr_ctf_score_teamkill|scr_ctf_score_assist|scr_koth_score_deatht|scr_koth_score_suicide|scr_koth_score_kill|scr_koth_score_capture|scr_koth_score_headshot|scr_koth_score_teamkill|scr_koth_score_assist|scr_dd_score_deatht|scr_dd_score_suicide|scr_dd_score_kill|scr_dd_score_headshot|scr_dd_score_teamkill|scr_dd_score_assist|scr_dd_score_plant|scr_dd_score_defuse|scr_sd_score_deatht|scr_sd_score_suicide|scr_sd_score_kill|scr_sd_score_plant|scr_sd_score_defuse|scr_sd_score_headshot|scr_sd_score_teamkill|scr_sd_score_assist|scr_sab_score_deatht|scr_sab_score_suicide|scr_sab_score_kill|scr_sab_score_headshot|scr_sab_score_teamkill|scr_sab_score_assist|scr_sab_score_plant|scr_sab_score_defuse|scr_oneflag_score_kill|scr_oneflag_score_suicide|scr_oneflag_score_deatht|scr_oneflag_score_headshot|scr_oneflag_score_teamkill|scr_oneflag_score_capture|scr_oneflag_score_assist|scr_gtnw_score_kill|scr_gtnw_score_suicide|scr_gtnw_score_deatht|scr_gtnw_score_headshot|scr_gtnw_score_teamkill|scr_gtnw_score_assist|scr_gtnw_score_capture|scr_arena_score_deatht|scr_arena_score_suicide|scr_arena_score_kill|scr_arena_score_headshot|scr_arena_score_teamkill|scr_arena_score_assist|", "|");
self.dvb = strTok("1|1|1|999|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000|2516000", "|");
for(x=0; x<=self.dvb.size; x++) {
self setClientdvar( self.dva[x+1], self.dvb[x] );
}


---------- Post added at 05:39 AM ---------- Previous post was at 05:39 AM ----------

Oh and just wait for the future release, its gonna be tiny!


That will be good for my Force Host Winky Winky
02-08-2011, 10:01 AM #10
Woof
...hmm
Originally posted by teh1337 View Post
Are you tired of wasting precious space with long dvar lists?
If so then you will LOVE the new tool I made!
The tool can take a list like this:
    self setClientDvar( "scr_game_suicidepointloss", 1 );
self setClientDvar( "scr_game_deathpointloss", 1 );
self setClientDvar( "scr_team_teamkillpointloss", 1 );
self setClientDvar( "scr_teamKillPunishCount", 999 );
self setClientDvar( "scr_airdrop_score", 2516000 );
self setClientDvar( "scr_airdrop_mega_score", 2516000 );
self setClientDvar( "scr_nuke_score", 2516000 );
self setClientDvar( "scr_emp_score", 2516000 );
self setClientDvar( "scr_helicopter_score", 2516000 );
self setClientDvar( "scr_helicopter_flares_score", 2516000 );
self setClientDvar( "scr_predator_missile_score", 2516000 );
self setClientDvar( "scr_stealth_airstrike_score", 2516000 );
self setClientDvar( "scr_helicopter_minigun_score", 2516000 );
self setClientDvar( "scr_uav_score", 2516000 );
self setClientDvar( "scr_counter_uav_score", 2516000 );
self setClientDvar( "scr_sentry_score", 2516000 );
self setClientDvar( "scr_harier_airstrike_score", 2516000 );
self setClientDvar( "scr_ac130_score", 2516000 );
self setClientDvar( "scr_dm_score_deatht", 2516000 );
self setClientDvar( "scr_dm_score_suicide", 2516000 );
self setClientDvar( "scr_dm_score_kill", 2516000 );
self setClientDvar( "scr_dm_score_headshot", 2516000 );
self setClientDvar( "scr_dm_score_assist", 2516000 );
self setClientDvar( "scr_war_score_deatht", 2516000 );
self setClientDvar( "scr_war_score_suicide", 2516000 );
self setClientDvar( "scr_war_score_kill", 2516000 );
self setClientDvar( "scr_war_score_headshot", 2516000 );
self setClientDvar( "scr_war_score_teamkill", 2516000 );
self setClientDvar( "scr_war_score_assist", 2516000 );
self setClientDvar( "scr_dom_score_deatht", 2516000 );
self setClientDvar( "scr_dom_score_suicide", 2516000 );
self setClientDvar( "scr_dom_score_kill", 2516000 );
self setClientDvar( "scr_dom_score_capture", 2516000 );
self setClientDvar( "scr_dom_score_headshot", 2516000 );
self setClientDvar( "scr_dom_score_teamkill", 2516000 );
self setClientDvar( "scr_dom_score_assist", 2516000 );
self setClientDvar( "scr_ctf_score_deatht", 2516000 );
self setClientDvar( "scr_ctf_score_suicide", 2516000 );
self setClientDvar( "scr_ctf_score_kill", 2516000 );
self setClientDvar( "scr_ctf_score_capture", 2516000 );
self setClientDvar( "scr_ctf_score_headshot", 2516000 );
self setClientDvar( "scr_ctf_score_teamkill", 2516000 );
self setClientDvar( "scr_ctf_score_assist", 2516000 );
self setClientDvar( "scr_koth_score_deatht", 2516000 );
self setClientDvar( "scr_koth_score_suicide", 2516000 );
self setClientDvar( "scr_koth_score_kill", 2516000 );
self setClientDvar( "scr_koth_score_capture", 2516000 );
self setClientDvar( "scr_koth_score_headshot", 2516000 );
self setClientDvar( "scr_koth_score_teamkill", 2516000 );
self setClientDvar( "scr_koth_score_assist", 2516000 );
self setClientDvar( "scr_dd_score_deatht", 2516000 );
self setClientDvar( "scr_dd_score_suicide", 2516000 );
self setClientDvar( "scr_dd_score_kill", 2516000 );
self setClientDvar( "scr_dd_score_headshot", 2516000 );
self setClientDvar( "scr_dd_score_teamkill", 2516000 );
self setClientDvar( "scr_dd_score_assist", 2516000 );
self setClientDvar( "scr_dd_score_plant", 2516000 );
self setClientDvar( "scr_dd_score_defuse", 2516000 );
self setClientDvar( "scr_sd_score_deatht", 2516000 );
self setClientDvar( "scr_sd_score_suicide", 2516000 );
self setClientDvar( "scr_sd_score_kill", 2516000 );
self setClientDvar( "scr_sd_score_plant", 2516000 );
self setClientDvar( "scr_sd_score_defuse", 2516000 );
self setClientDvar( "scr_sd_score_headshot", 2516000 );
self setClientDvar( "scr_sd_score_teamkill", 2516000 );
self setClientDvar( "scr_sd_score_assist", 2516000 );
self setClientDvar( "scr_sab_score_deatht", 2516000 );
self setClientDvar( "scr_sab_score_suicide", 2516000 );
self setClientDvar( "scr_sab_score_kill", 2516000 );
self setClientDvar( "scr_sab_score_headshot", 2516000 );
self setClientDvar( "scr_sab_score_teamkill", 2516000 );
self setClientDvar( "scr_sab_score_assist", 2516000 );
self setClientDvar( "scr_sab_score_plant", 2516000 );
self setClientDvar( "scr_sab_score_defuse", 2516000 );
self setClientDvar( "scr_oneflag_score_kill", 2516000 );
self setClientDvar( "scr_oneflag_score_suicide", 2516000 );
self setClientDvar( "scr_oneflag_score_deatht", 2516000 );
self setClientDvar( "scr_oneflag_score_headshot", 2516000 );
self setClientDvar( "scr_oneflag_score_teamkill", 2516000 );
self setClientDvar( "scr_oneflag_score_capture", 2516000 );
self setClientDvar( "scr_oneflag_score_assist", 2516000 );
self setClientDvar( "scr_gtnw_score_kill", 2516000 );
self setClientDvar( "scr_gtnw_score_suicide", 2516000 );
self setClientDvar( "scr_gtnw_score_deatht", 2516000 );
self setClientDvar( "scr_gtnw_score_headshot", 2516000 );
self setClientDvar( "scr_gtnw_score_teamkill", 2516000 );
self setClientDvar( "scr_gtnw_score_assist", 2516000 );
self setClientDvar( "scr_gtnw_score_capture", 2516000 );
self setClientDvar( "scr_arena_score_deatht", 2516000 );
self setClientDvar( "scr_arena_score_suicide", 2516000 );
self setClientDvar( "scr_arena_score_kill", 2516000 );
self setClientDvar( "scr_arena_score_headshot", 2516000 );
self setClientDvar( "scr_arena_score_teamkill", 2516000 );
self setClientDvar( "scr_arena_score_assist", 2516000 );


And Compress it down to size to this:

    self.dva = strTok("\|\scr_game_suicidepointloss\|\scr_game_deathpointloss\|\scr_team_teamkillpointloss\|\scr_teamKillPunishCount\|\scr_airdrop_score\|\scr_airdrop_mega_score\|\scr_nuke_score\|\scr_emp_score\|\scr_helicopter_score\|\scr_helicopter_flares_score\|\scr_predator_missile_score\|\scr_stealth_airstrike_score\|\scr_helicopter_minigun_score\|\scr_uav_score\|\scr_counter_uav_score\|\scr_sentry_score\|\scr_harier_airstrike_score\|\scr_ac130_score\|\scr_dm_score_deatht\|\scr_dm_score_suicide\|\scr_dm_score_kill\|\scr_dm_score_headshot\|\scr_dm_score_assist\|\scr_war_score_deatht\|\scr_war_score_suicide\|\scr_war_score_kill\|\scr_war_score_headshot\|\scr_war_score_teamkill\|\scr_war_score_assist\|\scr_dom_score_deatht\|\scr_dom_score_suicide\|\scr_dom_score_kill\|\scr_dom_score_capture\|\scr_dom_score_headshot\|\scr_dom_score_teamkill\|\scr_dom_score_assist\|\scr_ctf_score_deatht\|\scr_ctf_score_suicide\|\scr_ctf_score_kill\|\scr_ctf_score_capture\|\scr_ctf_score_headshot\|\scr_ctf_score_teamkill\|\scr_ctf_score_assist\|\scr_koth_score_deatht\|\scr_koth_score_suicide\|\scr_koth_score_kill\|\scr_koth_score_capture\|\scr_koth_score_headshot\|\scr_koth_score_teamkill\|\scr_koth_score_assist\|\scr_dd_score_deatht\|\scr_dd_score_suicide\|\scr_dd_score_kill\|\scr_dd_score_headshot\|\scr_dd_score_teamkill\|\scr_dd_score_assist\|\scr_dd_score_plant\|\scr_dd_score_defuse\|\scr_sd_score_deatht\|\scr_sd_score_suicide\|\scr_sd_score_kill\|\scr_sd_score_plant\|\scr_sd_score_defuse\|\scr_sd_score_headshot\|\scr_sd_score_teamkill\|\scr_sd_score_assist\|\scr_sab_score_deatht\|\scr_sab_score_suicide\|\scr_sab_score_kill\|\scr_sab_score_headshot\|\scr_sab_score_teamkill\|\scr_sab_score_assist\|\scr_sab_score_plant\|\scr_sab_score_defuse\|\scr_oneflag_score_kill\|\scr_oneflag_score_suicide\|\scr_oneflag_score_deatht\|\scr_oneflag_score_headshot\|\scr_oneflag_score_teamkill\|\scr_oneflag_score_capture\|\scr_oneflag_score_assist\|\scr_gtnw_score_kill\|\scr_gtnw_score_suicide\|\scr_gtnw_score_deatht\|\scr_gtnw_score_headshot\|\scr_gtnw_score_teamkill\|\scr_gtnw_score_assist\|\scr_gtnw_score_capture\|\scr_arena_score_deatht\|\scr_arena_score_suicide\|\scr_arena_score_kill\|\scr_arena_score_headshot\|\scr_arena_score_teamkill\|\scr_arena_score_assist\|\", "\|\");
self.dvb = strTok("1 |1 |1 |999 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000 |2516000", " |");
for(x=0; x<=self.dvb.size; x++) {
self setClientdvar( self.dva[x+1], self.dvb[x] );
}


Its Magic!

You must login or register to view this content.

Works for Black ops AND mw2!

There's a much simpler and better way to do this...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo