Commit graph

40 commits

Author SHA1 Message Date
turleypol
269fef1dfd ufunc done 2020-04-18 13:00:55 +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
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01: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
turley
1a35f79c3a Moved more non frequent used attributes into dynprops. cleanup for the movepkt. 2015-05-15 14:14:03 +02:00
turley
64d8fdb310 Moved npc files into mobiles dir, changed the namespace accordingly
removed some old code
2015-01-16 19:44:07 +01:00
turley
e8b46466fa Simplified WorldIterator more
completely removed wrldsize header
simplified more headers
changed zone_convert* parameter from non-const reference to pointer, to make the caller clear that it will change.
2015-01-03 10:15:31 +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
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
1f0f7581dd Some more cleanups 2014-11-03 01:29:21 +01:00
frozenblit
bea97446b8 Some more cleanup and improvements on corpse
Made the send_corpse_item() a bit more efficient by sending in the 0x3C
packets only the equipped items: there is now a send_corpse_contents().

Removed the kludge in send_container_contents() for showing invisible
items like hair/beards in corpses.
2014-09-23 01:15:58 +02:00
turley
fb873de803 decoupled headers to optimize a bit the build time 2014-05-03 09:06:19 +00:00
turley
47fec4bdf5 splitted world zones into players and npcs, added several helper functions to only interate over the wanted types (player+npcs,player,npc,items,multis) best usable with lambdas. 2013-12-31 14:14:04 +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
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
acf875f9df Changed: UnicodespeechEvent additional Member "tokens" if speech has (speech.mul) Tokens, gives array of spoken TokenIDs
Added: servspecopt.cfg SeperateSpeechTokens=1/0 default 0 when set RegisterForSpeechEvents() and EnableEvents/DisableEvents behave different
Added: uo:RegisterForSpeechEvents Flags LISTENPT_HEAR_TOKENS,LISTENPT_ONLY_HEAR_TOKENS
Added: SYSEVENT_TOKEN_SPEECH:=0x4000 and SYSEVENT_TOKEN_GHOST_SPEECH:=0x8000 for uo:EnableEvents/DisableEvents
Note: if SeperateSpeechTokens is set you can control which events you get,
          for NPCs you only get speech with tokens if you set SYSEVENT_TOKEN_SPEECH/SYSEVENT_TOKEN_GHOST_SPEECH
          and non Token speech with SYSEVENT_SPEECH,SYSEVENT_GHOST_SPEECH
          for RegisterForSpeechEvents() you get speech with and without Tokens when setting LISTENPT_HEAR_TOKENS and only speech with Tokens
          setting LISTENPT_ONLY_HEAR_TOKENS
Note: Token and nonToken Eventtype is still the same (SYSEVENT_SPEECH)
2012-01-14 12:32:53 +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
76c7662dd4 Changed: All Write(ctBeu16( calls for graphics and colors to use WriteFlipped, this seems to have fixed the assertion errors that occured with removal of the color_ext and graphic_ext 2011-11-29 18:00:51 +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
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
5398f728da missed to commit some HSA packet changes
year 2011
2011-01-05 18:17:23 +00:00
turley
eedf5be5ba pkt fixes 2010-09-07 13:18:19 +00:00
turley
88c18237bd some pkt fixes + several debugtests (will be removed later) 2010-04-24 07:35:19 +00:00
turley
e2c10663e4 gcc fixes 2010-04-10 10:41:18 +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
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
5fe200fb8b Added: ServSpecOpt SpeechRange default 12
ServSpecOpt WhisperRange default 2
            ServSpecOpt YellRange default 25
2009-10-12 17:21:16 +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
d032ee448f + POL is now, open source. 2009-09-03 19:44:42 +00:00