Kevin Eady
12d6186d10
Script option enhancements ( #118 )
...
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES
* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT
* wip beginning work on templatization
* Use PolModule in pol-specific modules
* wip, creating PolModule with getXYZParam
* wip 1, moving getXYZ to UOExecutor
* compilable with PolObjectImp / PolApplicObj
* add type guard
* wip, change signatures
change signatures of script_method, script_method_id, and
custom_script_method
* compilable (windows)
* linux fixes
* namespace fixes
* remove uoexhelp
* formatting
* compilable
- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h
* finish uoexec() helper
* some cleanup
2020-02-08 09:21:35 +01:00
turleypol
568ebfea96
fixed more memleaks
2020-01-03 19:17:07 +01:00
turleypol
7e8f92bc85
rewrote module function generation, maybe this works
2019-11-10 22:04:08 +01:00
Kevin Eady
ca850a0c76
project refactoring
2019-10-18 21:32:30 +02:00
Kevin Eady
5c0fb7c4ea
First support for .em-parsed module function tbls
...
- Create module parser custom target
- Include generated tables in .cpp sources
- Standardize module function names based off .em names
2019-10-17 22:37:26 +02:00
Kevin Eady
b55e852a5b
wip 1
2019-10-17 19:08:49 +02:00
turleypol
aa96dfc300
binaryfile readstring should validate the string.
...
no need for basicmod compare to create the strings on the heap
removed doxygen experiment
fixed compiler warning about cast in uotool
2019-08-17 13:51:45 +02:00
turleypol
8c7ed986a9
CAsc(Z)/CChr(Z) use utf16, if CChr() cannot represent it with a single
...
number return an error.
Fixed problem with RequestInput using the unicode version
Updated em file comments
2019-01-04 13:18:53 +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
esdete
dc2d29b433
NULL to nullptr
2018-07-31 14:30:29 +02:00
turleypol
f37d500f72
fix msvc warnings
2018-07-20 20:46:59 +02:00
DevGIB
680fc9c3ea
Removed non uTF-8 compatible characters
2018-07-21 00:11:02 +08:00
DevGIB
e74d8c58c7
Clang Format Cleanup
2018-07-20 21:28:09 +10:00
GIB
06667e0481
Fixed encode so it actually works and updated documentation.
2018-07-19 23:24:32 +08:00
DevGIB
881d2cdbf4
Initial Base64 Work.
2018-07-20 00:28:01 +10:00
turleypol
84afea1bc1
unicode: find and compare
2018-06-25 19:31:00 +02:00
turleypol
f3d92ad172
more utf8 support
2018-06-25 19:30:59 +02:00
turleypol
af5d3f38d7
utf8 work in progress
2018-06-25 19:30:59 +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
Kevin Eady
e50bd96f47
More changes from review
2018-01-11 15:58:09 +01:00
Kevin Eady
806e89d54e
Comments based off Turley's review. Also some cleanup.
2018-01-11 14:55:27 +01:00
Kevin Eady
92f234ed27
Add boolean to json stuff, and some cleanup
2018-01-07 02:12:13 +01:00
Kevin Eady
af4de9a1a4
Correct invalid merge; fix folder name for pol project
2018-01-05 21:00:48 +01:00
Kevin Eady
642c3700fc
Merge master and fix conflicts
2018-01-05 20:49:30 +01:00
Kevin Eady
a28cd9c42c
Initial implementation of json
2018-01-05 20:40:14 +01:00
turleypol
ef2108c9f7
New objecttype Boolean.
...
create via basic::Boolean(1/0)
only == != ! operators are implemented.
2018-01-05 20:04:01 +01:00
turleypol
798eda5b63
Cleanup of header includes.
2018-01-01 21:52:14 +01:00
Fernando Rozenblit
9475bc0299
Fixed crash in SplitWords due to outdated .em files
2017-05-28 11:30:19 +02:00
Fernando Rozenblit
eb34290222
Cleanup for modules' function tables
2017-01-24 21:57:16 +01:00
turley
f9c3db9e41
Modules share the same (helper) template base class
...
Optimize function name search for all modules not only uo by using an additional map, replaced c array with vector for functionsdef.
Simplified pragma pack order. (MSVC version is supported in all
compilers)
Removed compilerassert.h (asserteql,..) replaced with static_assert
Removed some old #ifs
2016-12-20 23:53:32 +01:00
turley
4d9aa75f3b
Corrected definition order in module defs
2016-12-14 21:50:23 +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
turley
2ca9cac2e0
Moved fileaccess storage
2015-01-02 16:31:10 +01:00
frozenblit
c4cb100279
Some more stl_inc.h cleanups
2014-11-01 19:16:13 +01:00
turley
3a15fd38af
fixed 64bit linux hex display
2014-08-16 17:03:32 +02:00
frozenblit
5431134b66
Fixed warning in basicmod.cpp. Rewrote clib::mkupper/clib::mklower to use boost::to_lower, boost::to_upper. Same for clib::strlower/clib::strupper.
2014-06-09 22:48:52 +00:00
dsourc
c61c4127c5
fixed crashes when parent script is killed before child script returns
...
fixed crashes when reporting error in an armordesc entry defined in config\itemdesc.cfg
fixed warning about streamoff conversion to int
2014-02-27 14:26:49 +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
4c7f70fc79
first version of a generic message_queue (currently not lockfree, need to test more)
...
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00
turley
355252d527
typo in use_single_thread_login
...
Changed: SplitWords( str, delimiter := " ", max_split := -1 )
it has now an additional parameter max_split, if given it limits the number of times that a string will be split
default: -1 no limit
(Patch submitted by andenixa)
2012-11-14 09:19:36 +00:00
turley
78cc71ea9d
fixed bug003
...
fix crash in CChrZ if an arrayelem is invalid
2011-12-30 11:53:10 +00:00
turley
a79d9d81c6
some socket fixes
2011-12-29 14:16:40 +00:00
turley
df251bd349
warning fixes
2011-12-29 10:45:47 +00:00
turley
4e7e400254
64bit compilation..
2011-12-23 13:28:38 +00:00
dsourc
cda82e5f88
Changed: basic::CChrz( intarray ) to basic::CChrz( intarray, break_at_first_null := 0 );
...
if the break_at_first_null parameter is 0 it uses the old behaviour to just skip the nulls and still convert everything
if the break_at_first_null parameter is set to 1 it stops the conversion to string at the first null it finds.
2011-11-29 18:50:40 +00:00