Commit graph

66 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
Fernando Rozenblit
c49f5b4abb
Reorganize regions and realms (#228)
* Moved realms.h and realms.cpp to realms/..

* Moved regions into their own folder
2020-08-17 22:29:07 +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
GIB
5dfc28173a Added missing changes to enable swing_speed_increase to work.
Fixed nullptr issue discovered when setting verbosity to 20.
Added % calculation for swing_speed_increase to clocks for schedule_attack()
2020-06-06 21:48:03 +08:00
turleypol
50bd79dc3f started with in_range methods
since Vec/PosNd is not POD explicit guarantee to be zero initialized.
Fixed comparison of refpointer
2020-04-26 12:43:18 +02:00
turleypol
7bc35dda6b Removed the uncountable ways to get the toplevel owner... :(
loading objects handles now nonset realm for containers correctly
2020-04-23 21:23:13 +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
eb197cac31 More things compiling 2020-04-05 15:40:37 +02:00
Fernando Rozenblit
b83c7d39a4 Checking the wrong realm(). We should change this interface. 2020-04-05 10:07:49 +02:00
Fernando Rozenblit
6ae7095a9f Added supporting_multi() to UObject. Fixed a lot of code. Still too much to go. 2020-04-05 00:05:04 +02:00
turleypol
710000dfa0 container changes, added methods to get directly worldcoords from
potential toplevel, container items have now realm as nullptr
2020-04-03 17:00:51 +02:00
turleypol
8d6cfc41a2 fixed uworld errors, converted uobject 2020-04-03 12:49:34 +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
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
983c6a3c73 first round for scripted object class methods 2018-10-13 00:03:40 +02: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
32ddea28cb simplified elemental resist/damage 2017-10-22 15:57:29 +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
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
53c2ba78c6 Added: CProp profiler, helps detecting unused CProps
It can be enabled by using the new pol.cfg option "ProfileCProps".
For better results, should be enabled before startup.
Impacts on performance very slightly, but consumes an average of
300 bytes of extra RAM for every CProp used.
New polsys.em function LogCPropProfile() can be called to dump
the profiling information into cpprofile.log.
2016-01-31 15:06:56 +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
turley
dfd65e30cd Moved plib realm to pol 2015-09-18 19:11:46 +02:00
Gabriele Tozzi
b69cb9032a Fixed: Bug in loading POL098 and older data files
Boats were rotated leaving dynamic elements like plank and
tillerman on the old position.
2015-09-12 18:49:05 +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
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
79dff37246 Splitted gamestate external. 2015-01-02 14:46:44 +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
fb717e2ef3 Even more cleanups.
Removed stl_inc.h from most of the include files. Still have some 200
files to go. I wish I'm done... someday...
2014-11-01 15:43:45 +01:00
frozenblit
3bec88c830 Cleaning up includes and adding fully-qualified names 2014-10-31 20:45:30 +01:00
turley
e0b722a93b fixed several uninitialized variables 2014-08-30 12:25:08 +02:00
turley
b8d22e290b more flyweight usage (names, scripts, template), made resistance and damage types optional. 2014-08-02 17:53:33 +00:00
turley
9ab40f7c77 made compiler happy 2014-06-14 08:28:30 +00:00
turley
331792c755 added more memoryusage estimation 2014-06-07 09:00:37 +00:00
turley
05c5b2d60b removed old code
testing a threadpool 
added chr.last_textcolor member which returns the clientside chatcolor
2014-06-01 09:59:12 +00:00
turley
fb873de803 decoupled headers to optimize a bit the build time 2014-05-03 09:06:19 +00:00
turley
9acf8fa43c added StackWalker lib for complete backtraces under windows
simplified some loops
fixed a crash on char death with non moveable robe layer items
2014-04-25 09:30:50 +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
f8e81fdba0 Use of OpenMP to write the files in parallel. Seems to be the best sollution so far.
I would call the safe speedup as finished
2013-10-08 11:00:14 +00:00
turley
7085a8470f new StreamSaver class used for saving 2013-10-06 14:45:10 +00:00
frozenblit
eca7477429 Fixed duplicated items being saved. Changed the wrapper to call its own class, avoiding confusion because of the virtuals. 2013-09-22 19:58:22 +00:00
frozenblit
c024f9f640 Who thinks CProps are important? Ooops... better save them :D 2013-09-21 23:16:41 +00:00