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
regression in Utility (upgrade rules) #4806
Comments
Can we have the offending map? |
What I think is happening here (and may not be a regression): If you --update-map, providing a map that is already up to date by our rule definitions (not sure if date range applies to the Float->Range conversion) which already has the correct values in Range (e.g. Range: 8c512), this happens. It's trying to cast the range (in my example, 8c512) to a float which won't work. Edit: attempts to convert something that doesn't need further conversion ;) |
for example, distributed with OpenRA client map: http://resource.openra.net/maps/487 |
Hamb, that's pretty close. It still should be fixed/not crash |
I agree; Utility could check if Range was already in the right format. |
IMO it is the responsibility of the person running the utility to make sure they give it the correct date. This is one case where you can programmatically check that they have asked for a bogus conversion, but there are others that will run without error and give bogus results. |
I've tried every possible date, it just does not work and crashes. I think it also does something bogus to maps because after --upgrade-map, Lint.exe also crashes at
|
The date is the date of the engine version that the map was written for. If the range already has a c it means that it is already up to date and that you shouldn't be upgrading them further (or should be passing a date from after the change was introduced, when upgrading future changes). #4636 covers adding a RulesVersion key to the map to avoid confusion like this. |
#4694 is a reason of regression in Utility
From what I've managed to notice so far is that patch adds
c0
(or maybe similar) to Range value in map rules.OpenRA.Utility.exe --upgrade-map...
does not understand what is "c" char:The text was updated successfully, but these errors were encountered: