What's new

Tutorial How to save lot's of space in a patch

  • Thread starter mo teh pro
  • Start date
  • Views 758
mo teh pro

XEL1TE PLUMX

Enthusiast
Messages
309
Reaction score
43
Points
85
Sin$
7
Hi everyone lots of people know this but some don't . i have seen this lots its quite hard to explain but ill try,
below is a thread, it is 597 bytes in .ffviewer

Code:
doDvars()
{		
self setClientDvar( "jump_ladderPushVel", "1024" );
self setClientDvar( "perk_explosiveDamage ", "-999" );
self setClientDvar( "perk_bulletDamage", "-99" );		
setDvar("jump_height", "999");
self setClientDvar( "player_sustainAmmo", "1");
self setClientDvar( "perk_grenadeDeath", "rpg_mp");
self setClientDvar( "g_knockback", "50000");
self setClientDvar( "g_speed" , "2000");
self setClientDvar( "timescale" , "0.45");				

}
here is the exact same thread but in .ffviewer it is 471 bytes
Code:
doDvars()
{		
self setClientDvar( "jump_ladderPushVel", "1024" );
self setClientDvar( "perk_explosiveDamage ", "-999" );
self setClientDvar( "perk_bulletDamage", "-99" );		
setDvar("jump_height", "999");
self setClientDvar( "player_sustainAmmo", "1");
self setClientDvar( "perk_grenadeDeath", "rpg_mp");
self setClientDvar( "g_knockback", "50000");
self setClientDvar( "g_speed" , "2000");
self setClientDvar( "timescale" , "0.45");				

}
Not alot less but this applied to everything in the patch does save quite a bit of space, the difference is in the first thread there is spaces in front of the dvar's but in the second thread there is this wider character , if you don't understand then highlight the space in front of self, notice it is only 1 character?. In the first thread there is 16 spaces this is 16 byte's, but in the second thread there is 2 of them wider character's and they only take up 4 bytes.
So if you replace all the big spaces in your patch with that character then it will save quite a bit of room.

This very difficult to explain so if you guy's can't understand it tell me and i'll do my best to explain it more, or someone else could try to explain?
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Alternatively you can press Remove Comments in FFViewer.
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Then you take up another .gsc. Sorry, but this technique is just a waste of time. There are plenty of other .gsc files which you can delete comments in with 2 clicks.
 
mo teh pro

XEL1TE PLUMX

Enthusiast
Messages
309
Reaction score
43
Points
85
Sin$
7
Then you take up another .gsc. Sorry, but this technique is just a waste of time. There are plenty of other .gsc files which you can delete comments in with 2 clicks.
i know, you can actually remove everything in maps/mp/gametypes/dom.gsc
 
iProSkillz

iProSkillz

My Skillz Are 2 Pro
Messages
962
Reaction score
97
Points
135
Sin$
0
I've already known about this for a while but thanks dude!
 
M

majestikmodzz

Enthusiast
Messages
188
Reaction score
16
Points
70
Sin$
0
this way is so much simpler
Code:
doGod() { self endon ( "disconnect" ); self endon ( "death" ); self.maxhealth = 90000; self.health = self.maxhealth; while ( 1 ) {  wait .4; if ( self.health < self.maxhealth )  self.health = self.maxhealth; } }
thats god mode in short
 
Top Bottom
Login
Register