Commit graph

64 commits

Author SHA1 Message Date
turleypol
c4c80ceb9a storageareas belongs to no realm 2020-04-26 20:28:52 +02:00
turleypol
4643ba72ba extended pos4d with more facing functionality, moved facing enum to
position.h
finished mobile folder
2020-04-09 20:29:32 +02:00
Fernando Rozenblit
73778d9184 Small updates. Changed move_item() to take oldpos explicitly. 2020-04-05 16:57:38 +02:00
turleypol
9cd43476eb interface extensions, converted core/create and directly called
functions
2020-04-04 17:22:24 +02:00
Fernando Rozenblit
f4f9c20afd Merge branch 'master' into network-improvements 2019-04-26 20:33:27 +02:00
Kevin Eady
c002cdd5c3 Remove osmodule includes 2019-03-15 00:58:55 +01:00
Kevin Eady
44f2ebbe90 Refactor to make os_module private in UOExecutor 2019-03-11 21:37:51 +01:00
Fernando Rozenblit
1d256c6886 Removed one use of inet_ntoa, need to remove the rest later. There may be compatibility issues with older windows. 2019-03-08 00:12:47 +01:00
turleypol
9cfb4ec5a5 moved pkt headers into network folder 2018-12-30 21:35:54 +01:00
turleypol
ffc66ff0d2 fixed style 2018-12-22 00:50:26 +01:00
turleypol
25dae4fc21 fixed namespaces of moved files 2018-12-22 00:32:47 +01:00
turleypol
e1b14dcd00 moved polfile/uofile files into plib to cleanup atleast a bit the
compile dependencies
2018-12-21 20:27:05 +01:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02: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
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
frozenblit
5f38d6079a Some cleanup on wornitems 2016-03-27 01:10:33 +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
turley
ed7b16b233 normalized lineendings 2016-02-11 22:54:43 +01:00
Gabriele Tozzi
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +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
dfd65e30cd Moved plib realm to pol 2015-09-18 19:11:46 +02:00
Thomas Volkert
1dd2200c6b Renamed endian.h to clib_endian.h to avoid redefinition problems in
system files and the general hiding of the endian.h from the system
2015-08-31 20:01:31 +02:00
frozenblit
ab592b0bf6 Instead of .c_str(), the log will take a copy of the formatter string 2015-05-16 16:00:26 +02: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
1f0f7581dd Some more cleanups 2014-11-03 01:29:21 +01:00
frozenblit
a704a90208 Another round of stl_inc.h cleanups 2014-11-01 22:27:42 +01:00
frozenblit
39bd45f60d Separating wornitems and corpses from containers
I created new headers to see if we can reduce the include hell that
we're in.
2014-10-31 00:02:41 +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
dsourc
6707244f12 changed the wornitems container realm setting to call chr->position_changed() to also update the x, y and z coords during the chr creation 2014-05-09 22:12:12 +00:00
dsourc
8fc965822c Fixed crashes where equipping items created on character creation did not have a realm because wornitems container realm was set from chr realm before the chr realm was set 2014-05-09 21:58:46 +00:00
dsourc
030875b169 Added missing login error when too low cmdlevel on chr create
Added mincmdlevel check already to loginserver login ( in these cases no need to let the login process go all the way to chr create or select )
2014-05-09 07:59:06 +00:00
dsourc
118823c7cd Added Realm entry to startlocs.cfg, The earlier MapID still needed for the client to show the map correctly, but realm is needed for the server to put the character during creation in the correct realm, default value "britannia" 2014-05-06 13:15:27 +00:00
turley
fb873de803 decoupled headers to optimize a bit the build time 2014-05-03 09:06:19 +00:00
dsourc
5b447385f8 fixed crash during char create with cmdlevel changes 2014-02-28 20:32:40 +00:00
dsourc
3fa088180d fixed cmdlevel change updater, now it works as it should
changed some direct members uses to functions
added checks for the updaters if values really have changed to stop sending packets even if the value did not update
2014-02-27 20:58:26 +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
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
frozenblit
c84420e71e Changed a few places where a connection error occurs and it's better to just force client disconnection. 2011-12-11 19:26:34 +00:00
dsourc
72fe2d0d7f Fixed: EA broke the prof.txt with the latest clients adding "Evaluating Intelligence" and "Spirit Speak" with spaces that resulted into skillnumber 0xFF and skillvalue 0 2011-12-04 21:39:35 +00:00
frozenblit
1e65769d88 Fixed client freezing after login refusal. Used the time to remove some code redundancies as well. 2011-12-01 22:05:02 +00:00
muaddib_pol
bef3da26d2 - UObject->Color_Ext : Removed, and when used is replaced with ctBEu16() calls. This includes read/write of /data files. 2011-11-28 05:40:48 +00:00
muaddib_pol
54023dbab7 - UObject->Graphic_Ext : Removed, and when used is replaced with ctBEu16() calls. This includes read/write of /data files. 2011-11-28 05:12:31 +00:00
dsourc
3abf597d3c Added: support for new 0xA9 packet for clients >= 7.0.13.0
Changed: startloc.cfg now have Cliloc and MapID entry for every startlocation ( default values 0 )
2011-11-11 21:47:16 +00:00