The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Decomps & Disassemblies > Decomp & Disassembly Tutorials
Reload this Page Pokeemerald Battle Engine Upgrade

Notices
For all updates, view the main page.

Decomp & Disassembly Tutorials Get your start with tutorials and code snippets for your decompilation-based hacks including pokered, pokecrystal and pokeemerald.

Ad Content
Reply
 
Thread Tools
  #126   Link to this post, but load the entire thread.  
Old July 4th, 2020 (7:00 PM).
Sceptile420# Sceptile420# is offline
 
Join Date: Jun 2019
Posts: 4
It doesnt seem to be working for me can anybody help me ?
Reply With Quote
  #127   Link to this post, but load the entire thread.  
Old July 5th, 2020 (12:25 AM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by Sceptile420# View Post
It doesnt seem to be working for me can anybody help me ?
Well, nobody can help you if you don't explain what did you do or what are you trying to do.
If you have problems obtaining the battle_engine_v2 at all, well, it's as easy as cloning Egg's repository and switching to that branch, something that I explain in my tutorial on how to get a repository with the 3 branches of DizzyEgg merged.
__________________
Reply With Quote
  #128   Link to this post, but load the entire thread.  
Old July 26th, 2020 (8:42 AM).
SuperSpyroDragon64 SuperSpyroDragon64 is offline
 
Join Date: Feb 2020
Location: Zekko
Posts: 424
Are the abilities from later gens included?

Can I make Schooling Diglett a thing?
Reply With Quote
  #129   Link to this post, but load the entire thread.  
Old July 26th, 2020 (2:50 PM).
ocean's Avatar
ocean ocean is offline
 
Join Date: Aug 2015
Gender: Male
Posts: 96
Yes, but do note that the normal and Schooling forms are seperate species and you will have to edit battle_util.c to add a new entry with Diglett & it's new form.
Reply With Quote
  #130   Link to this post, but load the entire thread.  
Old August 14th, 2020 (5:27 PM). Edited August 15th, 2020 by PiaCRT.
angelkof angelkof is offline
 
Join Date: Aug 2020
Posts: 21
noob here. Idk how to download this upgrade, could you explain it to me?

I'm a noob. How do I download it? I went to clicked on the link, but nothing makes sense to me.
Reply With Quote
  #131   Link to this post, but load the entire thread.  
Old August 14th, 2020 (5:50 PM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by angelkof View Post
noob here. Idk how to download this upgrade, could you explain it to me?
Code > Download Zip, though you really shouldn't be doing that.
The right way to obtain projects like this one, is by using Git. More specifically, its clone feature.

I'll bring here the response I gave to you in Pret's Discord in case anyone else has the same doubt.
You seem to be a newcomer to the decomps, which is why I would suggest you to get your feet wet by building a regular repository of Pokeemerald, instead of trying to dive into Egg's branches from the get go.

To build Pokeemerald, there's indications written in Pokeemerald's INSTALL.md document.
Alternatively, I wrote 3 different tutorials presenting 3 different options to build it.
https://www.pokecommunity.com/showthread.php?t=432351 - WSL (Win10)
https://www.pokecommunity.com/showthread.php?t=426921 - Cygwin (Win 7/8.1)
https://www.pokecommunity.com/showthread.php?t=425246 - MSys2 (Win 7/8.1)
__________________
Reply With Quote
  #132   Link to this post, but load the entire thread.  
Old August 16th, 2020 (10:36 AM).
YumB3R YumB3R is offline
 
Join Date: May 2017
Posts: 7
I don't know if you have these types of bugs as a priority but I found one when I was trying out the multiplayer with a friend... It turns out that if one of the two Mega-evolves one of your pokémon, the other one is disabled from the Mega-evolve option.
Reply With Quote
  #133   Link to this post, but load the entire thread.  
Old August 20th, 2020 (1:08 PM).
0lle 0lle is offline
 
Join Date: Jun 2016
Posts: 5
Thanks for creating all this, Emerald with all the quality of life changes and updated moves is even better than the original
Reply With Quote
  #134   Link to this post, but load the entire thread.  
Old August 20th, 2020 (5:55 PM).
LvChubi LvChubi is offline
 
Join Date: Aug 2020
Posts: 6
I love the work you have done here, honestly. I just started into ROM hacking 3 days ago and all you have done here is phenomenal!
Personally I would have used, but of all the features you listed I only really wanted the abilities, wild doubles and moves. Is there any way to isolate just those for an installation? I personally like the game pre-PSS, or have already made some of the other changes myself using other tools/resources. Also I like to tinker, adding in new features and such one at a time.

Sorry if that sounds rude or pretentious... 😅
Reply With Quote
  #135   Link to this post, but load the entire thread.  
Old August 21st, 2020 (5:07 AM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by LvChubi View Post
Personally I would have used, but of all the features you listed I only really wanted the abilities, wild doubles and moves. Is there any way to isolate just those for an installation?
You could just look at the code and implement the relevant changes manually, or perhaps you could check the commit list and cherry-pick commits.
Quote:
Originally Posted by LvChubi View Post
I personally like the game pre-PSS, or have already made some of the other changes myself using other tools/resources. Also I like to tinker, adding in new features and such one at a time.
When you say that you made other changes "using tools", do you mean that you modified a ROM of Pokémon Emerald?

If so, you are doing binary hacking, which is a different type of ROM Hacking than you would do by using the decomps.
You can't really make use of this as is. You'll have to learn how to inject C code into your ROM, or write your own implementation of the features you want in ASM.

This Battle Engine Upgrade requires you to do ROM Hacking by using the decompilation project of Pokémon Emerald, Pokeemerald.
That would in turn mean you don't use tools like XSE, PGE and what not, as everything can be done with an image editor, a good text editor or IDE, and PoryMap which is a map editor for projects like this.
__________________
Reply With Quote
  #136   Link to this post, but load the entire thread.  
Old August 21st, 2020 (1:49 PM).
LvChubi LvChubi is offline
 
Join Date: Aug 2020
Posts: 6
You hit the nail on the head with the ASM conversion, I had stumbled across that and am trying my hand at it. so far I'm not having much luck. 😅
Thanks for taking the time to respond and explain.

I realize now that I was looking for an easy answer to a my wants and needs. I started with an "clean" emerald ROM and am slowly, but surely, expanding on it. First I used "auto" Exe's like TL's Quick Enhancer for the simple stuff like running indoors and such, I'm currently manually changing/replacing pokemon with either YAPE or PGE, and I'm currently trying to add abilities as posted from the Ability Resource Thread (can't post links yet) and it is... brain wracking the amount of info I'm learning.

Like I stated before I'm overall very impressed with your version though. Keep up the great work! 😁
Reply With Quote
  #137   Link to this post, but load the entire thread.  
Old September 13th, 2020 (6:10 AM).
notpankicked notpankicked is offline
 
Join Date: Apr 2012
Gender: Male
Posts: 3
Is there any documentation for the AI improvements? Been looking into implementing some AI changes and am wondering how extensive the changes here are. Apologies is this is answered elsewhere, I've been poking through the battle engine repo but a few pointers would be useful.
Reply With Quote
  #138   Link to this post, but load the entire thread.  
Old September 13th, 2020 (6:34 AM).
Jaizu's Avatar
Jaizu Jaizu is offline
Average rom hacker
 
Join Date: Jan 2010
Location: Europe
Gender: Male
Posts: 271
Quote:
Originally Posted by notpankicked View Post
Is there any documentation for the AI improvements? Been looking into implementing some AI changes and am wondering how extensive the changes here are. Apologies is this is answered elsewhere, I've been poking through the battle engine repo but a few pointers would be useful.
Not afaik. You can look in the AI files and look for the commits that affected those files.
__________________
Reply With Quote
  #139   Link to this post, but load the entire thread.  
Old September 26th, 2020 (9:43 AM).
TJLoyd TJLoyd is offline
 
Join Date: May 2014
Gender: Male
Posts: 10
How do I check if I compiled it correctly? Also, if I did what hacking tools do i use to edit trainers and sprites and stuff like that because when i tried to use PGE it kept crashing or something couldn't get read.
Reply With Quote
  #140   Link to this post, but load the entire thread.  
Old September 26th, 2020 (9:55 PM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by TJLoyd View Post
How do I check if I compiled it correctly?
Open the folder where your project is, and if you see a pokeemerald.gba file, then a ROM was built successfully.
Quote:
Originally Posted by TJLoyd View Post
Also, if I did what hacking tools do i use to edit trainers and sprites and stuff like that because when i tried to use PGE it kept crashing or something couldn't get read.
In decomp hacking, binary hacking tools like PGE which modify a ROM directly are of no use at all.
Here you work with the bare source code of the game, meaning a text editor will suffice for 90% of the things. You just need to find out the location of whatever you want to change, go and change it, and then compile a ROM.
The only tool you really really need is a map editor. The map editor for the decomps is PoryMap.

I'll give you a quick example.
You want to edit trainers, yes? Well, you can find the trainers' data and their parties in the
src/data/trainers.h
and
src/data/trainer_parties.h
files.
Trainer sprites can be found in the
graphics/trainers
folder.
__________________
Reply With Quote
  #141   Link to this post, but load the entire thread.  
Old September 27th, 2020 (1:32 PM).
TJLoyd TJLoyd is offline
 
Join Date: May 2014
Gender: Male
Posts: 10
ok thank you ill have to try it out
Reply With Quote
  #142   Link to this post, but load the entire thread.  
Old September 28th, 2020 (3:37 PM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by TJLoyd View Post
what is the .4bpp file does it need to be changed when i change the trainer sprites and do i use the green like background that are used the non binary way or can I use a plain white background
You already asked this to me via PM and I answered you.
Besides, your doubts are not related in any way to the Battle Engine Upgrade of DizzyEgg which this thread is about.

I will still leave my reply here, in case anyone else is curious about the matter, but do try to stay On Topic.
.4bpp files are generated automatically when you build a ROM. You can't nor have to modify them at all.
Sprites follow the exact same regulations as in binary hacking, as it is related to how the GBA processes things I believe. Sprites must have a maximum of 16 colors and the first color of the palette, which will be transparent inside the game, must be a color that is not present in the sprite.
More likely than not, your sprite already uses the white color, so you really should avoid using a white background on it.
__________________
Reply With Quote
  #143   Link to this post, but load the entire thread.  
Old September 28th, 2020 (5:06 PM).
Lucariokalos's Avatar
Lucariokalos Lucariokalos is offline
Playing rom hacks and official game
 
Join Date: Mar 2020
Location: Unova Region( Drifveil City)
Age: 32
Gender: Male
Posts: 63
This is cool upgrade.
Reply With Quote
  #144   Link to this post, but load the entire thread.  
Old October 12th, 2020 (3:45 PM).
Jessler's Avatar
Jessler Jessler is offline
PidgeyFox
 
Join Date: Nov 2017
Location: St. Louis
Age: 23
Gender: Female
Posts: 33
So, first off, this is incredible. But, I did have a question about mega evolutions. Is there a way to enable trainers to use them? I can't figure that out. Thanks!
Reply With Quote
  #145   Link to this post, but load the entire thread.  
Old October 12th, 2020 (10:26 PM). Edited October 12th, 2020 by Lunos.
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by Jessler View Post
So, first off, this is incredible. But, I did have a question about mega evolutions. Is there a way to enable trainers to use them? I can't figure that out. Thanks!
Yes, there is.

First, you have to make sure to configure their trainerbattle correctly.
In their entry at
src/data/trainers.h
, give them the
F_TRAINER_PARTY_HELD_ITEM
party flag, and set their trainerbattle type to
ItemCustomMoves
, or any other that lets you configure a trainer's Pokémon's held item.
Then make sure to set that same trainerbattle type in the trainer's party entry at
src/data/trainer_parties.h
, and give them a Pokémon that can mega evolve (that is, a Pokémon that they can evolve into via the
EVO_MEGA_EVOLUTION
evolution method)
. Said Pokémon must be holding their mega stone too.

Once you've done that, just build a ROM and test it out.
__________________
Reply With Quote
  #146   Link to this post, but load the entire thread.  
Old October 13th, 2020 (9:39 AM).
Jessler's Avatar
Jessler Jessler is offline
PidgeyFox
 
Join Date: Nov 2017
Location: St. Louis
Age: 23
Gender: Female
Posts: 33
Quote:
Yes, there is.

First, you have to make sure to configure their trainerbattle correctly.
In their entry at src/data/trainers.h, give them the F_TRAINER_PARTY_HELD_ITEM party flag, and set their trainerbattle type to ItemCustomMoves, or any other that lets you configure a trainer's Pokémon's held item.
Then make sure to set that same trainerbattle type in the trainer's party entry at src/data/trainer_parties.h, and give them a Pokémon that can mega evolve (that is, a Pokémon that they can evolve into via the EVO_MEGA_EVOLUTION evolution method). Said Pokémon must be holding their mega stone too.

Once you've done that, just build a ROM and test it out.
Thanks so much! I really appreciate it!
Reply With Quote
  #147   Link to this post, but load the entire thread.  
Old October 24th, 2020 (11:06 PM).
thiaguinhohp's Avatar
thiaguinhohp thiaguinhohp is offline
Hacking newbie
 
Join Date: Dec 2013
Location: Brasil
Gender: Male
Nature: Adamant
Posts: 49
This is completely not begginer friendly... where the patches? it's way easier. In this way we have to know git, know how to use python, etc. I downloaded devkitpro, downloaded this engine to a folder and ran cmd.exe in that folder. I tried to run this "python scripts//make.py" but no scripts folder is there. What to do? I'm in windows 8.1

Better yet... where are the patches for that?
__________________
One of my dreams is to make my first Emerald hack rom! I will do it! ;)
Reply With Quote
  #148   Link to this post, but load the entire thread.  
Old October 25th, 2020 (1:57 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
@thiaguinhohp

This resource is for the decomps. You don't edit already compiled code with a patch, you edit it from the source code.

Even in binary hacking, static patches are not the way to go. Patches work very limiting and don't allow for dynamic changes after using it (How convenient they may sound to beginners).
Reply With Quote
  #149   Link to this post, but load the entire thread.  
Old October 25th, 2020 (3:51 AM).
Lunos's Avatar
Lunos Lunos is offline
Random Uruguayan User
 
Join Date: Oct 2008
Location: Montevideo (Uruguay)
Gender: Male
Nature: Lonely
Posts: 3,000
Quote:
Originally Posted by thiaguinhohp View Post
This is completely not begginer friendly... where the patches? it's way easier. In this way we have to know git, know how to use python, etc. I downloaded devkitpro, downloaded this engine to a folder and ran cmd.exe in that folder. I tried to run this "python scripts//make.py" but no scripts folder is there. What to do? I'm in windows 8.1

Better yet... where are the patches for that?
You seem to be heavily confused.
First things first, we don't use neither Python nor the Windows Command Prompt here, not at all.
The decomps do rely on certain tools to do their work, but they're not something you have to worry about yourself. Beyond the setup, they're used automatically without you having to do anything particularly hard.

Now secondly, "Where the patches" you ask? In the trash bin where they belong.
Patches are user friendly (in their insertion and that alone, all things being said), but at a cost.
They can easily overwrite data in your ROM, they often contain bugs and they don't even provide a friendly way to view the changes that they introduce to a ROM meaning that the average person would effectively not know what is a patch doing to their ROM.

And thirdly, I'm not sure if you even took a look at the files before you tried to do whatever you tried to do, but there isn't a make.py file here at all, because again, this project does not make use of Python. None of Pret's Decompilation Projects or forks of them like this Battle Engine Upgrade do, in fact, which means that you'd have to go out of your way to use Python with them.
Without any files with an extension that Python can read in the project, you can naturally not use Python, so using
python scripts//make.py
was never going to do anything at all.

You don't seem like the type who wants to actually put in effort into their project, but if you end up considering it, I wrote some tutorials to both; build a clean ROM using the Decompilation Projects of Pret and to merge Egg's feature branches (the Battle Engine posted in this thread, his item_expansion and his pokemon_expansion).

I will link them right here, you can do whatever.
Building a clean ROM with the decomps (not necessarily required, but it serves to understand the basic procedure of building a ROM with the decomps):
https://www.pokecommunity.com/showthread.php?t=432351 - WSL (If you're using Win10, this is the superior choice.)
https://www.pokecommunity.com/showthread.php?t=425246 - MSys2 (For Windows 8.1 or Windows 7 users specifically.)
https://www.pokecommunity.com/showthread.php?t=426921 - Cygwin (For Windows 8.1 or Windows 7 users specifically. Slightly worse than MSys2.)

How to merge DizzyEgg's works:
https://www.pokecommunity.com/showthread.php?t=432321

If you prefer to stick to binary hacking and all its flaws, then this is simply not the right thread for you.
I assume you were talking about the old and no longer supported battle engine upgrade. Since its thread is closed, if you have any questions about using it nowadays, you'll have to open a new thread in the ROM Hacking Help Section of the forum.
__________________
Reply With Quote
  #150   Link to this post, but load the entire thread.  
Old October 25th, 2020 (4:14 AM).
Lucariokalos's Avatar
Lucariokalos Lucariokalos is offline
Playing rom hacks and official game
 
Join Date: Mar 2020
Location: Unova Region( Drifveil City)
Age: 32
Gender: Male
Posts: 63
I hope in future they add trainers animation sprite in gba from D/P/P
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 8:43 AM.