[Solved] Everything in a map is predetermined

Status
Not open for further replies.
Level 5
Joined
Jul 18, 2010
Messages
159
Hi, I just noticed that literally everything(that should be random) is actually predetermined. Tornado Wander abilliy, random numbers and random points in triggers, random hero names, everything is the same all the time.

I'm not using test map - I know the issue and I've disabled same seed option anyway.

Don't know what should I post here that will be helpful.
Editor: JASS new gen 5d
Patch: 1.26something something(the one with long number) - english language.

I've tried saving the map with regular editor, but it didn't work.

Anyone know what can be causing that?
 
Level 5
Joined
Jul 18, 2010
Messages
159
Updated, same issue.
I may be paranoid, but generating same 12 items in same 12 spots, and Villager with wander ability always going to same place in the background looks suspicious. I know testing 15 times doesn't really say anything, but it's unlikely to happen all the time.
Tested it on LAN(by myself), on Single and through Map-test. Should I get someone to play it with me over LAN, should that work?

I'm sure I didn't trigger any seed on purpose, only used some: set X to random point in region -> spawn something on X -> remove location X, and: set Z = random integer between 1 and 7 in a loop.
 
Try creating a new map, and use one of those random functions. Test it. Do you still get the same results every time?

As a side note, turning cinematic mode "on" will set the seed to a fixed value. If you have cinematics in your map, be sure to explicitly turn it "off" when you're done. Otherwise the seed will not be reset.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
As a side note, turning cinematic mode "on" will set the seed to a fixed value. If you have cinematics in your map, be sure to explicitly turn it "off" when you're done. Otherwise the seed will not be reset.
This means that if you want an intro cinematic you need to setup the game first (random results), play the cinematic (not random results) and then resume the gameplay (random results).

You could also write your own cinematic functions which do not alter random seed.
 
Level 5
Joined
Jul 18, 2010
Messages
159
That will sure fix the problem... There are random numbers used while cinematic mode is on. Will test it soon. Thank you very much :)

EDIT: WORKS!
I would've never guessed that it can be beacuse of cinematic mode. Thank you very very much. Good to know that for any future projects.
 
Last edited:
Status
Not open for further replies.
Top