User:Brainulator9/Modding tutorials or whatever

Welcome to CTG's super awesome modding tutorials! Here you will find the most useful (or worthless) mods you can apply to the game for 100% happiness!

Important Notes
Before hacking, make a backup of your OBB file in case you do the hack wrong and end up crashing the game, or else you'll have to re-download again, i keep 5 copies just in case.

It is automatic that you should open HxD Hex Editor and open the OBB with it, so it is no longer included in the intstrcutions.

Custom Text
Edit the game text, that includes, almanac entries, plant names, zombie names, trophy names, but  not  achievement names.

Serious Name: Edit Game Text
 * 1) Search for the  exact  name of the game text. That means, "Ctrl + F", and remember to  chech the unicode box in the search box before searching. Editing game text is different than editing others, this time, you don't search code names. Example: Don't search "holonut", search "Infi-nut" instead.
 * 2) Now edit it, but  keep the dots. One small mistake and all game text goes ""
 * 3) Now this is the hard-to-explain part: If your edited text is shorter than the original,  nullify  the remaining, but in nullifying, the other hex codes are  not  00, but is  0A . Try to find the pattern starting from the end of the originally nullified code. For example, the original nullifying pattern is (starting backwards) is 00 0A 00 0A, just keep that pattern going until you get to the edited text. For almanac entries, for the ending letter, the code next to the nullified "00", next to the letter,  must be 2E .

Create the Zombot Temporal-tron
Edit what the zombots summon.

Serious Name: Customize What Zombots Summon Note: There is currently no way to edit what Zombot Dark Dragon summons, this only works for the 4-legged cyclop zombots.
 * 1) Search for "ZombossSpawnJump" until you find something about future zombies. (for example: future, future_armor1) Just press  F3  to continously search for it.
 * 2) Once you find it, go  < There. That is where the code names of all zombies are.
 * 3) Now replace. Remember to  nullify  extra space if you want to replace something that has less number of letters than the original one.\

Customize Sun Costs
Edit sun costs!

1-byte
This method is only for plants costing 0-250 sun. Note: When changing, some plants can cause errors when their sun cost is changed, a few of them are Bonk Choy, Snapdragon and Starfruit.
 * 1) Search for "{PlantName}Default".
 * 2) Press F3.
 * 3) Find the  nearest dollar sign  after the words "{PlantName}Default".
 * 4) Next to it, there is a (most likely crazy symbol), which translates to it's sun cost.
 * 5) Go to: http://www.binaryhexconverter.com/decimal-to-hex-converter
 * 6) In the website, type the new sun cost (in decimal form) and convert to hex.
 * 7) Get the hex value and replace the original hex value back in HxD editor.

2-byte
This method is for plants costing 275 and above sun.

Still unknown...?

Conveyor Array - Boss Battle
Edit plants in conveyor belts. Note: This is for Zomboss Battles only, editing plants on other conveyor-belt levels is still possible, but i still don't know what to search to find your desired conveyor-belt level, aside from boss battles.
 * 1) Search for "zombossmech_{choose either "egypt", "pirate", "cowboy", "future" or "dark}"
 * 2) When you find it, scroll up and down until you see some list of plants.
 * 3) Edit them. Remember to nullify if the new plant has less letters than the original.

Rapido Chewin' Chomper
Remove Chomper's chewing time.
 * 1) Search for "ChewTimeSeconds".
 * 2) There you see dots, then 2 crazy symbols, then dots again.
 * 3) Nullify the 2 crazy symbols.

A Whole New Boss Battle
Make zomboss battles seed selection levels.

To do this mod, go here: http://hacking-video-games.wikia.com/wiki/Thread:2155

Switcheroo
Switch the places of plants or zombies in the almanac and the seed selection screen. Not really a beneficial hack, but you can do it anyway. Note:  Never in under any circumstances  edit a plant to be a plant that is already there. For example, there's already a Chili Bean, and you replace Torchwood with Chili Bean, there cannot be 2 same plants, or else it crashes.
 * 1) Search for "TypeOrder."
 * 2) You should see a list of plants first. (zombies are in the bottom)
 * 3) Edit the names. You can only edit plants or zombies with the same number of letters. So for example, switch Torchwood with Chili Bean.

Take the Spotlight
Edit the credits.
 * 1) Search for names or stuff in the credits. No need to "codify" it. Just for the pure word, it means it has spaces with the right capital letters if needed.
 * 2) Press the case sensitive option (only if you type the  exact thing in the credits.)
 * 3) Replace the names with yours, no need to type in code, just type normal. (it means with space)

Fresh Set
Edit plants in locked-and-loaded levels. Coming Soon!

Burnin' and Pinchin'
Get the Power Flamethrower or Power Pinch! Unfortunately, Power Zap will be replaced by Power Flamethrower and Power Toss will be replaced by Power Pinch.

Power Flamethrower

 * 1) Search for "Make new powerups"
 * 2) Scroll down a bit until you find the  exact  words "PowerupWizardfinger" (must include the capital P and W)
 * 3) Replace the "Wizardfinger" part with "Flamethrower"

Power Pinch

 * 1) Search for "Make new powerups"
 * 2) Scroll down a bit until you find the  exact  words "PowerupFlickzombie" (must include the capital F and P)
 * 3) Replace the "Flick" part with "Pinch"

Overpowered Jester
Edit what Jester Zombie deflects. Note: You can only replace and remove, not add. So you have to make him vulnerable to a projectile he originally can deflect and make him immune to projectiles he can't deflect.
 * 1) Search for "JuggleableProjectiles"
 * 2) Below there you should see projectile names.
 * 3) Now replace one of the projectiles with the one you want.

The Not-So-Useless Spring Bean
Remove Spring Bean's sleeping time, and make him bounce zombies farther. This mod makes Spring Bean a little more useful.

Far Bounce

 * 1) Search for "SpringBeanDefault"
 * 2) Press F3.
 * 3) Below, you should see "KnockbackOffset"
 * 4) In the "B" part of the KnockbackOffset, turn the "B" into a capital "C".

Sleepless Springer

 * 1) Search for "SpringBeanDefault"
 * 2) Press F3.
 * 3) Below you should see "AttackRecoveryTime"
 * 4) In "AttackRecoveryTime".. A..", nullify "A" and the space before "A"

New Boosts, New Ways
Unleash the power of other kinds of boosts. Unfortunately, some boosts do not work, as they are scrapped and was never finished.

Coming Soon!

Zeus Reed
Make Lightning Reed's PF cloud deal  insanely big  amounts of damage, make it fly faster, make Lightning Reed's chain lightning have more bounces. Basically, this mod makes Lightning Reed one powerful zeus-like plant.

Chain Lightning Extra Bounce

 * 1) Search "lightningreeddefault".
 * 2) Press F3.
 * 3) Below you should find "NumShotBounces$".
 * 4) The dot next to the dollar sign's hex code is "03", now change it to "0A".

Super Speed Cloud

 * 1) Search "lightningreeddefault".
 * 2) Press F3.
 * 3) Below you should find "PlantFoodCloudSpeed"..úC.."
 * 4) Now change "C" to "D".

Powerful Lightning Cloud
Note: When changing the letters, it is important for it to be  capital letter , using small letters makes a  huge  difference.
 * 1) Search for "lightningreeddefault".
 * 2) Press F3
 * 3) Below you should find "PlantFoodLightningBoltDamage".. A.."
 * 4) Now change "A" to "B".

Remove Costumes
Remove all costumes! Note: This method removes all costumes, there's no way to choose which costumes to keep or to remove.
 * 1) Search "CostumeList".
 * 2) Nullify it.

Unlock Fire Pea
Unlock the Fire Peashooter! Note: It may seem weird that it has something to do with Marigold, but it doesn't.
 * 1) Search for "POPANIM_MARIGOLD"
 * 2) Nullify the "Enabled"

Unlock Marigold
Unlock the (useless) Marigold!


 * 1) Search for "IsZenGardenTreasurePlant"
 * 2) Nullify it.