Commit graph

47 commits

Author SHA1 Message Date
turleypol
21577d8e5b
Clang Tidy concat namespaces (#855)
* tidy

* Automated clang-tidy change: modernize-concat-nested-namespaces

* compile test

* fix namespace

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-17 10:30:21 +01:00
turleypol
c882c42a31
misc clang-tidy (#853)
* trigger tidy

* Automated clang-tidy change: modernize-use-equals-delete,modernize-make-shared,modernize-make-unique,modernize-use-constraints,readability-container-size-empty,modernize-redundant-void-arg,modernize-use-emplace

* removed non needed macros

* missed to disable tidy build

---------

Co-authored-by: Clang Tidy <clang-tidy@users.noreply.github.com>
2026-01-16 12:22:43 +00:00
turleypol
c046da4d5a
Moved target/menu members from char to ClientGameData, simplified memory size estimation (#668)
* moved more members from Character to ClientGameData
reordered a few members to reduce padding
added memsize functions for std containers to simplify code

* few more comments
2024-07-28 10:42:47 +02:00
turleypol
76d9c5e9d6
not yet active: handle update range of client. (#440)
* not yet active: handle update range of client.

* allow down to 5 as client view range

* try to secure testclient against racecondition
2021-10-28 23:08:38 +02:00
Kevin Eady
59b0cfdb5a packet handling 2020-03-04 19:21:23 +01:00
turleypol
9cfb4ec5a5 moved pkt headers into network folder 2018-12-30 21:35:54 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turley
6c772dcffc Fixed unreachable code warnings. 2016-12-19 17:22:09 +01:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
Gabriele Tozzi
ff64e3b2b4 Minor: forcing SpinLock to be used only via SpinLockGuard 2016-02-03 06:08:26 +01:00
Gabriele Tozzi
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01:00
Gabriele Tozzi
05b2a3a6bc Buff Bar Support
The buff status is held in a new buffs_ property of Character. It is
modified via Character.addBuff(), Character.delBuff(),
Character.clearBuffs() functions. (Maybe also a readBuffs() function
could be useful in future?). Packets are automatically sent when on
a "when needed" basis.
2015-12-05 09:06:40 +01:00
Gabriele Tozzi
1ab8fd77e4 Added: support for pop-up/context menus
misc/popupmenu.ecl handles the request, SendPopUpMenu()send the menu
2015-09-27 01:10:40 +02:00
turley
b77a13073c corrected several data races 2015-03-14 11:45:14 +01:00
turley
2737393f2a Tried to put all global vars into centralized structures.
Currently plib/systemstate, pol/uvars, pol/ucfg, pol/multi/multidef

Next step should be to split them based on usage, since its currently a bit of include hell...
2014-12-30 14:14:41 +01:00
frozenblit
1f0f7581dd Some more cleanups 2014-11-03 01:29:21 +01:00
frozenblit
fb717e2ef3 Even more cleanups.
Removed stl_inc.h from most of the include files. Still have some 200
files to go. I wish I'm done... someday...
2014-11-01 15:43:45 +01:00
turley
746c08b1dc removed self made singleton code and used call_once.
fixed some memory leaks
added estimateSize for the packet buffer
2014-08-29 16:58:29 +02:00
turley
5e1069dcde added support for latest client mobile incoming pkt.
first version of new animation pkt. created translation entries into animxlate.cfg for definition ob graphic types and conversion between new and old animation.
Needs more testing before documentation.
2014-08-12 13:41:06 +02:00
dsourc
bd3b0a7dbd Added boat smooth move
Fixed npc movement blocks with same master if the ssopt settings allowed moving through
2014-02-25 19:11:53 +00:00
turley
31ee263a45 activated new logging facility 2014-01-18 13:29:38 +00:00
turley
4227fae36d fixed logoff of party leader with enabled RemoveMemberOnLogoff
fixed namespaces and debug build
some code cleanup
2013-12-28 09:51:37 +00:00
turley
99d7dc3037 namespaces...finally :)
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
turley
90f1fc9248 implemented the std mutex 2013-09-13 19:03:25 +00:00
dsourc
e05a49a5c1 Added Support for new map message packet 0xF5 for clients 7.0.13+
This packet supports the new facetXX.mul files and now can use every different realm for cartography maps and sea charts.
     Added    r/w member .facetid for Maps
              This has actually nothing to do with realms, the value is the same as in FacetXX.mul file
2012-04-14 19:03:18 +00:00
turley
01170d18d4 should have ask gcc before...
template specialization needs to be in a namespace
better to use struct/class templates then functions  if you want specializations
2012-02-20 18:13:03 +00:00
turley
4e7e400254 64bit compilation.. 2011-12-23 13:28:38 +00:00
turley
4765f1f0ec some small improvements:
movement code speedup: instead of storing new Mapshape simply store pointers 
reordered some class/structs (data alignment)
Mutex class freebsd compatible
mdump: invalid scope for pointer
some Constructor member reorders for linux
some unsigned < 0 checks removed
some nullpointer checks added
CallOutgoingPacketExportedFunction splitted into critical and noncritical part
npcs now use there boost for movement checks
2011-12-22 19:09:10 +00:00
turley
b751d8f50d ReFactoring:
got really really sick of #defines so added inline functions for pktstuff and added a namespace for it
PktHelper::RequestPacket<EncryptedPktBuffer>(ENCRYPTEDPKTBUFFER);
looks way better then
REQUESTPACKET(EncryptedPktBuffer,ENCRYPTEDPKTBUFFER);
:)
+started codereview
2011-12-14 20:45:31 +00:00
turley
f0683e3b67 got bored: implemented exception safe mutexguard
hopefully fixed a possible crash with invalid useskill pkt
2011-12-03 12:00:56 +00:00
turley
823f18b0cc Added: pol.cfg AccountDataSafe (default -1)
Values:
            -1 : old behaviour, saves accounts.txt immediately after an account change
             0 : saves only during worldsave (if needed)
            >0 : saves every X seconds and during worldsave (if needed)
removed debugging stuff for pkts
2011-03-10 12:57:50 +00:00
turley
df699fa121 no exception will be thrown if region enter/leavescript doesnt exist 2011-01-22 15:25:39 +00:00
turley
6608d3cd72 seems i found the problem, special thx at silvo for his libary I'm allowed to use 2011-01-15 12:32:03 +00:00
turley
e06a81380d throw on undefined pkt 2010-05-08 11:01:48 +00:00
turley
fb9b64a7f5 fix for switchmap/party pkt 2010-05-08 10:35:52 +00:00
turley
88c18237bd some pkt fixes + several debugtests (will be removed later) 2010-04-24 07:35:19 +00:00
turley
9745acf634 first crash fix for pkts 2010-04-20 15:15:44 +00:00
turley
6e443a75ca finished pkt rewrite (except custom housing but not important)
removed xoutbuffer from client class and added a special buffer in pkt singleton
removed some threadlocks
mmmh should be finished need tester :)
2010-04-18 15:27:06 +00:00
turley
602c881c46 pktbi 0x2c-0x9a 2010-04-16 12:54:31 +00:00
turley
4b4f25d334 0xbf subs 2010-04-13 15:15:44 +00:00
turley
32c5528ad9 pkt 0xdc-0xf3 2010-04-11 14:13:49 +00:00
turley
03ed725f56 pkt 0xab-0xcc
had to move xmitoutbuffer to client class (threadsafty)
2010-04-10 10:30:25 +00:00
turley
93b37c5862 pkt 0xA9,0xAA
some fixes
added PolCore().pkt_status array of structs{pkt,sub,count} (currently a bit senseless due to critical pkt handling)
2010-04-09 14:00:47 +00:00
turley
0b853f0600 pk7 0x9E - 0xA8 2010-04-06 15:33:25 +00:00
turley
0f5026da5a todays work..pkt 0x76-0x90 2010-04-05 17:49:42 +00:00
turley
25c483709d pkt 0x65-0x74+0xAE 2010-04-04 15:09:19 +00:00
turley
c69a519a85 Work in Process:
central pkt class with char buffer instead of structs (pkt 0x0b - 0x55 done)
get rid of critical handling during pkt receive
2010-04-03 11:32:12 +00:00