Page 1 of 1

raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 00:00
by intense
I have built from source open ttd using cmake for raspberry pi 400 (pi 4b 4gb in a keyboard)

it works fine with the switches for release version

however it opens as OpenTTD norev0000

So I cannot play multiplayer due to version mismatch
I would like to rectify this

Should I have used different source code?

New to building / compiling i guess I've used the 'latest' source and not the 'release'?

or should I have specified a version number

Currently running a single player game 2k by 2k map
with 13 trains using zbase graphics at 720p okay.. dropped framerate to 30fps

the video is the part struggling slightly game speed seems good simulation rate solid at 33.33fps htop gives 50% max on 1 core are 3 cores minor usage and cpu temp around 42 degrees c
Still very playable but not sure how video usage will scale with more players and more infrastructure

running better than expected to be fair

Any Help appreciated

Thanks

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 00:08
by intense
2021-10-15-010333_1280x720_scrot.png
(617.24 KiB) Not downloaded yet
screenshot

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 08:47
by jfs
How did you get the source code?
Did you download an archive file? Did you check it out from git?

Part of the CMake build process is detecting which version is being built. That first check if it's inside a git repository, and if it is then it uses an appropriate tag name or branch name as the version name. If it isn't inside a git repository then it looks for a file describing the version number, that should be included in all source code archive downloads.

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 09:20
by intense
Thanks for the reply

i downloaded the source from here..

https://github.com/OpenTTD/OpenTTD

clicked the green code button and download zip..

extracted the zip, added a build directory to the extracted folder
2021-10-15-101945_1280x720_scrot.png
(171.38 KiB) Not downloaded yet

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 09:40
by Taschi
Then you should try doing a proper git clone instead - it's not hard and there are many tutorials.

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 10:11
by intense
Thankyou

I see you say their are many tutorials for a git clone, could your kind self or someone point me to a tutorial for a proper git clone that should work?

Building from source takes a while on the pi as is.. if I can do it just the once and get it right that would be awesome

Many Thanks

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 10:50
by jfs
Or download the source archive from the website:
Stable release (currently 1.11.2)
Beta/RC version (currently 12.0-RC1)
Nightly versions

They contain the version stamp file that will make it have the right network version string.

You'll want the "Sources (xz/lzma archive)" file, under the Developer files section.

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 12:16
by intense
jfs wrote: 15 Oct 2021 10:50 Or download the source archive from the website:
Stable release (currently 1.11.2)
Beta/RC version (currently 12.0-RC1)
Nightly versions

They contain the version stamp file that will make it have the right network version string.

You'll want the "Sources (xz/lzma archive)" file, under the Developer files section.
Thankyou - this worked like a charm for stable release..
About to join btpro quick goal temperate as 'raspberry pi400 test'

Thankyou for your assistance

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 16:58
by intense
Not sure if this is expected behavior

But disabling hardware acceleration seems to make no difference

Does this mean that OpenTTD is not using the GPU in the RiPi4?

it would be nice to run at 1080p...

Other than running at 720p 30fps it worked great for a quick 2hr game on btpro

Many Thanks

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 17:22
by intense
Anything over 720p and mouse becomes very laggy unplayably so

Maybe just reached the limit of the hardware lol

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 15 Oct 2021 18:05
by Taschi
intense wrote: 15 Oct 2021 17:22 Anything over 720p and mouse becomes very laggy unplayably so

Maybe just reached the limit of the hardware lol
I'd wager that things like map size and number of vehicles also has an impact here. But yeah, the Raspi does have its limits, as much as I love it.

Re: raspberry pi 400 (pi 4 - 4gb) build issues

Posted: 16 Oct 2021 02:28
by Eddi
if you hit framerate limits, there's an entry in the ? menu to check which part of the calculation is the slow part.