Pseudo-randomness

4 replies [Last post]
Zippy
Zippy's picture
User offline. Last seen 13 years 24 weeks ago. Offline
Joined: 2009-11-09
Posts: 13

I would really appreciate if the spawning of Hogs and the content of supply boxes would be more random. If you play the same map under the same circumstances twice, for a rematch for example, it kind of sucks that all the Hogs spawn at the same place as before. And the supply boxes don't seem to be very random either. A friend and I just tested it, the first box always had the same position and the same content.

Bird is the word.

Thomas
Thomas's picture
User offline. Last seen 11 years 13 weeks ago. Offline
Joined: 2009-02-06
Posts: 233

...and its not only the first box;)

please add your xfire accountname here:
http://www.hedgewars.org/node/1977

nemo
nemo's picture
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Zippy, the entire game is controlled by the same random seed, there is no separation of seed for map and game.

That means, you *must* reroll the map (clicking the map button) to get a new seed - even if you are playing a non-random map.

If you are really really attached to a particular random map, there is one "workaround".

Try adding a few more or less mines. Since their positions are random, they'll move everything around in the seeding sequence.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Zippy
Zippy's picture
User offline. Last seen 13 years 24 weeks ago. Offline
Joined: 2009-11-09
Posts: 13

Thanks nemo, that helped Wink Smiley
Talking about random things, it would also be quite nice if the map generator came up with more varying maps. Many of them are very similar.

Bird is the word.

nemo
nemo's picture
User offline. Last seen 5 weeks 5 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Hey Zippy. Basically maps are only partially random.

There is a set of map templates. One of those is picked at random, and then within the constraints of sets of boxes in the template, points are picked to determine outline, with a little skewing thrown in.

http://fireforge.net/scm/viewvc.php/*checkout*/trunk/hedgewars/uLandTemplates.pas?root=hedgewars&revision=2711&content-type=text%2Fplain&pathrev=2711

All the templates are here. If people want more, they should submit some. Maybe with a few dozen more, they wouldn't be as recognisable.

There are for example only 2 small map templates.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]