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

Map rules plugins #2000

Open
Mikhael-Danilov opened this issue Sep 1, 2018 · 2 comments
Open

Map rules plugins #2000

Mikhael-Danilov opened this issue Sep 1, 2018 · 2 comments
Labels
feature It's a feature, not a bug.

Comments

@Mikhael-Danilov
Copy link

It will be nice to have a way to enforce custom rules while editing maps.

For example limit tilesets to be used by each specific layer, check map passability and so on. And be able to customize such constrains without touching main code base.

Currently I enforce such rules in export plugin, but it is too late sometimes ( because a lot of work already done on top of rule violation step )

@bjorn bjorn added the feature It's a feature, not a bug. label Sep 2, 2018
@bjorn
Copy link
Member

bjorn commented Sep 2, 2018

Definitely something to keep in mind when making Tiled scriptable (#949). I think you'd basically want to have some kind of validation script that runs on certain events (maybe saving, maybe periodically, or based on specific change events) and then there should be a way to log warnings or errors such that they show up somewhere, like having an icon in the status bar and more details in a log window.

@Mikhael-Danilov
Copy link
Author

Yes, embedded scripting will solve my issue.
It also will be nice if validation script will be allowed to block or auto-undo changes ( while displaying error message to user).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature It's a feature, not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants