One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2018-04-29 00:22:01

woodcol
Member
Registered: 2018-04-22
Posts: 8

What is the rule of map generation

I built a server of my own, but found that the server map built twice is the same. Is this map generated randomly or manually?

Offline

#2 2018-04-29 01:25:07

Alleria
Member
Registered: 2018-03-30
Posts: 339

Re: What is the rule of map generation

It's "randomly" generated based off a single seed. I don't really understand how seeds work, but there's a lot of information on the net about it.


"Words build bridges into unexplored regions"

Offline

#3 2018-04-29 01:49:21

Go! Bwah!
Member
Registered: 2018-03-16
Posts: 204

Re: What is the rule of map generation

During Ye Olde Armageddon Tyme, people noticed that the monoliths were in the same location on each server (and also across wipes), and since people were speedrunning the Apocalypse, Jason tossed around the idea of seeding each server randomly so that people would have to look harder for the monoliths.  But he deactivated the Apocalypse instead and I imagine there was no longer a compelling reason for him to randomize the terrain generation.


I like to go by "Eve Scripps" and name my kids after medications smile

Offline

#4 2018-04-29 01:51:28

nofaz
Member
Registered: 2018-04-19
Posts: 24

Re: What is the rule of map generation

If its generated with a seed, and you got twice the same map, then you using the same seed. Seed its just random characters when used in an algorithm builds the map in a certain way

Same map because same seed


With blood and Honor

Offline

#5 2018-04-29 02:20:36

YAHG
Member
Registered: 2018-04-06
Posts: 1,347

Re: What is the rule of map generation

nofaz wrote:

If its generated with a seed, and you got twice the same map, then you using the same seed. Seed its just random characters when used in an algorithm builds the map in a certain way

Same map because same seed

Aye, computers don't do well with true random number generation usually the clock or something
is the seed. I think you could induce true random with a transistor running hot enough to overheat
into errors and reading its state as your seeds?


"be prepared and one person cant kill all city, if he can, then you deserve it"  -pein
https://kazetsukai.github.io/onetech/#
https://onehouronelife.com/forums/viewtopic.php?id=1438

Offline

#6 2018-04-29 02:30:07

nofaz
Member
Registered: 2018-04-19
Posts: 24

Re: What is the rule of map generation

If its not a setting you edit, then probably its from the clock and the seed was created during compilation


With blood and Honor

Offline

#7 2018-04-29 02:57:06

Go! Bwah!
Member
Registered: 2018-03-16
Posts: 204

Re: What is the rule of map generation

YAHG wrote:

Aye, computers don't do well with true random number generation usually the clock or something
is the seed. I think you could induce true random with a transistor running hot enough to overheat
into errors and reading its state as your seeds?

I read a long time ago that some Commodore 64 (I think) programs would play three tones through the sound chip at frequencies higher than it was rated for, then somehow sample the output and use that to seed the PRNG (or maybe they used it for random values directly).

Anyway, if you're going to create a hardware RNG, I understand sampling background radiation is a pretty solid approach.

Edit to add: your way seems popular, too: https://en.wikipedia.org/wiki/Johnson%E … uist_noise

Last edited by Go! Bwah! (2018-04-29 02:57:51)


I like to go by "Eve Scripps" and name my kids after medications smile

Offline

#8 2018-04-30 16:16:17

woodcol
Member
Registered: 2018-04-22
Posts: 8

Re: What is the rule of map generation

nofaz wrote:

If its generated with a seed, and you got twice the same map, then you using the same seed. Seed its just random characters when used in an algorithm builds the map in a certain way

Same map because same seed

Do you know where the seeds of random numbers are set?

Offline

#9 2018-04-30 16:25:25

Drakulon
Member
Registered: 2018-03-31
Posts: 136

Re: What is the rule of map generation

Offline

#10 2018-05-01 06:47:45

woodcol
Member
Registered: 2018-04-22
Posts: 8

Re: What is the rule of map generation

Offline

Board footer

Powered by FluxBB