Comments (2)
1: The 'received' flag for the wonder card. It's so that the game can prevent you from receiving the same card after you've discarded it. There's 0x100 bytes (8*256 bitflags).
2: Block checksum. Save files have integrity checks to check for corrupted data.
https://projectpokemon.org/wiki/Pok%C3%A9mon_ORAS_Save_File_Structure
https://github.com/gocario/PHBank/blob/a956ab39060148c8dafdb1f472c96632b22dcc65/source/save_manager.cpp#L1255-L1367
Basically you need to calculate the ccitt-16 checksum over the block (0x1CC00-0x1E690 for ORAS) and update the block checksum at the end of the file.
from pksm.
hello! Thank you for the answer, this will save me lots of time. -----------If i understand well, i have to modify the rewriteSaveCHK function to have a blockcount of 2 and a csoff of 483170, to update the block checksum at the eof or those values are fixed? If this is correct, the same procedure can be made with the 0x1CC00-0x1E690 block-------: bullshits
Edit #2: i managed to obatin 'checksum are valid' on PKHeX
I have to see how to manage the received wondercard flag now
from pksm.
Related Issues (20)
- Bug Report - App Freezing HOT 1
- Bug Report - Changes are not getting saved (Pokemon Crystal Legacy)
- Bug Report - Brief Description/Name of issue
- How to restore specific bank backups
- Pls items HOT 2
- Bug Report - Exception occurs when moving box HOT 1
- Bug Report - Save files are accidentally saved while using the touchscreen
- Feature Request - Ability to read save files from VC Injected GBA Games like FR/LG HOT 3
- Bug Report - Ultra Sun 3DS crashing when searching the bag for an item to swap/add HOT 1
- Pksm freezes in sd card check
- Bug Report - Gen 3, changing to second ability.
- PKSM Vivilon forms; "your Pokémon can't be auto-legalized"
- Bug Report - Brief Description/Name of issue
- error report...pksm does not open and only gives me a startup error HOT 1
- Bug Report - Save Backup not Injecting into New Gen3 VC Inject Install
- Solgaleo origin bug
- Bug Report - Brief Description/Name of issue HOT 3
- Bug Report - Geolocation and encounter data being mangled during transfers (gen 6) HOT 1
- PKSM failed installation - Error 0xC8A04573
- Bug Report - PKSM Dump Error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pksm.