[Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Write and post guides here (skill guides, etc)
Post Reply
User avatar
Espionage724
Noob
Posts: 23
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 23 times
Been thanked: 15 times
Contact:

[Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Espionage724 »

Uses the latest sources from git master branches for 2009Scape Server and RT4 Client, builds them with the latest tools, and scripts for save data backup and client/server updating tied to a desktop launcher! Tested on Fedora Workstation 41.

The idea is to casually play single-player and easily back-up your save after sessions, while having access to the latest source code all conveniently! I prefer using system packages, and particularly following the updates of the OS (Fedora with Java 21) vs using specific versions or bundling with a Flatpak.

Right-click options to:
  • Update the (RT4) game Client
  • Update the Server
  • Launch the Server (in separate Terminal)
  • Back-up Save Data (tar's player .jsons)
  • Launch RT4 game client with High-DPI scaling (looks good for me at fullscreen 1080p)
  • Links to my Client and Server notes (to check for any updates I do)
There's light Bash usage, the desktop launcher is XDG-compliant, and I imagine should mostly work fine on other distros with minor tweaks! (it's likely Fedora 41 is the only one using ptyxis Terminal; kgx/gnome-terminal should drop-in, and other Terminals like xfce4-terminal have minor syntax differences)

I'm also interested to hear any improvements that could be made and feedback :D I'm mainly aiming for a 1:1 no-frills 1x "Jagex-like" experience, and made some assumptions with that with some worldprops/defaults.conf settings.

On my Linux notes are also links to Windows and FreeBSD set-ups! I'll reference them a bit more in this post eventually, but the notes work now! 2009Scape localhost server notes available on Windows, Linux, and FreeBSD :D
Last edited by Espionage724 on Wed Nov 27, 2024 12:32 am, edited 4 times in total.
User avatar
downthecrop
Staff
Posts: 38
Joined: Thu Aug 11, 2022 10:37 am
Location: twitch.tv/downthecrop
Has thanked: 17 times
Been thanked: 22 times
Contact:

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by downthecrop »

Rt4 has an image in the resources here https://gitlab.com/2009scape/rt4-client ... type=heads

It's small size makes it a bad dock icon on systems that have a large dock like gnome/osx so making a larger 1024/1024 is probably a good idea.
Image
User avatar
Espionage724
Noob
Posts: 23
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Espionage724 »

downthecrop wrote: Sat Nov 02, 2024 11:19 am Rt4 has an image in the resources here https://gitlab.com/2009scape/rt4-client ... type=heads

It's small size makes it a bad dock icon on systems that have a large dock like gnome/osx so making a larger 1024/1024 is probably a good idea.
Thanks!

I figured Saradomin Launcher specifically chose that icon and wanted it distinctive to their launcher, but that icon on RT4 and commit implies it's a general star icon and probably fine to use in-general for 2009Scape?

I updated my RT4 Client notes with that icon! (diff)
User avatar
Ceikry
Site Admin
Posts: 663
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 88 times
Been thanked: 135 times

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Ceikry »

skillcape_perks = true
runecrafting_formula_revision = 581

in your config, if you want jagex-like you will have to set perks to false and formula revision to 530.

I'm also personally not a fan of the defacto stripping of 2009scape from the motd and world name, it seems unnecessary and imo only serves to rob recognition away from the project (in the theoretical situation where your scripts became widely adopted.) If someone wants to change it, they can, but the default should probably inform people of what they are using.
Nerds
User avatar
Espionage724
Noob
Posts: 23
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Espionage724 »

Ceikry wrote: Sun Nov 03, 2024 5:58 am skillcape_perks = true
runecrafting_formula_revision = 581

in your config, if you want jagex-like you will have to set perks to false and formula revision to 530.

I'm also personally not a fan of the defacto stripping of 2009scape from the motd and world name, it seems unnecessary and imo only serves to rob recognition away from the project (in the theoretical situation where your scripts became widely adopted.) If someone wants to change it, they can, but the default should probably inform people of what they are using.
Thanks! I was thinking with the name to differentiate it from the live 2009Scape server, but trying "2009Scape (localhost)" had it clip the name on the in-game Friends List; "RS (localhost)" was short enough to fit :p

Edit: Figured out something! "2009Scape (::1)"
User avatar
Espionage724
Noob
Posts: 23
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Espionage724 »

Does anyone happen to know how 2009Scape would or might run on FreeBSD 14.1 with a similar set-up? I tried 2004Scape and ran into node/npm issues.

It generally looks like it'd be fine as long as stuff builds through Java, but I'll give it a go within a few days :D
User avatar
Espionage724
Noob
Posts: 23
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 23 times
Been thanked: 15 times
Contact:

Re: [Singleplayer] Server, RT4 Client, master branches, scripts, and desktop launcher on Linux

Post by Espionage724 »

Works on FreeBSD 14.1!

Image

I can't seem to get HD to work, but I'll look closer at errors later (first was something about tmp dir, next was jogl not having freebsd but copied some libs from freebsd's pkg but still didn't work) Got it!
Post Reply