r/linuxquestions 22h ago

Support Noob needs help creating linux programs

I am posting this reluctantly because reddit is a toxic mess most of the time, but two hours of research and I am no closer to an answer. If this is the wrong place to ask please aim me.

I am about 6 months into using Bazzite Linux and decided to make a program for content generation for a game (does not matter for my question but for context its a program to either randomly or psudeo-randomly produce a custom planet for the game space engineers) I want to make this tool available if/when I finish so leaving it a python script (I am well aware the unholy pain converting that to c++ will be) is not going to be a good way to share it.

The problem is that while I know and have compiled stuff to exe files for windows, before I switched, I do not know anything about doing that for linux. Can anyone aim me at the noob resources for that?

I started making it in py half to teach myself py half to see if I could, I got far enough in that I stopped to think and now I need help finding the off ramp.

Edit: Thank you all for the help! I am just going to stick to python and share that when I am done.

11 Upvotes

20 comments sorted by

View all comments

1

u/erroneousbosh 21h ago

Looking at the web page for Space Engineers (I've never played it), it looks like the game is scripted in C# - so why not learn that? Now you can write your tool and you can write scripts for the game.

If I was going to do that I'd take a look here: https://ubuntu.com/developers/docs/tutorials/dotnet-use/

You might also look into Lua which is kind of designed as a language for scripting other software. It's used I think for Roblox (haven't played that either) but I've used it to script Wireshark, DaVinci Resolve, and a couple of tools I've written myself.

Don't worry about speed for now. If your Python code is too slow, see if you can work out ways to speed it up like moving complex calculations out of loops if possible.