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

Bug: Some Planetary Conditions not being assigned from story arc #25

Closed
AaronGullickson opened this issue Mar 25, 2024 · 7 comments
Closed
Assignees
Labels
bug Something isn't working story arcs Related to story arcs

Comments

@AaronGullickson
Copy link
Owner

AaronGullickson commented Mar 25, 2024

For the Devin scenario, I am noticing that only wind speed is being recorded, not blowing sand and EMI.

@AaronGullickson AaronGullickson self-assigned this Mar 25, 2024
@AaronGullickson AaronGullickson added bug Something isn't working story arcs Related to story arcs labels Mar 25, 2024
@AaronGullickson AaronGullickson added this to the Playtest release milestone Mar 25, 2024
@AaronGullickson
Copy link
Owner Author

Blowing sand and EMI also do not show up in the scenario readout in MekHQ, so it may be an issue there.

@AaronGullickson
Copy link
Owner Author

Blowing sand is also not working on Twycross, although variable wind conditions is working.

@AaronGullickson
Copy link
Owner Author

The issue is that blowing sand and EMI are now enums not simple booleans. The method Scenario.generateInstanceFromXML actually has some code here to read in the boolean and assign things correctly, but it does not appear to be working.

@AaronGullickson
Copy link
Owner Author

Also, although it reads in the XML as a true/false, it write out the XML as an ordinal which means it won't read it in again properly and using an ordinal here is bad practice because it depends on the ordering being consistent in the future.

@AaronGullickson
Copy link
Owner Author

I think I figured out the problem. This happened from a save game. It probably would have worked from a direct load of the story arc, but because I saved the game, it got saved as an ordinal and then when it was reloaded, it didn't read in properly.

It should be an easy fix to write back out as a boolean rather than an ordinal. I will do some testing and post up an issue/PR on the main MekHQ.

@AaronGullickson
Copy link
Owner Author

I have confirmed that when loading the arc directly and not saving in between, the planetary conditions load correctly.

@AaronGullickson
Copy link
Owner Author

The linked PR will resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working story arcs Related to story arcs
Projects
None yet
Development

No branches or pull requests

1 participant