Conversation
…rds in keymappings_linux.plist so that shift key works
…WithSize if one does not yet exist and fix problem with populating fullscreen modes
|
It does! Why would it be different running the app from Explorer? |
I'm guessing a missing dll. This is a busy week for me - I hope to look at this PR in the weekend. |
|
I wondered whether something still required the old SDL dll. But it's not listed when I run |
|
Compiling on Linux, I got this error: I read that SDL_SavePNG is not in the core SDL3 library so I installed: However, it still failed. I then tried adding the include and lib: However, it still didn't build successfully. |
|
Now got it to build, run, make png snapshot and fly around with: MyOpenGLView.h: and GNUmakefile: Great work @kanthoney ! NB: It's better to rename all the SDL_SavePNG to IMG_SavePNG unless Windows specifically expects the former. |
|
That's weird. It compiles fine on my Fedora laptop. The documentation says the |
|
It turns out the |
|
I'll see if I can build 3.4 from source then. Actually probably better I just upgrade to 26.04LTS which has 3.4. |
Remove unnecessary Linux flags
|
I've made a PR to the kja_sdl3 branch: #643 sdl-config is a SDL1.2 command so build flags need updating. I've taken the opportunity to clean them up for Linux. A similar fix is needed for Windows (and flag cleanup is desirable too). ADDITIONAL_CFLAGS are automatically added to C++ flags but not ObjC flags so some flags are superfluous. |
|
I've merged the pull request, and tidied up the Windows build a little bit. Somebody with more Windows/MSYS2 knowledge than me should have a proper look at it, and also try to find out why it's not running from outside the MSYS2 environment. |
|
It seems that the reason for the startup crash in Windows when run outside the MSYS2 environment is that the |
|
OK, latest patch allows the app to be run generally. I build the app and copied the results over an existing installation that has a full set of OXP's installed (both in AddOns and ManagedAddOns), and an existing OoliteDefaults.plist in the default location. A couple of things I noticed:
I'm assuming these defaults can be tweaked in OoliteDefaults.plist, but if the defaults file itself in now centralised, how can we have different setups for different installations? |
|
@phkb the problem with default locations should be fixed with the latest push |
Take a look at https://bb.oolite.space/viewtopic.php?p=305556#p305556, which redirects to https://oolite.readthedocs.io/en/latest/. There are environment variables documented - I am just not sure what OS they apply to. |
|
Not sure what's going on, but... In the linked YouTube video, I've used the Test Ship Model oxp and selected one of the Generation Ships, generation-ship-1 specifically. I haven't zoomed in or out or moved the model in any way yet. I have just opened the Test Ship Model screen, and entered generation-ship-1. For some reason the texture along the frame is flickering. Zooming in and out alternatively stops and restarts the flickering. Generation ships are using the default shaders, with diffuse, normal, specular and illumination maps. I'll experiment with various combinations of these to see if any particular map is the culprit. This is also with my (rather large) suite of OXP's installed. I've run a test with just the Generation ships and the Test Ship Model OXP's and the flickering is the same. |
|
Looks like the flickering is also in master, and was introduced when #153 was merged. I'll investigate but it's nothing to do with this PR |
|
FYI I've spent some time trying to get the test to work with an Ubuntu 26.04 container (long list of failed attempts here: https://github.com/mcarans/oolite/actions). GitHub is currently still on 24.04 so like Fedora and Arch, a container must be used, but something is different about it compared to running locally on Kubuntu 26.04 where the test works. |
Upgrade to SDL3 #578
This pretty much works on my machine, so I figure it's close enough to ready to be tested on a wider range of setups.
I haven't been able to resolve the Linux/Wayland splash screen problem where the game screen ends up largely off screen due to Wayland not allowing programatic window placement, so we'll have to continue with the separate splash screen program work around for now.
On Windows, Oolite starts with the window underneath the command prompt I'm launching from - I'm not sure what's causing that.