Allow custom types#8113
Conversation
|
It'd be nice to have it closer coupled with specific editions so non-legal types like Cyborg can also be moved. |
|
Yeah, a single custom user typelist won't solve the issue that anyone installing a custom edition would have to manually merge them. |
|
It currently parse types before we handle the card rules files, and that is before the editions. I don't see exactly how it could be tied to editions easily? |
|
Hmm. I think the custom editions folder is structured |
|
The custom/cards folder can be anything really. You can just dump them all in one big folder and it'd work. And I agree. It would be much easier to add a set if you didn't have to move between different folders. |
tool4ever
left a comment
There was a problem hiding this comment.
It currently parse types before we handle the card rules files, and that is before the editions. I don't see exactly how it could be tied to editions easily?
editions are loaded before CardRules
so the order is fine imo
|
Probably need to remove the |
|
@tool4ever Is there more requested changes for this? I know @Jetz72 want to rework the way we load custom editions, but it'd be a breaking change that require more tinkering. This can be a stopgap so users don't need to constantly edit the typelists.txt file every time they update until we do. |
|
My only concern is that we might add support for something then delete it or have to implement extra backwards compatibility stuff later. But we kinda make breaking changes to the card scripting API all the time anyway, and we have to include support for a bunch of stuff in the custom directory anyway if we're gonna modularize stuff later, so I guess that part isn't an issue. It'd still be nice if we had a way for multiple custom sets to have their own types without needing to merge things manually, but I don't know if this will be used often enough to justify the extra work. |
This already allows multiple sets to have their own type. It reads from all .txt inside a the |
|
@Eradev |
It seems to be loaded after at |
|
yes inside the construction there you're loading editions first, then rules :p let me try like this: |
Oops, missed that revision. Seems good then.
To clarify, you mean defining type lists directly inside custom edition files? That might be neat. Arguably overloads the responsibility of edition files, but custom editions probably do need to be able to do more than regular editions so they can extend the game like this. Also brings to mind that that big if-tree when iterating over the file might be better handled by the FileSection utilities, like what CardEdition uses. Dunno how much that actually improves things though. |
Allow Forge to read .txt files inside custom/typelists folder so set creators can add non-existing types.