Commit graph

102 commits

Author SHA1 Message Date
Fernando Rozenblit
70b9c1305c
Add maximum cmdlevel to polsys::ListTextCommands() (#231)
The default, -1, will return all commands as before. No need for a version bump because the method checks the number of arguments.
2020-08-19 07:19:30 +02:00
Eric Swanson
50e42719b8
Add file/SourceFileCache (#222)
* Add file/SourceFileCache

Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
2020-08-16 17:22:16 -07:00
Kevin Eady
5bbc53ab6c
Add exit_code to uo::Shutdown() (#176)
* Add exit_code to uo::Shutdown()

Co-authored-by: Eric Swanson <eric.the.unicorn@gmail.com>
2020-08-03 20:30:27 +02:00
Eric Swanson
8b98737829 Move Compiler.verbosity_level_ to CompilerConfig.VerbosityLevel 2020-08-03 00:31:27 -07:00
turleypol
ece2025c57 added docs for checkskill change 2020-08-01 10:00:08 +02:00
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
59c816cab1 added ecompile.cfg and cmdline flag to trigger error when include
directives use the wrong capitalization. The existing warning will now
lead to an error when warnings get treated as errors.
2019-10-07 21:01:26 +02:00
Fernando Rozenblit
818c06af96 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. 2019-09-30 23:49:31 +02:00
turleypol
f5310f48f4 Merge remote-tracking branch 'origin/master' into utf8
* origin/master:
  Style...
  Getting rid of a warning
  Fixed wrong return type
  style issues :p
  Fixed the check for max line length and some other minor issues
  Added SocketLineReader class, which is responsible for reading lines from a socket in a more efficient way. Modified Aux, Debug and WWW to use the new class.
  removed some ancient macros from clib.h
  Added error for if NaN sent as PID
  Update docs to use different wording to prevent confusion.
  Updated Docs.
  Fix for GetProcess() not actually loading the parent PID.
  Update docs to use different wording to prevent confusion.
  updated travis build clang and ninja
  Updated Docs.
  Fix for GetProcess() not actually loading the parent PID.
  Improved network code used by http and aux servers

Conflicts:
	pol-core/doc/core-changes.txt
2019-09-02 18:55:07 +02:00
Jonathan Morland-Barrett
35535a220a Fix for GetProcess() not actually loading the parent PID. 2019-08-22 07:42:08 +08: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
76487f0ab2
SendQuestArrow() fix for HSA clients (#91)
* Changed SendQuestArrow to receive an arrow id rather than requiring an object reference.
*Added new error if no id is supplied to a cancellation request.
* .Fix uo.em to have correct default.
2019-06-19 10:30:41 +08:00
GIB
d8911acc72
Hotfix/start skill script (#90)
* Update os.em file so that script parameter is passed as a string by default instead of int.
Updated docs for start_skill_script to be clearer what is being asked for, and reflect changes to os.em
Modified script param check to also check the string length.
2019-06-17 21:23:57 +08:00
Fernando Rozenblit
f4f9c20afd Merge branch 'master' into network-improvements 2019-04-26 20:33:27 +02:00
Kevin Eady
3614b2550d add parameter to get an attribute value in tenths 2019-03-17 20:50:50 +01:00
Fernando Rozenblit
0c077678df Removed option "Multithread" from pol.cfg. POL for a long time has defaulted to using multiple threads. 2019-02-22 19:24:23 +01:00
turleypol
864aa7a3bd hehe basic.em had SizeOf() so I removed util.em EstimateSize again... 2019-02-02 16:01:14 +01:00
turleypol
395083a31c memoryestimation did not add the module cost per executor
added EstimateSize util.em function returns estimated memorysize in
bytes of given argument. (docs to be done)
2019-02-01 23:18:43 +01:00
turleypol
36ac2ec5aa fixed cliloc.em function parameters 2019-01-15 20:35:01 +01: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
Admin\Me
13b55db32f **** Commit for 2018-11-25 ****
Added ListObjectsInBox to uo.em.
2018-11-25 21:54:52 -06:00
Admin\Me
edec78af5e **** Commit for 2018-11-25 ****
Added ListItemsInBoxOfObjType( objtype, x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM) to uo.em
Updated core-changes.txt with the ListItemsInBoxOfObjType info.
Updated uo.em docs with the ListItemsInBoxOfObjType info.
2018-11-25 05:43:30 -06:00
GIB
8fb6f5ec54 Updated all files to include the FINDOBJTYPE_RECURSIVE default option. 2018-09-08 01:17:15 +08:00
GIB
b9071bbde8 Changes to include flags for findobjtypeincontainer. 2018-09-06 22:34:51 +08:00
GIB
e047e34ef2 List statics (#64)
Added new functions for getting statics with in a range that have certain restraints
2018-07-30 09:58:22 +02:00
turleypol
ae11a8ae0a its now possible to define the number of threads to be used in ecompile 2018-07-29 15:51:58 +02:00
DevGIB
881d2cdbf4 Initial Base64 Work. 2018-07-20 00:28:01 +10:00
Fernando Rozenblit
daf4e35150 Fixed Accessible(). It didn't take a range into account before. Check core-changes.txt for more information! 2018-02-11 14:59:20 +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
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
Kevin Eady
02fd09f3d1 Added docs and module function 2018-01-04 12:19:40 +01:00
turleypol
ef38f90ba7 Added default values for PerformanceMeasure
Fixed doc entry
2017-12-23 22:27:23 +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
GIB
38a4ff7bb5 Added assume_string flag to OpenConnection() 2017-10-20 21:30:35 +08:00
GIB
2402c08632 Changed param for OpenConnection to be optional.
Activated threadpool for OpenConnection similar to how AuxConnections currently work.
Cleared some required PERGON if's out of the globals/network file.
Modified Aux Client to support params.
2017-10-18 21:26:38 +08:00
GIB
6432d07b96 Added params to OS::OpenConnection() to allow you to pass parameters to the script that is run for the connection 2017-10-11 23:38:54 +08:00
turley
df1aad4a8f Changed ecompile.cfg.example to recommended settings:
generate dep files -> skipping up-to-date files can work
threaded compilation -> faster
2017-09-24 20:04:32 +02:00
Admin-Yukiko
075d22196d Added all current settings and infos
I added all current settings as documented in the POL Docs and info regarding each setting. I also delimited each setting name from its value with the equals symbol '='.  I tested compiles with the new delimiter and had no problems. I admit I added the delimiter because the POL Configurator uses the equals sign to parse the lines in a cfg file and I intend to add ecompile.cfg to the Configurator. As the addition of the equals symbol did not cause any problems I am submitting my version of ecompile.cfg to replace the current ecompile.cfg.example.
2017-09-23 21:53:36 -05:00
Adriano Nogueira
62c768fd94 Fix to commit [f60babb]. Duplicate function and missing constant. Even with this problem, it worked on Windows, but not on Linux. 2017-08-21 16:00:32 -03: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  := &quot;&quot; ), not selecting a PID will use the PID of the parent script.
2017-07-23 20:44:37 +08:00
frozenblit
68a8214f7f Fix default parameter for mysql_query
Function expects an array, but was receiving an empty string
2016-10-26 02:11:39 +02:00
frozenblit
04b82656a9 Updated SendQuestArrow() to handle HSA clients 2016-02-15 21:44:41 +01:00
frozenblit
18aace8555 Added UO::SingleClick()
Function to emulate a single-click.
2016-02-15 20:47:10 +01:00
Gabriele Tozzi
6a90be8a97 Merge remote-tracking branch 'upstream/master'
Conflicts:
    pol-core/bscript/object.cpp
	pol-core/pol/accounts/account.cpp
	pol-core/pol/gameclck.cpp
	pol-core/pol/miscmsg.cpp
	pol-core/pol/module/polsystemmod.h
	pol-core/pol/proplist.cpp
	pol-core/pol/proplist.h
    pol-core/support/scripts/polsys.em
2016-02-12 17:37:27 +01:00
turley
764e983d98 more lineendings
again blame bodom
2016-02-12 00:06:07 +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
45dc8c2bf8 Added: mysql_query() now supports a "parameters" (array) argument
It can be used to safely replace "?" placeholders inside the query
with the given array entries.
2015-11-01 21:00:06 +01:00
Gabriele Tozzi
1ab8fd77e4 Added: support for pop-up/context menus
misc/popupmenu.ecl handles the request, SendPopUpMenu()send the menu
2015-09-27 01:10:40 +02:00