98 Commits

Author SHA1 Message Date
70bf9b6acc
Replaced relocation-based LBAs with symbol-replacement during lib phase.
Upgraded minimum `zbuild` version to `0.1.8`.
2024-08-16 04:03:04 +01:00
9bbe8f250a
Lba sizes are now also automatically gathered.
- Unfortunately, the lba size table has 16-bit entries, which we cannot emit from rust currently.

- Fortunately, there are an even number of entries, so we can simply join two entries in a single normal pointer relocation.

- Unfortunately, this requires us to specify an order for the lbas, instead of just being able to dump them all and figuring out the order in rust.

- Fortunately: It works.
2024-08-14 06:30:33 +01:00
7a7b8aaf4a
Added -Ztrap-unreachable=no to rust builds.
Rust builds now depend on `.cargo/config.toml`.
2024-08-14 05:06:22 +01:00
75e6688dc7
Separated lba data into it's own crate. 2024-08-12 15:34:45 +01:00
8e10d60147
All LBAs are now in a single array. 2024-08-10 21:06:34 +01:00
f5dc249687
Found out where the executable stores the iso lbas.
Executable now includes actual calculated `lba`s.

We bootstrap an iso with fake `lba`s, then create the actual iso with the real `lba`s from the bootstrapped iso.
2024-08-10 20:02:47 +01:00
da2c5b93e6
Started figuring out f15. 2024-08-05 17:32:13 +01:00
75432910f1
Extracted f15. 2024-08-05 17:10:16 +01:00
8bad61869a
Renamed pro_*_data crates to just pro_*. 2024-08-05 14:23:04 +01:00
c3a3bae6fc
Removed need to extract object files from rust staticlibs.
Using `--whole-archive` works for all dependencies with just 1 `staticlib`.
`exe` had 2 `staticlib`s, so we make them normal libraries and combine them in one single `staticlib`.
2024-08-05 14:17:17 +01:00
1a33fc975b
Replaced some absolute addresses with symbols.
Figured out `stfgtrep`'s address.
2024-08-03 15:24:09 +01:00
0ef6457d02
Formatted all files. 2024-07-30 23:59:25 +01:00
46ffe326e5
Extracted shop data from stitshop. 2024-07-30 23:01:16 +01:00
9b73380368
Moved item ids to types crate. 2024-07-30 22:45:59 +01:00
8b3bed7dac
Separated STITSHOP.PRO's data into a rust crate. 2024-07-30 18:41:55 +01:00
85459cbea3
Replaced all numeric values with ids in encounters. 2024-07-30 18:26:42 +01:00
e76bf33a10
Replaced all numeric values with ids in enemy stats.
Fixed field names for enemy stats related to ids.
2024-07-30 18:14:25 +01:00
77d8ff1eab
Added all remaining digimon ids to DigimonId. 2024-07-30 17:00:13 +01:00
6e23c81ccf
Moved DigimonId to a new crate types. 2024-07-30 16:52:59 +01:00
ac26dee287
Updated to rustc 1.82.0-nightly (2cbbe8b8b 2024-07-28). 2024-07-30 14:16:35 +01:00
1c215af738
Figured out unknown field in enemy data. 2024-07-29 17:28:58 +01:00
71eebfdc46
Figured out droppable item IDs from esitmnam. 2024-07-29 17:05:46 +01:00
5474123505
Improved implementation of dummy panic handler. 2024-07-23 18:14:58 +01:00
f7976567ee
data modules and types are now public for all rust/ crates. 2024-07-23 18:00:43 +01:00
1907b00f23
Replaces &MUTABLE_STATIC with ptr::addr_of!(MUTABLE_STATIC). 2024-03-16 09:59:36 +00:00
f74f512e94
Fixed core::ptr::invalid_mut being renamed to without_provenance_mut. 2024-03-08 16:23:46 +00:00
4cb29d6696 Figured out functions rand_u16 and rand_u16_set_seed. 2023-12-25 20:12:41 +00:00
c3d9fe618b decl_static macro now allows doc comments on each item. 2023-12-25 19:39:38 +00:00
bc6b1aea87 Unpacked encounter data in fieldstg.
Mostly ported over from @markisha64's [`dmw3-randomizer`](https://github.com/markisha64/dmw3-randomizer)
2023-12-24 17:17:47 +00:00
1990d6d752 Moved FIELDSTG data to a rust crate. 2023-12-24 16:02:43 +00:00
c00523db6d Unpacked all data in sdigiedt.
Mostly ported over form @markisha64's [`dmw3-randomizer`](https://github.com/markisha64/dmw3-randomizer)
2023-12-23 20:58:18 +00:00
ac695d3b11 Moved SDIGIEDT data to rust crate. 2023-12-23 20:31:28 +00:00
2fc6cdcf9f Converted all hex values in digimon profiles to decimal. 2023-10-08 23:08:11 +01:00
bd3546e5c3 Found some more fields in digimon profiles.
Thanks to @markisha64.
2023-10-08 23:07:05 +01:00
7c1e0c36d3 Improved formatting in executable data. 2023-09-20 13:33:44 +01:00
4dec68f7ab Changed most directories to lowercase.
This excludes dw3/ and dw2003/ since they're meant to be the "remaining" files that we have yet to unpack.
Given this they'll keep their original name until they find their place elsewhere.
2023-09-03 10:02:29 +01:00
e7064c010b Extracted STGTRAIN_f2 through STGTRAIN_f10. 2023-08-30 17:27:59 +01:00
b7038057e8 Extracted STGTRAIN_f1. 2023-08-30 16:53:27 +01:00
bc5c2438ab Extracted STGTRAIN_data 2023-08-30 16:42:06 +01:00
d0ab97ead6 Fixed data name in SFTGTREP. 2023-08-30 16:41:16 +01:00
091e169d02 Simplified .gitignore. 2023-08-22 08:59:41 +01:00
30afe59958 Renamed f14_{I_STAT_PTR, I_MASK_PTR, DPCR_PTR}. 2023-07-01 01:26:47 +01:00
283aa4d001 Replaced more hard-coded addresses. 2023-07-01 01:24:00 +01:00
6db600b293 Replaced more hard-coded addresses. 2023-07-01 00:50:51 +01:00
0bb71b4065 Replaced more hard-coded addresses. 2023-06-20 13:53:09 +01:00
2008a6a946 Figured out f14. 2023-06-18 23:04:17 +01:00
6445eedbbe Moved all rust dependencies to workspace. 2023-06-18 18:40:15 +01:00
c8bb2285ad Updated to rustc 1.72.0-nightly (871b59520 2023-05-31). 2023-06-18 18:25:59 +01:00
82af647c51 Swapped Evolution::rookie argument's order to be consistent with other functions. 2023-03-19 13:04:36 +00:00
dbf16e8d1d Started figuring out f12. 2023-02-17 16:08:54 +00:00