Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Making games on a Windows PC to run on Linux

Author
Message
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Apr 2021 01:01
Hi all - long time no post... Had some heavy life stuff knock me around for quite a while...

Just wondering... Is it possible to write a game/app on a Windows PC and then output it in such a way that I'd be able to run it as a standalone app on a linux system - specifically a Raspberry Pi.

For clarification, I'm not talking about anything to do with the Raspberry Pi version of AppGameKit - but instead specifically talking about developing entirely on a Windows machine and then outputting a complete, standalone package which can be installed and run on a Raspberry Pi running Linux.

Thanks in advance!
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 16th Apr 2021 01:53
You would need the raspberry PI runtime
PartTimeCoder
AGK Tool Maker
9
Years of Service
Recently Online
Joined: 9th Mar 2015
Location: London UK
Posted: 16th Apr 2021 03:44
as long as the bytecode files are the same format and I see no reason why they wouldn't be then you should be able to package the player, bytecode and media and it *should* work, you will just have to package it yourself.
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Apr 2021 08:41 Edited at: 16th Apr 2021 08:43
Thanks for the responses guys - unfortunately it is that very process you're describing which I need some advice for. I have extremely limited experience using Linux systems. I've been a Windows guy for far too long... Anyone actually gotten this to happen and knows the steps? I'm also jumping back into this after about a 3 year break, so I'm a little hazy on how all this goes and am slowly refreshing myself...
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 16th Apr 2021 10:49
Its def been done, theres been talks about it on discord https://forum.thegamecreators.com/thread/226258 and you will find the discord link

I think they first had a problem with 3d models showing green but I believe they fixed that issue not sure now if it was smerf or xaby who explained the process
to me but to cut the process short you basically get it to emulate windows under rasberry worked the best for 3D i think from memory I want to try it too
I own a pi3B+ and a pi 400 so yes i def want to try



fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 16th Apr 2021 14:24
Wow, emulating windows for it? I might be better off installing Android onto the Pi and then building apps for that... It's for an arcade machine setup, so it'll only ever be 2D apps, and it'll only ever be to run those apps and nothing more.
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 16th Apr 2021 17:30
it may not be emulating as such but there is a way linux can run any windows exes for example the program "wine"
and that was only one of the methods mention it in the general discord channel see what they say im no expert on
linux or rasberry been a windows user myself for too long

fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 16th Apr 2021 21:37
Have you considered using HTML5 for your arcade machine? You can then develop on windows and run on the PI using Chromium.
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Apr 2021 07:16
I had a play with HTML5 but I can already see that in my absence the support of AppGameKit for HTML5 has not improved, and it's just far too restrictive and causes too many issues.

I'm actually kind of surprised how non-standard this is. The Pi is everywhere and I'd have thought there'd be a pretty straightforward output for this by now. Seems a shame to have to do hacky work-arounds to make it happen.
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 17th Apr 2021 07:49 Edited at: 17th Apr 2021 08:14
I completely agree with you, the PI is very popular and a worthy development platform, there are so many things you can accomplish using
a PI and it's only getting better. Honestly, I much prefer using a PI than a windows machine.

For your needs, you want to develop on a windows system then output a standalone package to run on a PI or 'potentially' other platforms.

IMO HTML5 is a perfect fit for this and could remove the headache of cross-compilation.

Have you considered using:

https://www.libsdl.org/
https://www.raylib.com/

with https://emscripten.org/

You could use https://love2d.org/ to run LUA programs, you can develop on your windows system then output a 'LOVE' package
which will then run on any system that has LOVE installed.

Curently, I use a PI 4 with AppGameKit TIER2 (C++) and I output using Emscripten.

You could bypass all of this and purchase a PI to develop your project, not a helpful answer I know but could save you time and effort.
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Apr 2021 09:42 Edited at: 17th Apr 2021 09:54
I'm working with Tier1 so I'm not sure that'll work for me - and I'm not sure learning an entire new language or platform is really what I want to be doing right now. I'm trying to ease back into making games after a rough few years, so familiarity is where I'd prefer to sit for that process.

I do have a Pi - hence wanting to put apps onto it. I managed to install AppGameKit Classic on it but for the life of me can't seem to get it to actually compile or run anything and there is extremely limited information out there on why that might be happening.

I just wanted to be able to develop an app at the comfort of my PC and then be able to just carry it over to the Pi, transfer the files and run the app. Apparently wishful thinking.

Very much thinking the way to do it may be to get Android running on the Pi and then just make APK files.

I appreciate the help, though, thank you
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 17th Apr 2021 13:25 Edited at: 17th Apr 2021 13:40
Sorry if I came across as patronising regarding the "You could bypass all of this and purchase a PI to develop your project, not a helpful answer I know but could save you time and effort" comment.

I like your APK solution, seems a much better way of developing your project.

What Pi do you have?
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 17th Apr 2021 13:43
I've got the Pi 4 Model B. I got a version of Android working on it, but I'm running into an issue where the app just opens up and immediately closes. Fun times. But it's at least installing on the system which is progress from where I was at with Ubuntu
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 17th Apr 2021 14:32 Edited at: 17th Apr 2021 14:33
Have you considered building AGKTier2 then building a Linux Player which you can then
distribute with your media folder and bytecode.byc file ?

https://github.com/TheGameCreators/AGKTier2

I don't know for a fact but I assume you could create your project on your windows system then distribute your project to the PI with your
media folder together with your Linux Player.

To be honest, I don't know the best way forward, but any way forward is fraught with it's own unique issues, I suppose that what makes it fun!
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 18th Apr 2021 09:01
Like I mentioned before, I don't really want to learn a new language, and as far as I know, Tier2 only works through coding in C++.

I'm sure I'll manage to get the Android workaround going in the meantime. Just a bit of futzing.
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 18th Apr 2021 15:38
If you build the linux_interpreter with AGKTier2 you can develop on your windows system using Tier1
and send your media folder (with bytecode.byc) with the LinuxPlayer that is created after the build.

Have a look at this thread for instructions: https://forum.thegamecreators.com/thread/227388
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 19th Apr 2021 06:31
Oooh that sounds interesting...... Thanks for the link. It seems I have a night of experimentation ahead of me!
CumQuaT
AGK Master
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location: Tasmania, Australia
Posted: 19th Apr 2021 09:44
Yeeeaaaaahhhhhh that works a treat!

Boy it took some doing, though. As someone who is NOT a linux user, those instructions required some...... Additional research....... hahaha

But it works, and that's the main thing! Thank you so much for the help!
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 19th Apr 2021 12:19
I'm glad you got it sorted! Nice addition to the original steps, all in one place now.

Login to post a reply

Server time is: 2024-05-03 19:03:57
Your offset time is: 2024-05-03 19:03:57