Compare commits

..
395 changed files with 13 additions and 146847 deletions

7
.gitignore vendored
View file

@ -2,10 +2,3 @@
__pycache__/ __pycache__/
/out/ /out/
/scratch/ /scratch/
/dist/
bin/
obj/
artifacts/
build/
.godot/
.vs/

View file

@ -1,9 +0,0 @@
<Project>
<PropertyGroup>
<YmirRoot Condition="'$(YmirRoot)' == '' and '$(YMIR_ROOT)' != ''">$(YMIR_ROOT)</YmirRoot>
<YmirRoot Condition="'$(YmirRoot)' == ''">$(MSBuildThisFileDirectory)..\Ymir</YmirRoot>
<CultLibRoot Condition="'$(CultLibRoot)' == '' and '$(CULTLIB_ROOT)' != ''">$(CULTLIB_ROOT)</CultLibRoot>
<CultLibRoot Condition="'$(CultLibRoot)' == ''">$(MSBuildThisFileDirectory)..\CultLib</CultLibRoot>
<YmirNativeConfiguration Condition="'$(YmirNativeConfiguration)' == ''">Release</YmirNativeConfiguration>
</PropertyGroup>
</Project>

View file

@ -8,59 +8,21 @@ The lore lives in Weksa: `settings/rust-to-dust/` in
[GameCult/Weksa](https://github.com/GameCult/Weksa) (setting, story, battle [GameCult/Weksa](https://github.com/GameCult/Weksa) (setting, story, battle
royale, aliens, language design). This repo holds no lore. royale, aliens, language design). This repo holds no lore.
## What is live today (`nibu/rtd-prototype`) ## What is here today
- **`RustToDust.Core`**: Nothing runnable yet. This repo is the home for the mech work now being
- Aetheria 2D grid chassis (`Dorsal` vehicles/quadrupeds and `Coronal` bipeds), prototyped:
conductive/radiative heat transfer, trapezoidal thermal plateau curves,
localized armor + core destruction, and live cargo-to-hardpoint swapping.
- 6 playable chassis (`buggy`, `technical`, `tank`, `manticore`, `raptor`,
`paladin`), 8 human salvage modules, and 5 Imperial Tourist modules.
- Shrinking `SpectatorRing` perimeter (`Tourist`, `Patron`, and `Exemplar`
tiers with `Neutral` / `Cleared` / `Provoked` stances and Weksa-voiced
`BroadcastFeed` commentary).
- `TerrainField`: deterministic `1536m x 1536m` desert terrain (`8x8`,
`192m x 192m` tile grid) and a `3072m x 3072m` Sion, Switzerland alpine
arena (`1025x1025` `3m` DEM heightmap, `6x6` spatial building tiles, `2319`
buildings with RCOL collision), plus runtime crater / tire-track /
thermal-scorch stamping.
- **`RustToDust.Ymir`**:
- `ArenaSession` bridging `MatchState` onto Ymir's `Box3DSoaWorld` with
4-corner spring-damper terrain support, Sion `StaticHeightField` + `StaticMesh`
building physics, raycast weapons, terrain crater/scorch impacts, and AI
contenders + perimeter spectators.
- **`tests/RustToDust.Tests`**:
- Behavioral xUnit suite covering Aetheria grid heat, spectator ring clearance,
Ymir vehicle driving/combat/swapping, procedural/dynamic terrain relief, and
Sion map parity + LOS.
- **`client/` (Godot 4.7.2 Mono)**:
- Dual-arena 3D client (`[M]` switcher or `RTD_MAP=sion`) supporting the
procedural desert bake and the `3072m` Sion map (LOD1/LOD2 building tiles),
Brokkr mechanical rigs rendered via `MultiMeshPartPool` +
`mech_paint.gdshader`, `PomDecalPool` combat scars, tactical radar,
clickable Aetheria Hardpoint & Heat schematic, and Imperial Broadcast chyron.
- Sion terrain and building data attribution: `"Federal Office of Topography swisstopo"`.
- Hybrid 3D combat audio (`ArenaAudioSystem` + `ProceduralAudioBank` + `WalkerFootstepTracker`):
curated weapon/mechanical WAVs by **Haven Kendrick** (`assets/audio/haven/`,
see [`assets/audio/ATTRIBUTION.md`](assets/audio/ATTRIBUTION.md)) paired with
deterministic `PcmSynth` GRF-synced footsteps, vehicle/servo loops, impacts,
and 2D UI cues behind a separable `WetMixMode` room stage.
## Build, test, and run - mechs kitbashed from parts with [Brokkr](https://eureka.gamecult.org/forge/GameCult/Brokkr)
(armour shells, ribs, cuts, joints, hoses, frames);
- a mechanical rig with one bone per degree of freedom, driven rams and linkages;
- generic walk and combat animation retargeted onto each chassis.
Requires a sibling `Ymir` checkout beside `RustToDust` (or `YMIR_ROOT` set), That work currently lives on `nibu/fable-*` experiment branches in
CMake, a C compiler, .NET SDK 8/10, and Godot 4.7.2 Mono (`--path client`). GameCult/Brokkr and moves here as it settles.
```bash ## Planned, not live
# Run the behavioral test suite
dotnet test tests/RustToDust.Tests/RustToDust.Tests.csproj -c Release
# Build the Godot 4.7.2 Mono client assembly (also builds Ymir native Box3D) - Mech parts library and chassis definitions.
dotnet build client/RustToDust.Client.csproj -c Debug - Rig generator and goal-space retargeting solver.
- A playable walk-and-fight prototype.
# Run the playable 3D client (press [M] in-game or set RTD_MAP=sion for Sion)
godot --path client
# Run the headless Godot smoke test
godot --headless --path client res://tests/Smoke.tscn
```

View file

@ -1,13 +0,0 @@
<Solution>
<Folder Name="/src/">
<Project Path="src/RustToDust.Core/RustToDust.Core.csproj" />
<Project Path="src/RustToDust.Ymir/RustToDust.Ymir.csproj" />
<Project Path="src/RustToDust.HbGpu/RustToDust.HbGpu.csproj" />
<Project Path="src/RustToDust.Net/RustToDust.Net.csproj" />
<Project Path="src/RustToDust.Server/RustToDust.Server.csproj" />
<Project Path="src/RustToDust.Directory/RustToDust.Directory.csproj" />
</Folder>
<Folder Name="/tests/">
<Project Path="tests/RustToDust.Tests/RustToDust.Tests.csproj" />
</Folder>
</Solution>

View file

@ -1,15 +0,0 @@
THIRD-PARTY SOFTWARE NOTICES AND INFORMATION
This product incorporates or bundles the following third-party software and
font assets under their respective licenses:
1. Monaspace Krypton (Krypton.ttf — Monaspace Krypton Var.ttf v1.400)
Copyright (c) 2023, GitHub (https://github.com/githubnext/monaspace)
Reserved Font Names: 'Monaspace', 'Argon', 'Neon', 'Xenon', 'Radon', 'Krypton'
License: SIL Open Font License, Version 1.1
Full license text: assets/fonts/OFL-1.1.txt
2. HarfBuzz (15.2.0) — shaping and hb-gpu shader/curve encoder (rtd_hbgpu)
Copyright (C) HarfBuzz Authors (Behdad Esfahbod, Google Inc., Red Hat Inc., et al.)
License: HarfBuzz "Old MIT" License
Full license text: assets/fonts/HARFBUZZ-COPYING.txt

View file

@ -1,47 +0,0 @@
# Audio Attribution & Migration Notes
## Curated Weapon & Mechanical Sound Effects (`assets/audio/haven/`)
- **Author / Source:** **Haven Kendrick** (Cult member) — *MWO Soundpack* (original weapon and mechanical sound effects, used with explicit permission).
- **Modifications applied by `tools/audio/curate_haven_audio.py`:**
- Converted to mono `44,100 Hz` `16-bit` signed PCM WAV (`RIFF/WAVE`).
- Trimmed leading silence / sliced sustained loops into crisp single-shot and burst windows with smooth cosine fade-outs (`30-50 ms`).
- Peak-normalized to `0.89` (`-1.0 dBFS`).
- **Explicitly excluded:** All third-party/stock-named files in the source folder (`SW01_*`, `MW4 - *`, `Utilities-*`, `desktop.ini`) were excluded and never copied.
### Curated Clip Manifest (25 files)
| Destination (`assets/audio/haven/`) | Source File | Role |
|---|---|---|
| `mg_shot_01.wav` | `ClanMG3_fixed.wav` | 7.62 MG shot variant A (`0.24 s`) |
| `mg_shot_02.wav` | `New_MG 2.wav` | 7.62 MG shot variant B (`0.24 s`) |
| `mg_tail.wav` | `mgtail.wav` | MG mechanical receiver tail (`0.66 s`) |
| `ac_light_01.wav` | `AC5.wav` | Light autocannon variant A (`0.85 s`) |
| `ac_light_02.wav` | `AC5_2.wav` | Light autocannon variant B (`0.80 s`) |
| `ac_med_01.wav` | `AC10.wav` | Medium autocannon (`0.95 s`) |
| `ac_rotary.wav` | `RAC5.wav` | Rotary autocannon (`1.01 s`) |
| `flak_blast_01.wav` | `ClanLBX7_2019.wav` | Flak scattergun variant A (`1.15 s`) |
| `flak_blast_02.wav` | `IS_LBX20_2.wav` | Flak scattergun variant B (`1.35 s`) |
| `cannon_heavy_01.wav` | `BigCannon1.wav` | 105mm Recoilless / heavy cannon A (`1.80 s`) |
| `cannon_heavy_02.wav` | `AC20.wav` | 105mm Recoilless / heavy cannon B (`1.50 s`) |
| `pd_bark_01.wav` | `AMS3.wav` | Point-defense flak bark A (`0.28 s`) |
| `pd_bark_02.wav` | `amsTP.wav` | Point-defense flak bark B (`0.28 s`) |
| `pd_laser.wav` | `laserams.wav` | Imperial Aegis PD pulse (`0.32 s`) |
| `rocket_salvo_01.wav` | `MRM1.wav` | Rocket/missile salvo A (`1.20 s`) |
| `rocket_salvo_02.wav` | `NEWSRM1.wav` | Rocket/missile salvo B (`1.35 s`) |
| `plasma_ppc_01.wav` | `Snub_PPC2.wav` | Touring Plasma Repeater A (`1.25 s`) |
| `plasma_ppc_02.wav` | `PPcSWEET.wav` | Touring Plasma Repeater B (`0.78 s`) |
| `lance_beam_01.wav` | `CPPC_DEC2018_2.wav` | Gilded Thermal Lance (`1.55 s`) |
| `laser_heavy_01.wav` | `CLL3.wav` | Heavy laser (reserved for Cut 7) (`1.20 s`) |
| `gauss_rail_01.wav` | `Gauss Sweet 1.wav` | Gauss rifle (reserved for Cut 7) (`1.15 s`) |
| `mech_reload_bolt.wav` | `CannonReload2.wav` | Heavy chassis swap bolt-clank (`1.25 s`) |
| `mech_quick_bolt.wav` | `reload.wav` | Module equip latch (`0.94 s`) |
| `mech_eject.wav` | `eject.wav` | Ruin / casing ejection clatter (`0.74 s`) |
| `mech_turret_servo.wav` | `turret9.wav` | Turret traverse mechanical accent (`1.10 s`) |
## Procedural Synth & `WetMixMode` Dry-Mode Migration Plan
`RustToDust.Core.Audio.PcmSynth` synthesizes all non-weapon audio cues (GRF-synced mech footsteps, engine/rotor/servo loops, metallic ricochets, armor/core impacts, explosions, and 2D UI feedback) as **pure dry mono 44.1 kHz PCM buffers first**, then passes them through a cleanly separable `WetMixMode` post-stage:
- **`WetMixMode = true` (current default):** Applies early reflections (`11-43 ms` taps), a short diffused room tail, and gentle `tanh` soft-clipping so procedural footsteps, impacts, and loops sit cohesively alongside Haven's pre-reverbed weapon recordings.
- **`WetMixMode = false` (future acoustic raycast DSP):** Bypasses the baked room stage and returns the dry PCM buffers untouched so an audio raytracer / convolution reverb bus can compute per-ray canyon and city-corridor reflections dynamically without double-reverberating procedural sources.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 787 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 212 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 491 KiB

View file

@ -1,42 +0,0 @@
HarfBuzz is licensed under the so-called "Old MIT" license. Details follow.
For parts of HarfBuzz that are licensed under different licenses see individual
files names COPYING in subdirectories where applicable.
Copyright © 2010-2022 Google, Inc.
Copyright © 2015-2020 Ebrahim Byagowi
Copyright © 2019,2020 Facebook, Inc.
Copyright © 2012,2015 Mozilla Foundation
Copyright © 2011 Codethink Limited
Copyright © 2008,2010 Nokia Corporation and/or its subsidiary(-ies)
Copyright © 2009 Keith Stribley
Copyright © 2011 Martin Hosken and SIL International
Copyright © 2007 Chris Wilson
Copyright © 2005,2006,2020,2021,2022,2023 Behdad Esfahbod
Copyright © 2004,2007,2008,2009,2010,2013,2021,2022,2023 Red Hat, Inc.
Copyright © 1998-2005 David Turner and Werner Lemberg
Copyright © 2016 Igalia S.L.
Copyright © 2022 Matthias Clasen
Copyright © 2018,2021 Khaled Hosny
Copyright © 2018,2019,2020 Adobe, Inc
Copyright © 2013-2015 Alexei Podtelezhnikov
For full copyright notices consult the individual files in the package.
Permission is hereby granted, without written agreement and without
license or royalty fees, to use, copy, modify, and distribute this
software and its documentation for any purpose, provided that the
above copyright notice and the following two paragraphs appear in
all copies of this software.
IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGE.
THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.

Binary file not shown.

View file

@ -1,94 +0,0 @@
Copyright (c) 2023, GitHub (https://github.com/githubnext/monaspace)
with Reserved Font Names 'Monaspace', 'Argon', 'Neon', 'Xenon', 'Radon', 'Krypton'.
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSIONS & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to remain
under this license does not apply to any document created using the fonts
or their derivatives.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show more