Commit graph

223 commits

Author SHA1 Message Date
Zynerji
acbced8b75
Fix 16-bit texture decode: A4R4G4B4 and R5G6B5 (#4480)
Both formats expanded their packed channels with arithmetic that cannot
reach the top of the 8-bit range.

A4R4G4B4 used `nibble / 0xF * 255` in integer arithmetic. nibble / 15 is
0 for every nibble 0..14 and 1 only for 15, so all four channels - alpha
included - snapped to 0 or 255. In practice every affected texture
decoded to a single flat colour with binary alpha. Measured on a
CustomDM dat set, distinct colours and distinct alpha levels per texture
before -> after:

  06007068    1 ->  14 colours,   1 ->  1 alpha
  0600926C    1 ->  40 colours,   2 -> 15 alpha
  0600926E    1 ->  54 colours,   2 -> 16 alpha
  06009340    1 ->  70 colours,   2 ->  9 alpha
  06006430    1 ->   1 colours,   2 -> 11 alpha

255 / 15 == 17 exactly, so multiplying the nibble by 17 maps 0..15 onto
0..255 with no rounding error. The alpha nibble is now masked for
symmetry with the other three.

R5G6B5 expanded with a bare left shift, mapping a 5-bit value onto
0,8,16..248 and a 6-bit value onto 0,4,8..252. Neither reaches 255, so a
fully saturated white decoded to (248,252,248) - slightly dark and
slightly green tinted, since green keeps one more bit. Replicating the
high bits into the low ones spans the full range. Measured before ->
after on four textures whose brightest pixel is white:

  06006402, 06006404, 0600641D, 060096C0
  (248,252,248) -> (255,255,255)

and partial-range textures scale correspondingly, e.g. 06009694
(216,36,248) -> (222,36,255).

Affects every consumer of ACE.DatLoader that renders or exports
textures.
2026-08-13 01:04:08 -04:00
Ty Conner
8c760cb9ef
Wire up support for HighRes DAT handling (#4469)
* Update DDDHandler.cs

Ignore HIRES DAT file iteration response

* Update DatDatabaseType.cs

* Update DatFile.cs

* Update DDDManager.cs

* Update PropertyManager.cs

* Update WorldManager.cs

* Update GameMessageDDDBeginDDD.cs

* Update GameMessageDDDDataMessage.cs

* Update GameMessageDDDInterrogation.cs

* Update DDDHandler.cs

* Update Session.cs

* Update DDDHandler.cs
2026-07-29 13:03:36 -04:00
dependabot[bot]
be93bd4e54
Bump System.Drawing.Common from 10.0.9 to 10.0.10 (#4465)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 13:23:00 -04:00
dependabot[bot]
3ecc3d29c4
Bump System.Text.Encoding.CodePages from 10.0.9 to 10.0.10 (#4466)
---
updated-dependencies:
- dependency-name: System.Text.Encoding.CodePages
  dependency-version: 10.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-07-22 13:15:41 -04:00
Ty Conner
39ee90b461
Suppress Log4Net issue (#4454)
GHSA-4f7c-pmjv-c25w

<https://github.com/advisories/GHSA-4f7c-pmjv-c25w>
2026-06-16 12:16:22 -04:00
Ty Conner
f1438e0ff5
Bump nugets (#4455) 2026-06-14 16:50:24 -04:00
dependabot[bot]
e38f4c5960
Bump System.Text.Encoding.CodePages from 10.0.7 to 10.0.8 (#4450)
---
updated-dependencies:
- dependency-name: System.Text.Encoding.CodePages
  dependency-version: 10.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-26 01:02:25 -04:00
dependabot[bot]
36adf27b0f
Bump System.Drawing.Common from 10.0.7 to 10.0.8 (#4449)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 10.0.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-19 12:36:10 -04:00
dependabot[bot]
cee243d024
Bump System.Text.Encoding.CodePages from 10.0.6 to 10.0.7 (#4439)
---
updated-dependencies:
- dependency-name: System.Text.Encoding.CodePages
  dependency-version: 10.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-02 10:26:32 -04:00
dependabot[bot]
1cf9336134
Bump System.Drawing.Common from 10.0.6 to 10.0.7 (#4438)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 10.0.7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-05-02 01:19:38 -04:00
dependabot[bot]
5dfc1042ad
Bump System.Text.Encoding.CodePages from 10.0.5 to 10.0.6 (#4436)
---
updated-dependencies:
- dependency-name: System.Text.Encoding.CodePages
  dependency-version: 10.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-21 12:46:32 -04:00
dependabot[bot]
e69f7ade35
Bump System.Drawing.Common from 10.0.5 to 10.0.6 (#4433)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 10.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-21 00:08:07 -04:00
dependabot[bot]
09feb95f52
Bump System.Text.Encoding.CodePages from 10.0.3 to 10.0.5 (#4423)
---
updated-dependencies:
- dependency-name: System.Text.Encoding.CodePages
  dependency-version: 10.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 23:25:45 -04:00
dependabot[bot]
54b9e4e9cb
Bump System.Drawing.Common from 10.0.3 to 10.0.5 (#4422)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 10.0.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-03-16 23:11:00 -04:00
gmriggs
c420312a89
.net10 build (#4392)
* .net10 build

* update appveyor version

* update appveyor vs version

* Update appveyor.yml

* Update ACE.Server.csproj

* Update PacketHeaderOptional.cs

* Update .vsconfig

* Update ACE.Adapter.csproj

* Update ACE.Common.csproj

* Update ACE.Database.Tests.csproj

* Update ACE.Database.csproj

* Update ACE.DatLoader.Tests.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Entity.csproj

* Update ACE.Server.Tests.csproj

* Update ACE.Server.csproj

* Update ACE.Database.csproj

* Update Dockerfile

* Update ACE.Common.csproj

* Update ACE.Database.Tests.csproj

* Update ACE.Database.csproj

* Update ACE.DatLoader.Tests.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Server.Tests.csproj

* Update SphereTests.cs

* Update AppVeyor config

Suppress NETSDK1233 warnings for now

* Update AppVeyorBuild.bat

* Update ACE.sln

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update README.md

---------

Co-authored-by: Ty Conner <tyconner@itcproductions.com>
2026-02-15 13:41:34 -05:00
Ty Conner
c479fa5fbe
Update nuget (#4399)
Because dependabot is dumb...
2025-11-22 16:04:34 -05:00
dependabot[bot]
ebb77f9db5
Bump System.Drawing.Common from 8.0.20 to 8.0.21 (#4390) 2025-10-26 16:41:04 +00:00
dependabot[bot]
30b36fcfde
Bump System.Drawing.Common from 8.0.19 to 8.0.20 (#4376) 2025-09-23 16:55:15 +00:00
Ty Conner
4d246a88e8
Bump System.Drawing.Common from 8.0.18 to 8.0.19 (#4347)
---
updated-dependencies:
- dependency-name: System.Drawing.Common
  dependency-version: 8.0.19
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-12 01:11:28 -04:00
dependabot[bot]
d736e7c3de
Bump Microsoft.EntityFrameworkCore and 2 others (#4338)
* Bump Microsoft.EntityFrameworkCore and 2 others

Bumps Microsoft.EntityFrameworkCore from 8.0.13 to 8.0.18
Bumps System.Drawing.Common from 8.0.13 to 8.0.18
Bumps System.Text.Json from 8.0.5 to 8.0.6

---
updated-dependencies:
- dependency-name: Microsoft.EntityFrameworkCore
  dependency-version: 8.0.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: System.Drawing.Common
  dependency-version: 8.0.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: System.Text.Json
  dependency-version: 8.0.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update ACE.Adapter.csproj

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ty Conner <tyconner@itcproductions.com>
2025-07-15 13:56:07 -04:00
gmriggs
24451d36c1
match CBldPortal.PortalSide up to client (#4315) 2025-05-10 22:12:51 -04:00
trevis
fe58e0c917
Add DataCategory / TextureType to dat RenderTexture obj (#4308) 2025-05-06 11:32:58 -04:00
trevis
8c6cf5ff50
- Added MaximumSameCharactersInARow to dat NameFilterTable. (#4307)
- Updated NameFiltertable.ExtraAllowedCharacters to be a string
2025-05-06 11:32:47 -04:00
Ty Conner
0cd412efee
Update MSTest.TestAdapter and TestFramework (#4292)
* Update MSTest.TestAdapter and TestFramework

* Update ACE.DatLoader.csproj
2025-03-09 04:50:31 -04:00
gmriggs
623486c380
fix dat chunking (#4275) 2025-02-01 16:43:37 -05:00
Ty Conner
c1d692d0b7
Update nugets (#4251) 2024-11-30 13:31:46 -05:00
Ty Conner
f567d9d918
Update latest nugets (#4237) 2024-10-24 14:00:54 -04:00
Ty Conner
6f63d94bf2
Revert "Bump log4net from 2.0.17 to 3.0.0 in /Source (#4227)" (#4229)
This reverts commit 836837bf3c.
2024-09-30 12:21:28 -04:00
dependabot[bot]
836837bf3c
Bump log4net from 2.0.17 to 3.0.0 in /Source (#4227) 2024-09-30 02:20:10 +00:00
FlaggAC
7f1b58ab24
Change static readonly fields to const fields. (#4211)
This will at least somewhat improve performance, as confirmed through microbenchmark testing.

const fields are replaced with literal values in the Assembly's IL code, while static readonly fields may be optimized by the JIT, and is not guaranteed to happen. const fields may also lend themselves to stronger optimizations at runtime.
2024-08-24 14:32:35 +00:00
OptimShi
9864887263
DatReader - ActionMap (#4217)
* Added ActionMap Dat reading 0x26000000

* Removed debug code from startup
2024-08-20 19:26:08 -04:00
Ty Conner
2af556ed26
Update nugets (#4221) 2024-08-20 19:25:52 -04:00
Ty Conner
ebc429f7a6
Clear compiler warnings (#4216) 2024-08-14 01:47:33 -04:00
OptimShi
ed7af65f9a
Added Dat structures and tests for UILayout and DbProperties (#4208) 2024-08-13 14:45:30 -04:00
Ty Conner
a517d7d9ef
Update vsconfig and nugets (#4204)
* Update .vsconfig

* Update .vsconfig

* Update ACE.Database.csproj

* Update ACE.DatLoader.csproj
2024-07-20 16:50:01 -04:00
dependabot[bot]
60878eb6f0
--- (#4183) 2024-05-21 17:59:59 +00:00
dependabot[bot]
ab07f568f5
Bump System.Drawing.Common from 6.0.0 to 8.0.4 in /Source (#4151) 2024-04-24 17:44:58 +00:00
Ty Conner
47f23e2014
Switch to net8 (#4059)
* Switch to net8

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Update appveyor.yml

* Create AppVeyorInit.ps1

* Update appveyor.yml

* Delete AppVeyorInit.ps1

* Create AppVeyorInstall.ps1

* Update appveyor.yml

* Update Dockerfile.arm64

* Update Dockerfile

* Update appveyor.yml

* Update ACE.Adapter.csproj

* Update ACE.Common.csproj

* Update ACE.Database.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Server.csproj

* Update copyrights

* Update DeveloperContentCommands.cs

* Update DeveloperFixCommands.cs

* Update ACE.Database.csproj

* Update ACE.Database.csproj

* Update ACE.Common.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Common.csproj

* Update ACE.Server.csproj

* Update ACE.Server.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Server.csproj

* Update ACE.DatLoader.csproj
2024-04-24 13:24:41 -04:00
dependabot[bot]
d0d905b0b0
Bump log4net from 2.0.16 to 2.0.17 in /Source (#4142) 2024-03-26 04:27:50 +00:00
dependabot[bot]
502ca7a01c
Bump log4net from 2.0.15 to 2.0.16 in /Source (#4128) 2024-03-15 05:06:14 +00:00
Mag-nus
a1debb69f8
Remove a few more system packages from the ARM64 checkin (#4086)
Just a few more packages that snuck in during the ARM64 docker support.
2024-01-09 00:45:50 +00:00
Mag-nus
7aa5402a28
Remove some unreferenced System packages (#4085)
Not sure why these were ever added in the first place. They are not needed as nuget to build.
2024-01-08 11:50:03 +00:00
gmriggs
0c81fb2ca7
fix EnvCell header comment (#4049) 2023-09-24 02:58:02 -04:00
Ty Conner
e20a4a4166
Update DatFileType extended info (#4015)
* Update DatFileType extended info

Updated several properties in DatFileType to match what's in the decompiled client

* partial revert

* Update EnvCell.cs

* Update DatFile.cs

* Update DDDHandler.cs

* Update DatFileType.cs
2023-06-10 16:07:27 -04:00
Ty Conner
ab54cf9002
Add support for client DAT patching from server (#3979)
* Update DatFile.cs

* Update DatFileType.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Create DDDManager.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Create GameMessageDDDBeginDDD.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Create GameMessageDDDDataMessage.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update DDDHandler.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update WorldManager.cs

* Update Program.cs

* committing changes provided

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* more wip changes

* Update DDDManager.cs

* Update DDDManager.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update CMostlyConsecutiveIntSet.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update WorldManager.cs

* Update DDDHandler.cs

* Update Session.cs

* Update DDDManager.cs

* Update Session.cs

* Update DDDManager.cs

* Update DDDManager.cs

* Update GameMessageDDDDataMessage.cs

* Update DDDHandler.cs

* Update Session.cs

* Update CAllIterationList.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update CMostlyConsecutiveIntSet.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Create PTaggedIterationList.cs

Co-Authored-By: OptimShi <OptimShi@users.noreply.github.com>

* Update Session.cs

* Update ConnectionListener.cs

* Create DDDConfiguration.cs

* Update MasterConfiguration.cs

* Update Config.js.example

* Update DDDManager.cs

* Update DDDHandler.cs

* Update Program.cs

* Update PropertyManager.cs

* Update WorldManager.cs

* Update SessionTerminationReason.cs

* Update DDDHandler.cs

* Update DDDManager.cs

* Update ConnectionListener.cs

* Update SessionTerminationReason.cs

* Update GameMessageDDDDataMessage.cs

* Update AuthenticationHandler.cs

* Update CharacterHandler.cs

* Update PacketInboundLoginRequest.cs

* Update Session.cs

* Update DatFileType.cs

---------

Co-authored-by: OptimShi <OptimShi@users.noreply.github.com>
2023-06-09 13:15:10 -04:00
dependabot[bot]
6f49bef6f4
Bump log4net from 2.0.14 to 2.0.15 in /Source (#3988) 2023-05-02 23:59:39 +00:00
Ty Conner
5f4313cee5
Update BasePropertyDesc.cs (#3975)
* Update BasePropertyDesc.cs

* Update BasePropertyDesc.cs
2023-04-26 12:58:18 -04:00
OptimShi
da76e6e995
Added support for parsing MasterProperty, 0x39000001 in the client_portal.dat (#3970)
* Added support for parsing MasterProperty, 0x39000001 in the client_portal.dat.

* Removed skipping of MasterProperty in DatLoader.Test
2023-04-10 05:45:09 -04:00
Ty Conner
73d276944e
Clear out some log spam (#3890)
* Update Player.cs

* Update Player_Skills.cs

* Update DatDatabase.cs
2022-08-21 23:45:32 -04:00
Ty Conner
0c0ca9c7a4
Update to .NET6 (#3739)
* Update to .NET6

* Update dockerfiles to NET6

* Update appveyor.yml

* Update ACE.DatLoader.csproj

* Update Program_Setup.cs

* Update Program_DbUpdates.cs

* Update Program_DbUpdates.cs

* Update ACE.DatLoader.Tests.csproj

* Update ACE.Database.Tests.csproj

* Update ACE.Database.csproj

* Update ACE.Server.Tests.csproj

* Update ACE.Server.csproj

* Update ACE.DatLoader.csproj

* Update ACE.Database.csproj

* Update ACE.Server.csproj

* Update EF packages to EFCore 6

Requires Database, Database.Tests and Adapater to target .NET6 framework

* Update ACE.Server.csproj

* Update ACE.Database.csproj

* Update Program_BinUpdates.cs

* Update AccountExtensions.cs

* update nugets

* Remove TimeZoneConverter

net6 includes built in functionality

* update csproj files

* Update ACE.Server.csproj
2022-07-13 12:30:32 -04:00