Commit graph

33 commits

Author SHA1 Message Date
Sakura Akeno Isayeki
d0e5c84a79
docs: Add example links for SQLite, MySQL, & Postgres connection strings
Provides links to example connection string formats for SQLite, MySQL, and Postgres to assist users in configuring database connections more effectively.
2025-05-23 15:07:11 +02:00
Sakura Akeno Isayeki
f2e88cbedc
feat: Add connection strings parameters for databases
Allows specifying complete connection strings for SQLite, MySQL, and Postgres, overriding individual host and credential properties when specified, to provide more flexible database configuration.
2025-05-23 13:47:35 +02:00
Sakura Akeno Isayeki
f0b9424296
style: Correct indentation and formatting
Adjusts comment indentation and aligns property attribute formatting for clarity and consistency in configuration definitions.
2025-05-10 14:55:29 +02:00
Sakura Akeno Isayeki
69b98980f1
feat(db): add Postgres support to configuration
Extends database configuration to support Postgres in addition to existing SQLite and MySQL options.

Includes new settings for Postgres host, database name, username, and password.

Implements a connection builder for Postgres, ensuring proper error handling when connecting.

Updates dependency to include Npgsql for Postgres connectivity.
2025-04-28 15:51:27 +02:00
Lucas Nicodemus
b4968adb7d
Fix typo in config file
Closes https://github.com/Pryaxis/TShock/pull/3052
2025-01-25 22:29:56 +09:00
ATFGK
e46bbe99c0
Pvp with no team (#2851)
* Update TShockConfig.cs

* Update TShock.cs

* Update GetDataHandlers.cs

* Update changelog.md

* Update GetDataHandlers.cs

* Update changelog.md

* Update changelog.md

* Update changelog.md
2022-12-05 22:27:42 -08:00
Luke
0f46b1255a Add WorldTileProvider to tshock config
This allows the tshock tile providers to be switched via the config instead of cli args via tsapi, for environments where the command line args cannot be changed.
2022-11-12 07:28:26 +10:00
SGKoishi
fde43a7730
More i18n
Strings for player kick/ban, anti-cheating and server logs
2022-11-02 13:42:52 -07:00
Lucas Nicodemus
61e36d0abd
Move GiveItemsDirectly config item to tshock config
Due to an issue that stops the SSC config persister thing from working,
I moved the config item that's new back to the config file. I tried
applying the patches from
https://github.com/Pryaxis/TShock/pull/2354/commits but these didn't
actually resolve the issue. I'm keeping the commits here but I'm not
sure they help.

The core problem is this: if you add a new config file item to the ssc
config, the ssc config is overwritten with the default config items
instead of being merged automatically with the new items. This is a
critical issue as it means that SSC is disabled on all servers that had
it enabled and results in "data misplacement" which is alarming enough
to cause users to think they had data loss, which is not ideal.

Until the issue with the SSC config is resolved, I'm not willing or
confident to change it.
2022-10-31 16:18:39 -07:00
Chris
05fe6c905f
Add a little more info to config method descriptions 2022-10-31 16:04:27 -07:00
Chris
53213345b0
Add upgrade to SSC config so we don't overwrite ssc configs anymore 2022-10-31 16:04:20 -07:00
Janet Blackquill
7198a47e82 Add ability for items given to players to be inserted directly into their inventory instead of spawned as an item drop 2022-10-28 15:04:53 -04:00
Lucas Nicodemus
1b306ff39d
Fix SSC dumper not working
Dumper was being called on the wrong thing (the config and not the
settings).
2022-10-18 23:50:01 -07:00
Lucas Nicodemus
fa9717debf
Change dumper to dump to markdown-ish files 2022-10-18 23:50:01 -07:00
punchready
681c6de1f7 add strict STR size checking 2022-07-26 08:24:46 +02:00
AkjaHAsLk1IALk0MasH
8f69c6e767 Created a new field in config. 2021-11-30 20:50:51 +07:00
AkjaHAsLk1IALk0MasH
77032ccbea Renamed value in config 2021-11-30 14:23:49 +07:00
AkjaHAsLk1IALk0MasH
6cec7e71cd Fixed the ability to spawn Zenith projectile with non-original items. 2021-11-28 15:35:50 +07:00
Lucas Nicodemus
9416e8f1e2 Remove DIY password hashing crypto
The old system for hashing passwords and permitting users to select
their algorithm has been deprecated and phased out since 2015. This
removes the remaining functions for hashing passwords to clear the way
for .NET5/6 and for OTAPI 3.

In 211b70ca37, I allowed blank passwords
to upgrade to bcrypt hashes. However, the minimum password length has
been 4 historically for a long time. So I don't actually assume a lot of
users have blank passwords, so I think there are very few, if any of the
old hashes laying around.

So therefore, I think this is pretty much safe to merge.
2021-11-22 10:26:57 -08:00
Lucas Nicodemus
b17c4cfc13 Add support for disabling IP bans by default
Some proxy users find it irritating when their proxy IP is banned by the
ban command. This helps those users find justice in the world.
2021-11-21 14:30:59 -08:00
stacey
d8aa7b0f69
Change RespawnSeconds & RespawnBossSeconds to use default
a value of 0 will use the default time based on selected difficulty
2021-09-13 10:02:03 -04:00
Chris
c3a074336d
Merge branch 'general-devel' into feature/force-character-gamemodes 2021-08-02 20:05:59 +09:30
James Puleo
a40effd55e
Introduce SoftcoreOnly config option to allow only softcore characters
to connect.
2021-07-24 20:22:22 -04:00
stacey
347a23a8bc
Add DisablePrimeBombs to World Settings 2021-07-24 19:55:38 -04:00
Lucas Nicodemus
8cd6bf7d7b Fix failure to apply default config changes
TShock.ConfigFile was deprecated and therefore changes applied in
previous commits were not applied until now.

See:

* f567486c47
* 39147355c1
* 597e403d50
2021-06-12 23:56:23 -07:00
Lucas Nicodemus
da163b80ac Allow operators to disable build permission notices
This commit allows server operators to disable build permission failure
notices. This is because some servers wish to have a "silent" operation
mode where the server doesn't send out these messages to users. This
makes sense, e.g., when the server is a "museum" and isn't intended to
be changed.
2021-06-12 23:53:17 -07:00
Lucas Nicodemus
68ae73ffef Warn players if bypass SSC permission is enabled
If a player has the tshock.ignore.ssc permission, odds are that they may
want to know that their data isn't being saved or not. This change
allows users to be notified if they have SSC data stored in the DB but
they aren't having it loaded due to the aforementioned permission.

This permission causes great confusion, but we can't really change it
because we would break existing setups. This is an easy change that
gives people a reason why they suddenly "have no items."

This new option can be turned off in the config file for SSC if it's not
desired.

This change also modifies some of the log messages so that it's clear
why the SSC save didn't occur for a given player.
2021-05-21 01:16:04 -07:00
Chris
b754f142a1 Change logpath to ./tshock/logs by default 2021-05-14 22:08:32 +09:30
Chris
b5ca015d26 Minor refactor
CheckForMissingFields -> CheckForChanges
anyMissingFields -> anyChanges
2021-01-28 19:43:03 +10:30
Chris
0012bf73da Remove obsolete config options relating to bans 2021-01-28 19:33:52 +10:30
Chris
f87b6156f4 Update config upgrades to be a bit more robust 2021-01-28 19:31:09 +10:30
Chris
50c1b757be Enforce new() constraint on ConfigFile<TSettings> 2020-12-03 17:50:44 +10:30
Chris
a03647ce38 Genericise configurations
This is a breaking change. Enables easy creation of config files without copy/pasting the Read/Write code all the time
2020-12-03 17:42:46 +10:30