-
Notifications
You must be signed in to change notification settings - Fork 132
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
Broken textures with SDL 2.0.14 #580
Comments
Sounds like an issue that should definitely be investigated - it could as well be a regression in SDL2 that should be fixed there. |
Running PopOS, I had to add the launch commands that was in issue 568 and afterwards the textures worked |
Forcing the game to use an older SDL2 version is not a solution, it's a workaround at best. |
cc @1bsyl I bisected using the sdl2 hg repo and openbsd port. I found the commit that caused this bug to show up. I get the missing textures as in: #568
|
Hi, I can have a look. I tried to compile Barony but it doesn't start, (missing .//images/system/fancyWindow.png ) ? |
Thanks. Yes, it requires the game assets from epic/gog/steam (barony-v3.3.7-010920). The game engine is picky about matching the correct version of the assets; otherwise you might get segfaults starting up with older versions of the game if a store hasn't updated yet. The game engine is open source, but the user must provide game assets. I see that file in the assets: ./images/system/fancyWindow.png EDIT: Specify data directory with |
I got the files with the help of Daniel is the "editor" enough to show the issue ? or barony ? |
https://github.com/namtsui/imagedump I uploaded 6 pictures to compare good and bad versions. barony_bad_startgame.png: click on start game
barony_bad_settings.png: similar bug to startgame picture barony_bad_game.png: once you enter the game, press m to pull up the map.
|
OK. I did a quick try again, and I am missing: selectedcursor.png (i replaced with cursor.png) ( but the 'editor' stared ) |
That's strange. I don't see any glyphsheet_ns.png. I am using epic's assets though. EDIT: It might be fine as long as you can see the buggy textures in the editor I guess. Do they look like the buggy patterns in my pictures? |
Is this code newer than the one used for the Steam build? |
The editor looks fine .. no strange graphics, nor distortion |
Are you using the release? Latest Steam/Epic/GOG build as of 29/01/21 |
no, I'll try the tag, thanks! |
Using dev SDL (or 2.0.14) is probably a good idea, esp. in case your distros version doesn't include the commit that apparently broke it ;) |
Here's a fix #582
|
Thanks. Your fix works and I can see textures again, as in my "good" screenshots. I tested using sdl2-2.0.14 and barony v3.3.7. |
You're welcome, |
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
@rapenne-s You should it because surface pitch is not guaranteed to be the surface width * BPP (for instance loading assets with SDL_image, or rendering SDL_ttf), and then the data can be loaded incorrectly. |
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
Hello,
I (and other people) are experiencing the same issue reported in #568 but the issue was closed so I reopen one.
I'm using Barony on OpenBSD and we now ship the latest SDL2 package with version 2.0.14 and we experience broken textures. We can't use older SDL2 .so files because of regular ABI changes that make them unusable (and it's not a great solution).
I'd be fine importing patches into our packaging to fix the issue if it's possible.
Is there a plan to make Barony compatible with newer SDL2 versions? That would be SO great for the future 👍
The text was updated successfully, but these errors were encountered: