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

Make sprite replacement mods work again #45563

Closed
Olaroll opened this issue Nov 22, 2020 · 10 comments
Closed

Make sprite replacement mods work again #45563

Olaroll opened this issue Nov 22, 2020 · 10 comments
Labels
<Bug> This needs to be fixed Mods Issues related to mods or modding (S2 - Confirmed) Bug that's been confirmed to exist SDL: Tiles / Sound Tiles visual interface and sounds.

Comments

@Olaroll
Copy link
Contributor

Olaroll commented Nov 22, 2020

Is your feature request related to a problem? Please describe.

All sprite replacement mods no longer work correctly, as they used to. No sprites that already exist in the main tileset can be replaced by mods. The only way to modify existing tiles is to create an entirely separate tileset.

Describe the solution you'd like

Sprites should be replaced correctly, as was the case in earlier experimental versions and 0.E stable.

See Additional context for a demo

Describe alternatives you've considered

Abandoning support for sprite replacement mods.

I explained why that wouldn't be the best approach in a comment below, which I've now copied here:

[...] The way I see it, sprite replacements are a big boon to the long-term health of all tilesets. The reason for this being that tileset mods are a great way to get acquainted with the game's tile system.

A player who is unsatisfied with the way a certain tile looks may try to fix it themselves by creating a tileset mod. This would serve as their introduction to the game's graphics and basic JSON. From there, they might keep making tileset mods, help out the main tileset, or contribute JSON in other areas.

In fact, I say this from experience, because that is exactly what happened to me. Essentially, I think it's similar to the Good First Issue label here. It serves as a good stepping stone to more contributing, and surely that's worth something, right?

In addition, there's also the benefit of being able to mix-and-match different tileset tweaks, as opposed to having an entirely separate tileset for every option.

Additional context

As this was a bug report before, I'll leave the steps to reproduce and relevant image here:

  1. Make a world with this mod
  2. Make sure you are using Ultica, Chibi Ultica, UDP or MSXotto+
  3. Note that the player skin sprite is offset to the right, as proof that the sprite replacement mod is set up correctly.
  4. Note that the player skin has not been replaced with a test sprite

Untitled
Both images were made with the exact same mod.

@anothersimulacrum anothersimulacrum added <Bug> This needs to be fixed Mods Issues related to mods or modding SDL: Tiles / Sound Tiles visual interface and sounds. labels Nov 22, 2020
@Fris0uman
Copy link
Contributor

So the wrong offset is not the bug? The bug is that your custom mod doesn't work?

@Fris0uman
Copy link
Contributor

Fris0uman commented Nov 22, 2020

Just tried it using sees_player_retro mod and it seems to work:
image

@Olaroll
Copy link
Contributor Author

Olaroll commented Nov 22, 2020

So the wrong offset is not the bug? The bug is that your custom mod doesn't work?

Yes, the offset is there to verify that the mod is actually set up correctly. Otherwise, it would look just as if the mod was not active at all.

Just tried it using sees_player_retro mod and it seems to work:

I'm not that familiar with the RetroDays tileset, but it seems to me that the sees_player_retro mod adds a new sprite. The problem specifically occurs when you try to replace a tile that is already set by the main tileset.

@Fris0uman
Copy link
Contributor

The problem specifically occurs when you try to replace a tile that is already set by the main tileset.

Sure but it seems that there's nothing in the repo doing that. So I think you'd have a better chance to get a fix by talking to people on the dev discord.

@Olaroll
Copy link
Contributor Author

Olaroll commented Nov 22, 2020

Fair enough, but I'd still hope the issue is considered at least. The way I see it, sprite replacements are a big boon to the long-term health of all tilesets. The reason for this being that tileset mods are a great way to get acquainted with the game's tile system.

A player who is unsatisfied with the way a certain tile looks may try to fix it themselves by creating a tileset mod. This would serve as their introduction to the game's graphics and basic JSON. From there, they might keep making tileset mods, help out the main tileset, or contribute JSON in other areas.

In fact, I say this from experience, because that is exactly what happened to me. Essentially, I think it's similar to the Good First Issue label here. It serves as a good stepping stone to more contributing, and surely that's worth something, right?

@Fris0uman
Copy link
Contributor

Fris0uman commented Nov 22, 2020

I guess you could remake your issue as a feature request instead of a bug report

@Olaroll Olaroll changed the title Sprite replacement mods do not work Make sprite replacement mods work again Nov 23, 2020
@Zupercharged
Copy link

Zupercharged commented Nov 27, 2020

So for what its worth, I can confirm the specifics of this issue.

My mod uses the same additional tileset to both replace existing textures and add them to new items, the new item textures still apply fine but the replaced textures don't apply. Worth noting that the y offset I apply to the replacements for the existing textures does still apply so the end result is that the original texture doesn't get replaced, but it also floats 16 pixels above where its supposed to be.

@olanti-p
Copy link
Contributor

Possible fix: cataclysmbnteam/Cataclysm-BN@f7127ad
It did the job both for this issue and for #48819 in BN.

@Fris0uman
Copy link
Contributor

#51080 Probably fixed this

@anothersimulacrum
Copy link
Member

Will close until a report there is still a problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bug> This needs to be fixed Mods Issues related to mods or modding (S2 - Confirmed) Bug that's been confirmed to exist SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

No branches or pull requests

6 participants