turleypol
8b085e86ef
dont assume a tainted string by default
...
cfgfiles (which includes savefiles, datafiles) get sanizized on read,
filemod::readfile, xml module, sql handled
old ascii speech packets handled
2019-01-12 17:14:05 +01:00
turleypol
d0b74d6da6
added first docs, cleanup of first todos
2019-01-03 18:58:13 +01:00
turleypol
cc27bb611f
removed last usage of convertUCtoArray
2019-01-03 11:00:46 +01:00
turleypol
b541f64c6f
more network specific code moved
2018-12-30 21:58:07 +01:00
turleypol
9cfb4ec5a5
moved pkt headers into network folder
2018-12-30 21:35:54 +01:00
turleypol
0d4cca785d
cleanup of compilerspecifics, ancient compilers arent supported.
...
ran tidy to use bools instead of ints
2018-11-03 13:14:53 +01:00
turleypol
4f40aa7997
removed Clib::decint and used Clib::tostring, changed Clib::hexint to
...
template function for all integers
2018-10-28 09:31:58 +01:00
esdete
dc2d29b433
NULL to nullptr
2018-07-31 14:30:29 +02:00
Gabriele Tozzi
b72f725e02
Whitespace fixes
2018-04-03 04:13:03 +02:00
turleypol
3afc41241b
CMake on windows ( #48 )
...
CMake can now also be used for windows
2018-02-24 22:34:55 +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
turleypol
798eda5b63
Cleanup of header includes.
2018-01-01 21:52:14 +01:00
turley
a983d25e4e
removed bool members and replaced them with flags.
...
Further decrease memory foodprint.
2016-12-07 23:34:16 +01:00
frozenblit
d86cbee187
Fix bug where clients would be stuck at "Verifying account..."
2016-03-04 00:37:43 +01:00
frozenblit
324a877626
Improved ref_ptr and weak_ptr, clients are now deleted by the message queue
2016-02-28 03:51:16 +01:00
turley
d2afa82969
changed clienttransmit thread to hold a weakptr,
...
in addition only this thread deletes clients. should fix all
dataraces in this area.
2016-02-25 18:29:59 +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
33975f599b
Merge tag 'pre-nl-normalize'
...
This is the last commit prior to newline normalization
2016-02-12 17:29:32 +01:00
turley
92cc1b4d70
Use weakptr to uoexecutor in the threaded sql call
...
changed client class from ref_counted to also hold like the uoexecutor a weakptr, use it in the ClientObjImp.
Renamed NPCRef to NpcRef like its been told since years in a TODO comment
fixed some warnings from VS2015
2016-02-10 23:09:05 +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
b640d81a4d
Fixed linux build warnings and a post-merge error
2015-12-05 09:40:59 +01:00
Gabriele Tozzi
66c6200e2a
Merge branch 'master' into cmake
2015-11-30 05:49:34 +01:00
Gabriele Tozzi
17c45a8fd2
New Client object properties last_packet_at and last_activity_at
2015-11-28 11:12:52 +01:00
Gabriele Tozzi
24eee9ecf4
Merge branch 'master' of https://github.com/polserver/polserver into cmake
...
Conflicts solved, still need to test and review it before merging into master.
2015-11-27 06:26:46 +01:00
Gabriele Tozzi
8077e36a07
Added: new pol.cfg option AllowMultiClientsPerAccount (default: false)
...
When true, allows multiple characters from the same account to be
logged in at the same time
2015-10-27 16:18:51 +01:00
turley
0d9d13bdb9
moved unicode from clib to pol
2015-09-19 10:55:48 +02:00
turley
dfd65e30cd
Moved plib realm to pol
2015-09-18 19:11:46 +02:00
frozenblit
18604c526a
Got rid of some more warnings
2015-04-09 22:34:46 +02:00
turley
b77a13073c
corrected several data races
2015-03-14 11:45:14 +01:00
turley
b191039ffd
protected pktlog identifier by spinlock, fixes racecondition
2015-02-14 12:56:19 +01:00
turley
79dff37246
Splitted gamestate external.
2015-01-02 14:46:44 +01:00
turley
88ec380941
Moved globals into separate directory.
2014-12-30 15:20:59 +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
7935b95fbd
Realms can now track offline chars
...
Improved the tracking of offline chars in realms, so that shadowrealms
can't be destroyed while chars are still inside.
Next step: do the same for multis and add a command to list the offline
chars.
2014-11-04 22:58:12 +01:00
frozenblit
847b406cb3
Added realm methods add_mobile() and remove_mobile()
...
In order to fix the shadowrealm crash with offline chars, we need to
better track when characters are added and removed from the realms.
This will allow us to keep a list of offline player chars in each
(shadow) realm.
2014-11-04 00:07:30 +01:00
frozenblit
c4cb100279
Some more stl_inc.h cleanups
2014-11-01 19:16:13 +01:00
frozenblit
ed679dba3d
Moved message handling code into its own cpp
...
Created a new file (msghandl.cpp) and moved the code from pol.cpp there.
Moved related files to the "network" folder, where they belong. Fixed
include names... (we should make this relative to the project root!)
2014-10-01 21:10:32 +02:00
turley
e0b722a93b
fixed several uninitialized variables
2014-08-30 12:25:08 +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
turley
21e4c7de1d
first check boundary before accessing it
2014-06-14 08:23:53 +00:00
turley
e4e45f687d
memoryusage of clients and accounts
2014-06-14 07:58:33 +00:00
turley
7c3fb67383
missed a place
2014-06-13 18:42:27 +00:00
turley
c8d89959a0
simplified flexlogger a bit, returns filename to identify the logfile, optional logfileopend timestamp
2014-06-13 18:32:26 +00:00
turley
05c5b2d60b
removed old code
...
testing a threadpool
added chr.last_textcolor member which returns the clientside chatcolor
2014-06-01 09:59:12 +00:00
turley
31ee263a45
activated new logging facility
2014-01-18 13:29:38 +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
dsourc
6326b4825f
if ClientVersion >= 7.0.30.0 pol sends statmsg with flag 6 and 30bytes extra length.
...
no new status entries added but this makes it possible to hook the correct length packet and get rid of those realm change problems with stats
2013-11-19 15:20:13 +00:00
turley
90f1fc9248
implemented the std mutex
2013-09-13 19:03:25 +00:00
turley
4c7f70fc79
first version of a generic message_queue (currently not lockfree, need to test more)
...
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00