-
Notifications
You must be signed in to change notification settings - Fork 19
Sinkhole fixes #543
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
base: staging
Are you sure you want to change the base?
Sinkhole fixes #543
Conversation
|
I have no problem with implementing this script to avoid the sinkhole bug. One possible suggestion to avoid further problems is to create an instruction page on CellLayout and ConsLayout. |
|
The Wiki is a good source of information: https://www.wiki.sc4devotion.com/index.php?title=RUL0#ConsLayout |
|
Haven't gone over the script It didn't yet do actual validation of the Cell/ConsLayout agreeing, so that's a nice feature I'll add there :) |
Thanks for the link. I hadn't seen your code yet, but knew you had been working on a RUL0 parser. For the purpose of a linter, C++ is a bit too cumbersome to work with for me though. As you can see, I took the quick and dirty approach, not trying to 100% validate the entire syntax. I'll set this PR back to draft to make the suggested changes. I might also try to add a check for the following criterion, as it's a good indicator for sinkholes: Static cells (i.e. not tagged |
Yeah for sure, for linting this code makes a lot more sense 😅 The setup to get the DBPFKit parser running in the Github Action container would be very overkill. Just thought I'd link it in case it offers ideas for other linting options |
by also checking for static cells with constraints set to `.` and by checking for missing `CheckType` definitions.
|
Done with the changes. |
UlisseWolf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good for me
CellLayoutandConsLayout)Example output:
This might not catch every sinkhole out there. If any others are found, the criteria in the script can be extended. (It might become necessary to parse the
CheckTypes then.)