Commit graph

52 commits

Author SHA1 Message Date
turleypol
6a2bd7c705 Merge remote-tracking branch 'origin/master' into vector_classes
* origin/master: (93 commits)
  Add support for dictionary creation (#277)
  Add do-while statement (#276)
  Add foreach loops (#275)
  New compiler: array initialization (#274)
  Disambiguator: figure out if label is a case statement dispatch selector, or should apply to a statement within the case dispatch group's block. (#273)
  New compiler: Add support for case statements (#272)
  Change "logical" to "bitwise". (#258)
  Fix divide-by-zero errors, and mask FormatError if it were thrown in a destructor. (#271)
  Add break and continue statements. (#270)
  New compiler: assignment to local and global variables. (#269)
  Add support for while loops (#268)
  Optimize if statements, and emit module functions in legacy order (#267)
  Optimizations: binary operators (#266)
  Add binary operators (#265)
  Add support for const declarations (#264)
  Handle default parameter values, pass-by-name, and return statements in functions. (#263)
  Add limited support for user functions (#262)
  New compiler: add return and exit statements (#261)
  Add support for if-then-else statements (#259)
  OG compiler: set module to Mod_Basic when a token is an identifier (#257)
  ...
2020-09-06 20:14:26 +02:00
turleypol
1eedfb7a5e Merge remote-tracking branch 'origin/master' into vector_classes
* origin/master: (84 commits)
  store skillid in the attributes if available
  added docs for checkskill change
  use the correct id as skillid
  CheckSkill() accepts now also attribute name instead of skillid
  Move StoredToken to its own cpp/h
  Items can now be created with an assigned quality from an itemdescriptor (#161)
  *** OG Compiler: decouple web script preprocessing from FileContents
  fix optimizer bug: can stop optimizing prematurely if pre- or post-decrement operators are present
  Fix a bug in the legacy compiler .ecl output
  Move compiler to Legacy namespace
  Allow discord notification to fail and still have a successful build. It will otherwise always fail on forks, because it needs a github secret.
  Ensure textentry_uoemod is not overwritten
  fixed potential out of bound read
  escript_grammar.cmake from Turley
  generated lib/EscriptGrammar from grammar
  EscriptGrammar from escript-antlr repo commit  ef133e3a3a3184936e93493c863b7b995cdf4737 (#162)
  Incorporate ANTLR into the cmake build.
  Fix luck mod being assigned to luck from itemdesc files Fixed swing speed increase being printed twice when saving items. Fixed spelling mistake in docs.
  Style fix
  - Fix up docs. - Change modifier calculation to correctly use double. - Change rounding calculation as per Turley's suggestion.
  ...
2020-08-02 13:18:54 +02:00
turleypol
dcc6beca4d removed intrusive list information in Attributes and Vitals
removed old way to write unicode strings
2020-08-02 12:51:24 +02:00
GIB
83ad60d58c Run Clang Cleanup. 2020-06-06 21:54:14 +08:00
GIB
c71b566aa5 Recommit of Swing Speed Increase branch rebased on top of current master. 2020-06-06 21:48:03 +08:00
turleypol
ef21af3e0c realm functions like walkheight now expect and return s8 for z level 2020-04-19 12:46:57 +02:00
turleypol
532d6d06ca made realm::zone private and change layout to be cache friendly for
iteration
2020-04-17 19:17:05 +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
turleypol
6cb96978ed Pos4d move is now a const method, fixed npc.cpp 2020-04-07 22:34:42 +02:00
turleypol
777d53e6f6 removed ufuncinl inrange 2020-04-06 11:46:14 +02:00
Fernando Rozenblit
a6d35d3929 Minor fixes 2020-04-05 23:16:44 +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
turleypol
a27853a575 updated uworld 2020-04-02 07:58:44 +02: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
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
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
turleypol
ee92a503bf updated speech code 2019-01-02 23:35:38 +01:00
turleypol
1c57ac43cf renamed all unicode speech functions for easier refactoring 2018-12-23 10:24:46 +01:00
turleypol
25dae4fc21 fixed namespaces of moved files 2018-12-22 00:32:47 +01:00
Fernando Rozenblit
2b965dbfec Cleanup in preparation for item enteredarea/leftarea events 2018-11-01 22:47:52 +01:00
turleypol
b34d1e50be syshooks for npc/mobiles 2018-10-13 12:31:03 +02:00
turleypol
983c6a3c73 first round for scripted object class methods 2018-10-13 00:03:40 +02:00
turleypol
57a258383d fixed new clang warnings, new compiler version on travis (lets see how
many commits are needed till it works)
2018-10-07 21:32:44 +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
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +01:00
turleypol
35a156dd20 added os::PerformanceMeasure() can be used to find scripts which slow
the server down.
2017-12-23 21:21:04 +01:00
turleypol
6805af41cb Fixed bug in AOS attribute loading of NPCs 2017-11-15 18:46:24 +01:00
turleypol
32ddea28cb simplified elemental resist/damage 2017-10-22 15:57:29 +02:00
turley
dcda893e2a new item member no_drop disallows any drops
new container/npc member no_drop_exception if set target is valid even
if no_drop is set
poltool can now unpack and print compressed gump pkts from a pol/razor
pkt log
2017-09-10 12:41:13 +02:00
turley
c855a27815 Added new baseclass for uobject
contains only minimum data and can be created with arbritary data.
This reduces memory overhead for each los-check.
Plus minor cleanup
2016-12-12 22:21:59 +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
5f38d6079a Some cleanup on wornitems 2016-03-27 01:10:33 +01:00
frozenblit
51c407bef4 Fixed crashes when sending events to npcs with full queues 2016-03-02 20:31:46 +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
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
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01:00
Gabriele Tozzi
a5efaa4fa6 Merge branch 'master' of https://github.com/polserver/polserver into cmake 2015-12-05 09:41:51 +01:00
frozenblit
b3b9bb1fb6 Removing dependence on useless includes.
Preparing to reorganize the uofile code by removing useless includes
from the rest ;)
2015-12-04 00:50:14 +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
b0c162411f Merge branch 'stable'
Conflicts:
	docs/docs.polserver.com/pol099/corechanges.xml
	pol-core/doc/core-changes.txt
2015-10-06 08:49:08 +02:00
Gabriele Tozzi
d0077667c2 Fixed crash condition (stack overflow)
When unequipping last armor piece weared by an NPC and then
receiving an hit, the armor reference were left in Npc.armor_
causing the combat system to try to access it anyway. If the item was
destroyed meanwhile, this would lead to a stack overflow.
2015-10-06 08:31:26 +02:00
Gabriele Tozzi
6a39ba6fe5 Added: Intrinsic Shield support, works just like intrinsic weapons
Implemented by moving the "intrinsic" concept from Weapon to Equipment
2015-10-02 21:30:14 +02:00
Gabriele Tozzi
b37f15a1e4 Fixed: Armor were not calculated correctly for NPCs wearing equip 2015-09-27 20:55:56 +02: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
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
1b5ad6d59e more moving of properties... 2015-05-15 15:23:18 +02:00