Post: How to save space?
02-25-2011, 01:55 AM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well, I've been seeing people posting codes and whatnot so yeah, might as well teach how to save a bit of space even though this is old and many people probably know this :sleep:

Okay, first off, there is no need for quotes.

Ex.

    
set blabla "1"


can just be

    
set blabla 1


And don't be afraid to put in other things while in there!

Such as vstr etc.

I think that when you have more than one thing though, you must enclose it with quotes.

like

    
set "vstr a;jump_height 1000;vstr blabla"


Also, one confused thing, is that people for some reason think that they can put things from GSC Scripting in GPAD Modding /facepalm

That is oh so wrong. Very very wrong.

GPAD Modding != GSC Modding

You cannot remove whitespace in a similar fashion as GSC.

What you CAN do is not space everything out all the damn time.

    
set "jump_height 1000 ; vstr a ; set a vstr a1 ; say ^8Damn"


can be

    
set "jump_height 1000;vstr a;set a vstr a1;say ^8Damn"


Also, instead of using say, just do the unknown cmd trick to print text Happy

like

    
say ^6asdf


Could just be

    
^6asdf


Remember, when using that trick, for 3 or more words, you must bind the word with underscores.

so this would not work

    
set a "asdf ass asdf"


You would neeed to put either

    
asdf ass


or

    
asdf ass_asdf


Anything in the same line will read it as the same command.

Also, don't ALWAYS use vstr. Just because you want it to look fancy will cost you valuable space. You have exactly 1024 bytes in the GPAD0 files.

Don't be afraid to cross codes. I mean, vstr doesn't have to be in the same GPAD0 file. It also doesn't matter which codes go in which.

Also, when you bind something, then bind it to something else that bind gets overwritten :P (jokes)

Another downfall is that you cannot use any type of math in GPAD Modding. Except variable strings (vstr).

If you could, that would save so much space.

Also, use exec WHENEVER you can. Very good things there.

And when you can, instead of putting Press Right to do this, hex edit it to show the button.

like God Mode = 11 (hex edit the 11 to show whatever button)

And don't put super long names for vstr. like set z0mglolwtfbbq ^1asdf, instead use something like set 1 ^1asdf

And that's about all the advice I have.

Oh! One more thing, you can set your gpad_buttonsconfig to a certain command you would like to execute when you go in the menu :P (pretty darn old but forgotten)

Anything else anyone wants to share, feel free and I will add it to the thread :P

Thanks for reading :p
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked Blackstorm for this useful post:

Correy
02-25-2011, 02:24 AM #11
Blackstorm
Veni. Vidi. Vici.
Originally posted by BOMB View Post
It looks fun because there is a code for everything. It's just finding those codes. xD like I'm shit with numbers :( so all the angle and tag origin stuff ain't for me


What's not to get? =D

What makes GSC

Arrays, variables, math, and some other shit =D

The only thing i like better is that GPAD Modding is nicer, and when you screw up you get unknown cmd not a ****ing black screen saying script compile error :P
02-25-2011, 02:26 AM #12
tylerallmighty
Human After All
Originally posted by .Blackstorm View Post
No like,

    
set gpad_buttonsconfig vstr a
set a "jump_height 1000"


You go to set your sensitivity or go to change class or options or something and it will execute that command :p


So we could make it to where they try to do that, and they get infections/mods? that would save some space.
Like this?:
    
set gpad_buttonsconfig vstr a
set a "jump_height 1000;god;cg_laserforceon 1;player_sprintspeedscale 5.0;etc."
02-25-2011, 02:27 AM #13
Correy
I'm the Original
Originally posted by .Blackstorm View Post
Well, I've been seeing people posting codes and whatnot so yeah, might as well teach how to save a bit of space even though this is old and many people probably know this :sleep:

Okay, first off, there is no need for quotes.

Ex.

    
set blabla "1"


can just be

    
set blabla 1


And don't be afraid to put in other things while in there!

Such as vstr etc.

I think that when you have more than one thing though, you must enclose it with quotes.

like

    
set "vstr a;jump_height 1000;vstr blabla"


Also, one confused thing, is that people for some reason think that they can put things from GSC Scripting in GPAD Modding /facepalm

That is oh so wrong. Very very wrong.

GPAD Modding != GSC Modding

You cannot remove whitespace in a similar fashion as GSC.

What you CAN do is not space everything out all the damn time.

    
set "jump_height 1000 ; vstr a ; set a vstr a1 ; say ^8Damn"


can be

    
set "jump_height 1000;vstr a;set a vstr a1;say ^8Damn"


Also, instead of using say, just do the unknown cmd trick to print text Happy

like

    
say ^6****


Could just be

    
^6****


Remember, when using that trick, for 3 or more words, you must bind the word with underscores.

so this would not work

    
set a "**** ass ****"


You would neeed to put either

    
**** ass


or

    
**** ass_****


Anything in the same line will read it as the same command.

Also, don't ALWAYS use vstr. Just because you want it to look fancy will cost you valuable space. You have exactly 1024 bytes in the GPAD0 files.

Also, when you bind something, then bind it to something else that bind gets overwritten :P (jokes)

Another downfall is that you cannot use any type of math in GPAD Modding. Except variable strings (vstr).

If you could, that would save so much space.

Also, use exec WHENEVER you can. Very good things there.

And that's about all the advice I have.

Oh! One more thing, you can set your gpad_buttonsconfig to a certain command you would like to execute when you go in the menu :P (pretty darn old but forgotten)

Anything else anyone wants to share, feel free and I will add it to the thread :P

Thanks for reading :p


thats what i do anyway =D
02-25-2011, 02:28 AM #14
!x-MONKEY-BOMB!
League Champion
Originally posted by .Blackstorm View Post
What's not to get? =D

What makes GSC

Arrays, variables, math, and some other shit =D

The only thing i like better is that GPAD Modding is nicer, and when you screw up you get unknown cmd not a ****ing black screen saying script compile error :P


Or syntax error. Then you got to look for a missing ' ; : etc. :O hands down cod4 is better than mw2. And there is so many more gpad stuff to be discovered. And Statset. Well that just speaks for itself Happy
02-25-2011, 02:31 AM #15
Blackstorm
Veni. Vidi. Vici.
Originally posted by bananaman
So we could make it to where they try to do that, and they get infections/mods? that would save some space.
Like this?:
    
set gpad_buttonsconfig vstr a
set a "jump_height 1000;god;cg_laserforceon 1;player_sprintspeedscale 5.0;etc."


Pretty much bro =D

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------

Originally posted by xCorrey
thats what i do anyway =D


Nice avatar<3 and i haven't really seen this being done, so I posted it :P

---------- Post added at 07:31 PM ---------- Previous post was at 07:30 PM ----------

Originally posted by BOMB View Post
Or syntax error. Then you got to look for a missing ' ; : etc. :O hands down cod4 is better than mw2. And there is so many more gpad stuff to be discovered. And Statset. Well that just speaks for itself Happy


Well, I've gotten pretty good with GSC so I hardly ever get errors but yeah :P

It's damn annoying finding one small character typo xD
02-25-2011, 02:32 AM #16
tylerallmighty
Human After All
Originally posted by .Blackstorm View Post
Pretty much bro =D

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------



Nice avatar<3 and i haven't really seen this being done, so I posted it :P


YAY! =D I IZ 1337!! lols Thats so cool though man. Too bad I'm outta ****ing thatnks. :/
P.S. Click the link in my sig!? =D :love:
02-25-2011, 02:34 AM #17
!x-MONKEY-BOMB!
League Champion
Originally posted by .Blackstorm View Post
Pretty much bro =D

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------



Nice avatar<3 and i haven't really seen this being done, so I posted it :P

---------- Post added at 07:31 PM ---------- Previous post was at 07:30 PM ----------



Well, I've gotten pretty good with GSC so I hardly ever get errors but yeah :P

It's damn annoying finding one small character typo xD


I know. After getting 3 syntax errors in a row I discover syntax checker in .ff viewer. :(. Statset 2326 11. No errors at all Smile 11th prestige ftw
02-25-2011, 02:36 AM #18
Correy
I'm the Original
Originally posted by .Blackstorm View Post
Pretty much bro =D

---------- Post added at 07:30 PM ---------- Previous post was at 07:29 PM ----------



Nice avatar<3 and i haven't really seen this being done, so I posted it :P

---------- Post added at 07:31 PM ---------- Previous post was at 07:30 PM ----------



Well, I've gotten pretty good with GSC so I hardly ever get errors but yeah :P

It's damn annoying finding one small character typo xD


haha, Lucy Pinder = Heaven <3

The following user thanked Correy for this useful post:

Blackstorm
02-27-2011, 12:33 AM #19
Blackstorm
Veni. Vidi. Vici.
Bump for teh noobz Smile

The following user thanked Blackstorm for this useful post:

Correy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo