-
Notifications
You must be signed in to change notification settings - Fork 74
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
Smooth is not working since port to SDL2 #516
Comments
The last semi working smooth was included in the 1.6 SDL 1.2 release of the tools (dated 17.04.2020) - the SDL2 1.6 release was already not working. |
I have no idea about anything in regards to that program but to my eyes it is probably an easy fix. I can see what the problem is, it tries to create an RGB surface with only 8 bits with bits per channel not specified. That isn't going to work. It is obvious from looking at the code it should be creating a paletted surface not rgb, If I knew what this program was supposed to do I would fix it |
The most verbose description of smooth is at https://exult.info/forum/viewtopic.php?t=14942 Its aim is to "smooth" a map picture for the tool mockup so that mockup produces a better U7 map. Problem is that mockup is only accepting 8bit source files (bmp or png). So if that is no longer possible with SDL2 theen smooth has maybe reached its end of life. to (both files are as bitmaps in smooth's folder). |
Something like what @Dragon-Baroque did for the SDL3 port might work (only needs to use the right SDL functions in SDL2). I'll give it a try tomorrow. |
Perhaps you should first try the SDL 3 variants of |
Kind of progress report. I made |
I have published a new branch
Now,
|
Awesome! "Quick" way to test the map mockup produces: |
Well, the down port to SDL 2 was easy. So I have another new branch You may prefer to test on the SDL 2 variant... |
It was. I have added what I believe was the missing line in If you have tested
Thanks. That was my intention, and I intend to merge the changes because of SDL 3 into the exult-sdl3 branch. |
Handled with |
I think before that it was a private project of @AurelienMarchand and lived in the French translation of SI for a while. There is mostly this post in our forum about both tools https://exult.info/forum/viewtopic.php?t=14942 Looking forward to try it out more :) |
There are three plugins to
The plugin
supposed to return an integer from 0 to 8 when |
Just running smooth in a folder with rough.bmp and smooth.conf (from mapedit/tools/smooth) should output the same file as mapedit/tools/smooth/smoothed.bmp.
Since our port to SDL2 it outputs the error
ERROR: UNKNOWN pixel format
With smooth's debug enabled (
smooth -d 4
) I get this outputhinting that the error happens in https://github.com/exult/exult/blob/master/mapedit/tools/smooth/image.c#L61.
The text was updated successfully, but these errors were encountered: