-
Notifications
You must be signed in to change notification settings - Fork 18
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
Need to reorganize addons with custom resources #15
Comments
Addon resources doesn't seem to change the previous editors. I don;t understand how it would need to be changed in that respect. It just stays in the zip, right? |
Having a "standard" for custom resources is a good idea, although I'd suggest keeping it simple and located in a single spot instead of two. Basically assume all custom-content to be addon dependent. I know we can have addons that use resources from other addons but currently there is no mechanism to reliably handle addons dependent on other addons. I am pretty sure nothing falls into that category right now, although I do know that there are addons that both use the same resource. I know this is not as efficient, but frankly we need reliable stability more. Plus, it's too easy for two different level designers to use the same resource name inadvertently, best keep them entirely separate. Custom content from addons in the past has made it into the main repo causing conflicts, especially if that content gets updated or changed. Having a standard would help prevent this. Although we will still have efficiency issues when content gets adopted, but again I'd rather see it be robust first. Reorganizing the current addons is probably not worth the effort at the moment since you're likely to break things and spend a fair amount of time fixing them. However, looking forward these issues could be addressed in the editor preemptively. In fact, they probably should be because if a new editor is going to be used it really should be significantly better than the current one. I would suggest that the editor be able to do the following:
If it is easy to handle with the editor, then conflicts should be avoided by default and everything will be nicely organized. This issue will basically take care of itself with a little foresight and thoughtful programming. If you impose an organizational scheme that has to be done manually expect to have to tweak and/or modify every levelset that uses custom content that gets submitted. It's bad enough getting level designers to package addons correctly, if the new editor handles this sort of thing then our lives will be considerably simpler. |
See my new addon-mountpoint branch (SuperTux/supertux@70ef5e2) This adds the "format" field to the addon.nfo file to support backwards compatibility, and will automatically mount anything with a format of 1 or greater to "custom/{addon-id}" Please let me know what you think. |
@LMH0013 An option for uploading levels could come later, I think we plan something like this. The editor is already able to list the file system, Maybe there will be a problem with hiding the add-on stuff, but we should provide a both-side check anyway. I think, we should have an extra meeting exceptionally for this. @maths22 I like this format, just keep in mind that all paths to custom resources in the add-ons will have to be changed. However, it's true that we'd have to do it anyway. |
So now the editor advertises the players to turn off all old add-ons, so when someone ignores it, then it's his problem. For the people who hasn't seen it so far, there's also an option to disable those add-ons in that warning, so it's easy for the people. I'd like to transform all add-ons into the new format. There's no problem with many of them, I could even do that. There are some add-ons those use own resources. It's not urgent, because they could stay the way they are, but we should do something with them by the time. There are two options. Eventually, we can pick one option and then change it by the time.
|
As you know, there's the possibility that add-ons can use their own resources. However, it has also bad consequences, as the in-game editor is coming. The custom resources bleed into the default ones, so there's actually no way how to recognize the default Super Tux resources with the custom resources. That way, a contributor might use a resource that belongs to an add-on without knowing that.
Maybe it would be possible to tweak the editor so that it won't display any add-on stuff, but this wouldn't be good as well. We should still keep the possibility of having add-ons those contain only resources (like sprites, music …) those can be used in other add-ons. Therefore the editor should still display them, but the contributors should be able to distinguish them.
I think, we should also get rid of possible collisions, when one file is defined twice or more times in various add-ons. And also the add-ons shouldn't collide with the default Super Tux resources. It's true that the contributors can know what resources Super Tux already has, but what if we wanted to make a new file that is named the same?
We have still all add-ons in our control, so I'd suggest:
levels/<addon>/images/
images/custom/<addon>/
And analogically with other types of resources.
What do you think?`
The text was updated successfully, but these errors were encountered: