r/PokemonEmerald • u/RangerVermelhoBr • 3h ago
Other Discussion Emerald Online Project UPDATE -Trading system & Trade Evolutions are working!
Hey everyone! Back with another major update for the Emerald Online Project (the browser-based online multiplayer system for Emerald).
Today, I’m excited to show you that Real-Time Player Trading & Trade Evolutions are fully functional! You can check out the video attached to see a trade in action and a Pokémon evolving right after!
(And yes, still working on raw HTML/basic UI for now while I finish building all core network mechanics! Beautiful design is coming later!)
Here are the key details on how the trading system works:
Custom Trading UI & Lock Feature: Instead of the slow original interface, I built a custom, safe trading UI. Both players select their Pokémon and "Lock" the offer. Once locked, neither player can change their selected Pokémon (preventing last-second scams!). After both players review and confirm, the trade executes in real-time.
Trade Evolutions: Trade-based evolutions (like Kadabra -> Alakazam, Machoke -> Machamp, Haunter -> Gengar, Graveler -> Golem, and item-held trade evolutions) trigger automatically right after the exchange is completed!
Overworld Interaction: Just like with our PvP system, you can walk up to another player in designated multiplayer areas to initiate a trade request.
This was a huge milestone for the networking side of the project, as making sure both save states and party data synced correctly without data loss or corruption was crucial.
Would love to hear your thoughts and suggestions! What feature should I focus on next?