Chris Miles
fb49ce2404
[Rules] Auto Update Rule Notes from Source ( #4891 )
...
* [Rules] Auto Update Rule Notes from Source
* Update rulesys.cpp
2025-05-16 13:38:59 -05:00
Alex King
0e5a38f072
[Bug Fix] Add RULE_STRING to RuleManager::ResetRules ( #4467 )
...
* [Bug Fix] Add RULE_STRING to RuleManager::ResetRules
* Update rulesys.cpp
2024-09-07 18:29:46 -05:00
catapultam-habeo
3003a59955
[Feature] Exempt a zone from IP-limit checks. ( #4137 )
...
* Exempt zone from IP checks
* [Feature] Add Support for String-based Rules
# Notes
- Add support for string-based rules.
# Images
* convert to comma-seperated list
* Forgot to convert the zone to a string
* Update lua_general.cpp
* fixed rule name
* use the local string methods instead
* I think this will work as desired without the extra condition
---------
Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
2024-03-01 23:11:34 -05:00
Aeadoin
f752b57a55
[Cleanup] Cleanup uses of insert/push_back when a temp object is used. ( #3170 )
2023-04-03 16:45:01 -04:00
Aeadoin
31ede355a8
[Cleanup] Cleanup excessive type casting: string -> char * -> string ( #3169 )
...
* [Cleanup] Cleanup excessive type casting: string -> char * -> string
* [Cleanup] Cleanup excessive type casting: string -> char * -> string
2023-04-01 12:45:16 -04:00
Alex King
2a6cf8c8e7
[Strings] Add more number formatters ( #2873 )
...
* [Strings] Add more number formatters
# Notes
- Adds `Strings::ToUnsignedInt` for `uint32` support.
- Adds `Strings::ToBigInt` for `int64` support.
- Adds `Strings::ToUnsignedBigInt` for `uint64` support.
- Adds `Strings::ToFloat` for `float` support.
- Replaces all `std::stoi` references with `Strings::ToInt`.
- Replaces all `atoi` references with `Strings::ToInt`.
- Replaces all `std::stoul` references with `Strings::ToUnsignedInt`.
- Replaces all `atoul` references with `Strings::ToUnsignedInt`.
- Replaces all `std::stoll` references with `Strings::ToBigInt`.
- Replaces all `atoll` references with `Strings::ToBigInt`.
- Replaces all `std::stoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `atoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `std::stof` references with `Strings::ToFloat`.
* [Strings] Add more number formatters
- Adds `Strings::ToUnsignedInt` for `uint32` support.
- Adds `Strings::ToBigInt` for `int64` support.
- Adds `Strings::ToUnsignedBigInt` for `uint64` support.
- Adds `Strings::ToFloat` for `float` support.
- Replaces all `std::stoi` references with `Strings::ToInt`.
- Replaces all `atoi` references with `Strings::ToInt`.
- Replaces all `std::stoul` references with `Strings::ToUnsignedInt`.
- Replaces all `atoul` references with `Strings::ToUnsignedInt`.
- Replaces all `std::stoll` references with `Strings::ToBigInt`.
- Replaces all `atoll` references with `Strings::ToBigInt`.
- Replaces all `std::stoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `atoull` references with `Strings::ToUnsignedBigInt`.
- Replaces all `std::stof` references with `Strings::ToFloat`.
* Rebase cleanup
* Changes/benchmarks/tests
---------
Co-authored-by: Akkadius <akkadius1@gmail.com>
2023-03-04 17:01:19 -06:00
Chris Miles
2b224d42ad
[Rules] Fix rule updates that affected bot booting checks ( #2841 )
2023-02-06 17:31:50 -06:00
Chris Miles
40d1c33351
[Logging] Logging Improvements ( #2755 )
...
* Console logging improvements
* stderr handling
* Add origination information
* Formatting
* Update zoneserver.cpp
* Update eqemu_logsys.cpp
* Remove semicolon from MySQLQuery log output
* Remove IsRfc5424LogCategory
* Remove no longer used functions
* Remove definition BUILD_LOGGING
* Deprecate categories UCSServer & WorldServer
* Deprecate UCS / World Server / Zone Server categories
* Deprecate Status, QSServer, Normal
* Update login_server.cpp
* Deprecate Emergency, Alert, Critical, Notice
* Deprecate Alert
* Fix terminal color resetting
* Deprecate headless client
* Move LogAIModerate to Detail
* Deprecate moderate logging level for detail
* Update logs.cpp
* Logs list simplify
* Update logs.cpp
* Add discord to log command
* Remove unused headers
* Windows fix
* Error in world when zones fail to load
* Show warning color properly
* Keep loginserver thread log from colliding with other logs during startup
* Deprecate Loginserver category
2023-01-17 21:18:40 -06:00
Michael Cook (mackal)
ee2079ec35
[C++20] Arithmetic on different enums is deprecated ( #2752 )
...
Just do some casts and add some constants to make life easier
2023-01-17 15:21:01 -06:00
Alex King
b1c4e7c23f
[Commands] Cleanup #rules Command. ( #2593 )
...
* [Commands] Cleanup #rules Command.
- Cleanup messages and logic.
- Rewrite all rules logic to use `std::string` and repositories.
* References
* Update rules.cpp
* Strings::Equal and Strings::EqualFold.
* Cleanup.
* Update rulesys.cpp
* Update rulesys.cpp
Co-authored-by: Akkadius <akkadius1@gmail.com>
2022-12-10 18:08:55 -05:00
Chris Miles
f8e7576ae7
[File Paths] Implement Path Manager ( #2440 )
...
* Push up branch for testing
* Path manager
* Tweaks
* Changes
* More path work
* Update paths for eqemu_server.pl
* More path work
* Import and export client files
* Path remove
* More path work
* Update eqemu_config.h
* Fix tests
* Tests disable temp
* Update eqemu_config.h
* Update .drone.yml
* Hook tests back up
* Update main.cpp
* Platform tests
* Fix include
* Use std::filesystem on windows
* Fix IPCMutex name on windows
* std::filesystem changes
* Update path_manager.cpp
* Explicit string cast
* Explicit string cast
* Update path_manager.cpp
* Windows fixes
* Mapped files
* Relative fixes
* Use relative paths off of cwd
* Update Debian image to Debian 11 (updates GCC)
Co-authored-by: hg <4683435+hgtw@users.noreply.github.com>
2022-09-28 04:08:59 -05:00
Chris Miles
dfd8f84cac
[Strings] Refactor Strings Usage ( #2305 )
...
* Initial commit checkpoint
* More functions converted
* Commify
* More functions
* Fin
* Sort declarations
* Split functions between files
* Bots
* Update strings.h
* Split
* Revert find replaces
* Repository template
* Money
* Misc function
* Update CMakeLists.txt
* Saylink
* Update strings.cpp
* Swap Strings::Saylink for Saylink::Create since saylink is coupled to zone database
* API casings
2022-07-14 02:10:52 -05:00
Chris Miles
5b4aeaa457
[Code Cleanup] Remove this-> in code where its implied ( #2088 )
2022-05-01 10:22:09 -04:00
Akkadius
50c266982f
Remove string quotes from integers in mysql queries for faction and rules [skip ci]
2020-05-24 19:21:26 -05:00
Akkadius
fdf2fe71e1
Few more logging changes to test out Github bot functionality [skip ci]
2019-09-17 19:11:45 -05:00
Akkadius
5a600cd7c0
Fix simple log formatting [skip ci]
2019-09-17 19:08:29 -05:00
Akkadius
578fafb485
Fix rule logging
2019-09-16 23:48:32 -05:00
Akkadius
2a18d7cd80
Merge branch 'master' of https://github.com/EQEmu/Server into lsid
2019-09-16 22:11:59 -05:00
Uleat
d0b505f32d
Undefined Behavior fix...
2019-09-16 20:39:05 -04:00
Uleat
9c95d1bfa2
Fix for bad RestoreRuleNotes() query (thanks mackal!)
2019-09-16 20:24:58 -04:00
Uleat
70ad517c14
Fix for linux double free error in RestoreRuleNotes()
2019-09-16 02:18:19 -04:00
Uleat
cf80e594bc
Merge branch 'master' of https://github.com/EQEmu/Server into lsid
...
# Conflicts:
# common/ruletypes.h
# world/net.cpp
# zone/bot_command.cpp
# zone/command.cpp
# zone/zonedb.cpp
2019-09-12 01:54:37 -04:00
Uleat
1990ae970a
Updated 'io_work' per pr page request
2019-09-09 23:28:55 -04:00
Uleat
8673aec9fd
Oops! StringFormat wasn't suppose to make into final
2019-09-06 20:04:08 -04:00
Uleat
96103b09e0
Fix for non-fmtlib related linux build failure
2019-09-05 21:01:47 -04:00
Uleat
c1b48b9931
Updated the rule system to automatically restore rule notes (rule-based)
2019-09-04 22:37:17 -04:00
Uleat
f9536f9621
Updated the rule system to automatically add new rules and remove orphaned entries from the rule values tables
2019-09-03 04:04:05 -04:00
Uleat
7857bc45fb
Excluded runtime modification of expansion-based rules 'World:ExpansionSettings' and 'World:UseClientBasedExpansionSettings'
2019-01-11 05:01:44 -05:00
Akkadius
775b5fcaf1
Mostly done with global base scaling work, dev tooling and various other works
2018-11-04 23:26:34 -06:00
Akkadius
c8389103e3
Few tweaks to rules loading code - broadcast all zones that have loaded when #reloadallrules is used
2018-05-27 23:44:09 -05:00
Akkadius
7aa1d243b0
[Performance] Reworked how all log calls are made in the source, see changelog.txt for more details
2017-04-01 03:51:46 -05:00
Michael Cook (mackal)
60da544d3a
clang-tidy modernize-use-auto
2016-05-25 16:10:28 -04:00
Akkadius
7bf114a0bc
Fix Travis
2015-12-29 06:06:12 -06:00
Akkadius
8b35ae9921
Change how rules are loaded and inherit values
...
- When a custom ruleset is loaded, it will always first look for a value present in the ruleset id for that zone, when it is not present, it will load from the default ruleset instead of immediately falling back to the source value. This is to eliminate the excessive amount of duplicate entries in the rule_values tables
2015-12-29 05:21:27 -06:00
Akkadius
fa872c6030
Some rule code cleanup
2015-12-12 00:37:31 -06:00
Akkadius
f20ff5c6e3
Cleanup of some QueryDatabase references that no longer need auto results
2015-01-19 05:32:34 -06:00
Akkadius
30a351a3b8
Remove Duplicative MySQL Error: Error in ListRulesets query %s: %s
2015-01-19 05:25:36 -06:00
Akkadius
154bd186b1
Remove Duplicative MySQL Error: Error in LoadRules query %s: %s
2015-01-19 05:25:31 -06:00
Akkadius
65e9f571af
Remove Duplicative MySQL Error: Fauled to create rule set in the database: %s: %s
2015-01-19 05:25:24 -06:00
Akkadius
220daed2c8
Remove Duplicative MySQL Error: Error in LoadRules query %s: %s
2015-01-19 05:25:20 -06:00
Akkadius
d8510e7876
Remove Duplicative MySQL Error: Fauled to set rule in the database: %s: %s
2015-01-19 05:25:15 -06:00
Akkadius
3f8926d316
Remove Duplicative MySQL Error: Error in LoadRules query %s: %s
2015-01-19 05:25:05 -06:00
Akkadius
b6587cc9e2
Removal of logsys.h from #include(s)
2015-01-18 04:03:45 -06:00
Akkadius
467b359d0c
Moved all EQEmuLogSys:: enum references used in Log.Out to a namespace 'Logs' for shortening of syntax
2015-01-18 02:20:16 -06:00
Akkadius
c025765283
Renamed DoLog to Out as the aggregate logging function for simplicity of use and shortened syntax of Log.Out
2015-01-18 02:00:15 -06:00
Akkadius
1c048cb1d1
Renamed DebugCategory to DoLog as the aggregate logging function for simplicity of use and shortened syntax of Log.DoLog
2015-01-18 01:54:09 -06:00
Akkadius
e691735a2d
Consolidate 'LogType' Error logs over to 'LogCategory'
2015-01-18 01:30:25 -06:00
Akkadius
7dbde36b03
Rename reference logger to Log
2015-01-18 00:41:18 -06:00
Akkadius
132fbbb0c6
Rename LogDebugType to DebugCategory
2015-01-16 03:09:02 -06:00
Akkadius
6c0e2631dc
Convert rules debugging _log to logger.LogDebugType
2015-01-12 22:29:56 -06:00