Rollercoaster tycoon
-
@quicksilver That is exactly my experience as well just with a different game/source port that I got running earlier on my Pi 3B. Even though it takes time to learn it all, once you have managed to get a better knowledge of understanding how Linux works with compiling and installing you will get the success of it and just feel great for what you have accomplished. ;-)
Just keep on the good work and eventually you will get there. :-)
Your welcome. I will gladly help you out as much as I can. Just let me know.
-
So here are the build instructions for anyone who is interested. This will get OpenRCT2 up and running on your pi 4 (im sure the game can be run on pi 3 as well but you'll need to manually compile a newer version of cmake). The game can be run without a window manager but performance is not as good and there is an issue with the mouse cursor. I will add instructions on how to run through matchbox-window-manager but I will need some peer review with that part because I dont think I have it working 100% correctly.
First step is to install needed dependencies:
sudo apt-get install --no-install-recommends -y cmake libsdl2-dev libicu-dev \ gcc pkg-config libjansson-dev libspeex-dev libspeexdsp-dev libcurl4-openssl-dev \ libcrypto++-dev libfontconfig1-dev libfreetype6-dev libpng-dev libssl-dev libzip-dev \ build-essential make
Next we need to get the source from the repository (change
master
todevelop
if you want bleeding edge version):git clone -b master --depth 1 --recursive https://github.com/OpenRCT2/OpenRCT2.git
Next, we need to compile (this may take a while):
cd OpenRCT2 mkdir build && cd build cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-Ofast -DNDEBUG -mcpu=cortex-a72" make -j4
Now run
make install
this will download required resources (json objects, title sequences) and installs openrct2 under /usr/local by default:make install
OpenRCT2 requires original game files to run, I installed RCT1 (optional) and RCT2 on my windows computer then copied the install directories to
/home/pi/RetroPie/roms/ports/
. Im not sure if there is a better way of doing it or if a different location for the files should be used but this method does work. On first boot of OpenRCT2 it will ask for the location of the game files, or you can input the location manually by editing the config.ini located at/home/pi/.config/OpenRCT2/
To start the game run
./openrct2
from the build directory.This section I need help on
Running the game without the window manager performance will not be as good and the mouse cursor has issues. So what I did was install matchbox window manager, xorg, and x11-xserver-utils:sudo apt-get install xorg matchbox-window-manager x11-xserver-utils
Then I run the game using this command:
xset -dpms s off s noblank matchbox-window-manager & startx /home/pi/OpenRCT2/build/openrct2
However I get an error saying that xset cannot open the display, but the game still boots (im assuming because of the startx command?) I had issues with the game automatically running in 4k mode so I had to force 4k mode off in my
/boot/config.txt/
I also noticed that when running the game this way that you cannot scroll the screen by moving your mouse to the edge of the screen, to work around this you can right click-hold and drag to move the screen around. Im hoping this is an issue because of something Im doing incorrectly (which I am sure I am). So if anyone who knows how all of this x server stuff works I would appreciate some pointers on getting this part to work right.Some pointers for performance: Once the game is up and running I lowered the display res via the ingame options to 720p and increased the window scale to 1.5. I also used "software (hardware display)" as the drawing engine because everything looks a bit clearer/sharper. Uncapping the framerate also makes for a smoother gameplay experience because the default FPS is capped at 40. Also make sure that the games config.ini has proper permissions otherwise changing settings in game wont persist between game sessions.
-
Trying this now, but unfortunately I'm getting an error at step 2.
Fatal: repository '1' does not exist 😔
Hoping you can help @quicksilver 👍
-
@Jste84 sorry about that, there was a syntax error in the command I posted. I fixed it, can you try again?
-
@quicksilver yip will try it again now 👍
-
@quicksilver past step 2... Will let you know how I get on with the build. . Thanks for the guide and help.
This will make my day if it works
-
@quicksilver I'm getting another error... In step 4, it says 100 per cent but I'm getting the following message after.
CMake Error at cmake_install.cmake:48 (file) :
file DOWNLOAD error: cannot create directory
'/usr/local/share/openrct2/title' - Specify file by full path name and verify that you have directory creation and write privileges.Could this be because I've set up the pi4 to use my cloud home as storage. I had problems with save states earlier...
Not sure what to do to fix this. If I use winscp to manually add the directory would that work?
Edit: gone into winscp and can see there is no directory for openrct2 in usr/local/share.
Also moved the directories, done a reset but not seeing anything in ports...
Last thought... I've used the gog versions of the games which are RCT deluxe and rct2 triple pack... Assuming this won't make a difference?
-
@Jste84 try running this from the build directory within the openrct2 directory:
DESTDIR=. make install
-
@quicksilver seem to have got by this now..
But nothing is showing when I go to ports..
-
@Jste84 said in Rollercoaster tycoon:
@quicksilver seem to have got by this now..
But nothing is showing when I go to ports..
Although I'm not sure if that's how I'm meant to open the game?
-
@Jste84 yes this isn't a build script for RetroPie so it won't appear in ports. You'll need to run it from the command line using the commands I posted above. You can also take those commands and put them in a shell script that can be run from emulationstation. Once we have a proper build script set up then it will appear nicely in ES and go through runcommand.
-
@quicksilver said in Rollercoaster tycoon:
@Jste84 yes this isn't a build script for RetroPie so it won't appear in ports. You'll need to run it from the command line using the commands I posted above. You can also take those commands and put them in a shell script that can be run from emulationstation. Once we have a proper build script set up then it will appear nicely in ES and go through runcommand.
Ok... So this will be my silliest question yet @quicksilver ...
So the last step says run openrct2 from the build directory... How do I do that?
-
@Jste84 try this:
startx /home/pi/OpenRCT2/build/openrct2
Or you can also run
./openrct2
from the build directory but without the x window the mouse pointer doesn't work right so I don't recommend running it this way. -
@quicksilver getting this error... 😔
-
Unfortunately this is not my area of expertise. I had a hard time getting startx working correctly and fiddled with some settings to get it working. I don't remember exactly what I did but I believe your issue is a permissions error. I think I had to edit a file and give permission for users to access x server. As you can see from my original instructions this is the part I need help on getting to work right, maybe someone else who knows a little more about this stuff can help.
-
@Jste84 can you go to /etc/X11/Xwrapper.config and edit it so
allowed_users = anybody
I think this is what I had to change to get it to work. Again not my area of expertise, so do so at your own risk. I'm not sure how all this part of it works.
-
@quicksilver said in Rollercoaster tycoon:
@Jste84 can you go to /etc/X11/Xwrapper.config and edit it so
allowed_users = anybody
I think this is what I had to change to get it to work. Again not my area of expertise, so do so at your own risk. I'm not sure how all this part of it works.
@quicksilver when I go into the x11 folder... I don't have an xwrapper.config file....
-
@Jste84 did you install like I mentioned above?
sudo apt-get install xorg matchbox-window-manager x11-xserver-utils
-
@quicksilver yes I have done.. seemed to install without any issues...
Double checked the folder and it's Def not there...
-
@Jste84 sorry I'm out of ideas . :(
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.