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-27-2011, 12:38 AM #20
tylerallmighty
Human After All
Originally posted by .Blackstorm View Post
Bump for teh noobz Smile


Lulz. Hey, I made a simple .bat CoD4 Patch Un/Re-Packer tool. You want it? =D I'm not tryna advertise, just asking a question. :S
02-27-2011, 12:42 AM #21
!x-MONKEY-BOMB!
League Champion
Originally posted by bananaman
Lulz. Hey, I made a simple .bat CoD4 Patch Un/Re-Packer tool. You want it? =D I'm not tryna advertise, just asking a question. :S




i gots it :p I paTROLL these threads like carling :carling:

And just cos we got a guy with his name in a patch doesn't mean you got to get stuck in.Winky Winky
02-27-2011, 12:42 AM #22
Blackstorm
Veni. Vidi. Vici.
Originally posted by bananaman
Lulz. Hey, I made a simple .bat CoD4 Patch Un/Re-Packer tool. You want it? =D I'm not tryna advertise, just asking a question. :S


Sure =D

CharLimit[10];
02-27-2011, 12:53 AM #23
tylerallmighty
Human After All
Originally posted by BOMB View Post
i gots it :p I paTROLL these threads like carling :carling:

And just cos we got a guy with his name in a patch doesn't mean you got to get stuck in.Winky Winky


Originally posted by .Blackstorm View Post
Sure =D

CharLimit[10];


This ones nearly finished MONKEY, so it's a different one.
It might have some bugs, but I think you of all people MecAj would now how to edit batch files! =D
You must login or register to view this content.
02-27-2011, 12:57 AM #24
!x-MONKEY-BOMB!
League Champion
Originally posted by bananaman
This ones nearly finished MONKEY, so it's a different one.
It might have some bugs, but I think you of all people MecAj would now how to edit batch files! =D
You must login or register to view this content.


on the ps3 so cant download :( whats your psn? =D
02-27-2011, 01:02 AM #25
tylerallmighty
Human After All
Originally posted by BOMB View Post
on the ps3 so cant download :( whats your psn? =D


v_hiimbob_v But I can't play right now. :FU: Sooooo.... How was it Mec? =D
02-27-2011, 01:08 AM #26
!x-MONKEY-BOMB!
League Champion
Originally posted by bananaman
v_hiimbob_v But I can't play right now. :FU: Sooooo.... How was it Mec? =D


call him blacstorm. now Smile thats why he changed his name Smile and i added you tyler long :p em had to deletre me mate though :confused: 100 friends :carling:
02-27-2011, 01:14 AM #27
tylerallmighty
Human After All
Originally posted by BOMB View Post
call him blacstorm. now Smile thats why he changed his name Smile and i added you tyler long :p em had to deletre me mate though :confused: 100 friends :carling:


Idk how many I got. :/ HEY! Y U CALL ME MY REALZ NAME??!?!!? :FU:
02-27-2011, 01:28 AM #28
!x-MONKEY-BOMB!
League Champion
Originally posted by bananaman
Idk how many I got. :/ HEY! Y U CALL ME MY REALZ NAME??!?!!? :FU:


only because i know your real name. Im changing my username tomorrow. :O its so exciting xD

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo