Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool to extract hardcoded data from swep1rcr.exe #27

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JayFoxRox
Copy link
Member

@JayFoxRox JayFoxRox commented May 7, 2018

Closes OpenSWE1R/swe1r-re#13
Closes OpenSWE1R/swe1r-re#15
Closes OpenSWE1R/swe1r-re#16

It also makes the gcc CFLAGS more strict and turns on -Werror. This is to protect against printf issues 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.

extract-data.c Outdated
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 },",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: float suffix missing


// 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));
Copy link
Member Author

@JayFoxRox JayFoxRox May 19, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to upgradeParts or just upgrades

float BumpMass; // 48
float DmgImmunity; // 52
float IsectRadius; // 56 //FIXME: Not sure
} PACKED PodracerHandlingData;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PodracerHandlingTableData; this allows re-using this structure elsewhere.
See handling.h in future swe1r-re PR.

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.

None yet

1 participant