Commit graph

194 commits

Author SHA1 Message Date
Gunter Labes
f567187dc7
Update server config content
Also keep upper case variable names reserved for env variables and let the server create the control fifo itself.
2024-02-21 00:40:08 +01:00
pentarctagon
ec0f8f9942 exclude versions too old to have all data populated. 2023-11-11 18:29:46 -06:00
pentarctagon
82408b2131 change sorting. 2023-11-08 18:22:24 -06:00
Gunter Labes
6cc717042d
Kill wesnothd when script is killed with INT 2023-11-02 18:41:37 +01:00
Gunter Labes
8788c55874
Run trunk server with SQL debug logging 2023-11-02 18:00:49 +01:00
Gunter Labes
f3c963ca00
Make --threads optional 2023-10-27 22:08:36 +02:00
Pentarctagon
6319401d60 Add new query for MP activity report
This gives a rolling count of how many players have played how many games, which is useful for seeing what player retention for MP is.
2023-08-11 12:24:18 -05:00
Pentarctagon
c1a18e489b Fix comments. 2023-04-21 12:59:53 -05:00
Pentarctagon
a22da2291b
Store side leader information in the database
Fixes #7267
Add new query for getting leader data.
2023-04-21 13:58:17 +02:00
Pentarctagon
8e6df8cd1f Fix incorrect query for selecting new clients by download source.
The old query was:
* Selecting data from 2 months ago instead of 1 month ago for some reason, presumably left over from when I was testing the query out for different time periods.
* Counting non-new players who used a new download source as new players.
2023-04-14 22:32:48 -05:00
Pentarctagon
3f279ba87b Missed updating the comments a while ago apparently. 2023-03-03 14:31:33 -06:00
Pentarctagon
50afb6ead9 column typo. 2023-02-21 13:51:57 -06:00
Pentarctagon
3d7d5dbdbf
Add ability to allow secondary authors to upload an add-on. (#7268)
* Add ability to allow secondary authors to upload an add-on.

The secondary_authors attribute is a comma-delimited list of forum accounts that can also upload updates to an add-on. Secondary authors can't change the primary/secondary authors and can't delete the add-on.

The primary author can also make someone else the primary author by:
* Putting their username in the secondary_authors attribute
* Putting someone else's username in the author attribute
* Uploading the add-on while selecting themselves
This works since they are still (until the upload is done) the primary author in the database, so they are allowed to change the authors list, including in this case.
2023-01-11 10:21:55 -06:00
Pentarctagon
bc26194e5b Add era to faction query. 2023-01-09 09:05:44 -06:00
Pentarctagon
fbeae32002 Rename database column SOURCE to ADDON_ID.
Also rename VERSION to ADDON_VERSION.
2023-01-06 19:59:26 -06:00
Pentarctagon
18d1f235ca Noticed I changed the wrong column but forgot to save the file after... 2023-01-06 10:48:42 -06:00
Pentarctagon
859a56f4c2 Shrink max column length.
Required for the updated primary key - the max allowed primary key length is 3072 bytes which isn't enough when there are three VARCHAR(255) columns and each character uses 4 bytes. The max length of the data in these columns so far is also well under 100 characters.
2023-01-06 10:42:21 -06:00
Pentarctagon
e5023e40db Skip inserting rows that would cause a duplicate primary key error.
The cause is that somehow, during regular play, MP campaigns can end up with duplicate values in the [content] data for each [addon]. A very similar issue was fixed in 6c980d12dc, but there's apparently some other way to trigger it that I haven't been able to reproduce. Since the error itself is harmless, it'll just be avoided server-side to avoid the spurious errors in the server log file.
2023-01-06 10:22:04 -06:00
Pentarctagon
2db4add386 Fix column label name. 2022-09-03 02:22:29 -05:00
Pentarctagon
06b29d460d Add query for new users by download source. 2022-09-03 02:21:37 -05:00
Pentarctagon
135e16e853 Fixup previous renaming. 2022-09-02 22:37:02 -05:00
Pentarctagon
9d5266d624 Add query fetching count of users playing their first game. 2022-08-29 23:27:31 -05:00
Pentarctagon
337894ac7b Store add-on download count in the database.
The idea being that this could then also be included as a sheet in the multiplayer activity report, which would then be an easy way to view add-on downloads over time. This would of course not be especially useful until 1.18, since for 1.17 the database count would be starting at 0 even though existing add-ons would have a non-zero download count.
2022-06-04 11:21:00 -05:00
Pentarctagon
52ad51ab25
Looks like on 1.14 the afterlife bot doesn't always populate client source and version. 2022-05-06 16:41:14 -05:00
Pentarctagon
c9523e809c
Query fixup. 2022-05-06 16:28:40 -05:00
Pentarctagon
0a7ef1edf1
Add SQL to list unique users per day per source. 2022-04-15 10:27:36 -05:00
Pentarctagon
4cae3beea0
Add SQL to list unique users per day. 2022-04-15 09:45:16 -05:00
Gunter Labes
5b3e121798
Fix parameter handling and quoting
Add timestamps to some log messages and custom settings for newer server versions.
2022-03-24 12:28:33 +01:00
Gunter Labes
845f5e5ef3
Update autorevision filename
The file was renamed in 05f9f002.
2022-03-24 11:54:27 +01:00
Iris Morelle
d886914287
Merge changes from update_server2 into update_server 2021-11-28 05:15:03 -03:00
Iris Morelle
6644f2e081
Update update_server to match production 2021-11-28 05:13:44 -03:00
Pentarctagon
ed92ba75fe Add version to connection_history. 2021-04-22 14:56:16 -05:00
Pentarctagon
14107b3ae6 Use the database to store and retrieve login history for the searchlog command.
This allows the history to be persisted across restarts, whereas right now it's lost.
2021-04-16 12:42:35 -05:00
Pentarctagon
edef0c5f33 Add database insert for addon information. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b2429c393 Add validation for the feedback topic id. 2021-03-12 16:12:09 -06:00
Pentarctagon
9b7a958e9a
Add a new query to get faction side count. 2021-03-12 00:27:06 -06:00
Pentarctagon
fa53539f37
Rename query output column 2021-02-26 13:59:30 -06:00
Pentarctagon
5ee08c80fb Add support for asynchronously querying a player's game history for display on the client. 2021-01-16 12:48:07 -06:00
Pentarctagon
0697f31cd3
Apparently I forgot to remove the column comment after ending up not using it. 2021-01-04 18:49:31 -06:00
Pentarctagon
96243ad778 Store content names for game history viewer. 2021-01-02 23:45:45 -06:00
Pentarctagon
e43a0d8848
Update query scripts for new table. 2020-10-27 17:07:56 -05:00
Pentarctagon
d741365325 Move the game content info (scenario/era/modifications) into their own table.
Fixes #5066
2020-10-26 09:51:21 -05:00
Pentarctagon
3c6217fc1c Update MP query scripts to report source add-on and version. 2020-08-17 16:38:23 -05:00
pentarctagon
ba296898d7 Store additional information in the database:
* mp_scenario_addon_id
* mp_scenario_addon_version (host's version)
* mp_era_addon_id
* mp_era_addon_version (host's version)
* active_mod_addon_ids
* active_mod_versions (host's versions)

Forward-port of #4958
2020-07-30 13:17:22 -05:00
Pentarctagon
113a4e0913 Use mariadbpp rather than the mysql C connector.
Reasoning being:
* The result_set and other APIs are nicer to use.
* We use mariadb on our server rather than mysql, so this would minimize the chance of any incompatibilities.
* The mysql C++ connector 1.1 isn't compatible with with c++17 (https://stackoverflow.com/q/47284705).
2020-07-30 13:17:22 -05:00
Pentarctagon
67c169ed80 Add scripts to pull various pieces of information from the MP database.
The intent being that I plan to run these once a month and post the results on the forum.
2020-03-26 14:54:53 -05:00
Pentarctagon
95dc6b5f45 Only store game information once the game starts. 2020-01-21 18:02:28 -06:00
pentarctagon
81e2cae74f Store additional fields in the database.
* Whether the game allows observers.
* Whether the game's replay should be publicly available (currently the same as whether observers are allowed pending the second part of #3909).
* Whether the game had a password set.
* The side's name - this differs from what can be retrieved from USER_ID since it will have the name of any AI used.
2019-10-28 00:40:24 -05:00
pentarctagon
ea90383f1d
Make additional changes to client source handling based on discussion.
Add a "BSD Repository" option.
Add data/dist to .gitignore.
Delete data/dist from git.
Error conditions reading data/dist just set the value to Default.
Remove a leftover TODO comment.
Add description comments for the two new database columns.
2019-10-22 01:14:45 -05:00
pentarctagon
21f9b19120 Also store where the client came from. 2019-10-20 13:57:45 -05:00