heinrich5991
17402cc43f
Rename all variables for strict camel-casing of abbreviations
...
This is the strict version, ID → Id, UI → Ui, except DDNet which stays
DDNet.
This would fix #7750 .
Done using a naive rename script (for bash, use `shopt -s globstar`):
```fish
sed -i \
-e 's/\([a-z]_\?\)ID/\1Id/g' \
-e 's/\([^ ]\)\<UI\>/\1Ui/g' \
-e 's/UI()/Ui()/g' \
-e 's/\<CUI\>/CUi/g' \
-e 's/\([\ta-z.(&]\|[,=|] \)ID\>/\1Id/g' \
-e 's/\<ID\>\([^ ").]\)/Id\1/g' \
-e 's/\<ID\([0-9]\)/Id\1/g' \
-e 's/\<ID\>\( [<=>:+*/-]\)/Id\1/g' \
-e 's/int ID/int Id/g' \
-e 's/\([a-z]_\?\)GPU/\1Gpu/g' \
-e 's/\([a-z]_\?\)IP/\1Ip/g' \
-e 's/\([a-z]_\?\)CID/\1Cid/g' \
-e 's/\([a-z]_\?\)MySQL/\1Mysql/g' \
-e 's/MySql/Mysql/g' \
-e 's/\([a-xz]_\?\)SQL/\1Sql/g' \
-e 's/DPMode/DpMode/g' \
-e 's/TTWGraphics/TTwGraphics/g' \
\
-e 's/Ipointer/IPointer/g' \
-e 's/\.vendorId/.vendorID/g' \
-e 's/\.windowId/.windowID/g' \
-e 's/SDL_GetWindowFromId/SDL_GetWindowFromID/g' \
-e 's/SDL_AudioDeviceId/SDL_AudioDeviceID/g' \
-e 's/SDL_JoystickId/SDL_JoystickID/g' \
-e 's/SDL_JoystickInstanceId/SDL_JoystickInstanceID/g' \
-e 's/AVCodecId/AVCodecID/g' \
src/**/*.cpp src/**/*.h {datasrc,scripts}/**/*.py
git checkout -- src/engine/external
```
I like this option because it presents clear rules.
Still needs fixups because of the naive replacement, I'd do this if we
want this merged.
2024-03-05 15:44:09 +01:00
heinrich5991
05af24a052
Make less headers depend on <base/system.h>
...
Move a couple of trivial type definitions to `<base/types.h>` instead.
2023-12-11 23:52:23 +01:00
heinrich5991
a5b72fef42
Allow antibot to kick people
2023-11-19 14:59:14 +01:00
heinrich5991
28b00892f6
Allow more complex interaction with the antibot via the console
...
Allows the antibot to receive arbitrary console commands.
2023-11-19 04:41:56 +01:00
heinrich5991
84948adad1
Allow antibot to record data into teehistorian
2023-08-25 14:26:09 +02:00
heinrich5991
05f2c1e43f
Hand the client IP addresses to the antibot module
2023-01-11 01:35:50 +01:00
Dennis Felsing
f03cb08150
Merge pull request #3961 from fokkonaut/pr-antibot
...
Add target clientid to antibot OnHammerHit
2021-12-19 19:33:56 +01:00
heinrich5991
bce74cd1c3
Properly export antibot DLL symbols on Windows, this time for real
...
0750ae0fbd
was missing the function
prototypes that used `ANTIBOTAPI`.
2021-10-05 17:38:58 +02:00
fokkonaut
acaf4b8fcf
Increase antibot abi version
2021-07-27 12:50:14 +02:00
fokkonaut
e30db2bf29
Add target clientid to antibot OnHammerHit
2021-07-21 22:28:59 +02:00
def
2cb3c575f5
Merge master into pr_use_cpp
2021-07-04 16:09:20 +02:00
heinrich5991
fe082b9a6a
Allow the antibot to get more insight into the network
...
E.g. allow it to see the messages the server sends.
2021-06-24 20:32:41 +02:00
Jupeyy
a663799188
uint64 -> uint64_t, int64 -> int64_t
2021-06-24 17:19:17 +02:00
heinrich5991
0750ae0fbd
Properly export antibot DLL symbols on Windows
2021-06-22 22:51:49 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
def
0bac9f0de8
Manual preparation for cleaner clang-format
...
Also include what you use explicitly
2020-09-26 21:41:01 +02:00
Learath
416cb37000
Send Sixup information to antibot
2020-07-01 21:09:58 +03:00
heinrich5991
457c4db964
Some antibot fixes
2020-05-16 00:39:17 +02:00
Learath
eacc56059b
Keep ticks going
2020-05-15 19:29:34 +03:00
Learath
5e02bb5a23
Extend antibot interface
...
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-05-13 23:39:40 +03:00
heinrich5991
a3163c5b9c
Add support for dynamically loading an antibot module
...
Support for this feature is turned off by default. This feature allows
to integrate with noby's anticheat feature.
2020-03-11 01:58:50 +01:00