Commit graph

325 commits

Author SHA1 Message Date
LG Archer
e62fc4964a + Fix issues with status bars not updating.
The health bar status updates do not require prerequisite checks as they use flags within the packet to determine the proper state of being yellow or green or both.
2017-03-30 21:04:23 +01:00
VitaNex
0caf78c132 + Rework NetState nullification. 2016-07-18 18:49:50 +01:00
VitaNex
527550e667 + Gump ButtonID response validation.
* Dispose of NetStates that attempt to send a gump response with a ButtonID not defined by the Gump.
2016-06-12 19:14:13 +01:00
VitaNex
e47753df2b + Prevent NetState nullification recursion if the NetState is being disposed.
* This issue is responsible for causing client crashes when logging out, one of the signs is the sound of your backpack closing multiple times.
* Fix prevents multiple calls to subsystems such as the trade window, which had the potential to dupe items when returning them to the trade partner.
* Credit goes to UO:Revealed (www.uorevealed.com) for reporting the circumstances which lead to the fix, which seems to have been an overlooked issue for a very long time.
2016-06-11 21:32:20 +01:00
LG Archer
4ffc2f33d1 Fix erroneous CallPriorityAttribute computation.
Previous method of computing resulted in unexpected ordering when using Int32.MinValue or Int32.MaxValue as the Priority value.
2016-05-17 10:41:51 +01:00
VitaNex
3f5678f061 + Expose NetState members for what they are, to help with custom implementations that require access to extended features. 2016-01-27 03:40:42 +00:00
VitaNex
7af0579875 + RunUO 2.7 with initial TOL expansion support. 2016-01-27 02:59:11 +00:00
Vorspire
803cd14fc3 + Update project settings. 2015-08-23 02:36:34 +01:00
Vorspire
a32c4573ad + Execute and store the results of the Linq query as a List to prevent collection modified exceptions.
* The List is a member of PooledEnumerable<T> and is thus pooled along with it.
2015-08-23 02:13:49 +01:00
Vorspire
af86aa23c7 + Update project settings.
* Scripts project assembly name changed to "Scripts.CS" and build output targets the "Scripts/Output/" directory to mimic RunUO's ScriptCompiler behaviour.
2015-08-23 01:51:26 +01:00
Vorspire
887ca5d341 + Don't allow processing of the Timer changed queue while the world is loading or saving.
* Removes the risk of inconsistency [warnings] generated by timers that tick with handlers that modify World.Items and World.Mobiles during I/O.

+ Update description of Core.TickCount.
2015-08-23 01:40:09 +01:00
Vorspire
d093acfb2e + Make sure #Map_NewEnumerables is defined by default, multiple sources have verified stability.
+ Core housekeeping, converted some for-loops to foreach-loops.

+ Reimplementation of Core.TickCount using only native .NET Stopwatch.
* Stopwatch actually wraps the QueryPerformanceCounter method to get its result and can also be used to determine whether HRT is supported.
- Removed SafeNativeMethods DLLImport for QueryPerformanceCounter.

+ Added Core.GlobalUpdateRange to define a constant standard range used in many calculations throughout RunUO.
* The value '18' in a range context is hard-coded in many places, this new property will eventually be used to replace those usages.
2015-08-22 04:50:05 +01:00
Vorspire
9bae957ccb + Map Updates (4)
* Details in-file: Map.cs
2015-08-21 23:09:49 +01:00
Ravenwolfe
06fa2ab343 Found issue with XMLserialization using local time to serialize instead of UTC. Changed to be consistent with rest of project. 2014-04-13 22:03:06 -05:00
Mark Sturgill
5703f6ab78 comments 2014-03-26 11:45:46 -07:00
Mark Sturgill
5003f7c4a9 add NEWTIMERS and NEWPARENT preprocessor directives to assist third party developers 2014-03-09 17:07:26 -07:00
Mark Sturgill
54aef01c72 (potentially) more portable implementation of double/float serialization for mono 2014-03-07 17:36:28 -07:00
Mark Sturgill
49941a49af typo 2014-03-05 11:49:36 -07:00
Mark Sturgill
83bf81b7ee synchronize Server/Scripts project properties
whitespace/comment changes in Serialization.cs and ScriptCompiler.cs
proper dispose pattern for Listener
remove IDisposable from FileLogger
2014-02-25 14:00:32 -07:00
Mark Sturgill
041c976ddc fix null ref in bounce 2014-02-21 19:04:53 -07:00
Mark Sturgill
0bd09dbeac line ending normalization 2014-02-18 10:23:15 -07:00
Mark Sturgill
1b157e102d set Parent CommandProperty write accesslevel to Developer
unmark Parent property as virtual
2014-02-15 14:54:28 -07:00
Mark Sturgill
2f005966f9 move stuckmenu methods from core mobile to PlayerMobile
take advantage of IEntity/Parent refactor in a few trivial places
2014-02-15 13:52:03 -07:00
Mark Sturgill
12826da7c4 remove ParentEntity and RootParentEntity
Parent and RootParent are now IEntity properties
refactor object arguments to IEntity for parent related methods
branch and version bump to 2.6
2014-02-15 13:21:28 -07:00
Mark Sturgill
91eed1e2ed there is no exact localization match for the legacy container label, but this one is pretty close if someone wanted to use it 2014-02-15 12:28:27 -07:00
Mark Sturgill
e68cfe354f add new visible damage mode Selective to VisibleDamageType enumeration
two new virtual properties ShowVisibleDamage and CanSeeVisibleDamage can be used to control damage visibility
default values for this mode are controlled by the static properties Mobile.DefaultShowVisibleDamage and Mobile.DefaultCanSeeVisibleDamage
2014-02-09 14:38:43 -07:00
Mark Sturgill
cfdd943142 additional edge-case thread safety for RNG buffer filling 2014-02-09 13:02:20 -07:00
Mark Sturgill
a5b7e6c78c Added the command line argument -usehrt to enable high resolution timing on supported platforms (QueryPerformanceCounter)
Timing will fallback to DateTime.UtcNow.Ticks when QPC is unsupported.
2014-02-09 12:10:13 -07:00
Mark Sturgill
473751297d dont call datetime.utcnow for every item during serialization 2014-02-08 13:44:08 -07:00
Mark Sturgill
18bc7b84d9 slight refactor of visible damage 2014-02-06 23:17:23 -07:00
msturgill
6571b05f33 temporary edge-case fix 2014-01-15 14:43:49 -07:00
Mark Sturgill
e15e65033e fix random impl race condition 2013-11-13 21:42:16 -07:00
Mark Sturgill
1fdb2d9a1f update version display and project urls 2013-11-03 10:11:30 -07:00
Mark Sturgill
d18b2254d8 tweak version to 2.5.0 to help with legacy maint in the future 2013-11-02 22:26:20 -07:00
Mark Sturgill
0eeb0c0c31 generic conversions 2013-11-02 21:40:42 -07:00
Mark Sturgill
f566daea30 gargoyle race/body impl from servuo with some modification 2013-11-02 15:37:39 -07:00
Mark Sturgill
cf7bc3043f use CSPRandom with MONO
add MONO comments to RunUO.exe.config
2013-11-02 12:29:43 -07:00
Mark Sturgill
436e8f054a add Deleted property to IEntity
cleanup Map.GetObjectsInRange
additional hashtable -> dictionary conversions
generic timer impl for EffectController
2013-11-02 10:52:08 -07:00
Mark Sturgill
4fccb0c3d3 reduce timer queuing interval to 1ms (from 10ms) to prevent timer stacking with new high resolution timers (tested in production by vorspire) 2013-11-02 01:05:50 -07:00
Mark Sturgill
ad5c172687 mono should not need these fixes anymore 2013-10-30 12:11:45 -07:00
Mark Sturgill
018ef960b0 mono tickcount fix 2013-10-30 11:49:59 -07:00
Mark Sturgill
e67faba4d8 RunUO 2.4 will be the latest release supporting the 2.0 .NET Framework.
Framework_4_0 preprocessors have been removed. ScriptCompiler will set Framework_4_0 as legacy.
2013-10-30 11:28:34 -07:00
Mark Sturgill
aa738007d7 missing enum refactor 2013-10-29 10:45:55 -07:00
Mark Sturgill
cf2544dcea enum tidying 2013-10-27 11:30:24 -07:00
Mark Sturgill
502f3b3b97 cleanup core.tickcount
fix typo in Mobile.cs
2013-10-25 01:24:14 -07:00
Mark Sturgill
5b03ef628e drag effects have the potential to crash SA clients regardless of any location checking 2013-10-23 21:42:33 -07:00
Mark Sturgill
28744d486e misc generic conversions 2013-10-23 09:54:06 -07:00
Mark Sturgill
d567869eb8 begin 2.5 2013-10-22 19:18:58 -07:00
Mark Sturgill
a45c07200d delta queue typo 2013-10-22 15:00:32 -07:00
Mark Sturgill
ed06db12bf more vs nag fixes
x64 solution and projects are necessary for proper vs debugging
2013-10-21 23:15:13 -07:00