Commit graph

44 commits

Author SHA1 Message Date
GIB
a9aab8ad8d Clang format.
Fixed bug with swing speed being able to go negative causing a crash.
2020-06-06 21:48:03 +08:00
GIB
c71b566aa5 Recommit of Swing Speed Increase branch rebased on top of current master. 2020-06-06 21:48:03 +08:00
GIB
7c627437af
Noninvasive dynaprops (#89)
Added new mobile and item props from the AOS update. Please read docs to understand how they are applied and how they stack from items to mobiles.
2019-06-17 18:58:58 +08: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
Fernando Rozenblit
5bc3fa7c44 Committing changes from Tomi for fine control of the statmsg packet (reverted from commit b2a45b36fa) 2018-07-23 00:11:48 +02:00
Fernando Rozenblit
b2a45b36fa Committing changes from Tomi for fine control of the statmsg packet 2018-07-22 22:25:47 +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
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
294a7ff31f Fixed: Hp/MaxHp updates handling
- Hp/MaxHp updates to nearby clients were still using the real value
  instead of the 1000-based ratio when sending the 0xa1 packet.
- Hp/MaxHp updates were sent twice to the originating character.
2015-09-24 02:10:35 +02:00
turley
188b2797ed Replaced old dynprop_map with new dynproperties.
Moved also extended_statbar,skillcap, movementcost_mod infos into the dynprops
2015-05-09 13:00:12 +02:00
turley
8d42a12b7c Optimized ObjRevision pkt, GraphicEffect pkts, Damage pkt 2015-04-17 18:58:14 +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
e54fb2587e Generate a warning instead of a shard crash if the number is bigger then the desired type in a pkt.
Added weight limit check for statmsg pkt.
2014-11-15 12:46:21 +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
b8d22e290b more flyweight usage (names, scripts, template), made resistance and damage types optional. 2014-08-02 17:53:33 +00:00
dsourc
e94a48e1b4 Fixed statmsgs for clients >= 7.0.30 2014-01-22 11:59:53 +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
043e629f8d fixed typo in send_short_statmsg() pkt 0x11 2012-02-21 16:59:50 +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
bb74c945d3 started to replace PacketOut... 2011-12-17 15:52:02 +00:00
turley
796d4992f9 finished refactoring of pkthelper 2011-12-17 12:05:57 +00:00
turley
440e57bced hsa mul support
changed objtype to max 0x20000
splitted pkt transmit
needs more testing
2011-06-14 15:20:00 +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
88c18237bd some pkt fixes + several debugtests (will be removed later) 2010-04-24 07:35:19 +00:00
turley
4b4f25d334 0xbf subs 2010-04-13 15:15:44 +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
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
turley
e10cd27cea sync: shini - long to int (prerequisit for 64-bit) 2010-03-29 14:52:03 +00:00
turley
bb4fb33a70 Added: 0xF3 packet is send instead of 0x1A for clients >= 7 or UO:SA clients - Tomi
Added: polcfg Max_Tile_ID 0x3FFF / 0x7FFF (default 0x3FFF)
            since client 7.0.0.0 item graphic can be definied up to 0x7FFF - Tomi
Added: "SA" for expansion type. This includes sending 0x187DF with packet 0xB9. - Tomi
Added: support of new map TerMur - Tomi
Note: uoconvert param: 
            realm=termur mapid=5 width=1280 height=4096
Added: Gargoyle support (race = uo:RACE_GARGOYLE)
Note: graphics are: 
            UOBJ_GARGOYLE_MALE         0x029A
            UOBJ_GARGOYLE_FEMALE       0x029B
            UOBJ_GARGOYLE_MALE_GHOST   0x02B6
            UOBJ_GARGOYLE_FEMALE_GHOST 0x02B7
Added: support of UO:KR/SA char create packet 0x8D
Added: new gargoyle hair & beard 0x4258-0x425F & 0x42AD-0x42B0
Added: UO:KR/SA face support
Added: ssopt.SupportFaces 0/1/2 (default 0)
            set it to 1 to support basic faces
            set it to 2 to support roleplay faces (sets 0x2000 flag in 0xB9 packet)
Note: Faces are normal items (like hair/beard) with layer 15, objtype 0x3B44-0x3B57
            roleplay faces 0x3B4E-0x3B57
2009-12-02 15:28:42 +00:00
turley
ff4936f20f more var scope cleanup 2009-10-07 11:47:42 +00:00
turley
045bc24873 removed chr.isUOKR added chr.ClientType
removed all bool is* versionmembers and added bitfield clienttype
changed all versionchecks to check the bitfield
added 0xE1 support (0xA9 packet will now send the flag for request)
2009-09-16 08:48:57 +00:00
muaddib_pol
631ed68c4a + All projects now using literal paths for includes.
+ Disabled Compiler warning 4244 in VS for str.cpp and strutil.cpp due to fact they are false warnings there.
2009-09-12 23:51:20 +00:00
muaddib_pol
6a73041445 + Network Code organized some. Baby steps, baby steps 2009-09-07 20:37:38 +00:00
muaddib_pol
49072c3c41 + To-Do file updates
+ Beginning of Mobile and Module source file organization
+ Makefile.Gcc updates
2009-09-06 14:11:24 +00:00
muaddib_pol
d032ee448f + POL is now, open source. 2009-09-03 19:44:42 +00:00