Skip to content

Update - Fusion, Equip Spheres, All Items - Fixes - User party, and actions are saved to SQL DB#2

Merged
Seltraeh merged 11 commits into
mainfrom
missions-and-unit-stats
Apr 12, 2026
Merged

Update - Fusion, Equip Spheres, All Items - Fixes - User party, and actions are saved to SQL DB#2
Seltraeh merged 11 commits into
mainfrom
missions-and-unit-stats

Conversation

@Seltraeh
Copy link
Copy Markdown
Owner

The big one

…configuration loading for daily tasks

- Introduced multiple request handler classes in C++ to manage game-related requests (e.g., raids, shops, user info).
- Implemented methods to retrieve group IDs and AES keys.
- Added `Handle` methods for processing requests and generating responses.
- Developed a JSON loading mechanism to populate daily task prize and bonus tables from a configuration file.
…med like placeholders to clean up handlers and responses. Transfered logic from old versions to new naming scheme. Handlers list is now finalized.
- Eliminate HARDCODE_USERID; use client 'ak' as user ID
- Add dynamic user ID resolution and caching at startup
- Refactor GmeController and GetUserInfo to resolve real user ID from DB
- Chain user creation, userinfo, and (dev) unit seeding in AccountController
- Add DEV_SKIP_TUTORIAL flag and full unit roster seeding for dev/debug
- Update user_units schema: AUTOINCREMENT id, unique (user_id, unit_id), sentinel row for safe ID range
- Add System::DevValidateAndSeedUnits for startup validation
- Update startup flow: run migrations, seed units, resolve user
- Update CMakePresets.json, add GimuServer.slnx, improve docs/comments

These changes ensure robust user/account creation, remove all hardcoded IDs, and support both dev and production flows for Brave Frontier Windows client compatibility.
…nd warehouse support

- Generate ~350 stub request handlers and ~400 response structs from client binary analysis
- Implement UnitMix fusion with decompiled GameUtils::getMixExp XP formula
  (totalExp/2.5 + cost*2 + adjustExp + rarityBonus, 1.5x same-element bonus)
- Fix fusion response to use qC2tJs4E (incremental update) instead of 4ceMWH6k
  (full-list replace) to prevent inventory wipe
- Add cost, rare, element fields to MstConfig UnitMstData for fusion calculations
- Add migrations: warehouse items, sphere slots, party decks, randomized unit types
- Update DeckEdit, Gacha, GetUserInfo, MissionStart handlers
- Add warehouse info response, fix unitexp_pattern.json syntax error
- Add generate_handlers.py and lookup_handlers.py utility scripts
@Seltraeh Seltraeh merged commit ab03a69 into main Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant