Pokeemerald Battle Engine Upgrade

Started by DizzyEgg February 4th, 2019 4:30 AM
  • 71711 views
  • 170 replies

DizzyEgg

Age 24
Male
Poland
Seen 1 Week Ago
Posted April 23rd, 2020
795 posts
8.5 Years
Emerald Battle Engine V.2

Remember that one? As promised, I present you an even better, more polished and completed decomp version of an upgraded battle system.

Features:

* Physical / Special Split
Whether a move is physical or special is no longer decided by its type. Each move has individually assigned split.
Spoiler:




* Updated Moves and Abilities effects
Be it move's pp, power or Growth increasing Atk and Sp.Atk by 2 stages in the sun, all effects were updated to the latest gens' standard.
Spoiler:




* Fairy Type
Inserted and assigned to all Pokemon and moves for your convenience.
Spoiler:




* New Moves, Abilities and Items
All moves, abilities and battle items up to gen7 have been inserted.

* Triple Pokemon Types in-battle
For Trick-Or-Treat and Forest's Curse effect, and made simple to create new moves or effects in the same fashion.

* Dual-type moves
As Flying Press is both flying-fighting. Just as the triple types feature, it was coded so creating new moves with the same effect is easy as pie for everyone.

* New Learnsets
As taken from gen 7 games.

* Double Wild Battles
Like in Gen 5 games, you can set-up special grassy areas for two vs two wild Pokemon battles.
Spoiler:




* AI
Smarter than ever, with support for all the new added stuff.

* Ability pop-up
Whenever a Pokemon's ability activates, a pop-up window appears like in gen 6.
Spoiler:




* Experience on catch
Catching a wild Pokemon grants experience points as well.

* Faster battle intro
Now the text can print at the same time as Pokemon animate.
Spoiler:

Faster:
Spoiler:

Regular:
Spoiler:



* Config file
For turning on/off and configuring various features, and compatibility with item/pokemon expansion projects. See /include/constants/battle_config.h for more information.

* Mega Evolution
Supported in link and recorded battles with cool-looking assets.
Spoiler:




* Mid-battle Trainer messages
Make your trainers interrupt a battle in key moments with a witty one-liner or an amazement message.
Spoiler:



Read this post for how to set them up.

* Custom Multi battles
Remember the battle in Mossdeep City where you team up with Steven? Now you can create as many battles like this as you want. Team up with an AI partner to fight two wild Pokemon, two trainers or just one trainer.

Read this awesome post to learn how to script them.
Spoiler:




Download:
The project is open-source and can be found here. All bugs and glitches are in the 'Issues' section. If you find one that's not there, please let me know so it can be quickly fixed!
https://github.com/rh-hideout/pokeemerald-expansion/tree/battle_engine

Credits:
Spoiler:
Lunos - battle strings, save file, item images and palettes
Shanty - move animations,
mvit - ability pop up and mega evo gfx
Avara - item descriptions,
Kurausukun - testing, small edits and fixes
TheLaw - move animations,
BreadCrumbs - code review
Tetra - assigning move effects
Ultima - new items data
Cancer Fairy - coding help, battle strings
Syreldar - testing, wrote an explanation post
UltimaSoul - moving the repo

...
Did I forget about you? Hit me up and I'll add you to the list. :smile:


This post will be constantly updated.

DizzyEgg

Age 24
Male
Poland
Seen 1 Week Ago
Posted April 23rd, 2020
795 posts
8.5 Years
This looks amazing! All the great features you added are much appreciated and I'm sure many will use your decomp battle engine. can I ask for adding one more feature? the port of the BW2 Repel system?
I may add BW2 Repel some time, but as a standalone repo. This is a battle engine after all, not a overall-improvement patch. :P

thedarkdragon11

New World Pirate

Male
Raftel, New World
Seen July 4th, 2022
Posted July 4th, 2022
925 posts
13.2 Years
Awesome! How about Zen Mode and Ash-Greninja? Or Primal Reversion and Ultra Burst? Also, any chance for the pre-battle VS screen with VS sprites, and Z-moves and Partner Power?
Age 21
Female
Seen 1 Week Ago
Posted August 22nd, 2021
136 posts
8.2 Years
One noob question. I can replace if i use the old version battle engine ?
i'm pretty sure this is specifically for pokeemerald, so i don't think you would be able to upgrade the old version into this without using a pokeemerald base.

this looks really nice so far, especially the ability pop-ups. i would suggest adding an apostrophe to them, though- "heracross's moxie" as opposed to just "heracross moxie," since that's the syntax in the canon games.

Wesley FG

Pokémon Kalos Advance !! Gba Hack

Male
Brazil
Seen December 24th, 2021
Posted December 24th, 2019
338 posts
13.8 Years
i'm pretty sure this is specifically for pokeemerald, so i don't think you would be able to upgrade the old version into this without using a pokeemerald base.

this looks really nice so far, especially the ability pop-ups. i would suggest adding an apostrophe to them, though- "heracross's moxie" as opposed to just "heracross moxie," since that's the syntax in the canon games.
sorry for the noob question.
i m off about rom hacking 6 month and it surprise me.

Nice work. i will test it when have time.
Kalos Demake Soon!!

DizzyEgg

Age 24
Male
Poland
Seen 1 Week Ago
Posted April 23rd, 2020
795 posts
8.5 Years
Hey, I'm actually having trouble with the Gen 7 abilities not working. I've tested it with the surge abilities and disguise. It says the pokemon has the ability but it doesnt do anything when the ability should trigger.
Not all abilities are done yet.

EDIT: I added Surge Abilities in since they weren't too much of a hassle. Disguise is more complex, so it'll take more time.

dearman4

Age 29
He/Him
Michigan
Seen 18 Hours Ago
Posted 5 Days Ago
558 posts
4.8 Years
Question, is there an easy way to install only certain features of this? Or is it an all or nothing type deal
Seen February 13th, 2022
Posted September 3rd, 2021
50 posts
5.1 Years
I'm speachless, this is godlike work! While I spend with a bunch of tutorials 6 hours to make and NPC say the level of my first pokemon you contributed to something like this. I aplaud you for your work.

Dziękuję.


Edit: Also,
Do I notice correctly that v1 uses binary modifications while v2 uses the pret emerald dissasembly ?

DizzyEgg

Age 24
Male
Poland
Seen 1 Week Ago
Posted April 23rd, 2020
795 posts
8.5 Years
I'm speachless, this is godlike work! While I spend with a bunch of tutorials 6 hours to make and NPC say the level of my first pokemon you contributed to something like this. I aplaud you for your work.
Dziękuję.
Thank you for such kind words, glad you like it. That 'Dziękuję' was definitely not something I didn't expect seeing here, haha.
And don't worry if it takes you long time to do relatively simple things at first, as with everything, it gets better with practice.
Edit: Also,
Do I notice correctly that v1 uses binary modifications while v2 uses the pret emerald dissasembly ?
You are correct. I switched to decomps a while ago and advise anyone doing the same. There are countless advantages of working with source code.
Seen April 16th, 2019
Posted March 29th, 2019
5 posts
4.7 Years
Ok, I thought I had it figured out but I can't seem to get this to compile, when I run 'make' it starts to work but then I get this message
/bin/bash: tools/mapjson/mapjson.exe: No such file or directory
make: *** [map_data_rules.mk:29: data/layouts/layouts.inc] Error 127

EDIT:
It's fixed, I had accidentally copied in an old version of the 'pokeruby-tools' folder

Delta231

A noob

Male
India
Seen February 1st, 2022
Posted November 22nd, 2019
684 posts
6.3 Years
Ok, I thought I had it figured out but I can't seem to get this to compile with pokeemerald. I've copied the files into the pokeemerald folder and when I run 'make' it starts to work but then I get this message
/bin/bash: tools/mapjson/mapjson.exe: No such file or directory
make: *** [map_data_rules.mk:29: data/layouts/layouts.inc] Error 127

Any ideas?
Did you got the tools from the respective repository?

Marky Vigoroth

...I just liked the Skarmory icon.

Male
Puerto Rico
Seen 2 Days Ago
Posted February 28th, 2022
146 posts
7 Years
My favourite part is the ability pop-up.

In all, I thank you so much in delivering this! I mean, the progress on the disassembly, while anticipated, is still surprising!
Unofficial compatibility patch of Pokémon Adventures: Red Chapter
https://www.pokecommunity.com/showthread.php?p=10365819#post10365819



LCCoolJ95

Limited Capacity

Age 27
Male
The World That Never Was
Seen 3 Days Ago
Posted January 5th, 2022
623 posts
13.2 Years
This looks alright, but I'm gonna wait until it gets better.
"The greatest obstacle in life is Yourself. Overcome it, and you will achieve the greatest accomplishment of all." -Art Beins, 1982

Pokémon Theta Emerald EX: https://www.pokecommunity.com/showthread.php?t=386240