Commit graph

68 commits

Author SHA1 Message Date
turleypol
c61b184c97 More converted files 2020-04-07 22:01:31 +02:00
turleypol
9eef9e9c29 removed pol_distance, removed setposition in character for equipped
items. left securecont to lazy to check how its used.
2020-04-05 21:17:38 +02:00
Kevin Eady
b0747f5b93 add Guild::get_members() 2020-03-22 20:13:21 +01:00
Kevin Eady
9b1b7b8563 add Party::get_members() 2020-03-19 12:14:17 +01:00
Kevin Eady
ae81a6fa7f fix "assign in condition" warning; formatting 2020-03-18 22:19:10 +01:00
Kevin Eady
f7ed10fa01 add ssopt EnableWorldMapPackets 2020-03-04 19:37:37 +01:00
Kevin Eady
59b0cfdb5a packet handling 2020-03-04 19:21:23 +01:00
Kevin Eady
26601f97f2 Add dummy packet handler for 0xFA and 0xFB 2019-12-29 11:42:03 +01:00
turleypol
ebe884c2fe Merge remote-tracking branch 'origin/master' into utf8
* origin/master: (70 commits)
  Fix to items randomly loading with AOS props due to incorrect initalization of props on load of server.
  Rectify core not clearing mobiles from client during shadow realm shift.
  SendQuestArrow() fix for HSA clients (#91)
  Hotfix/start skill script (#90)
  Noninvasive dynaprops (#89)
  Update objref.xml
  Some network error conditions were missing...
  Final adjustments to core-changes
  Added Turley's missing core-changes :P
  Improved connection handling:  - Linux isn't limited to 1024 connections anymore  - Windows may have some slight performance boost
  removed senseless gitignore files
  use generator unspecific clean cmd in build_tools.sh always generate compile_commands.json force color diagnostic (to work with ninja)
  Curl building uses now the same compiler as pol
  fixed target_link_directories system header declaration
  check if container is orphan when adding items as content. for now it crashes the shard to have the backtrace. (would crash anyway later)
  add corechanges for doc changes
  new build target "clang_format" runs clang-format on current modified or new files in pol-core dir.
  Formatting
  Fix xml indentation
  fix indentation
  ...

Conflicts:
	pol-core/bscript/execmodl.cpp
	pol-core/doc/core-changes.txt
	pol-core/pol/getmsg.cpp
	pol-core/pol/module/unimod.cpp
2019-08-16 19:02:53 +02:00
Fernando Rozenblit
073f5a8407 Reorganizing and cleaning up 2019-03-07 23:15:41 +01:00
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
04066c309d moved unicode sanitize functions to clib as a preparation to sanitize
only once
renamed mklower/mkupper to make it clear that it should only be used
for pure ascii texts
compiler triggers only once a warning about invalid unicode file
2019-01-12 11:46:30 +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
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
esdete
dc2d29b433 NULL to nullptr 2018-07-31 14:30:29 +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
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +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
6a90be8a97 Merge remote-tracking branch 'upstream/master'
Conflicts:
    pol-core/bscript/object.cpp
	pol-core/pol/accounts/account.cpp
	pol-core/pol/gameclck.cpp
	pol-core/pol/miscmsg.cpp
	pol-core/pol/module/polsystemmod.h
	pol-core/pol/proplist.cpp
	pol-core/pol/proplist.h
    pol-core/support/scripts/polsys.em
2016-02-12 17:37:27 +01:00
turley
ed7b16b233 normalized lineendings 2016-02-11 22:54:43 +01:00
Gabriele Tozzi
14a90eb17f Fixed: Spoofing prevention on packet 0xD7 (custom housing) 2016-01-30 11:04:13 +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
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
0d9d13bdb9 moved unicode from clib to pol 2015-09-19 10:55:48 +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
1a35f79c3a Moved more non frequent used attributes into dynprops. cleanup for the movepkt. 2015-05-15 14:14:03 +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
turley
a08b5e4e4a Packet writer improvement
parameter can now have different type, only allow integer and enums, same sign
added runtimecheck for max value
2014-11-14 17:54:41 +01:00
frozenblit
943b820eba More and more cleanups
Added some missing include guards, corrected wrong include guard names.
Removed more stl_inc.h includes.
2014-11-02 19:40:40 +01:00
turley
431a4165ea Fixed possible crash with invalid char profile pkts. 2014-10-19 17:12:18 +02: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
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
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
11ce4da294 changed pkt writer
generic definition, but gives linker error if unsupported type used, and compiler error if <..> is missing. Damn argument deduction
hopefully with this last pkt error in tooltips will never happen.
Chances that i broke a pkt .... high :P
2012-02-19 20:40:44 +00:00
turley
4e7e400254 64bit compilation.. 2011-12-23 13:28:38 +00:00
turley
b35cbd463d finished pkt refactoring
gave threads names under windows for better debugging
fixed memoryleak in ItemGivenEvent
2011-12-19 16:34:21 +00:00
turley
796d4992f9 finished refactoring of pkthelper 2011-12-17 12:05:57 +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
turley
efab05d10e more customhousing stuff
read core-changes.txt :)
2011-05-19 21:00:29 +00:00
turley
56d1814c59 added more customhousing stuff:
add/remove roof
syshook CustomHouseCommit(who,array of items{struct:graphic,xoffset,yoffset,z})
return true if accepted, should be used to calc cost, yes/no confirm, consume cost
convert doors into components during commit
2011-05-19 13:42:57 +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