Jump to content
The Dark Mod Forums

Testing TDM on Linux on Windows 11


joebarnin

Recommended Posts

I've got a Windows 11 machine. TDM players on Linux are running into problems with my mission; it appears these are Linux-specific issues. I'd like to have a Linux install of TDM, to verify these issues (and maybe be able to submit bug reports). What's the best technique for getting a Linux install on my Windows computer? My ignorance of Linux knows no bounds¬†ūüėČ. How do these options look?¬†https://www.windowscentral.com/software-apps/windows-11/how-to-run-any-linux-distro-alongside-windows-11

Thanks!

Link to comment
Share on other sites

I've personally had no issues running Linux Mint in dual boot with Windows 10. Just need to disable secure boot when installing Linux then upgrade to the latest kernel and grub2 then re-enable secure boot. My Windows has its own SSD so your experience may vary.

  • Thanks 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Edit: I don't know how often you want to use Linux, But I see the following options:

  • Having Linux on a vitual environment (Hyper V)
  • Dual booting Windows and Linux.
  • Booting a Linux Live usb-stick and then booting tdm from a seperate Linux partition or harddrive (or maybe from that same usb-stick?). I never tried this, but possibly this is fast enough?

You might need GPU passthrough for decent performance in Hyper V:

https://www.techtarget.com/searchvirtualdesktop/tip/Running-GPU-passthrough-for-a-virtual-desktop-with-Hyper-V

Also you need minimum Windows 11 pro (doesn't work on Home).

 

Btw. I have no experience with Hyper V (because I don't use Windows)

Edited by datiswous
  • Thanks 1
Link to comment
Share on other sites

What you can do is:

  1. Download Manjaro Linux XFCE edition. (XFCE edition has best performance)
  2. Put it on usb-stick (usb 3.0 minimum, otherwise too slow). You can use Rufus for this.
  3. Boot from it, using the Proprietary drivers option in boot menu.
  4. Inside Manjaro linux, go to your Windows drive to the folder with your tdm installation.
  5. Start thedarkmod.x64 (NOT TheDarkModx64.exe)

I tested this and it loads pretty fast.

Edited by datiswous
  • Thanks 1
Link to comment
Share on other sites

16 hours ago, chakkman said:

I'm surprised that there can be OS-specific bugs in a mission. The keyhole peeking is just a script, isn't it? Does it make use of OS specific graphical stuff?

I can't say this about TDM necessarily but I have seen quirks that happen on Linux that don't happen on Windows even with cross-platform software. I was testing some Quake map packs in Linux using the Quakespasm engine, a very popular source port. I noticed a particular map pack was missing music in Linux but worked fine in Windows. I thought it may have been a codec issue, until I discovered the map in question was requesting audio file "track102.ogg" but the actual title of the file was "Track102.ogg" and Linux filesystems are by default case-sensitive. Renaming the file fixed it but man that was some bullshit the end user shouldn't have to deal with.

  • Thanks 1

A word of warning, Agent Denton. This was a simulated experience; real LAMs will not be so forgiving.

Link to comment
Share on other sites

1 hour ago, Xolvix said:

until I discovered the map in question was requesting audio file "track102.ogg" but the actual title of the file was "Track102.ogg" and Linux filesystems are by default case-sensitive.

Indeed, I was already wondering if it's something in the script-code that Linux chokes on and Windows doesn't.

Link to comment
Share on other sites

The most reliable approach is installing Linux natively.
But if you don't want to actually use it regularly, you'll just waste a lot of time and space for nothing.

It is possible to run TDM in virtual machine, but you should check that virtual machine supports at least OpenGL 3.3 on Linux guest (and Windows host). Most of them do not. VMWare is perhaps the only one which does support it.

I currently build and test TDM on Linux inside VMWare.
Here are the instructions: https://wiki.thedarkmod.com/index.php?title=VMWare:_Virtual_machine_with_Linux
With non-default cvar "r_gpuBufferNonpersistentUpdateMode 1" it runs more or less OK performance-wise.

  • Thanks 1
Link to comment
Share on other sites

I can access joebarnin to my PC via VNC ubuntu 22.04 LTS cinamon Desktop 50s vdsl give. only if he can play my dark mod One question is, is there a remote maintenance software that can do this? I don't have anything personal on my PC, just Darkmod

Link to comment
Share on other sites

6 hours ago, Heuli said:

I can access joebarnin to my PC via VNC ubuntu 22.04 LTS cinamon Desktop 50s vdsl give. only if he can play my dark mod One question is, is there a remote maintenance software that can do this? I don't have anything personal on my PC, just Darkmod

Thanks for the offer, but that sounds a bit too complicated. I think I need to decide how to get Linux going on my machine. I'll probably try @stgatilov's idea of VMWare.

Link to comment
Share on other sites

7 hours ago, joebarnin said:

Thanks for the offer, but that sounds a bit too complicated. I think I need to decide how to get Linux going on my machine. I'll probably try @stgatilov's idea of VMWare.

I think my solution of booting from usb-stick is the easiest solution and probably gives best performance.

Edit: I guess I didn't have to state this twice though.

Edited by datiswous
  • Like 2
Link to comment
Share on other sites

4 hours ago, Heuli said:

persistence mod

What are you talking about?

Edit: Ah I see:

Quote

A persistent Live USB allows its users to save data changes back to the USB storage device instead of leaving the information in the system Random Access Memory (RAM). Ideally, in this section, a separate Persistent storage space (persistent overlay) is used with a compressed Live Linux OS.

It's not really important I think if you use the already excisting TDM installation (but starting TDM with the Linux executable) from the Windows drive. If you install TDM (from Linux) on the persistent storage space, it might be slow. But maybe it's not really so bad.

Edited by datiswous
Link to comment
Share on other sites

2 hours ago, chakkman said:

Booting from a USB stick is not performant though. Especially when you plan to play games, that's a bad solution IMO.

No it isn't. I thought that would be the case as well, but in my solution, it only boots the system from usb stick. The game itself is played from the original harddisk. It's really not that slow from personal experience and it uses the original gpu fully. Btw. booting from (usb 3.0+) usb-stick is actually quite fast nowadays, especially if you use a light but capable distro. I think it's best to try that first before going for more complicated solutions.

I get that it might not be best for more serious use, but if you only want to test a couple of Linux bugs, I think it's the best solution.

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 1 reply
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...