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.

Raspberry Pi / Finished Game Portability across Raspberry Pi

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 11th Feb 2021 17:41
Will a app game kit game compiled on a raspberry pi 3 run on a Pi 4? I know the current version of AppGameKit won't but maybe a game would.

I'm guessing no but thought I should ask to make sure.

Counterparry
DarkDIRE RPG a roguelike game build with AppGameKit Tier 2
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cymru
Posted: 14th Feb 2021 16:05 Edited at: 14th Feb 2021 16:08
Firstly,

The bytecode.byc can be moved to whatever platform ( I work on Windows using AppGameKit Studio run and then copy the bytecode.byc over to the Pi 3B app folder )

However, it's the PiPlayer that is needed for the Pi4 - you need to recompile the Pi3 player on Pi4 and use that.

There are various forum posts of other users trying the acheive the same.

I did look into this - but due to time constraints I opted to go for SFML on the Pi3 and Pi4 for future commercial developments.

Pity really - you'd think AppGameKit would be better equipped to create a Pi4 Player and doesn't seem very high on their list of priorities.

Regards,
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 14th Feb 2021 17:43 Edited at: 16th Feb 2021 10:14
Yes, use AGKTier2 to compile interpreter_linux found in the apps folder, then replace the Tier1 player, found in Tier1/Compiler/interpreters this
will enable you to run AppGameKit on the RaspberryPi4.

I had an issue with shaders (atleast I think that was the issue), the screen had a green overlay so you couldn't
see your creation in full colour, but if you change line 1841 in AGKShader.cpp from colorVarying = color; to
colorVarying = vec4(1.0, 1.0, 1.0, 1.0); that seems to solve the issue.

I'm also using Emscripten via AGKTier 2.
sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Feb 2021 08:55
Hello,
can you compile the "interpreter/player" for us ?
I've tried it, but I can't get that...
That would be great...

Greetings Sascha
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 16th Feb 2021 10:19 Edited at: 16th Feb 2021 10:19
All you need to do is build the Linux interpreter using AppGameKit Tier2, it's quite easy to do.

Replace the original Tier1 PiPlayer with the player you built using Tier2.

Hope this helps.
sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 16th Feb 2021 20:04
Yes, I've tried that, but I can't really do that.
I gave it up then...
That's why my question is whether you could possibly compile the player for me...

Unfortunately, the original doesn't work on the raspberry 4
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 16th Feb 2021 20:58
Try this:

Assuming you are using Raspbian buster (32 bit).

1) Download AppGameKit 2020.11.16 (Raspberry Pi) (168.72MB) from your account. - unzip to a location of your choice.

2) git clone https://github.com/TheGameCreators/AGKTier2

3) cd AGKTier2

4) make

5) cd apps/interpreter_linux

6) make

If successful you should see a folder called 'build' with LinuxPlayer32, rename LinuxPlayer32 to PiPlayer,
then replace the Tier1 PiPlayer found in Tier1/Compiler/interpreters with your new PiPlayer.

Let me know how you get on.

sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 17th Feb 2021 08:13
My error at nterpreter_linux

make:

mkdir -p build/obj32
g++ -L../../platform/linux/Lib/Release32 -static-libstdc++ -static-libgcc build/obj32/Core.o build/obj32/interpreter.o build/obj32/ProgramData.o -o build/LinuxPlayer32 -static-libstdc++ -static-libgcc -Wl,-Bstatic -lAGKLinux -lglfw3 -Wl,-Bdynamic -lGL -lXt -lX11 -lXxf86vm -lXrandr -lpthread -lXi -lXinerama -lXcursor -lopenal -ludev -ldl -no-pie
/usr/bin/ld: -lglfw3 kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make: *** [Makefile:40: AGKPlayer] Fehler 1
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 17th Feb 2021 09:19 Edited at: 17th Feb 2021 09:23
sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 17th Feb 2021 11:33
So I tried everything... but it just doesn't work...
When I try to compile the GLFW I get an error message: missing Doygen_Executable...
I give it up. I have already reinstalled x thinks per apt-get...
The AppGameKit libs I get it compiled...
Only the GLFW stuff, unfortunately does not work....
I feel like it's not going to work on the raspberry 4....
tboy
11
Years of Service
User Offline
Joined: 1st Jan 2013
Location: UK
Posted: 17th Feb 2021 20:35
missing Doxygen executable means you don't have the doxygen document builder installed.

if you want to install it:

sudo apt-get install doxygen

If you want to build GLFW without documentation you could try to disable
it in CMakeLists.txt.

GLFW builds the docs by default so you can switch it off.

The option below should be on line 24 in CMakeLists.txt, disable this option by replacing ON with OFF.
option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON)

To be honest, just install doxygen if you don't want this hassle.

After you have built GLFW you need to 'make install', if this is successful then build AGKTier2 then the interpreter.

Hopefully this helps.

sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 21st Feb 2021 13:43
Ok it compile...

But the error all so :


mkdir -p build/obj32
g++ -L../../platform/linux/Lib/Release32 -static-libstdc++ -static-libgcc build/obj32/Core.o build/obj32/interpreter.o build/obj32/ProgramData.o -o build/LinuxPlayer32 -static-libstdc++ -static-libgcc -Wl,-Bstatic -lAGKLinux -lglfw3 -Wl,-Bdynamic -lGL -lXt -lX11 -lXxf86vm -lXrandr -lpthread -lXi -lXinerama -lXcursor -lopenal -ludev -ldl -no-pie
/usr/bin/ld: -lglfw3 kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make: *** [Makefile:40: AGKPlayer] Fehler 1

How i install the lgfw3 and how i can find it...
sdl
AGK Developer
11
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 21st Feb 2021 14:28 Edited at: 21st Feb 2021 14:28
OK....

i have not read the "make install"

Ok many thanks... It runs.... But ist not really fast...
Yeshu777
4
Years of Service
User Offline
Joined: 26th Feb 2020
Location: Cymru
Posted: 21st Feb 2021 22:28
Evening..


Thanks for the clear instructions tboy, followed them and all working on my Pi4.

Diolch!

Login to post a reply

Server time is: 2024-04-20 11:57:02
Your offset time is: 2024-04-20 11:57:02