Add tool to extract hardcoded data from swep1rcr.exe#27
Open
JayFoxRox wants to merge 2 commits into
Open
Conversation
JayFoxRox
force-pushed
the
extract-data
branch
3 times, most recently
from
May 7, 2018 15:38
96582ee to
e5298ee
Compare
JayFoxRox
force-pushed
the
extract-data
branch
3 times, most recently
from
May 8, 2018 15:05
d2d8abb to
87f01b2
Compare
JayFoxRox
commented
May 8, 2018
| printf("PodracerHandlingData podracerHandling[] = {\n"); | ||
| for(unsigned int i = 0; i < podracerHandlingCount; i++) { | ||
| PodracerHandlingData* d = &podracerHandling[i]; | ||
| printf(" { %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f },", |
Member
Author
There was a problem hiding this comment.
nit: float suffix missing
JayFoxRox
commented
May 19, 2018
|
|
||
| // Dump the list of replacement parts | ||
| unsigned int replacementPartCount = 7 * 6; // 7 categories x 6 levels - FIXME: Read from file? | ||
| PartData* replacementParts = readExe(f, replacementPartOffset, replacementPartCount * sizeof(PartData)); |
Member
Author
There was a problem hiding this comment.
rename to upgradeParts or just upgrades
JayFoxRox
commented
May 19, 2018
| float BumpMass; // 48 | ||
| float DmgImmunity; // 52 | ||
| float IsectRadius; // 56 //FIXME: Not sure | ||
| } PACKED PodracerHandlingData; |
Member
Author
There was a problem hiding this comment.
PodracerHandlingTableData; this allows re-using this structure elsewhere.
See handling.h in future swe1r-re PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes OpenSWE1R/swe1r-re#13
Closes OpenSWE1R/swe1r-re#15
Closes OpenSWE1R/swe1r-re#16
It also makes the gcc
CFLAGSmore strict and turns on-Werror. This is to protect againstprintfissues and other oddities.After merge, a new issue has to be created that reminds us to make this tool more compatible with other versions of the game.