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

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

Post Reply
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post 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
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post by intense »

2021-10-15-010333_1280x720_scrot.png
(617.24 KiB) Not downloaded yet
screenshot
User avatar
jfs
Tycoon
Tycoon
Posts: 1749
Joined: 08 Jan 2003 23:09
Location: Denmark

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

Post 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.
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post 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
Taschi
Route Supervisor
Route Supervisor
Posts: 425
Joined: 11 Oct 2014 22:58

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

Post by Taschi »

Then you should try doing a proper git clone instead - it's not hard and there are many tutorials.
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post 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
User avatar
jfs
Tycoon
Tycoon
Posts: 1749
Joined: 08 Jan 2003 23:09
Location: Denmark

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

Post 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.
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post 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
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post 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
intense
Engineer
Engineer
Posts: 7
Joined: 14 Oct 2021 23:39

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

Post by intense »

Anything over 720p and mouse becomes very laggy unplayably so

Maybe just reached the limit of the hardware lol
Taschi
Route Supervisor
Route Supervisor
Posts: 425
Joined: 11 Oct 2014 22:58

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

Post 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.
Eddi
Tycoon
Tycoon
Posts: 8257
Joined: 17 Jan 2007 00:14

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

Post 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.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Google Adsense [Bot] and 8 guests