Open random-cdda-modder opened 1 year ago
Agree, these are cool and I'd like to add them. I really like the XedraEvolved one in particular-- might start using that myself. IMO you should consider trying to PR that into CleverRaven (if someone hasn't already) since it seems kind of obvious when you bring it up.
Couple small questions about the spawn closer tweak, since I've always found overmap unit verbiage confusing in the official documentation.
Please correct my understanding if I'm wrong: one overmap chunk is 180 overmap terrains wide and 180 overmap terrains tall, yes? And, an overmap terrain is just one cursor-size unit of overmap.
If this understanding is correct, I'm also curious as to what the spawn chance means. So let's say we have a 30/100 ratio. Based on your explanation above, this means that we have a 30% chance of spawning in the overmap chunk at origin. What happens the other 70% of the time? How does it determine how many overmap chunks out it should be to spawn?
TIL about sponge
. I've always just piped to a tmpfile or fifo and then piped back. But then again, I commonly work with systems that don't have GNU moreutils
installed by default.
Will probably take some more time for me to go through these (gotta love having real life commitments). Either way, I really appreciate this stuff. It's really cool of you to contribute your knowledge in this way.
you should consider trying to PR that into CleverRaven
I hereby relinquish any and all copyright to my contributions in this issue and you are free to pursue this yourself without attribution or anything. I also cannot be held liable for any effects aforementioned contributions might cause when applied. No warranty is provided either.
one overmap chunk is 180 overmap terrains wide and 180 overmap terrains tall, yes?
one chunk is a square of X map unitsize locations yes, don't remember the amount.
What happens the other 70% of the time?
There are two implementation of occurrences, unique and non-unique https://github.com/CleverRaven/Cataclysm-DDA/blob/master/doc/OVERMAP.md#occurrences-default
You're asking about the unique one so maybe view it like a loot table in an MMO; there are spawn chances for each item, a hand reaches into a bag and draws out the winner item. Having a 100% chance means you will always get chosen when the hand brushes against you in the bag.
Iterating over available specials and the diceroll per special is probably this code here https://github.com/CleverRaven/Cataclysm-DDA/blob/master/src/overmap.cpp#L6256
How does it determine how many overmap chunks out it should be to spawn?
This is not considered at all. specials get placed in the chunks they win the lottery in.
If a chunk is overloaded with stuff that won the lottery they spill out to adjacent (to-be-generated at this point) chunks if I have understood this correctly: https://github.com/CleverRaven/Cataclysm-DDA/blob/master/src/overmap.cpp#L6287
TIL about sponge. I've always just piped to a tmpfile or fifo and then piped back. But then again, I commonly work with systems that don't have GNU moreutils installed by default.
By unix philosophy you want to combine basic simple tools, like you have, to get the desired effect. But sometimes after the thousandth time you just give up purity for a macro.
These might not be as popular as the big ones you have already, but at least some location uniqueness behavior changes have been requested in main repo issues multiple times. Also the mod changes are probably against the vision of the modders.
These are also very time-consuming to create a mod for since the json entry types are not extendable, leading to the mod needing changes every time something unrelated to the mod changes in the original json document.
If you're on Windows same changes can be done manually. I use
jq
tool to help re-apply these on every update to experimental.Make everything important spawn closer together
Some things should be globally unique
Dinomod dinos are too prolific
For a recent lab accident they should be still relatively rare and around dino related locations.
XedraEvolved stuff is too common
It was very likely your first 10-20 usual looting locations(houses/lightindustries/etc) would contain artifacts etc. These paranormal things should be found from Xedra locations as the whole idea of the org is to contain this stuff.
First, contain the paranormal stuff:
Second, re-add the stuff to Xedra overmap locations: