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

thecl: recompiling deletes difficulty flags #117

Closed
ffd000 opened this issue Sep 20, 2023 · 1 comment
Closed

thecl: recompiling deletes difficulty flags #117

ffd000 opened this issue Sep 20, 2023 · 1 comment

Comments

@ffd000
Copy link

ffd000 commented Sep 20, 2023

thecl -d8 -m ../th08.eclm ../dat/ecldata1.ecl ecldata1.tecl
thecl -c8 -m ../th08.eclm ecldata1.tecl ecldata1_recomp.ecl
thecl -d8 -m ../th08.eclm ecldata1_recomp.ecl ecldata1_recomp.tecl

Instructions with difficulty flags now look like this:

!-    etFanAimed(0, 6, 1, 1, 1.0f, 0.5f, 0.0f, 0.18479957f, 515);
    etFanAimed(0, 6, 1, 1, 1.8f, 0.5f, 0.0f, 0.18479957f, 515);
    etFanAimed(0, 6, 1, 1, 2.2f, 0.5f, 0.0f, 0.18479957f, 515);
!*    fset_add(%F2, %ANGLE_PLAYER, 3.1415927f);
...
!-    etFanAimed(1, 2, 1, 1, 1.6f, 0.5f, 0.0f, 0.18479957f, 515);
    etFanAimed(1, 2, 1, 1, 2.6f, 0.5f, 0.0f, 0.18479957f, 515);
!*    etOn();
!-    etOnAutoDelay(90);
    etOnAutoDelay(30);
+5000: //5061
!*    delete();

And enemies don't work.
Eclmap from here but the same thing happens without one

Edit after debugging:
The parser thinks th8 has numeric difficulties (state->has_numeric_difficulties is true in parse_rank) even though I'm specifying version 8.

@Priw8 Priw8 closed this as completed in 5ea079b Sep 21, 2023
@Priw8
Copy link
Member

Priw8 commented Sep 21, 2023

thanks for the report, has_numeric_difficulties was not being initialized in the th06 module

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

No branches or pull requests

2 participants