Commit graph

88 commits

Author SHA1 Message Date
Fernando Rozenblit
4f3da669aa
Refactor suspicious activity warnings and suppress B1 overflow warnings (#249)
* Refactored the reporting of suspicious activities
* Only show warnings about B1 packet overflow if ShowWarningGump is enabled
2020-08-29 09:39:18 +02:00
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
Fernando Rozenblit
266bff30c2
item.hitscript and item.onhitscript will now return the full spec for the script. Added breaking-changes.txt. (#215)
* Return the full spec for item.hitscript and item.onhitscript. The relative name wasn't very helpful.

* Added breaking changes.txt. We can add more breaking changes later.

* Added ScriptDef::qualifiedname(). Returns the full spec necessary to call the script ("::scriptname" or ":pkgname:scriptname"). Returns an empty string if there is no script.
2020-08-13 11:29:07 +02:00
turleypol
fe301c82ea
Misc test preparation improvements and fixes (#196)
* uodir parameter for uoconvert tiles/landtiles/multis
limit decay sleeptime to 500ms
exit_code cannot be "fixed" with a later call
2020-08-09 15:10:52 +02:00
AsY!um-
a48490034d Added corechanges.xml 2020-08-04 14:48:41 +02: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
2ee50ffa8b Removed "verbose" boolean; check compilercfg.VerbosityLevel > 0 instead. 2020-08-03 04:17:31 -07: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
Fernando Rozenblit
d1689476b4
Items can now be created with an assigned quality from an itemdescriptor (#161)
* Fix bug where the quality property couldn't be changed in the ItemDescriptor for Items, only for Equipment.

* Removed the distinction between Item and Equipment quality. Now every quality comes from the dynprop in Item. I haven't benchmarked memory use nor performance but it should have a minimal difference (8-16 bytes more per equipment).

* Items with different quality will no longer stack
2020-07-31 23:27:07 +02:00
Kevin Eady
c10e724ea1 Ensure textentry_uoemod is not overwritten
Fixes: #163
2020-07-28 19:08:14 +02:00
GIB
a7ba11cce8 - Fix up docs.
- Change modifier calculation to correctly use double.
- Change rounding calculation as per Turley's suggestion.
2020-07-16 20:13:51 +08:00
GIB
96f7546fde Update docs to include Swing Speed Increase entries. 2020-07-16 20:04:21 +08:00
GIB
9d15f3ef45 Merge conflicts for rebase 2020-07-16 20:04:11 +08:00
GIB
395b17b583 Merge branch 'Swing_Speed_Increase' of https://github.com/polserver/polserver into Swing_Speed_Increase
# Conflicts:
#	pol-core/bscript/parser.cpp
#	pol-core/doc/core-changes.txt
2020-07-16 20:01:59 +08:00
GIB
86d54f0cae Update docs to include Swing Speed Increase entries. 2020-06-06 22:03:53 +08:00
Eric Swanson
1c3a96d2d6 Remove 'declare' keyword 2020-05-07 00:18:10 -07:00
Eric Swanson
714e6a5b6a Fix docs format
add a structure test
Add more details (including a real example) to docs
2020-04-29 12:03:30 -07:00
Eric Swanson
4531b8daf0 Add docs 2020-04-29 03:53:37 -07:00
GIB
9b8fe4e33a Fix change log wording so its not misleading. 2020-04-23 20:22:30 +08:00
GIB
d5b578c896 Added ShowWarningCursorSequence to pol.cfg to allow players to silence cursor out of sequence errors. - Requested by Tercio 2020-04-18 22:38:53 +08:00
Kevin Eady
ae81a6fa7f fix "assign in condition" warning; formatting 2020-03-18 22:19:10 +01:00
Kevin Eady
2f0536a0c4 add EnableWorldMapPackets docs 2020-03-04 19:55:53 +01: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
Kevin Eady
1b25a7cf45 Update core-changes 2020-01-20 12:04:30 +01:00
GIB
396e673c36 Remove commented out old returns.
Updated docs to reflect correct return values.
2020-01-18 20:47:10 +08:00
Kevin Eady
0b2da542a5 Modify docs 2020-01-12 20:51:05 +01:00
turleypol
c42e714524 updated docs 2020-01-04 21:25:31 +01:00
Jonathan Morland-Barrett
e66eac2b71
AddAmount returns ItemRef on success. (#114)
**BREAKING CHANGE**
Whilst the break may be minor for some its still worth checking if you evaluate the response from AddAmount anywhere in your scripts.
If you compare it to 1 (int) you need to update this as the function no longer returns an integer on success.
* Update AddAmount() function from uo.em to return the original itemref on a successful addition of amount.
2020-01-04 19:51:28 +08:00
Kevin Eady
26601f97f2 Add dummy packet handler for 0xFA and 0xFB 2019-12-29 11:42:03 +01:00
turleypol
e6edceef65 cleanup of debug prints 2019-12-28 17:56:32 +01:00
turleypol
4bd8c31a3c removed introduced tabs 2019-12-15 11:53:09 +01:00
turleypol
5a570be1f1 removed scriptparam house pats for customhousecommit. Added docs for customhouse changes 2019-12-15 09:39:39 +01:00
turleypol
c61b877caa
Healthbarfix (#105)
* fixed poison/invul pkt for newer clients

* updated corechanges
2019-12-12 16:04:02 +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
turleypol
9a43a5f045 added docs 2019-10-05 14:11:01 +02:00
turleypol
1b6594e5ad fixed min/max damage visualization in the statusbar 2019-10-03 14:41:53 +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
GIB
7c02e926e2 Added package reference to script object. 2019-09-26 21:41:45 +08:00
Fernando Rozenblit
d092c7da64 Update core-changes date 2019-09-21 11:13:01 +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
Fernando Rozenblit
ff9f415bd0 Merge changes from 'origin/master' into network-improvements. Added core-changes entry. 2019-08-26 18:42:27 +02:00
Jonathan Morland-Barrett
20eb7f24c7 Updated Docs. 2019-08-22 07:42:08 +08:00
GIB
0729ed7129
Fix to items randomly loading with AOS props due to incorrect initalization of props on load of server.
Hotfix/dynaprop fix (#93)
2019-07-12 15:14:35 +08: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
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
Fernando Rozenblit
0bed27c1e9 Final adjustments to core-changes 2019-04-26 21:44:10 +02:00
Fernando Rozenblit
ec28958dc6 Added Turley's missing core-changes :P 2019-04-26 21:24:06 +02:00
Fernando Rozenblit
f4f9c20afd Merge branch 'master' into network-improvements 2019-04-26 20:33:27 +02:00