MelgMKW / Pulsar

Pulsar is a Mario Kart Wii Kamek-Based engine to create CT distributions
MIT License
32 stars 7 forks source link

Linux build #1

Open Riddim-GLiTCH opened 8 months ago

Riddim-GLiTCH commented 8 months ago

Hello there, I was wondering if there is any plans on making this work natively on linux? I have made it my goal to avoid Windows as much as possible and I am not expecting this program to play well with Wine.

Update: I've tested the program on Wine and am not able to get it to start. I did the usual troubleshooting; Installing pre-reqs, trying on different versions of Wine, etc... No Dice.

MelgMKW commented 8 months ago

Hello, Visual studio (as in WPF) allows me to target a given framework, but I do not have a Linux build on hand, and right now I do use windows specific features (most notably everything related to images is done via a windows only C# class). I don't know how reliable that is, but you could give it a try and see if that launches. Assuming it does, I'll look into how to perform the windows-only operations on linux too.

The attached file is targeting linux-x64 Pulsar Pack Creator Linux targeting.zip

pixlxip commented 7 months ago

The Linux build doesn't seem to work for me, and exits with this error:

You must install or update .NET to run this application.

App: /home/pixl_xip/Downloads/Pulsar.Pack.Creator.Linux.targeting/Pulsar Pack Creator
Architecture: x64
Framework: 'Microsoft.WindowsDesktop.App', version '7.0.0' (x64)
.NET location: /home/pixl_xip/.local/dotnet

No frameworks were found.

Learn about framework resolution:
https://aka.ms/dotnet/app-launch-failed

To install missing framework, download:
https://aka.ms/dotnet-core-applaunch?framework=Microsoft.WindowsDesktop.App&framework_version=7.0.0&arch=x64&rid=fedora.39-x64

I have tried installing .NET frameworks, but to no avail. I think it's because it depends on Microsoft.WindowsDesktop.App, which sounds Windows-only, sadly.

However, the app seems to work just fine in WINE: Screenshot from 2024-02-28 19-22-47 I will continue testing, but so far, the text seems to be a big problem in some places in here. Text anti-aliasing is already a problem of WINE, so you needn't worry. Try tinkering around in winecfg, if you are following. You will also need to install .NET 7.0 Desktop Runtime (v7.0.16) in the WINE environment, which you can do by clicking something along the lines of "Install" when you first launch Pulsar Pack Creator, it will open in a browser (it may not download automatically), and just run the installer in WINE, and go through the steps, then reopen Pulsar and you should be good to go!

pixlxip commented 7 months ago

After putting together tracks and clicking the "Build Full Pack" button, I get this error: image I do not know if installing Cygwin in WINE will solve the issue, but I'll try nevertheless.

Riddim-GLiTCH commented 7 months ago

I have yet to attempt to compile a build myself, due to events outside of my control. I will take a look at it later today, and report my findings here.

However, the app seems to work just fine in WINE:

Which version of WINE did you use, and is it on the AUR? I have many different versions of WINE installed on my machine and none of them seemed to want to launch the software correctly. I wonder if maybe I just didn't use the correct version of WINE.

pixlxip commented 7 months ago

Hello! I was using WINE from the Fedora repos. It is version 9.1 (staging). Did you make sure to install the .NET Desktop runtime? Also try installing wine-mono. I'll try making an Arch VM today to figure out what you need.

Riddim-GLiTCH commented 7 months ago

Thank you, if it helps, I am on Garuda linux. I'll try again with this knowledge and see what happens.

pixlxip commented 7 months ago

So it seems that WINE does not like the VM, and spits out a whole bunch of OpenGL errors, so I will now try using Distrobox with an Arch box. Maybe that'll help, because it has access to a physical GPU?

Riddim-GLiTCH commented 7 months ago

Thank you, if it helps, I am on Garuda linux. I'll try again with this knowledge and see what happens.

I've tried for a while now, and I don't seem to be able to replicate it functioning. I will later try to compile a build with linux targeting. But I am not expecting much out of it, as I struggle a lot with understanding compilers.