Commit graph

24 commits

Author SHA1 Message Date
Kevin Eady
ccc6213c6f
Add ignore_line_breaks option to os::OpenConnection (#512)
* Add use_byte_reader option to OpenConnection

* Fix formatting

* fix incorrect param number

* Do not include on writes CRLF if using byte reader

* Rename to ignore_line_breaks

* Update docs

* Add core-changes
2023-03-20 19:54:39 +01:00
Kevin Eady
1b879bc59f
Add script helpers to implement stealing skill (#493)
* add item.character_owner

* Address review comments
- Cleanup chr_from_wornitems
- Return BError if no character owner

* Add Target option TGTOPT_ALLOW_NONLOCAL

* Address review comments
- Remove `Core::chr_from_wornitems`

* Add pol tests for snooping

* Add tests for TGTOPT_ALLOW_NONLOCAL

* target_nonlocal_checklos pol test debugging

* target_nonlocal_checklos pol test debugging
- Remove destroy of obstacle
- Add a CheckLosAt call to error return

* target_nonlocal_checklos pol test debugging
- Enable USAN build

* undo test debugging changes

* use mobile for los when targetting snoopable items

* Update core-changes

* Persist SnoopScript for items on save

* Add snoop_script_ to Item::estimatedSize

* document SnoopScript script type
2023-01-08 16:59:28 +01:00
Kevin Eady
7346c9b443
Add POLCore().poldir returning POL executable directory (#474) 2022-09-21 13:49:08 +02:00
Kevin Eady
52c24101b9
Add support for cursed items (#466)
* Add support for cursed items

* Fix poldbg localvarmembers
2022-08-03 01:05:12 -04:00
Kevin Eady
458356fc9d
Fix crash on unknown member access on Client; add Client.acct (#462)
* Fix crash on unknown member access on Client

* Update tests

* Update core-changes

* Add client.acct; fix objref docs

* Fix tests
2022-06-16 19:49:39 +02:00
Kevin Eady
5c969ede36
Add support for programmatically disabling inactivity timeout on a client (#458)
* Implementation of disable_inactivity_timeout

* Add documentation

* move client idle check

* fix core-changes date
2022-04-24 23:48:26 +02:00
Peter Wedder
f404591b1d
Fix SetString packet hook method writing UTF-8 instead of CP-1252 (#442)
* Fix SetString packet hook method writing UTF-8 instead of CP-1252. Add a new method, SetUtf8String, for writing UTF-8.

* Add functions that operate on whole strings.

* Fix a couple of bugs and add unit tests.

* Do not convert if the string doesn't contain any UTF-8

* Convert 0x80..0x9f control characters, which don't exist in cp1252, to question marks

* Fix SetUtf8String writing too few bytes if the string contained multi-byte UTF-8 characters

* Remove extraneous parameter from TextCommandScript documentation

* Update changes and docs
2021-11-02 22:00:36 +01:00
Kevin Eady
8e5859c97d
Fix party.addmember implementation for candidates, npcs (#423)
Co-authored-by: Fernando Rozenblit <rozenblit@gmail.com>
2021-09-12 10:32:55 +02:00
turleypol
97980fde31
fixed xml syntax error in the docs (#357) 2020-12-17 21:26:02 +01:00
turleypol
6d73472029
Testsuite reorganization, new feature to call exported functions (#237)
* restructured pol testscripts
pkg based (dedicated pkgroot)
runs per pkg:
setup.ecl if exists
all scripts starting with "test"
cleanup.ecl if exists

return 1 for success everything else is an error

* Scripts can now be loaded and exported functions called
adapted testscripts to use this feature
critical script handling missing

* added support for used in critical scripts

* use weakptr instead of pid
moved keep_alive flag to uoexecutor

* Function and nethod accept now a argument list

* added docs

* missing docs

* faster shutdown time

* fixed typo

* fixed weird cornercase

* shorter test functions names, the length is limited, renamed
loadexported test script to have a dedicated testscript

* generate tiledata/multi for small boat
added generate scripts for generation..
adapted testdata set

* boat tests

* extended scripttests
scheduler will now always know about the loaded script
secured scheduler api

* cleanuo scripts for boat and npc

* shorter function for error return
fixed cleanup: npcs have gravestones, chars was one off and scripted
create of a char made it permanent logged in (until next restart),
which also means that it cannot be deleted

* bypass windows specific ecompile.cfg logic

* fix for parallel execution

* on windows its called .exe ..

* use target binary directly, so cmake can replace it with the actual path
use absolute path to testsuite
disabled temporary the copy of ecompile

* configure ecompile.cfg to add absolute path

* early sleepms calls can lead to endless waiting

* Code coverage (#260)

* play with coverage reports

* fix yml

* use 0 as default for gcov cmake var

* fixed used cov version, hopefully fixed now cmake

* demangle function names

* removed debug msg

* added a few polcore tests (basically just for coverage)
first set executor to noncritical before blocking

* added https://coveralls.io/github/polserver/polserver

* added a stackable item
added a few backpack insert tests
do coverage build only on push events not also for PR merge builds

* added storage tests..
docs need fixes, the Imps are not working at all

* fixed storage test to really move items

* added a house
corrected static/dynamic flag
created a few house tests

* updated yml file to new github api

* corrected coverage discord job name

* always put to runlist even if not necessary

* extended aos prop tests

* equip/unequip aos mod

* extra ci step for shard test fixtures and activated verbose shard test

* use extra ci step for all build configs, sorted testscripts for
execution

* fixed sorting

* added param to syslog to not print the context (cleaner testscript
visualization)

* added build targets for tests

* sleep api cleanup

* more aos property tests

* build for coveralls also on pullrequest

* readded debug state reset on schedule

* updated checkout ci action

* updated checkout in all ci runs
2020-12-16 18:56:10 +01:00
AsY!um-
673d991d8a Added two new members to polcore()
- polcore().last_character_serial returns last character serial assigned by core
- polcore().last_item_serial returns last item serial assigned by core.
2020-08-04 14:14:01 +02:00
GIB
513f36a26b 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.
2020-07-17 21:22:16 +08:00
GIB
86d54f0cae Update docs to include Swing Speed Increase entries. 2020-06-06 22:03:53 +08:00
turleypol
455595055a Changed objref overview to use a svg image generated via graphviz 2020-05-25 20:27:31 +02:00
GIB
396e673c36 Remove commented out old returns.
Updated docs to reflect correct return values.
2020-01-18 20:47:10 +08:00
turleypol
5a570be1f1 removed scriptparam house pats for customhousecommit. Added docs for customhouse changes 2019-12-15 09:39:39 +01:00
turleypol
d3a300aef9 added missing objreference documentation eg. complete xml objects. 2019-11-10 11:29:19 +01:00
GIB
7c02e926e2 Added package reference to script object. 2019-09-26 21:41:45 +08: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
GIB
23b07891d8
Update objref.xml
PC Update to objref.php for set_member() method of uobject.
2019-05-10 09:11:38 +08:00
Fernando Rozenblit
21120a9b08 Changed account.split() to return an accountref on success. Added the missing changelog from Kevin. 2019-01-21 20:22:22 +01:00
Fernando Rozenblit
b04feaab73 Doc fixes regarding account.setname() 2019-01-21 18:25:52 +01: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
Gabriele Tozzi
88d7c84b6f Updating doc version to POL100 2018-02-11 00:01:46 +01:00
Renamed from docs/docs.polserver.com/pol099/objref.xml (Browse further)