[Singleplayer] Server, RT4 Client, master branches, scripts, and Desktop/Start launchers on Windows/Linux/FreeBSD

Write and post guides here (skill guides, etc)
User avatar
Espionage724
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 times
Contact:

[Singleplayer] Server, RT4 Client, master branches, scripts, and Desktop/Start launchers on Windows/Linux/FreeBSD

Post by Espionage724 »

Windows: Linux: FreeBSD: 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!
  • Uses latest sources from master branches for 2009Scape-Server and RT4-Client
  • Latest dependencies possible
  • Server confs tailored for 1:1 "Jagex-like" authenticity
  • Compatible scripts (CMD/.bat, Bash, sh)
  • Integrated Desktop Launchers (XDG-compliant) and Start Menu shortcuts
  • High DPI launcher (2x scale)
  • Easy save data back-up/restore/archive (tar player .json)
Windows Notes: Linux Notes:
  • GUI terminals use ptyxis which Fedora's likely the only mainstream using that (gnome-terminal and kgx drop-in; FreeBSD notes use xfce4-terminal)
FreeBSD Notes:
  • For HD I used JOGL from ports, which was built for JDK 8 (SD works on newer Java fine)
I'm interested to hear any improvements that could be made and feedback! :D I have a pic album of my progress here.

Image Image
Last edited by Espionage724 on Sat Jan 18, 2025 10:53 pm, edited 15 times in total.
User avatar
downthecrop
Staff
Posts: 39
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
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 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: 674
Joined: Wed Aug 10, 2022 11:48 pm
Location: Draynor Village
Has thanked: 89 times
Been thanked: 136 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
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 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
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 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
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 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!
User avatar
Espionage724
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 times
Contact:

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

Post by Espionage724 »

Updated my Linux notes!
Changes:
  • Using Adoptium Temurin Java 11 on Fedora for Server (RT4-Client uses system-wide 21+)
  • mvnw instead of build script (old vs new), and gradlew --no-daemon use
  • Disabled Animation smoothing/tweening (post)
  • RT4 cache folder override (Fedora had it in /tmp which wiped preferences on reboot)
  • RT4 FPS override (for vblank_mode=3/compositor handling)
  • Updated desktop icon launcher names/ordering
Image

Windows is also looking pretty good! (notes)

Image
Last edited by Espionage724 on Sat Jan 04, 2025 6:37 am, edited 2 times in total.
User avatar
Red Bracket
Retired Staff
Posts: 396
Joined: Thu Aug 11, 2022 7:18 am
Location: Varrock West Bank
Has thanked: 463 times
Been thanked: 119 times
Contact:

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

Post by Red Bracket »

Does the RT4 client not have issues post Java 11 (like the Lummy bridge being invisible)? Iirc this was why the launcher uses Java 11
User avatar
Espionage724
Froob
Posts: 42
Joined: Thu Oct 31, 2024 7:02 am
Has thanked: 31 times
Been thanked: 21 times
Contact:

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

Post by Espionage724 »

Red Bracket wrote: Wed Jan 01, 2025 6:15 am Does the RT4 client not have issues post Java 11 (like the Lummy bridge being invisible)? Iirc this was why the launcher uses Java 11
I haven't noticed any issues in-game (gray bridge from Castle to Al-Kharid gate and wooden one above it appears fine SD and HD).

Edit: Shortly after this post I saw a screenshot posted on Discord (iirc under in-game media) showing a glitched-looking partially transparent bridge in Lumbridge; it sounds like it matches the description for >11 but I haven't seen anything like that.
Post Reply