Terraria

Terraria

View Stats:
Destroying Base Game Map Generation
Don't know any other way to start this absolute drug-trip of a question, other than:
Hello, I'm Just-Linx, and I want to give map generation a stroke through the abuse of seeds (map seed id's, not plant seeds).

I can't seem to find documentation on how each individual part of the seed affects world generation. Does anyone know if it's been documented in depth, and have a link to it? It would be greatly appreciated.

Also, I understand that For the Worthy and Drunk World seeds exist, but the wiki says that the seeds for them are programmed to activate a preset build for a seed, rather than generating the world through the use of each individual part of the seed. So, those don't really help.
Originally posted by Snek:
If you're just wondering about the x.x.x.xxxxxxxx format, it's documented on the wiki: https://terraria.fandom.com/wiki/World_Seed

In general...
Seeds don't really have 'parts' to them. If you copy one from a world and make a new world with that seed (same version and everything), then it will generate the same world because Terraria explicitly checks for that format. But beyond that? Seeds are just a number that Terraria seeds its world generation RNG with with. Hell, the seed format Terraria gives you includes that number at the very end. All Terraria worlds go through roughly the same process to generate, they just vary in what that RNG gives them.
Special seeds like FTW aren't just presets either: If you make a world with one of the special seeds, it pretty much just sets a flag that says "this world is drunk/FTW/whatever" and generates the world with a new, random seed.

If you want to look at the code itself, you can set up a tModLoader development environment to browse Terraria's code. You could just look at it in ILSpy or similar, but the dev. environment is much cleaner. Link is here: https://github.com/tModLoader/tModLoader/wiki/tModLoader-guide-for-contributors#current-temporary-steps-for-developer-setup
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
Snek Jan 3, 2022 @ 11:44am 
If you're just wondering about the x.x.x.xxxxxxxx format, it's documented on the wiki: https://terraria.fandom.com/wiki/World_Seed

In general...
Seeds don't really have 'parts' to them. If you copy one from a world and make a new world with that seed (same version and everything), then it will generate the same world because Terraria explicitly checks for that format. But beyond that? Seeds are just a number that Terraria seeds its world generation RNG with with. Hell, the seed format Terraria gives you includes that number at the very end. All Terraria worlds go through roughly the same process to generate, they just vary in what that RNG gives them.
Special seeds like FTW aren't just presets either: If you make a world with one of the special seeds, it pretty much just sets a flag that says "this world is drunk/FTW/whatever" and generates the world with a new, random seed.

If you want to look at the code itself, you can set up a tModLoader development environment to browse Terraria's code. You could just look at it in ILSpy or similar, but the dev. environment is much cleaner. Link is here: https://github.com/tModLoader/tModLoader/wiki/tModLoader-guide-for-contributors#current-temporary-steps-for-developer-setup
Originally posted by Snek:
If you're just wondering about the x.x.x.xxxxxxxx format, it's documented on the wiki: https://terraria.fandom.com/wiki/World_Seed

...
Thank you, kind fellow. I'll look into all this!
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jan 3, 2022 @ 11:03am
Posts: 2