Commit graph

112 commits

Author SHA1 Message Date
Eric Swanson
d98a88be1d Remove SmartParser::IP 2020-04-27 13:27:42 -07:00
Eric Swanson
23dca7acef Remove unused SmartParser::getArgs method 2020-04-26 19:42:24 -07:00
Eric Swanson
df5c3ced7b Move Expression class to expression.cpp/h 2020-04-24 13:37:26 -07:00
turleypol
4ac7f227c7 ecompile now writes errors and warnings to stderr.
exit code is 1 when any compilation fails.
2019-10-05 13:19:38 +02:00
turleypol
dda2bb2d8b Merge branch 'master' into unary_inc_dec
* master:
  moved min/max damage calculation where it belongs, removed unused weapontmpl member
  fixed min/max damage visualization in the statusbar
  GetProcess(-1) will now return the script pid. GetProcess(0) will not find any script, as before. For this change, script pids had to be constrained to the range of valid signed ints. Please update your .em's and recompile.
  fixed formating
  Final clangifications to appease the gods!
  Added package reference to script object.
  Functional. BUT DO NOT USE ON A SCRIPT WITHOUT A PACKAGE!
  Lay off the constants a bit. Relocate the thing Turley told me to.
  Inital commit for adding a direct package reference member to script objects.
2019-10-04 17:00:59 +02:00
turleypol
169c1ec4e3 added i--, corrected that no warning appears when using i++. Extended
tests
2019-09-22 11:04:57 +02:00
turleypol
57c7d97b8c more i++ tests and fixed syntax checks 2019-09-22 09:37:51 +02:00
turleypol
b2a3e1b792 starting to support i++ 2019-09-22 00:34:14 +02:00
GIB
acdc42093e Inital commit for adding a direct package reference member to script objects. 2019-09-22 00:03:13 +08:00
turleypol
902c9cbfde first version of ++i and --i unary operator 2019-09-21 14:56:06 +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
turleypol
04066c309d moved unicode sanitize functions to clib as a preparation to sanitize
only once
renamed mklower/mkupper to make it clear that it should only be used
for pure ascii texts
compiler triggers only once a warning about invalid unicode file
2019-01-12 11:46:30 +01:00
turleypol
a6c7a471a1 simplified string api, converted requestinputuc return packet 2019-01-01 15:47:27 +01:00
turleypol
366f7e7122 Merge remote-tracking branch 'upstream/master'
* upstream/master: (45 commits)
  renamed mobile syshook to character used unique_ptr for all syshooks
  added docs
  code simplification, deprecate warning for uoclient.cfg MethodScript entry
  party and guild ref support docs and testing left?
  custom methods for client and account references
  fixed line length
  syshooks for npc/mobiles
  first round for scripted object class methods
  Fixed formatting error.
  Added new return option to consume ammunition hook which allows the hook to make the core continue with the usual ammunition checks.
  Fix critical bug in FindObjtypeInContainer()
  fixed compiler warning
  fixed linesize
  windows fixes
  Added cmake option to run clang-tidy used everywhere nullptr
  Changed classes to be final if possible, removed override macro
  Added additional documentation.
  next..
  clang 7 is currently untrusted... next try 6 ;)
  fixed new clang warnings, new compiler version on travis (lets see how many commits are needed till it works)
  ...

Conflicts:
	.travis.yml
	pol-core/bscript/impstr.h
	pol-core/clib/cfgfile.cpp
	pol-core/pol/module/npcmod.cpp
2018-10-14 14:00:33 +02:00
turleypol
a5e6206164 Added cmake option to run clang-tidy
used everywhere nullptr
2018-10-09 16:36:35 +02:00
turleypol
0aea78c405 added array.sorted_insert to insert into an already sorted array.
Added a few finals and defaults
2018-10-07 21:05:02 +02:00
turleypol
e22f037979 invalid utf8 will be assumed to be iso8859 (with the hope that this is
correct in most of the cases)
2018-06-25 19:31:00 +02:00
turleypol
f55f3d7b75 removed one debugging leftover 2018-06-25 19:31:00 +02:00
turleypol
6e50fcd7a2 sanitize strings during compilation
shameless copy of bodoms unicode test plus a few additions/modifications
2018-06-25 19:31:00 +02:00
turleypol
9130c6f773 added client.port member returns the port of the listener from
uoclient.cfg. Note: "KeepClients" needs to be set to retain the
original port of the listener.
2018-04-07 11:09:16 +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
e54d5144ba FunctionObject doc
fixed parser to allow functionobjects directly as function paraeters
increased ecompile versionnumber to force recompilation
corrected fileaccess.cfg: without directory entry behaves like before
giving full access
2018-02-06 21:38:07 +01:00
Kevin Eady
66da8ac805 Changed reference to unary @ operator 2018-02-05 19:21:27 +01:00
turleypol
9d3cd4ffd5 fixed unittests, removed remaining debug prints 2018-02-04 12:56:08 +01:00
turleypol
0d04d5e19b Current FunctionRef status. Mixed with a few more cmake stuff 2018-02-03 19:05:22 +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
turleypol
1f7ba53e4a Fixed method override via custom functions 2017-12-22 09:40:10 +01:00
turleypol
386b0a79d4 fixed cache access for members/methods 2017-12-20 18:43:14 +01:00
turleypol
4ab046ae06 Doubled speed of custom object method resolution 2017-12-20 16:52:39 +01: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
6c772dcffc Fixed unreachable code warnings. 2016-12-19 17:22:09 +01:00
frozenblit
2423c4a5cb Added character.carrying_capacity
Read-only property which returns the current carrying capacity
2016-10-23 15:58:18 +02:00
turley
2804c55db2 added object.specifc_name returns 1 if a custom name is set. if its
still the original (eg itemdesc) returns 0
2016-08-28 21:59:15 +02: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
397d11d520 Fix: bug recent compiler fix, commit 861ff58d1d 2016-01-25 07:30:01 +01:00
Gabriele Tozzi
fd24da5cd1 Documentation: reformatting some comment blocks 2016-01-25 01:17:56 +01:00
Gabriele Tozzi
861ff58d1d Fixed: Minor bug in ecompile allowing Double in the form "2d4".
These were incorrectly interpreted as "2e4", meaning 20000 and
leading to confusion with dice rolls. The compiler now issues an
error instead.
Added related test cases.
2016-01-22 00:16:39 +01:00
Gabriele Tozzi
4a02fa110d Fix: usage of assert() in my previous commits due to inexperience
Also fixed a rval issue in recently modified house components code.
2016-01-21 18:43:45 +01:00
Gabriele Tozzi
c87fa09947 Merge branch 'master' of https://github.com/polserver/polserver 2016-01-20 19:11:40 +01:00
turley
ef3ff034c7 corrected doxygen comments 2016-01-20 12:14:30 +01:00
Gabriele Tozzi
e979010408 Added: New Item.house property
Returns a reference to the house if the item is a component of it
(listed in House.components()).
This is the intended replacement for the previously removed CProp
"house_serial": use item.house.serial instead of
GetObjProperty(item, "house_serial").
2016-01-20 05:00:32 +01:00
Gabriele Tozzi
c6a9a6cb73 Merge branch 'stable' 2015-12-19 00:05:55 +01:00
Gabriele Tozzi
ebb6f8a404 Added: support for "\xFF" string escape sequence in eScript 2015-12-19 00:04:32 +01:00
Gabriele Tozzi
5bf416ca24 Merge branch 'cmake'
Conflicts:
- pol-core/clib/xmain.cpp
- pol-core/ecompile/ecompile.cpp
2015-12-18 23:41:43 +01:00
Gabriele Tozzi
144f0600f7 Documentation: improving comments in code
Most of them coming from the "unicode" branch
2015-12-15 02:53:58 +01:00
Gabriele Tozzi
24d3488f7a Merge branch 'master' into cmake 2015-12-07 17:57:03 +01:00
Gabriele Tozzi
7511d15286 Documentation: reformatting comment block
This seems to be very important. Using doxygen syntax, so that it can
be more easily found in future.
2015-12-05 12:47:10 +01:00