1206 Commits

Author SHA1 Message Date
Thomas Debesse
a8bb96bb81 add a color_flags entry in games.xml 2018-03-28 02:45:22 +02:00
Thomas Debesse
bbfdb6e4f6
Merge pull request #206 from illwieckz/games
A bunch of game updates
2018-03-27 23:55:23 +02:00
Thomas Debesse
427538f3f6 better-looking teeworlds support 2018-03-27 23:47:36 +02:00
Thomas Debesse
d4f46dd036 add Quetoo game
it's a Quake 2 derivated multiplayer game:
http://quetoo.org/
2018-03-27 23:47:36 +02:00
Thomas Debesse
dba4c7efe7 write xpm list at build time 2018-03-27 23:47:36 +02:00
Thomas Debesse
ffcaa6ab27 sync qstat.cfg with qstat 2018-03-27 23:47:36 +02:00
Thomas Debesse
975c142f77 some COD: UO fixes 2018-03-27 23:47:36 +02:00
Thomas Debesse
f47f793f37 extract master server list from source.c (as masters.c) 2018-03-27 23:39:31 +02:00
Thomas Debesse
5a4cf1c1c8 add D-Day: Normandy game
it's a Quake2 mod that is now standalone:
https://github.com/PowaBanga/DDaynormandyFPS/
2018-03-27 23:39:31 +02:00
Thomas Debesse
94ca6cbcb6
Merge pull request #205 from zturtleman/colorcodes
Accurate Quake 3 color code removal
2018-03-27 23:37:15 +02:00
Zack Middleton
e305fb303e Accurate Quake 3 color code removal
Make Quake 3 remove all sequences of ^ followed by a character other
than ^ to match the engine behavior. This is required for Wolfenstein:
Enemy Territory servers as people use any character (such as ',').

Add a new color flag COLOR_QUAKE3_NUMERIC for games that expect only
^[0-9] to be removed.

Add a new color flag COLOR_QUAKE3_ALPHA for ioquake3-based games that
(combined with COLOR_QUAKE3_NUMERIC) expect only ^[0-9a-zA-Z].
2018-03-26 17:55:59 -05:00
Thomas Debesse
e1d1abec4b
Merge pull request #204 from illwieckz/colorcode
Remove unused ^P000o Unvanquished color code
2018-03-23 00:28:10 +01:00
Thomas Debesse
303245a27e Remove unused ^P000o Unvanquished color code
See 6d46b4d84e (commitcomment-28224665)

That Unvanquished P000o color code was implemented from a documentation this now gone, and I'm not able to find any implementation of this in both initial commit and latest commit of Dæmon engine, neither in XreaL nor ET:XreaL codebase. So if it ever existed one day, it never left that tree and was deleted before being used. I will just drop it. If someone needs it one day, this code will remain in git history. Unvanquished/Daemon now uses Xonotic notation for RGB color codes.

Note that if that could would have to be reverted because it was found a game was making use of them, that since [pP] is part of [a-zA-Z] and because Unvanquished also support Quake3 color codes, the Quake3 color code filter would have to be moved after the Unvanquished one.
2018-03-23 00:25:09 +01:00
Thomas Debesse
ecb165f246
Merge pull request #203 from illwieckz/gamesh
also write server_type enum from games.xml, avoid GAMES_TOTAL ambiguity
2018-03-22 23:59:40 +01:00
Thomas Debesse
710d34c4a0 use UNKNOWN_SERVER everytime there is GAMES_TOTAL
GAMES_TOTAL is equal to UNKNOWN_SERVER and the GAMES_TOTAL name
is ambiguous because people can believe it's the amount of games
including UNKNOWN_SERVER.

Using UNKNOWN_SERVER instead of GAMES_TOTAL makes explicit that
a code like that is listing every games except the unknown one:

	for (i = 0; i < UNKNOWN_SERVER; i+)
2018-03-22 23:34:14 +01:00
Thomas Debesse
de8676e758 also write server_type enum from games.xml
Automatically generate the server_type enum from games.xml
to reduce hand-written code and avoid sneaky sorting errors
2018-03-22 23:34:01 +01:00
Zack Middleton
a62038a319 Fix format string is not a string literal warnings 2018-03-21 00:25:59 -05:00
Zack Middleton
a09feb5ddd Fix unescaping Unvanquished ^P###o color codes 2018-03-21 00:23:21 -05:00
Zack Middleton
6d46b4d84e Unescape Quake 3 ^[a-zA-Z] color codes
Maybe GAME_COLOR_QUAKE3 flag should be split for numeric and alpha
depending on what other games support that reuse the flag.
2018-03-21 00:15:35 -05:00
Zack Middleton
6940634c49 Fix infinite loop when unescaping string with ^o, ref #194
If ^ was not considered part of a color sequence the loop would be
stuck and run forever. So don't leave ^ for next time when it was
just checked.
2018-03-21 00:07:13 -05:00
Zack Middleton
f262f35d93 Display error dialog when qstat is missing, ref #179
Fix master source down/timeout/error set in parse_master_output() being
overridden to source up in stat_master_input_callback().
2018-03-21 00:02:52 -05:00
Zack Middleton
e2639deb0e Fix crash if qstat is missing when querying a server, fix #179
In the 'while (current)' loop in stat_servers_input_callback(), the
string list usually has a NULL string (input had newline with no text)
at the end of the server entry. However, there was no NULL string for
the error message when qstat command is not found resulting in a crash.

An alternate way to fix this would be to add a newline to error_msg in
start_qstat().
2018-03-20 22:51:42 -05:00
Thomas Debesse
1f90c8ec7d typo 2018-03-21 02:39:45 +01:00
Thomas Debesse
cc66f7b859
Merge pull request #202 from illwieckz/q2colors
enable q3 colors filtering for q2 strings too
2018-03-21 02:32:54 +01:00
Thomas Debesse
2989b81037 enable q3 colors filtering for q2 strings too
some q2-based games use them
2018-03-21 02:30:26 +01:00
Thomas Debesse
c394ec0bd8
Merge pull request #198 from illwieckz/utmaster
update unreal/ut master server list
2018-03-21 01:15:10 +01:00
Thomas Debesse
3dfb194967 update unreal/ut master server list 2018-03-21 01:11:27 +01:00
Zack Middleton
542a8df899 Fix compiling using gcc 2018-03-20 19:09:25 -05:00
Thomas Debesse
0c815cd3f4
Merge pull request #197 from illwieckz/teeworlds
add initial teeworlds support
2018-03-21 00:45:55 +01:00
Thomas Debesse
0e53a8f986 add initial teeworlds support 2018-03-21 00:45:13 +01:00
Thomas Debesse
448cf1e559
Merge pull request #196 from illwieckz/scripts
update scripts
2018-03-17 23:19:20 +01:00
Thomas Debesse
0dcc9b3fa7 update scripts
- script file extension considered harmful
- adding missing license on scripts
  they are brand new and not covered by GPL
2018-03-17 23:16:48 +01:00
Thomas Debesse
d6dcf1157d
Merge pull request #195 from illwieckz/checkinstall
version computation based on git, add checkinstall helper
2018-03-17 23:03:56 +01:00
Thomas Debesse
9f8d085b4c version computation based on git, add checkinstall helper
- xqf version is now computed at configure time using git tags
- a tool named tools/do_checkinstall is added to easily build a package
  on checkinstall's supported systems
2018-03-17 23:03:04 +01:00
Thomas Debesse
9693aec4da
Merge pull request #194 from illwieckz/colorcode
better color code escaping code
2018-03-17 21:19:08 +01:00
Thomas Debesse
8f01b33404 better color code escaping code 2018-03-17 21:16:33 +01:00
Thomas Debesse
4a9340187e
Merge pull request #193 from illwieckz/levelshot
add reusable has_known_image_format function for levelshot finding
2018-03-17 19:52:37 +01:00
Thomas Debesse
ddbd17683c fix etl home path 2018-03-17 19:49:02 +01:00
Thomas Debesse
bac6a942f7 add reusable has_known_image_format function for levelshot finding 2018-03-17 19:47:12 +01:00
Thomas Debesse
c3fe2ae10f
Merge pull request #191 from illwieckz/dlcache
also look for xonotic map levelshot in data/dlcache
2018-03-17 19:09:05 +01:00
Thomas Debesse
c71ad39a28
Merge pull request #190 from illwieckz/colorflags
more color flags, introduce xonotic color codes
2018-03-17 19:08:53 +01:00
Thomas Debesse
9761d8e382
Merge pull request #192 from illwieckz/translation
make copyright translatable string date-independent
2018-03-17 19:08:33 +01:00
Thomas Debesse
4253acf9d3 make copyright translatable string date-independent 2018-03-17 19:08:15 +01:00
Thomas Debesse
2bceb9d4fc also look for xonotic map levelshot in data/dlcache 2018-03-17 19:05:03 +01:00
Thomas Debesse
fd45d3271f
Merge pull request #174 from XQFTransifexBot/master
Transifex translation update
2018-03-17 03:21:57 +01:00
XQFTransifexBot
9d2cb8fc8c Transifex translation update: sync with newer transifex url
Mode: default
Minimum percent translated: 0
Matched 8 languages
2018-03-17 03:16:09 +01:00
Thomas Debesse
bf3cea9764 more color flags, introduce xonotic color codes
- now use more than one flag to unescape color codes
  this way color escaping can be per-game configured
- also rewrite some flag names to unify the wording
- xonotic RGB color codes are now escaped

Hence, it's now possible to enable:
- GAME_COLOR_QUAKE3
- GAME_COLOR_SAVAGE
- GAME_COLOR_UNVANQUISHED
- GAME_COLOR_XONOTIC
2018-03-17 00:10:13 +01:00
Zack Middleton
187612396f Make Travis CI error on warning, fix #87
Ensures pull-requests don't add warnings.
2018-01-08 01:43:41 -06:00
Zack Middleton
dab048138a Fix gcc/clang warnings and related filter menu logic
* Enable more warnings.
* current_server_filter is unsigned, don't check if less than 0.
* current_server_filter was allowed for 0 (None) but wasn't suppose
  to. The filter menu items are just greyed out (logic issue).
* Some callbacks access a varible but do nothing with it.
* PCX skin loading function returns signed char pointer but is used
  as unsigned char pointer in src/skin.c.
2018-01-08 01:41:18 -06:00
Zack Middleton
3ce4175399 Fix Gtk+ warning when clearing sound in preferences
gtk_file_chooser_set_filename(.., filename=NULL) internally calls
gtk_file_chooser_unselect_all(..) and then
gtk_file_chooser_select_filename(.., filename) which asserts that
filename is not NULL causing a warning.
2018-01-08 00:07:57 -06:00