mlau
New Member
Posts: 6 Likes: 0
|
Post by mlau on Dec 21, 2022 10:11:39 GMT
Hello,
I've done a quick port of 1.0.0 to Linux / gcc-13; I've resolved all compiler issues but one: there are multiple definitions of certain render functions:
e.g. screen_drawPoint(), screen_clipLineToRect(), etc, which are implemented in both TFE_Jedi/Renderer/RClassic_Float/screenDraw.cpp and TFE_Jedi/Renderer/screenDraw.cpp.
I don't quite yet get how this is supposed to work, can you please shed some light on this? Are the implementations in RClassic_Float/ just copy-paste artifacts?
Thanks! -m
|
|
mlau
New Member
Posts: 6 Likes: 0
|
Post by mlau on Dec 21, 2022 11:02:31 GMT
Ah nevermind, I got it working. Played the first level just fine, sound is broken, no fonts in the briefing list, but I'll debug it.
|
|
|
Post by spacekomet on Dec 21, 2022 12:59:55 GMT
I assume you also don't get the cutscenes... Reason for it is, that filenames in LFD subfolder are all uppercase. Most of them must be lowercase, and a couple of them upper. More about it here: github.com/luciusDXL/TheForceEngine/pull/101. Fixing this, will help with the cutscenes and the fonts. And for the sound, I had to compile it with Pulseaudio support, to get normal sound effects and midi music. Latter however only with software synthesizer running in the background.
|
|
mlau
New Member
Posts: 6 Likes: 0
|
Post by mlau on Dec 21, 2022 13:47:34 GMT
Hm, how about extending the TFE_Filesystem to scan the game folders for the requested file (i.e. readdir(), then do strnicmp() with the requested file and the found ones. The first match is then opened?) Also, how about implementing SDL Audio support instead of RTaudio and RTmidi? I might just do that as a programming exercise... 
|
|
mlau
New Member
Posts: 6 Likes: 0
|
Post by mlau on Dec 21, 2022 22:11:01 GMT
So I just implemented case-sensitive file searching, and it works beautifully. The menu, videos and sound do work (no music yet). It's fully playable with the software and GPU renderer (tried mesa-intel and nvidia).
Grab a patch on top of the 1.0.0 source tree here:
|
|
mlau
New Member
Posts: 6 Likes: 0
|
Post by mlau on Dec 29, 2022 11:45:39 GMT
[...] and midi music. Latter however only with software synthesizer running in the background. Which soundfont do you use? The one I have gave me the most beautiful rendition of the StarWars Theme on a Piano I've ever heard, but it doesn't really fit. Do you have one that gets closer to the real sound? Thank you!
|
|
|
Post by spacekomet on Dec 29, 2022 20:37:02 GMT
For me the only real sound was always Adlib. Newer had any sound card with proper midi support in DOS days.  All together I tried 3 different soundfonts: 0:07 FluidR3_GM.sf2 (comes with fluidsynth) 1:43 Roland SC-55.sf2 (comes with TFE) 3:19 Timbres of Heaven (XGM) 4.00(G).sf2 (can be downloaded here midkar.com/soundfonts/)Here is a comparison: (you can use timestamps in the description to jump directly to the intro for each case) To my (untalented) ears last one sounds the best, however volume must be lowered slightly, because by default is noticeably louder. Closest to the original is probably Roland. PS: I'm not an expert in this, and if there are better soundfonts or better way to play midi music (without dedicated devices of course), please share.
|
|
|
Post by lowspeclinux on Dec 31, 2022 19:28:22 GMT
I have been trying to build this on Xubuntu 22.04. It builds with warnings but I cannot point it at my Dark Forces install. It tells me game source data cannot be found..... The Windows version in WINE works without sound but can see the Dark Forces files gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
|
|
|
Post by lowspeclinux on Dec 31, 2022 19:41:05 GMT
It almost seems to be a case thing. DARK.GOB or dark.gob wont show up in the Game settings Browse menu. It will see DARK.gob then says invalid data path??
|
|
|
Post by spacekomet on Dec 31, 2022 23:06:18 GMT
Do you mean this: In my case browse button didn't open anything. Copy pasting the full path also didn't help.
At the end I had to go into the setting.ini file in TheForceEngine folder (located in Home) and manually change it, like this (with quotes):
sourcePath="/home/user/.wine/drive_c/GOG Games/Star Wars - Dark Forces/"
Because this must be done only once at the beginning, I completely forget about it. Perhaps lucius or mlau could take a look into this and try to improve the user experience.
|
|
|
Post by lowspeclinux on Jan 1, 2023 2:08:38 GMT
Ok...got further. The game now starts, sound effect works and midi music works :-). I put the path in the ini before and it didnt work but does now? Agent Menu issues. And the Pistol is missing?? I can punch guards and get blaster rifle but no pistol start with fist. Cannot load DarkPilo.cfg is in console. On Xubuntu the browse button does browse. I tried on Manjaro browse button did nothing. BTW thanks heaps maybe I should be patient and wait for actual release
Correction: Manjaro is fine just in Xubuntu the pistol is missing and agent menu issues???
|
|
|
Post by lowspeclinux on Jan 1, 2023 3:26:49 GMT
|
|
|
Post by lowspeclinux on Jan 15, 2023 1:07:43 GMT
The Linux3 branch is now working properly on Xubuntu 22.04
|
|