Kamron Batman
03f850fe03
fix: Fixes sending packets and sidesteps a major issue with stackalloc and PGO in .NET 8 ( #1607 )
...
### Summary
- Works around a sneaky edge case bug in the JIT with stackalloc where sometimes the buffer is not zero'd.
- Fixes SendDisplayBoatHS
- Fixes sending health bars in the `SendEverything()` logic.
- Fixes a bug in sizing for some string helper functions.
### Developer Note
We are enabled `SkipLocalsInit` - do not rely on `stackalloc` to be zero'd. To zero the buffer, use `span.Clear();`
Closes #1606
2023-11-21 12:18:20 -08:00
Kamron Batman
2a3e048b86
fix: Fixes more packet initializations ( #1507 )
2023-09-19 00:02:17 -07:00
Kamron Batman
8389bfacfe
chore: Updates copyright ( #1448 )
2023-08-09 09:09:26 -07:00
mdodkins
a9a2a89908
feat: Customize expansion and set maps on first boot ( #1425 )
2023-07-31 20:46:49 -07:00
Kamron Batman
f268d5d4e2
fix: Cleans up core code ( #1187 )
...
**Only one functional change**
* Fixes a bug in LogFactory where `Warning` is being logged as `Information`
Non-functional changes:
* Updates/Fixes copyright headers
* Removes namespace scopes for core files.
View with [whitespace off](https://github.com/modernuo/ModernUO/pull/1187/files?w=1 ).
2022-10-10 21:47:08 -07:00
Kamron Batman
2d95fb20a6
fix: Adds expansion specific mobile status version ( #1145 )
2022-08-22 21:04:59 -07:00
Kamron Batman
651cffa872
fix: Cleans up mobile status packets ( #835 )
...
* Removes Span2D for mobile moving. Instead uses pure math and simplifies the calculation.
* Cleans up the extended mobile status packet.
2022-02-27 03:10:35 -08:00
Kamron Batman
941452de4a
fix: Stops creating blocked packets entirely ( #944 )
...
Optimizes larger servers where users are logging in and packets are being created for no reason.
2022-02-27 00:13:49 -08:00
romanlysenko
20422e5f11
feat(content): Adds configuration for extended status override (UOML) ( #634 )
2021-06-03 09:31:18 -07:00
Kamron Batman
a0893b68c0
fix(core): Updates slice with range selectors ( #583 )
...
- [X] Replaces Span slicing with range selection
- [X] Replaces string slicing with range selection
2021-04-23 20:57:24 -07:00
Kamron Batman
b51bab5f1d
fix(core): Fixes item mask in incoming mobile packet ( #568 )
...
- [X] FIxes the item mask in incoming mobile packet
- [X] Streamlines some of the send info stuff
- [X] Adds a few missing packet initializations
2021-04-10 21:48:07 -07:00
Kamron Batman
ec1cc10821
fix(network): Converts House Design Detailed Packet ( #538 )
...
- [X] Converts design state detailed packet
- [X] Removes `Packet` class
- [X] Removes `Send(Packet)` function signatures
- [X] Removes `PacketWriter` class
- [X] Updates dependencies.
2021-03-03 02:09:15 -08:00
Kamron Batman
c58aad733d
fix(core): Converts BB packets ( #406 )
...
- [X] Organizes and splits up bulletin boards
- [X] Converts packets
2021-01-13 22:28:31 -08:00
Kamron Batman
f4dd7c8e7f
fix(party): Converts party packets ( #401 )
...
- [X] Converts party packets
2021-01-10 14:23:10 -08:00
Kamron Batman
8763be8a21
fix(core): Cleans up uninitialized packets ( #397 )
...
- [X] Encapsulates/abstracts buffer cache checking
- [X] Changes mobile moving cache to use Span2D
2021-01-09 14:10:29 -08:00
Kamron Batman
0912876f7c
fix(core): Converts virtual hair packets ( #388 )
...
- [X] Converts virtual hair packets
2021-01-05 22:14:54 -08:00
Kamron Batman
3dd0d8f42b
fix(core): Converts the rest of the packets ( #385 )
...
- [X] Converts vendor buy packets
- [X] Converts vendor sell packets
- [X] Converts target packets
- [X] Converts secure trade packets
- [X] Converts some player packets that were missed
2021-01-05 00:35:56 -08:00
Kamron Batman
ffc26459ff
fix(core): Converts message, mobile, movement, player packets ( #384 )
...
- [X] Converts message packets
- [X] Convers mobile packets
- [X] Converts movement packets
- [X] Converts player packets
2021-01-04 23:47:20 -08:00
Kamron Batman
7ef1d41c6f
fix(core): Converts mobile incoming packet ( #370 )
...
- [X] Converts mobile incoming packet
Bumps release version
2020-12-28 02:30:47 -08:00
Kamron Batman
9d4161b3e4
fix(core): Converts MobileUpdate packet ( #369 )
...
- [X] Converts mobile update packet
2020-12-28 01:50:17 -08:00
Kamron Batman
3d98e6e193
fix(core): Converts mobile status packets ( #368 )
...
- [X] Combines compact/extended statuses
2020-12-28 01:13:02 -08:00
Kamron Batman
8f8b650ab5
fix(core): Converts healthbar packets ( #367 )
...
- [X] Converts healthbar packets
2020-12-27 23:22:21 -08:00
Kamron Batman
26243a72a7
fix(core): Converts mobile name and animation packets ( #366 )
...
- [X] Converts mobile name
- [X] Converts animation
- [X] Updates some old tests
2020-12-27 19:57:38 -08:00
Kamron Batman
5b69f1d389
fix(core): Converts mobile stats packets ( #360 )
...
- [X] Converts mobile stats packets
- [X] Removes human racial from non-players
2020-12-27 14:44:03 -08:00
Kamron Batman
03d0a4664e
fix(core): Adds SkipLocalsInitAttribute support, optimizes broadcasted packets ( #363 )
...
- [X] Adds support for `SkipLocalsInitAttribute`. SkipLocalsInitAttribute skips initializing stack variables including `stackalloc`. I don't think it is wired/working yet but should be implemented soon.
- [X] Optimizes broadcasted packets by checking if the first byte (packet ID) is non-zero. If it is already set, it reuses the buffer.
- [X] Removes unnecessary refs to Spans. I don't think the Span struct itself is mutable, so a ref is not helpful.
2020-12-26 12:46:06 -08:00
Kamron Batman
10a6e17640
fix(core): Converts mobile moving packet ( #357 )
...
- [X] Converts mobile moving packet
2020-12-24 17:13:55 -08:00
Kamron Batman
90393fea2a
fix(core): Converts death animation ( #356 )
...
- [X] Converts death animation
- [X] Fixes tests for movement packets
2020-12-21 23:43:45 -08:00
Kamron Batman
361ec4dba4
Effects packets ( #308 )
...
- [X] Changes effect packets
- [X] Updates playing sounds
- [X] Updates Effects class to have more options so there are less direct calls to building the packets
- [X] Changes bonding status packet
2020-11-12 00:52:38 -08:00