View Issue Details

IDProjectCategoryLast Update
0010223Valley 2Suggestion - General IdeaJan 25, 2013 9:02 am
Reporterjruderman Assigned ToChris_McElligottPark  
Status closedResolutionwon't fix 
Summary0010223: Derive map seed from map name
DescriptionThe idea is that two players who name their region "The Shambles of Doom" will see the same map. But someone playing in a region of Environ named "Julia's Nook" will get a different map.

zaaq suggests limiting this feature to worlds not called "Environ".

(Split from 0010136)
TagsNo tags attached.
Internal WeightFeature Suggestion

Relationships

related to 0010136 closed Main Campaign 

Activities

zaaq

Jan 3, 2013 10:18 pm

reporter   ~0029504

Comment from 10136:

Deriving the seed from the map name shouldn't be too difficult, assuming:
(1) AVWW uses a common PRNG instance in the world generation logic, and
(2) The initialization logic has a deterministic (read: repeatable) implementation.

The code would work something like:

var worldName = GetWorldNameFromUI();
var rng = worldName == "Environ" ? new System.Random() : new System.Random(worldName.GetHashCode());
// Pass rng to world generation logic

Chris_McElligottPark

Jan 25, 2013 9:02 am

administrator   ~0030178

Bear in mind that while initial world generation is handled from one map seed, that would just apply to the world map and nothing else; the actual regions use random seeds that are nondeterministic. Plus, as various updates to the game happen, you lose the deterministic nature of the seeds in general.

Honestly I think this would lead to more frustration than anything else, as the determinism you might be looking for really wouldn't be there. Adding a single slice changes the layouts of all rooms that use that slice folder, for instance, because the total number of potential slices, and their indices, are all changed.

Issue History

Date Modified Username Field Change
Jan 3, 2013 7:15 pm jruderman New Issue
Jan 3, 2013 8:29 pm tigersfan Internal Weight => Feature Suggestion
Jan 3, 2013 8:29 pm tigersfan Status new => considering
Jan 3, 2013 10:17 pm zaaq Relationship added related to 0010136
Jan 3, 2013 10:18 pm zaaq Note Added: 0029504
Jan 25, 2013 9:02 am Chris_McElligottPark Note Added: 0030178
Jan 25, 2013 9:02 am Chris_McElligottPark Status considering => closed
Jan 25, 2013 9:02 am Chris_McElligottPark Assigned To => Chris_McElligottPark
Jan 25, 2013 9:02 am Chris_McElligottPark Resolution open => won't fix