ioquake / ioq3

The ioquake3 community effort to continue supporting/developing id's Quake III Arena
https://www.ioquake3.org/
GNU General Public License v2.0
2.34k stars 523 forks source link

Add better directions/error for missing Quake 3 / Team Arena pk3 files #634

Open zturtleman opened 5 months ago

zturtleman commented 5 months ago

This adds better directions for what to do when Quake 3 or Team Arena pk3 files are missing. (Idea inspired by the org.ioquake3.ioquake3 Flatpak's message.)

The files to copy is set based on what files are missing and either a range ("pak3.pk3" through "pak8.pk3") or a list of a pk3s ("pak0.pk3", "pak7.pk3", and "pak8.pk3").

I tested it displayed okay on Linux (zenity), Windows, and macOS. I only took screenshots from Linux.

The error message contains a URL so I made the Windows fatal error dialog "copy to clipboard" option include the error message like Unix-like platform's crashlog.txt.

Existing message when missing all Quake 3 pk3 files: Screenshot from 2024-01-21 15-32-53

New message: Screenshot from 2024-01-21 15-05-05

Steam is (probably still) missing missionpack/pak3.pk3. Using pak[0-2].pk3 would show this message in ioquake3 when launching Team Arena: Screenshot from 2024-01-21 15-12-38

New message: Screenshot from 2024-01-21 15-09-23

zturtleman commented 1 month ago

Note that Zenity allows creating clickable links using HTML That said, in its current state, the text should be selectable already, so it's easy to copy and paste the URL.

ioquake3 doesn't know if Zenity will be used when the message text is set up. Clickable links would be nice but I'll pass on parsing and reallocating error messages. It is selectable to copy, yes.