Back to Recipes Homepage
recipe picture
Recipe: CG303 GAB V4.20
4.375
Your rating: None Average: 4.4 (8 votes)

Profile

Name: CG303 GAB V4.20
ID: 41803
Created on: Sun, 05/20/2012 - 09:36
Updated on: Sun, 05/20/2012 - 09:36
Description:

Translated Lua V2 version. Now, we can set the random seed to system time, giving different results on each PC when using the same puzzle state. However, if you want to change this, look at the end of the script code. Change RNDseed=os.time() to RNDseed=[an arbitrary number], or use a seed value which the script has shown when it started before to reproduce work. Moreover, I added a feature to prevent generating band lengths which are too close to current segment distances.



Best For


Comments

Joined: 09/18/2009
Groups: SETI.Germany
Code as text...

...is here:
http://pastebin.com/EZH4MVE4

Beginning at line 1485:
BLchangeDown: Maximum negative band change (without BLchangeDownPush)
BLchangeDownPush: Value added to BLchangeDown (-> minimum negative band change)
BLchangeUp: Maximum positive band change (without BLchangeUpPush)
BLchangeUpPush: Value added to BLchangeUp (-> minimum positive band change)

However, you can set the push values to 0, so bands can also have the same length than actual segment distance.
For a Mimic band, push values should be ignored (I didn't test this so far).

Joined: 09/18/2009
Groups: SETI.Germany
+

As some users have noticed already, by changing these values, you can also do either compression or expansion of a puzzle.
By default, expansion as well as compression are possible (by random).
If you set BLchangeDown and BLchangeDownPush to 0, the script does expansion only, as there is no negative change in distance allowed anymore.
If you set BLchangeUp and BLchangeUpPush to 0, the script does compression only, as there is no positive change in distance allowed anymore.

Want to try?
Add to Cookbook!
To download recipes to your cookbook, you need to have the game client running.
Parent

none

Children
Authors
Sitemap

Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons