Commit Graph

30 Commits

Author SHA1 Message Date
metalgearsloth
cd8b5b96b5 Optimise DecalOverlay (#25266)
ChunkSize is still 32 so doesn't cut down on heaps of decals atm though we avoid passing many decals to drawing with the coordinates bounds check now.

(cherry picked from commit d8e5f5c24b88bf8096ddaec11e80f1af2953637b)
2024-03-05 09:49:43 +01:00
Pieter-Jan Briers
ccea85136b Random spontaneous cleanup PR (#25131)
* Use new Subs.CVar helper

Removes manual config OnValueChanged calls, removes need to remember to manually unsubscribe.

This both reduces boilerplate and fixes many issues where subscriptions weren't removed on entity system shutdown.

* Fix a bunch of warnings

* More warning fixes

* Use new DateTime serializer to get rid of ISerializationHooks in changelog code.

* Get rid of some more ISerializationHooks for enums

* And a little more

* Apply suggestions from code review

Co-authored-by: 0x6273 <0x40@keemail.me>

---------

Co-authored-by: 0x6273 <0x40@keemail.me>
(cherry picked from commit 68ce53ae17985876d6d112b764b2144964a9f42e)
2024-02-18 23:02:29 +01:00
metalgearsloth
4c7ca09c9b Biome marker layer tweaks (#23663)
* Biome marker layer tweaks

- Ensure veins get spawned at great perf cost (it's time-sliced anyway).
- Bump asteroids from 6 nodes to 10 nodes.

* Fixes

* magnet

* Magnet dictates wreck spawn

* Update Content.Shared/Procedural/PostGeneration/BiomeMarkerLayerPostGen.cs

* mraow

(cherry picked from commit d7eb7b700c72a7aa56e6bb2181ed5cd622f04a83)
2024-01-26 22:19:17 +01:00
metalgearsloth
485def1d2e Fix biome marker dupes (#23500)
(cherry picked from commit 3ee6b8d2bcc5d12fc8a151e51aa5a345c950d043)
2024-01-26 21:35:46 +01:00
metalgearsloth
f128143d13 Salvage magnet revamp (#23119)
* Generic offering window

* More work

* weh

* Parity

* Progression meter

* magnet

* rona

* PG asteroid work

* code red

* Asteroid spawnings

* clams

* a

* Marker fixes

* More fixes

* Workings of biome asteroids

* A

* Fix this loading code

* a

* Fix masking

* weh

* Fixes

* Magnet claiming

* toe

* petogue

* magnet

* Bunch of fixes

* Fix default

* Fixes

* asteroids

* Fix offerings

* Localisation and a bunch of fixes

* a

* Fixes

* Preliminary draft

* Announcement fixes

* Fixes and bump spawn rate

* Fix asteroid spawns and UI

* More fixes

* Expeditions fix

* fix

* Gravity

* Fix announcement rounding

* a

* Offset tweak

* sus

* jankass

* Fix merge

(cherry picked from commit bf79acd127483d64f96dc23f2e64c74ceb84303d)
2024-01-26 21:35:22 +01:00
metalgearsloth
ac87982d1e Minor biomes change (#23494)
Maybe fixes void if there's exceptions, idk

(cherry picked from commit 002d749c7e91bf665f69dbd7b6ae317dcb698f01)
2024-01-26 21:32:28 +01:00
Leon Friedrich
8494bd0885 Use ECS prototype-reload events (#22613)
* Use ECS prototype-reload events

* better constructors

* Maybe this fixes tests?
2023-12-22 23:25:35 +01:00
metalgearsloth
eba8043f76 Fix planet command being ran on existing maps (#21775) 2023-12-16 19:40:20 +01:00
metalgearsloth
6bcc8599c1 Wrap gateway generator in cvar for dev (#21758) 2023-12-02 19:01:56 +01:00
metalgearsloth
d2d967e861 Fix biome marker layer command (#21278) 2023-11-19 22:23:28 +01:00
metalgearsloth
81a5f97a2e Gateway destinations (#21040)
* Gateway generation

* Gateway stuff

* gatewehs

* mercenaries

* play area

* Range fixes and tweaks

* weh

* Gateway UI polish

* Lots of fixes

* Knock some items off

* Fix dungeon spawning

Realistically we should probably be using a salvage job.

* wahwah

* wehvs

* expression

* weh

* eee

* a

* a

* WEH

* frfr

* Gatwey

* Fix gateway windows

* Fix gateway windows

* a

* a

* Better layer masking

* a

* a

* Noise fixes

* a

* Fix fractal calculations

* a

* More fixes

* Fixes

* Add layers back in

* Fixes

* namespaces and ftl

* Other TODO

* Fix distance

* Cleanup

* Fix test
2023-11-19 22:09:46 +01:00
Leon Friedrich
e66c0b5035 Un-revert IPlayerManager refactor (#21244) 2023-10-31 19:00:44 +01:00
metalgearsloth
f3edf06da3 Fix salvage mission biome seed (#20885) 2023-10-14 22:02:27 +02:00
metalgearsloth
b8e038aa72 Fix shuttle planet FTL overlapping markers (#20887) 2023-10-14 22:02:27 +02:00
metalgearsloth
e6d639b21b Fix biome recursion (#17982) 2023-07-11 22:26:19 -06:00
metalgearsloth
48276eb00a Optimise marker spawning (#17922) 2023-07-10 17:15:59 +10:00
metalgearsloth
68480af109 Update content vectors to numerics (#17759) 2023-07-08 14:08:32 +10:00
metalgearsloth
ed1ff4df06 Ore tweaks (#16930)
- Guaranteed spawns in salvage
- Triple vein count
- Made it so rocks only drop 1 as it's kinda whacky (I believe they still convert differently to bars).
2023-05-30 21:40:36 -06:00
metalgearsloth
1192a723e6 Shuttle flattening (#16416) 2023-05-19 17:26:28 +10:00
metalgearsloth
ea4440be44 Make ore loot use walls as a mask (#16377) 2023-05-14 22:01:29 -04:00
metalgearsloth
210a70fc3a Deload biome entities (#15531) 2023-05-08 01:03:04 +10:00
metalgearsloth
3d1333b9ab Don't enable ghost roles for salvage spawns (#15598) 2023-04-21 15:06:22 +10:00
metalgearsloth
0301763043 Expedition mining spawn adjustments (#15581) 2023-04-20 23:32:06 +10:00
metalgearsloth
122350f19c Salvage expeditions (#12745) 2023-04-20 10:43:13 +10:00
metalgearsloth
94ea61defa Fix biome seed gen (#15352)
Well the command itself didn't set the seed properly so.
2023-04-12 09:38:14 -05:00
metalgearsloth
6157dfa3c0 Salvage dungeons (#14520) 2023-03-10 16:41:22 +11:00
metalgearsloth
2e25128770 Update content for .Owner culling (#14185) 2023-02-22 12:45:32 +11:00
metalgearsloth
0fcd50b65b Fix trees double-loading for biomes (#14056)
* Fix trees double-loading for biomes

Forgot to cherry-pick the anchoring change.

* a
2023-02-12 11:48:57 +00:00
metalgearsloth
a6ea8f5d3b Use pvs range for biomes (#14048)
Forgot it wasn't on that branch
2023-02-12 05:37:02 +00:00
metalgearsloth
37f432ca58 Procgen biomes (#13487)
* Planetmap tiles

Biomes etc etc

* a

* oop

* Chunk-based rendering

* funny

* Less allocations

* Fix overdraw

* Content tile edge support

Also updated grass to use it as a POC.

* Kindly revert

* Update for variant edges

* fixes

* Use fastnoise

* Remove redundant group

* a

* refactor a fair bit

* Prototype data instead

* tweaks

* a

* fix maths

* working

* a

* Slightly better empty support

* a

* flowers

* sounds

* lewd

* Networking

* more fixes

* better

* colours

* Some chunk loading

* Proper loading and unloading

* Better loading

* Fix parallax and movement sounds

* Anchoring support + decal setup

* Most of the way to load and unload

* Decal loading kinda werkin

* large trees

* started diffing

* a

* Variant support and deserts

* a

* snow

* agony, even

* working again

* todo

* a

* laba tiles

* aeiou

* a

# Conflicts:
#	Resources/Prototypes/Entities/Tiles/planet.yml
#	Resources/Prototypes/Tiles/planet.yml
#	Resources/Textures/Tiles/Planet/Lava/lava.rsi/meta.json

* laba

* Add lava

* Initial ignition

* triggers

* a

* a

* y

* Add basalt tiles

Did some unconventional things for the animation + rocks.

* fixies

* mergies

* promotion

* lava biome

* Lava planet start

* cleanup and more lava

* laba

* maccas

* biome stuf

* weh

* bongflicts

* aeaeae

* More fixes

* a

* these too
2023-02-12 02:15:09 +00:00