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. |
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.)