Commit graph

151 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
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
269fef1dfd ufunc done 2020-04-18 13:00:55 +02:00
turleypol
9040333c5e minimal solution for compilation of multis 2020-04-18 11:57:19 +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
9a34ee8839 shame one me just changed inrange functions instead of reimplementing
them
extended inRange api in PosNd, moved direction methods to Oos2d
2020-04-12 22:24:54 +02:00
turleypol
7722b3d542 I start to regret it...
uomod.cpp done
2020-04-12 11:34:08 +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
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
Fernando Rozenblit
73778d9184 Small updates. Changed move_item() to take oldpos explicitly. 2020-04-05 16:57:38 +02:00
Fernando Rozenblit
f370877248 More small changes 2020-04-05 15:58:48 +02:00
Fernando Rozenblit
fc43ab45cf Added toplevel_pos()/toplevel_x()/etc... methods, which consider the top-level owner of the object. The x()/y()/z() methods are now just shortcuts to pos(). Removed a few redundant toplevel_owner() calls. 2020-04-05 11:28:32 +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
9cd43476eb interface extensions, converted core/create and directly called
functions
2020-04-04 17:22:24 +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
a27853a575 updated uworld 2020-04-02 07:58:44 +02:00
turleypol
c61b877caa
Healthbarfix (#105)
* fixed poison/invul pkt for newer clients

* updated corechanges
2019-12-12 16:04:02 +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
GIB
2dd0396906
Rectify core not clearing mobiles from client during shadow realm shift.
Added character reference on update when moving from 1 realm to another which appears to effect npc's and players not clearing when going to a shadow realm. (#92)
2019-07-12 13:45:18 +08:00
turleypol
c956cee6b2 Increased script version to force recompilation due to unicode
changed buff message storage to hold a string
2019-01-19 14:33:27 +01:00
turleypol
7f8b5055b2 no need to strip tilde chars from speech
added small early out test for textcmds
simplified _unicode params
2019-01-16 21:24: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
b032dc8065 cleanup of sysmsg unicode 2019-01-03 17:44:20 +01:00
turleypol
6fd2883182 cleanup of char profile pkt 2019-01-03 11:39:59 +01:00
turleypol
9372421d93 simplified unicode send functions 2018-12-31 20:07:22 +01:00
turleypol
e04479d8cb cleanup of buff msgs, added direct pkt write methods for utf16 vectors
open question: keep it this way or add an string write method which
converts on the fly?
2018-12-31 18:22:09 +01:00
turleypol
a89886a0ce Merge remote-tracking branch 'origin/master' into utf8
* origin/master:
  more network specific code moved
  moved pkt headers into network folder
  fixed argument count for DepletedFunction
  Updated cotire, updated pch
  Added vitals.cfg DepletedFunction gets called once the vital reaches zero removed UnderFlowFunction since it was never used
2018-12-31 10:37:35 +01:00
turleypol
9cfb4ec5a5 moved pkt headers into network folder 2018-12-30 21:35:54 +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
esdete
b9a31d3560 clang formatting 2018-07-31 16:16:19 +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
3afc41241b
CMake on windows (#48)
CMake can now also be used for windows
2018-02-24 22:34:55 +01: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
Jono@home
f60babb407 +Added: _DEFAULT_TEXT_REQUIREDCMD := 0 to uo.em which allows to set a minimum cmd level that broadcasts will be sent to.
~Changed:Broadcast( text, font := _DEFAULT_TEXT_FONT, color := _DEFAULT_TEXT_COLOR, requiredcmdlevel := _DEFAULT_TEXT_REQUIREDCMD ) adding requiredcmdlevel argument which allows you to set a minimum cmd level that the broadcast will be sent to.
~Changed: No longer require a PID for GetProcess( pid  := "" ), not selecting a PID will use the PID of the parent script.
2017-07-23 20:44:37 +08:00
turley
b3ce5e8ba2 removed deprecated files, fixed size estimate of EquipDesc 2017-01-15 19:03:41 +01:00
Boberski
087abf2624 Fixing clientflag for TOL extension 2016-12-20 01:08:35 +01: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
Boberski
909ddfd37e Add "Time of Legends" extension ident for polcore. 2016-11-29 12:57:36 +01:00
turley
f59ae94545 removed senseless function
corrected comparison
2016-03-27 00:22:44 +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
a5efaa4fa6 Merge branch 'master' of https://github.com/polserver/polserver into cmake 2015-12-05 09:41:51 +01:00
Gabriele Tozzi
7593188ff7 Merge branch 'master' into cmake 2015-12-05 09:17:28 +01:00
Gabriele Tozzi
05b2a3a6bc Buff Bar Support
The buff status is held in a new buffs_ property of Character. It is
modified via Character.addBuff(), Character.delBuff(),
Character.clearBuffs() functions. (Maybe also a readBuffs() function
could be useful in future?). Packets are automatically sent when on
a "when needed" basis.
2015-12-05 09:06:40 +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