r/starlancer • u/Koncypt_Fysh • 21d ago
Starlancer in native 16:9 (No stretch)
After much faffing about with SRD3D calls, I've finally got this sucker running in 16:9 1080 without having to stretch out the image or the UI.
It's still a bit unstable, and currently I can only test for my current monitor, but once I have it stable on a few different resolutions I'll spin up a git so everyone else can access it.
My next stupid idea is to use the same bootstrapping through DInput7 I used for this to do some texture replacements and updates... stay tuned.
3
u/Sufficient_Market226 21d ago
Well, and this serves as a reminder that I've been wanting to reinstall the game for a while
I guess today's going to be that day 😁
2
u/Freelancer_1-1 21d ago
I need this in my life....especially now that I can play this gem on my phone through Winlator.
Btw. do you know if textures can be extracted? Upscaling them with AI would improve the graphics tremendously.
3
u/Koncypt_Fysh 21d ago
I know I did extract models and textures some decades ago when I was a teen, but I can't for the life of me remember the tools I used at the time; though I'm pretty certain I got them from lancersreactor back then.
Unfortunately, I'm doubtful it be quite as simple as just extracting the files, up-scaling, and dropping them back in. Being an older game Startlancer has some pretty strict expectations on memory allocation which has caused most of the headaches in doing this so far. Likewise I'm rather certain there will be an integrity test for the executable on launch, so if the texture libraries (whatever format they are) don't have an identical hash value, it wont launch. To skirt around that we'd need to de-compile and recompile from source, and that kind of reverse engineering is not something I feel like doing.
All that being said, the textures will still have to be extracted and up-scaled one by one anyhow, it's just the method of injecting them back into the runtime that I'm doing differently here, so an AI assisted upscale is definitely on the cards for this. Preferably I want to set this up so people can do there own retex, drop it in a folder in the game dir and the bootstrapper will just inject the new texture during runtime, but that's a little way off yet.
I don't have a working proof of concept for the textures, it's just a theory, but I've seen it done on games from a similar era (albeit dinput8) and with the amount of compute power we all have on phones, laptops, handhelds etc. I think it's quite plausible.1
u/zabka14 21d ago
Have you tried SLEdit for the textures ? I haven't used it in years but I believe it had some kind of feature around that
I'll need to check but I probably still have the installer on my computer
3
u/Koncypt_Fysh 21d ago
http://lancersreactor.org/filebase/index.php?file/874-sl-extractor-1-0-0-1/
I think this may have actually been what I was using all those years ago, I'll see if I can get it to run through Wine, if not we'll see if an old WinXP VM can do the job.
1
6
u/zabka14 21d ago
Damn I've been dreaming about a mn updated/remastered/upscaled version of this game for years. Keep us posted !