Skip to content
New issue

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

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

Already on GitHub? # 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.

@JayFoxRox JayFoxRox force-pushed the extract-data branch 3 times, most recently from 96582ee to e5298ee Compare May 7, 2018 15:38
@JayFoxRox JayFoxRox force-pushed the extract-data branch 3 times, most recently from d2d8abb to 87f01b2 Compare May 8, 2018 15:05
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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant