branchrust_reboot/main/primitive_gmcancel
152 Commits over 123 Days - 0.05cph!
Prioritize gamemode server tags over "vanilla" tag so gamemode will show if both are set (instead of vanilla being the priority)
Allow certain exclusive server tags to have priority over others if both are found in server tags
Add support for primitive server tag to be compressed
Fix maximum sleeping bags set to -1 in primitive
Add support for eras to provide custom loot tables
merge from primitive -> primitive_gm
S2P Harbor2 & Outpost (since they use the train tunnel with vents)
Add rubble pile to the train tunnel entrances with vents so you can't crawl under them
- doesn't provide a gameplay advantage: all you do is get yourself killed
Remove round shield from advent calendar
merge from primitive -> primitive_gm
Swap out all the advent calendar days that only gave out restricted items with different primitive themed items
Add support for advent calendar to give out alternative items in different eras
merge from primitive -> primitive_gm
Fix tech tree not allowing to unlock if there were restricted items inbetween
merge from primitive -> primitive_gm
Fixed T3 workbench missing the primitive version of the T2 tech tree
Add NRE checks to SpawnGroup (to account for some spawners having null prefabs)
Add primitive server browser tag
Fix existing gamemode tags not appearing to work
Fix ferry terminal train tunnels always being blocked off instead of only being blocked when underground trains is disabled
merge from primitive -> primitive_gm
Move `scientist_spawners_enabled` convar so it blocks spawns from PuzzleReset as well as normal timed spawns
- was causing scientists to keep spawning in monuments
Fix server not sending world config to client because it didn't serialize it to the `JsonString` field
Fix client era not being reset to "none" when switching from primitive server -> normal server
- era was being sent to client as "unknown" but the client convar wouldn't consider "unknown" as a valid string to change era
merge from primitive -> primitive_gm
Fix old & new horses not working with `ItemManager.GetAllItems()` / enforce_era_restrictions command
merge from primitive -> primitive_gm
ScriptableWorldConfig are now inside a Resources folder and loaded with Resources.LoadAll
The problem in the original implementation is that it would have needed explicit bundle assignment, as nothing was referencing those assets in order to pull them into a bundle, this feels more robust and mirrors what we do in other places (like GameModeManifest)
Removed generate_oil_rigs convars since it was added to the wrong script (PlaceMonuments vs. PlaceMonumentsOffshore)
Set initial stock of icepick, salvage axe & large backpack to the same value as their refill amounts
Add support for initial stock of a vending machine to be <10
Initial pass for primitive travelling vendor trades since 6/10 items were removed due to item restrictions (plan to do another pass later once seige equipment has final crafting costs)
- wood
- stone
- metal frags
- hqm
- sewing kits
- gears
- large backpack (max 2)
- salvaged axe (max 5)
- salvage pickaxe (max 5)
Add support for alternative vending machine trades per era
Fix tech tree buttons returning the wrong tier of tech tree
Refactor into `TechTreeData.IsAllowedInEra( era )` to keep logic clear
When running "Populate T0" in tech tree editor tool, ensure that only items that are allowed in the era populate the tech tree
Ensure techtree filters out items that are not allowed in the era
- items don't move into the correct location yet but at least you only see items you can craft in the current era
Optimize opening tech tree to make it 4x faster
- 500ms -> 130ms lag spike
- 55MB allocation -> 13MB allocation
- initially thought it was above changes causing it but was long standing issue
merge from primitive -> primitive_gm
Don't show train tunnel markers inside monuments on the map when underground tunnels is disabled (since they are blocked off with debris)
Change reward of shark hunt mission (since it gives out jackhammer but those are loot only now)
- 1 icepick + 3 med syringe instead
Change reward of "free crates" diving mission in primitive era
- used to be pump shotgun, but that's restricted now
- instead give 1 combat knife, 1 small backpack, 1 compound bow + 32 arrows
Add support for missions to return different rewards in each era
merge from main -> primitive_gm
merge from primitive -> primitive_gm
Add `delete_populations <name> <name2>` command to delete all entities inside a spawn population
Add `delete_all_populations` to delete all entities inside every spawn population
Fix NRE on server startup by removing the balancing of spawn population weights
- trust that the convars will be set early enough in startup
- worst case the weights will even themselves out as players consume resources
merge from primitive -> primitive_gm
Fix horse comfort not working with new ridable horses