![]() integer, 0 .. 100000 |
Save backup Save simulation state once every n-th event |
![]() integer, 0 .. 2 |
Object creation errors |
![]() integer, 0 .. 1 (false/true) |
Fail on warnings Creatures grown with warnings will not be simulated. |
![]() string |
Experiment definition Choose the experiment framework |
![]() multiline string |
Description |
![]() string |
Title |
![]() integer, 0 .. 1 (false/true) default=1 |
Show file comments Display comments encountered in opened files |
![]() |
gene pools object |
![]() integer, 0 .. 1 (false/true) |
Check genotypes added to groups |
![]() integer, 0 .. 1 (false/true) |
Check imported genotypes |
![]() |
populations object |
![]() integer, 0 .. 1 (false/true) |
Check genotypes loaded from experiment |
![]() float, 0 .. 100 default=2 |
Maximal joint length |
![]() float, 0 .. 100 default=0 |
Minimal joint length |
![]() integer, 0 .. 1 (false/true) |
Overwrite Overwite existing files or create their backups |
![]() integer, 0 .. 1 (false/true) default=1 |
Reset before changing experiment definition If turned on: when a new experiment definition is selected, default values are loaded for most of the simulator parameters, and gene pools and populations are cleared. |
![]() integer, 0 .. 1 (false/true) |
is the simulation running? for synchronizing the user interface state |
![]() integer |
simulation speed steps/second |
![]() integer |
number of steps |
![]() multiline string |
User script This script overrides the experiment definition |
![]() integer, 0 .. 1 (false/true) |
VM debug |
![]() |
world object |
![]() doesn't return a value |
beep function beep() Plays a default system sound |
![]() doesn't return a value |
Notify that the experiment state was significantly updated. function checkpoint() This function was previously called "autosave". |
![]() doesn't return a value |
evaluate expression function eval(string script_expression) |
![]() doesn't return a value |
export function export(string filename, integer options, integer genepool, integer population) Save some data to file. arguments: |
![]() doesn't return a value |
import function import(string filename, integer options) Load some data from file. The second optional argument selects what section(s) will be imported: |
![]() doesn't return a value |
Initialize experiment function init() Performs initialization procedures, like resetting counters, states, gene pools, etc. |
![]() doesn't return a value |
load function load(string filename) Load experiment file (calls onExpLoad() in the current experiment definition). This function is intended to replace the simulator state; the old state is cleared by automatically calling "resetToDefaults()" (only if "resetonexpdef" is enabled). Use "import" if you don't want to loose the old simulator state. |
![]() doesn't return a value |
Reload experiment definition function loadexpdef() |
![]() doesn't return a value |
(re)load neuron definitions function loadNeurons(string directory_path) |
![]() doesn't return a value |
print message function message(string text, integer level) The second argument can be: |
![]() returns Simulator |
create new Simulator function new() |
![]() doesn't return a value |
print information message function print(string text) One argument: message to be printed |
![]() doesn't return a value |
Reset the simulator state function resetToDefaults() Clears groups and loads default values for simulator parameters, then calls onExpDefLoad() of the current experiment definition. |
![]() doesn't return a value |
save function save(string filename) Save experiment file (calls onExpSave() in the current experiment definition) |
![]() doesn't return a value |
sleep function sleep(integer milliseconds) Suspends the execution for a specified interval |
![]() doesn't return a value |
sound function sound(integer freqency_in_Hz, integer length_in_milliseconds) Generates a simple tone on the speaker |
![]() doesn't return a value |
start simulation function start() called by the user interface |
![]() doesn't return a value |
do single simulation step function step() |
![]() doesn't return a value |
stop simulation function stop() the expdef script calls this to stop simulation |
Global context |