Changeset 1171 for java/Framclipse/com.framsticks.framclipse/res
- Timestamp:
- 03/05/22 03:06:47 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/Framclipse/com.framsticks.framclipse/res/framscript.xml
r1110 r1171 182 182 <description><![CDATA["Lifespan" is the period during simulation of a creature when its performance measurement is enabled.]]></description> 183 183 </element> 184 <element name="distance" type="float"/> 185 <element name="c_velocity" type="float"/> 186 <element name="c_vertvelocity" type="float"/> 187 <element name="c_vertpos" type="float"/> 188 <element name="velocity" type="float"/> 189 <element name="vertpos" type="float"/> 190 <element name="vertvel" type="float"/> 184 <element name="distance" type="float"> 185 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 186 </element> 187 <element name="c_velocity" type="float"> 188 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 189 </element> 190 <element name="c_vertvelocity" type="float"> 191 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 192 </element> 193 <element name="c_vertpos" type="float"> 194 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 195 </element> 196 <element name="velocity" type="float"> 197 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 198 </element> 199 <element name="vertpos" type="float"> 200 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 201 </element> 202 <element name="vertvel" type="float"> 203 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 204 </element> 191 205 <element name="pos_x" type="float" deprecated="true" flags="8195"> 192 206 <description><![CDATA[(pos_x,pos_y,pos_z) is the point of minimal coordinates ("bottom left corner") of the creature, including imaginary Part sizes (Part.s, usually 1.0). See also: Creature.moveAbs]]></description> … … 227 241 </element> 228 242 <element name="centerOfGravity" type="XYZ" flags="3"> 229 <description><![CDATA[Only updated once every 'perfperiod' steps! ]]></description>243 <description><![CDATA[Only updated once every 'perfperiod' steps! See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 230 244 </element> 231 245 <element name="numparts" type="integer" flags="3"/> … … 564 578 <description><![CDATA["Lifespan" is the period during simulation of a creature when its performance measurement is enabled.]]></description> 565 579 </element> 566 <element name="distance" type="float"/> 567 <element name="c_velocity" type="float"/> 568 <element name="c_vertvelocity" type="float"/> 569 <element name="c_vertpos" type="float"/> 570 <element name="velocity" type="float"/> 571 <element name="vertpos" type="float"/> 572 <element name="vertvel" type="float"/> 580 <element name="distance" type="float"> 581 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 582 </element> 583 <element name="c_velocity" type="float"> 584 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 585 </element> 586 <element name="c_vertvelocity" type="float"> 587 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 588 </element> 589 <element name="c_vertpos" type="float"> 590 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 591 </element> 592 <element name="velocity" type="float"> 593 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 594 </element> 595 <element name="vertpos" type="float"> 596 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 597 </element> 598 <element name="vertvel" type="float"> 599 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 600 </element> 573 601 <element name="center_x" type="float" deprecated="true" flags="8192"> 574 602 <description><![CDATA[Center of gravity]]></description> … … 624 652 </arguments> 625 653 </element> 626 <element name="get" function="true" type="untyped" flags="25 6">654 <element name="get" function="true" type="untyped" flags="257"> 627 655 <description><![CDATA[Retrieves the named or indexed element (depending on the argument type: string or int). Accessing nonexistent keys is an error (use hasKey() if necessary). 628 656 object.get(key) can be shortened to object[key].]]></description> … … 631 659 </arguments> 632 660 </element> 633 <element name="getKey" function="true" type="string" flags="25 6">661 <element name="getKey" function="true" type="string" flags="257"> 634 662 <description><![CDATA[Returns the key of the indexed element (0 <= index < size).]]></description> 635 663 <arguments> … … 637 665 </arguments> 638 666 </element> 639 <element name="hasKey" function="true" type="integer" flags="25 6">667 <element name="hasKey" function="true" type="integer" flags="257"> 640 668 <description><![CDATA[Returns 1 (interpreted as true) if dictionary contains the supplied key, or 0 (false) otherwise. 641 669 Example: … … 658 686 </arguments> 659 687 </element> 660 <element name="find" function="true" type="untyped" flags="25 6">688 <element name="find" function="true" type="untyped" flags="257"> 661 689 <description><![CDATA[Returns the element key or null if not found.]]></description> 662 690 <arguments> … … 668 696 <arguments/></element> 669 697 <element name="toString" type="string" flags="257"/> 670 <element name="clone" function="true" type="Dictionary" flags="25 6">698 <element name="clone" function="true" type="Dictionary" flags="257"> 671 699 <description><![CDATA[The resulting clone is a shallow copy (contains the same object references as the original). A deep copy can be obtained through serialization: String.deserialize(String.serialize(object));]]></description> 672 700 <arguments/></element> … … 873 901 <description><![CDATA[A sum of Genotype.instances values of all Genotypes in this gene pool.]]></description> 874 902 </element> 875 <element name="totalpop" type="integer" deprecated="true" flags="8 195">903 <element name="totalpop" type="integer" deprecated="true" flags="8227"> 876 904 <description><![CDATA[Please use 'genotype_instances' instead of this field.]]></description> 877 905 </element> 878 906 <element name="fitness" type="string"> 879 <description><![CDATA[(intended for advanced users)]]></description> 907 <description><![CDATA[(For advanced users)]]></description> 908 </element> 909 <element name="fitness_is_valid" type="integer" min="0" max="1" flags="35"> 910 <description><![CDATA[(valid means can be compiled)]]></description> 911 </element> 912 <element name="fitness_step_limit" type="integer" min="0" max="1000000000" default="0"> 913 <description><![CDATA[(For advanced users)]]></description> 914 </element> 915 <element name="fitness_time_limit" type="float" min="0" max="1e+09" default="0.0"> 916 <description><![CDATA[(For advanced users)]]></description> 917 </element> 918 <element name="fitness_allowed_objs" type="string"> 919 <description><![CDATA[Comma-separated names of object classes allowed in the fitness formula.]]></description> 880 920 </element> 881 921 <element name="fitfun" type="integer" min="0" max="1" default="0"> … … 1780 1820 Thus, if both parents have the same number of neurons, then this will be preserved in their children.]]></description> 1781 1821 </element> 1782 <element name="f1_smX" type="float" min="0" max="100" default=" 0.05"/>1783 <element name="f1_smJunct" type="float" min="0" max="100" default=" 0.02"/>1784 <element name="f1_smComma" type="float" min="0" max="100" default="0. 02"/>1785 <element name="f1_smModif" type="float" min="0" max="100" default=" 0.1">1822 <element name="f1_smX" type="float" min="0" max="100" default="2.0"/> 1823 <element name="f1_smJunct" type="float" min="0" max="100" default="2.0"/> 1824 <element name="f1_smComma" type="float" min="0" max="100" default="0.5"/> 1825 <element name="f1_smModif" type="float" min="0" max="100" default="2.5"> 1786 1826 <description><![CDATA[Modifiers: LlRrCcQqFfMmIiEeWwAaSsDdGgBb]]></description> 1787 1827 </element> … … 1790 1830 (all: LlRrCcQqFfMmIiEeWwAaSsDdGgBb)]]></description> 1791 1831 </element> 1792 <element name="f1_nmNeu" type="float" min="0" max="100" default=" 0.05">1832 <element name="f1_nmNeu" type="float" min="0" max="100" default="2.0"> 1793 1833 <description><![CDATA[Adds a (connected) neuron or removes a neuron]]></description> 1794 1834 </element> 1795 <element name="f1_nmConn" type="float" min="0" max="100" default=" 0.1">1796 <description><![CDATA[]]></description> 1797 </element> 1798 <element name="f1_nmProp" type="float" min="0" max="100" default=" 0.1">1835 <element name="f1_nmConn" type="float" min="0" max="100" default="1.5"> 1836 <description><![CDATA[]]></description> 1837 </element> 1838 <element name="f1_nmProp" type="float" min="0" max="100" default="1.0"> 1799 1839 <description><![CDATA[]]></description> 1800 1840 </element> 1801 1841 <element name="f1_nmWei" type="float" min="0" max="100" default="1.0"/> 1802 <element name="f1_nmVal" type="float" min="0" max="100" default=" 0.05"/>1842 <element name="f1_nmVal" type="float" min="0" max="100" default="1.5"/> 1803 1843 <element name="f2_mutAddOper" type="float" min="0" max="1" default="0.4"> 1804 1844 <description><![CDATA[]]></description> … … 1922 1962 <description><![CDATA[mutation: probability of deleting a production]]></description> 1923 1963 </element> 1924 <element name="f9_mut" type="float" min="0" max="1" default="0. 1">1925 <description><![CDATA[How many genes should be mutated during single mutation (1=all genes, 0.1=ten percent)]]></description>1964 <element name="f9_mut" type="float" min="0" max="1" default="0.0"> 1965 <description><![CDATA[How many genes should be mutated during a single mutation (1=all genes, 0.1=ten percent, 0=one gene)]]></description> 1926 1966 </element> 1927 1967 <element name="fF_xover" type="float" min="0.5" max="1" default="0.5"> … … 1984 2024 </element> 1985 2025 <element name="fH_mut_add_connection" type="float" min="0" max="1" default="0.33"> 1986 <description><![CDATA[Probability of adding new connection handle]]></description>2026 <description><![CDATA[Probability of adding new neuron connection handle]]></description> 1987 2027 </element> 1988 2028 <element name="fH_mut_deletion" type="float" min="0" max="1" default="0.1"> … … 2173 2213 -1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description> 2174 2214 </element> 2175 <element name="getConverted" function="true" type="Geno" flags="25 6">2215 <element name="getConverted" function="true" type="Geno" flags="257"> 2176 2216 <arguments> 2177 2217 <argument name="format" type="string"/> 2178 2218 </arguments> 2179 2219 </element> 2180 <element name="getConvertedWithCheckpoints" function="true" type="Geno" flags="25 6">2220 <element name="getConvertedWithCheckpoints" function="true" type="Geno" flags="257"> 2181 2221 <description><![CDATA[See also Model.newWithCheckpoints()]]></description> 2182 2222 <arguments> … … 2261 2301 </element> 2262 2302 <element name="lifespan" type="float"> 2263 <description><![CDATA[ Average lifespan]]></description>2303 <description><![CDATA[See Creature.lifespan]]></description> 2264 2304 </element> 2265 2305 <element name="velocity" type="float"> 2266 <description><![CDATA[Average velocity]]></description> 2267 </element> 2268 <element name="distance" type="float"/> 2269 <element name="vertvel" type="float"/> 2270 <element name="vertpos" type="float"/> 2306 <description><![CDATA[See Creature.velocity]]></description> 2307 </element> 2308 <element name="distance" type="float"> 2309 <description><![CDATA[See Creature.distance]]></description> 2310 </element> 2311 <element name="vertvel" type="float"> 2312 <description><![CDATA[See Creature.vertvel]]></description> 2313 </element> 2314 <element name="vertpos" type="float"> 2315 <description><![CDATA[See Creature.vertpos]]></description> 2316 </element> 2271 2317 <element name="fit" type="float" flags="3"/> 2272 2318 <element name="fit2" type="float" flags="3"> … … 2290 2336 -1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description> 2291 2337 </element> 2292 <element name="getNormalized" function="true" type="float" flags="3 2">2338 <element name="getNormalized" function="true" type="float" flags="33"> 2293 2339 <arguments> 2294 2340 <argument name="property name or index" type="untyped"/> … … 2302 2348 See also: num]]></description> 2303 2349 </element> 2304 <element name="getModel" function="true" type="Model" flags="3 2"><arguments/></element>2350 <element name="getModel" function="true" type="Model" flags="33"><arguments/></element> 2305 2351 <element name="splitInstances" function="true" type="void" flags="32"><arguments/></element> 2306 2352 <element name="newFromString" function="true" type="Genotype" flags="32"> … … 2331 2377 </arguments> 2332 2378 </element> 2333 <element name="clone" function="true" type="Genotype" flags="3 2">2379 <element name="clone" function="true" type="Genotype" flags="33"> 2334 2380 <description><![CDATA[Returns a duplicated genotype, not attached to any gene pool. All genotype fields are copied including 'data' (for which Dictionary.clone() produces a shallow copy).]]></description> 2335 2381 <arguments/></element> … … 2454 2500 <argument name="function name or index" type="untyped"/> 2455 2501 <argument name="arguments" type="Vector"/> 2502 </arguments> 2503 </element> 2504 <element name="readonly" type="integer" min="0" max="1" flags="257"/> 2505 <element name="isReadonly" function="true" type="integer"> 2506 <arguments> 2507 <argument type="Object"/> 2508 </arguments> 2509 </element> 2510 <element name="makeReadonly" function="true" type="Object"> 2511 <arguments> 2512 <argument type="Object"/> 2456 2513 </arguments> 2457 2514 </element> … … 2482 2539 <element name="i" type="string"/> 2483 2540 <element name="Vstyle" type="string" default="joint"/> 2484 <element name="vr" type="float" min="0" max="1" default=" 1.0"/>2485 <element name="vg" type="float" min="0" max="1" default=" 1.0" flags="1024"/>2486 <element name="vb" type="float" min="0" max="1" default=" 1.0" flags="1024"/>2541 <element name="vr" type="float" min="0" max="1" default="0.5"/> 2542 <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/> 2543 <element name="vb" type="float" min="0" max="1" default="0.5" flags="1024"/> 2487 2544 </type> 2488 2545 <type name="Loader" context="Global context"> … … 2678 2735 <element name="z" type="float"/> 2679 2736 <element name="pos" type="XYZ" flags="1"/> 2680 <element name="m" type="float"/> 2737 <element name="m" type="float"> 2738 <description><![CDATA[The mass of a MechPart is the same as the mass of its corresponding Part and cannot be changed. For f0, the mass of each Part is calculated as the number of its incident Joints. For f0s, the mass of each Part is calculated internally as its density*volume.]]></description> 2739 </element> 2681 2740 <element name="s" type="float"/> 2682 2741 <element name="vol" type="float"/> … … 2743 2802 <element name="numneurons" type="integer" flags="259"/> 2744 2803 <element name="numconnections" type="integer" flags="259"/> 2745 <element name="getPart" function="true" type="Part" flags="28 8">2804 <element name="getPart" function="true" type="Part" flags="289"> 2746 2805 <arguments> 2747 2806 <argument name="index" type="integer"/> 2748 2807 </arguments> 2749 2808 </element> 2750 <element name="getJoint" function="true" type="Joint" flags="28 8">2809 <element name="getJoint" function="true" type="Joint" flags="289"> 2751 2810 <arguments> 2752 2811 <argument name="index" type="integer"/> 2753 2812 </arguments> 2754 2813 </element> 2755 <element name="getNeuroDef" function="true" type="NeuroDef" flags="28 8">2814 <element name="getNeuroDef" function="true" type="NeuroDef" flags="289"> 2756 2815 <arguments> 2757 2816 <argument name="index" type="integer"/> … … 2770 2829 <element name="bboxSize" type="XYZ" flags="257"/> 2771 2830 <element name="numcheckpoints" type="integer" flags="259"/> 2772 <element name="getCheckpoint" function="true" type="Model" flags="28 8">2831 <element name="getCheckpoint" function="true" type="Model" flags="289"> 2773 2832 <description><![CDATA[Checkpoint Model objects are only valid as long as the parent Model object exists. 2774 2833 See also: Model.newWithCheckpoints() … … 2799 2858 var mg=ModelGeometry.forModel(GenePools[0][0].getModel()); mg.geom_density=2; GenePools[0][0].data->area=mg.area(); 2800 2859 ]]></description> 2801 <element name="geom_density" type="float" min="0.01" max="100" default=" 1.0">2802 <description><![CDATA[ Affects the geometry calculation precision]]></description>2860 <element name="geom_density" type="float" min="0.01" max="100" default="3.0"> 2861 <description><![CDATA[The number of samples (per unit length in one dimension) that affects the precision of estimation of geometrical properties.]]></description> 2803 2862 </element> 2804 2863 <element name="forModel" function="true" type="ModelGeometry" flags="32"> … … 2810 2869 <element name="volume" function="true" type="float" flags="288"><arguments/></element> 2811 2870 <element name="area" function="true" type="float" flags="288"><arguments/></element> 2871 <element name="voxels" function="true" type="Vector" flags="288"> 2872 <description><![CDATA[Returns a Vector of Pt3D objects from a regular 3D grid (sampled according to ModelGeometry.geom_density) that are inside of the Model body (Parts and Joints).]]></description> 2873 <arguments/></element> 2812 2874 <element name="sizesAndAxes" function="true" type="Vector" flags="288"> 2813 2875 <description><![CDATA[The returned vector contains XYZ (sizes) and Orient (axes) objects.]]></description> … … 3608 3670 <element name="i" type="string"/> 3609 3671 <element name="Vstyle" type="string" default="part"/> 3610 <element name="vr" type="float" min="0" max="1" default=" 1.0"/>3611 <element name="vg" type="float" min="0" max="1" default=" 1.0" flags="1024"/>3612 <element name="vb" type="float" min="0" max="1" default=" 1.0" flags="1024"/>3672 <element name="vr" type="float" min="0" max="1" default="0.5"/> 3673 <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/> 3674 <element name="vb" type="float" min="0" max="1" default="0.5" flags="1024"/> 3613 3675 </type> 3614 3676 <type name="Population" context="Global context"> 3615 <description><![CDATA[A set of Creature objects, sharing some high level simulation properties (performance calculation, NN simulation, collision detection, event handling). The groups usually have different roles in the experiment ( Creatures groups and Food group in standard.expdef).3677 <description><![CDATA[A set of Creature objects, sharing some high level simulation properties (performance calculation, NN simulation, collision detection, event handling). The groups usually have different roles in the experiment (e.g. Creatures groups and Food group in standard.expdef). 3616 3678 You can iterate directly over Creatures in a Population using for(...in...) loops: 3617 3679 for(var c in Populations[0]) Simulator.print(c.name);]]></description> … … 3629 3691 </element> 3630 3692 <element name="initial_nn_active" type="integer" min="0" max="2" default="1"> 3631 <description><![CDATA[Stabilization means no significant movement during a specified period of time. ]]></description>3693 <description><![CDATA[Stabilization means no significant movement during a specified period of time. See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 3632 3694 </element> 3633 3695 <element name="nn_paused" type="integer" min="0" max="1" default="0"> … … 3635 3697 </element> 3636 3698 <element name="perfperiod" type="integer" min="0" max="1000000" default="100"> 3637 <description><![CDATA[Defines how often onUpdate() events are called and how often the built-in performance counters (distance, speed, etc.) are calculated. ]]></description>3699 <description><![CDATA[Defines how often onUpdate() events are called and how often the built-in performance counters (distance, speed, etc.) are calculated. See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 3638 3700 </element> 3639 3701 <element name="stabilperiod" type="integer" min="0" max="1000000" default="100"> … … 3650 3712 </element> 3651 3713 <element name="initial_perf_measuring" type="integer" min="0" max="2" default="1"> 3652 <description><![CDATA[Stabilization means no significant movement during a specified period of time. ]]></description>3714 <description><![CDATA[Stabilization means no significant movement during a specified period of time. See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 3653 3715 </element> 3654 3716 <element name="colmask" type="integer" min="0" max="65535" default="0" deprecated="true" flags="8224"> … … 4976 5038 Thus, if both parents have the same number of neurons, then this will be preserved in their children.]]></description> 4977 5039 </element> 4978 <element name="f1_smX" type="float" min="0" max="100" default=" 0.05"/>4979 <element name="f1_smJunct" type="float" min="0" max="100" default=" 0.02"/>4980 <element name="f1_smComma" type="float" min="0" max="100" default="0. 02"/>4981 <element name="f1_smModif" type="float" min="0" max="100" default=" 0.1">5040 <element name="f1_smX" type="float" min="0" max="100" default="2.0"/> 5041 <element name="f1_smJunct" type="float" min="0" max="100" default="2.0"/> 5042 <element name="f1_smComma" type="float" min="0" max="100" default="0.5"/> 5043 <element name="f1_smModif" type="float" min="0" max="100" default="2.5"> 4982 5044 <description><![CDATA[Modifiers: LlRrCcQqFfMmIiEeWwAaSsDdGgBb]]></description> 4983 5045 </element> … … 4986 5048 (all: LlRrCcQqFfMmIiEeWwAaSsDdGgBb)]]></description> 4987 5049 </element> 4988 <element name="f1_nmNeu" type="float" min="0" max="100" default=" 0.05">5050 <element name="f1_nmNeu" type="float" min="0" max="100" default="2.0"> 4989 5051 <description><![CDATA[Adds a (connected) neuron or removes a neuron]]></description> 4990 5052 </element> 4991 <element name="f1_nmConn" type="float" min="0" max="100" default=" 0.1">4992 <description><![CDATA[]]></description> 4993 </element> 4994 <element name="f1_nmProp" type="float" min="0" max="100" default=" 0.1">5053 <element name="f1_nmConn" type="float" min="0" max="100" default="1.5"> 5054 <description><![CDATA[]]></description> 5055 </element> 5056 <element name="f1_nmProp" type="float" min="0" max="100" default="1.0"> 4995 5057 <description><![CDATA[]]></description> 4996 5058 </element> 4997 5059 <element name="f1_nmWei" type="float" min="0" max="100" default="1.0"/> 4998 <element name="f1_nmVal" type="float" min="0" max="100" default=" 0.05"/>5060 <element name="f1_nmVal" type="float" min="0" max="100" default="1.5"/> 4999 5061 <element name="f2_mutAddOper" type="float" min="0" max="1" default="0.4"> 5000 5062 <description><![CDATA[]]></description> … … 5118 5180 <description><![CDATA[mutation: probability of deleting a production]]></description> 5119 5181 </element> 5120 <element name="f9_mut" type="float" min="0" max="1" default="0. 1">5121 <description><![CDATA[How many genes should be mutated during single mutation (1=all genes, 0.1=ten percent)]]></description>5182 <element name="f9_mut" type="float" min="0" max="1" default="0.0"> 5183 <description><![CDATA[How many genes should be mutated during a single mutation (1=all genes, 0.1=ten percent, 0=one gene)]]></description> 5122 5184 </element> 5123 5185 <element name="fF_xover" type="float" min="0.5" max="1" default="0.5"> … … 5180 5242 </element> 5181 5243 <element name="fH_mut_add_connection" type="float" min="0" max="1" default="0.33"> 5182 <description><![CDATA[Probability of adding new connection handle]]></description>5244 <description><![CDATA[Probability of adding new neuron connection handle]]></description> 5183 5245 </element> 5184 5246 <element name="fH_mut_deletion" type="float" min="0" max="1" default="0.1"> … … 5685 5747 <description><![CDATA[]]></description> 5686 5748 </element> 5687 <element name="simil_samples_num" type="integer" min="1" max="1048576" default="10 48576">5749 <element name="simil_samples_num" type="integer" min="1" max="1048576" default="10000"> 5688 5750 <description><![CDATA[]]></description> 5689 5751 </element> … … 5728 5790 <element name="symResultC" type="float" flags="35"/> 5729 5791 <element name="symResultD" type="float" flags="35"/> 5730 <element name="geom_density" type="float" min="0.01" max="100" default=" 1.0">5731 <description><![CDATA[ Affects the geometry calculation precision]]></description>5792 <element name="geom_density" type="float" min="0.01" max="100" default="3.0"> 5793 <description><![CDATA[The number of samples (per unit length in one dimension) that affects the precision of estimation of geometrical properties.]]></description> 5732 5794 </element> 5733 5795 <element name="forModel" function="true" type="ModelGeometry" flags="32"> … … 5739 5801 <element name="volume" function="true" type="float" flags="288"><arguments/></element> 5740 5802 <element name="area" function="true" type="float" flags="288"><arguments/></element> 5803 <element name="voxels" function="true" type="Vector" flags="288"> 5804 <description><![CDATA[Returns a Vector of Pt3D objects from a regular 3D grid (sampled according to ModelGeometry.geom_density) that are inside of the Model body (Parts and Joints).]]></description> 5805 <arguments/></element> 5741 5806 <element name="sizesAndAxes" function="true" type="Vector" flags="288"> 5742 5807 <description><![CDATA[The returned vector contains XYZ (sizes) and Orient (axes) objects.]]></description> … … 5770 5835 <description><![CDATA[]]></description> 5771 5836 </element> 5772 <element name="simil_samples_num" type="integer" min="1" max="1048576" default="10 48576">5837 <element name="simil_samples_num" type="integer" min="1" max="1048576" default="10000"> 5773 5838 <description><![CDATA[]]></description> 5774 5839 </element> … … 6509 6574 </arguments> 6510 6575 </element> 6576 <element name="urlEncode" function="true" type="string"> 6577 <arguments> 6578 <argument type="string"/> 6579 </arguments> 6580 </element> 6581 <element name="urlDecode" function="true" type="string"> 6582 <arguments> 6583 <argument type="string"/> 6584 </arguments> 6585 </element> 6511 6586 <element name="SERIALIZATION_PREFIX" type="string" flags="1"> 6512 6587 <description><![CDATA[String prefix used in the Framsticks file format to indicate object fields that contain serialized objects.]]></description> … … 6584 6659 </arguments> 6585 6660 </element> 6586 <element name="get" function="true" type="untyped" flags="25 6">6661 <element name="get" function="true" type="untyped" flags="257"> 6587 6662 <description><![CDATA[object[position] can be always used instead of object.get(position)]]></description> 6588 6663 <arguments> … … 6608 6683 </arguments> 6609 6684 </element> 6610 <element name="find" function="true" type="integer" flags="25 6">6685 <element name="find" function="true" type="integer" flags="257"> 6611 6686 <description><![CDATA[returns the element index or -1 if not found]]></description> 6612 6687 <arguments> … … 6632 6707 </element> 6633 6708 <element name="iterator" type="Object" flags="257"/> 6634 <element name="clone" function="true" type="Vector" flags="25 6">6709 <element name="clone" function="true" type="Vector" flags="257"> 6635 6710 <description><![CDATA[The resulting clone is a shallow copy (contains the same object references as the original). A deep copy can be obtained through serialization: String.deserialize(String.serialize(object));]]></description> 6636 6711 <arguments/></element> … … 6823 6898 </arguments> 6824 6899 </element> 6825 <element name="clone" function="true" type="XYZ" flags="25 6">6900 <element name="clone" function="true" type="XYZ" flags="257"> 6826 6901 <description><![CDATA[Note: copying object references does not create new objects. Use clone() if a new object is needed. 6827 6902 … … 6876 6951 </arguments> 6877 6952 </element> 6878 <element name="get" function="true" type="float" flags="25 6">6953 <element name="get" function="true" type="float" flags="257"> 6879 6954 <description><![CDATA[this function makes the XYZ objects "indexable" (so you can use [] for accessing subsequent fields, like in Vector)]]></description> 6880 6955 <arguments> … … 7170 7245 </element> 7171 7246 <element name="lifespan" type="float"> 7172 <description><![CDATA[ Average lifespan]]></description>7247 <description><![CDATA[See Creature.lifespan]]></description> 7173 7248 </element> 7174 7249 <element name="velocity" type="float"> 7175 <description><![CDATA[Average velocity]]></description> 7176 </element> 7177 <element name="distance" type="float"/> 7178 <element name="vertvel" type="float"/> 7179 <element name="vertpos" type="float"/> 7250 <description><![CDATA[See Creature.velocity]]></description> 7251 </element> 7252 <element name="distance" type="float"> 7253 <description><![CDATA[See Creature.distance]]></description> 7254 </element> 7255 <element name="vertvel" type="float"> 7256 <description><![CDATA[See Creature.vertvel]]></description> 7257 </element> 7258 <element name="vertpos" type="float"> 7259 <description><![CDATA[See Creature.vertpos]]></description> 7260 </element> 7180 7261 <element name="fit" type="float" flags="3"/> 7181 7262 <element name="fit2" type="float" flags="3"> … … 7199 7280 -1 = validity is not known. This is a transient state. The value of "is_valid" will never be -1 when read. It is safe to treat is_valid as boolean in statements like "if (g.is_valid) ...". Setting "is_valid=-1" will make it 0 or 1 again. This third state (-1) is only needed for loading Genotype objects from files where the "is_valid" field might not be present.]]></description> 7200 7281 </element> 7201 <element name="getNormalized" function="true" type="float" flags="3 2">7282 <element name="getNormalized" function="true" type="float" flags="33"> 7202 7283 <arguments> 7203 7284 <argument name="property name or index" type="untyped"/> … … 7211 7292 See also: num]]></description> 7212 7293 </element> 7213 <element name="getModel" function="true" type="Model" flags="3 2"><arguments/></element>7294 <element name="getModel" function="true" type="Model" flags="33"><arguments/></element> 7214 7295 <element name="splitInstances" function="true" type="void" flags="32"><arguments/></element> 7215 7296 <element name="newFromString" function="true" type="Genotype" flags="32"> … … 7240 7321 </arguments> 7241 7322 </element> 7242 <element name="clone" function="true" type="Genotype" flags="3 2">7323 <element name="clone" function="true" type="Genotype" flags="33"> 7243 7324 <description><![CDATA[Returns a duplicated genotype, not attached to any gene pool. All genotype fields are copied including 'data' (for which Dictionary.clone() produces a shallow copy).]]></description> 7244 7325 <arguments/></element> … … 7327 7408 <description><![CDATA["Lifespan" is the period during simulation of a creature when its performance measurement is enabled.]]></description> 7328 7409 </element> 7329 <element name="distance" type="float"/> 7330 <element name="c_velocity" type="float"/> 7331 <element name="c_vertvelocity" type="float"/> 7332 <element name="c_vertpos" type="float"/> 7333 <element name="velocity" type="float"/> 7334 <element name="vertpos" type="float"/> 7335 <element name="vertvel" type="float"/> 7410 <element name="distance" type="float"> 7411 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7412 </element> 7413 <element name="c_velocity" type="float"> 7414 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7415 </element> 7416 <element name="c_vertvelocity" type="float"> 7417 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7418 </element> 7419 <element name="c_vertpos" type="float"> 7420 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7421 </element> 7422 <element name="velocity" type="float"> 7423 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7424 </element> 7425 <element name="vertpos" type="float"> 7426 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7427 </element> 7428 <element name="vertvel" type="float"> 7429 <description><![CDATA[See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7430 </element> 7336 7431 <element name="pos_x" type="float" deprecated="true" flags="8195"> 7337 7432 <description><![CDATA[(pos_x,pos_y,pos_z) is the point of minimal coordinates ("bottom left corner") of the creature, including imaginary Part sizes (Part.s, usually 1.0). See also: Creature.moveAbs]]></description> … … 7372 7467 </element> 7373 7468 <element name="centerOfGravity" type="XYZ" flags="3"> 7374 <description><![CDATA[Only updated once every 'perfperiod' steps! ]]></description>7469 <description><![CDATA[Only updated once every 'perfperiod' steps! See http://www.framsticks.com/a/al_params.html#exper-perfcalc]]></description> 7375 7470 </element> 7376 7471 <element name="numparts" type="integer" flags="3"/> … … 7774 7869 <element name="i" type="string"/> 7775 7870 <element name="Vstyle" type="string" default="joint"/> 7776 <element name="vr" type="float" min="0" max="1" default=" 1.0"/>7777 <element name="vg" type="float" min="0" max="1" default=" 1.0" flags="1024"/>7778 <element name="vb" type="float" min="0" max="1" default=" 1.0" flags="1024"/>7871 <element name="vr" type="float" min="0" max="1" default="0.5"/> 7872 <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/> 7873 <element name="vb" type="float" min="0" max="1" default="0.5" flags="1024"/> 7779 7874 </type> 7780 7875 <type name="Loader" context="Visual style definition"> … … 7882 7977 <element name="i" type="string"/> 7883 7978 <element name="Vstyle" type="string" default="part"/> 7884 <element name="vr" type="float" min="0" max="1" default=" 1.0"/>7885 <element name="vg" type="float" min="0" max="1" default=" 1.0" flags="1024"/>7886 <element name="vb" type="float" min="0" max="1" default=" 1.0" flags="1024"/>7979 <element name="vr" type="float" min="0" max="1" default="0.5"/> 7980 <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/> 7981 <element name="vb" type="float" min="0" max="1" default="0.5" flags="1024"/> 7887 7982 </type> 7888 7983 <type name="Scene" context="Visual style definition"> … … 8142 8237 </element> 8143 8238 </type> 8144 <type name="World" context="Visual style definition">8145 <description><![CDATA[Environment properties.]]></description>8146 <element name="wrldtyp" type="integer" min="0" max="2" default="0"/>8147 <element name="wrldsiz" type="float" min="10" max="10000" default="20.0">8148 <description><![CDATA[Side length of the world]]></description>8149 </element>8150 <element name="wrldmap" type="string">8151 <description><![CDATA[Description of the world (only applies to world types: "Blocks" or "Height field").8152 To generate a random landscape, use:8153 r[scaling] <sizex> <sizey> [seed]8154 To generate a custom landscape, provide height values:8155 m[scaling] <sizex> <sizey> digits...8156 or8157 M[scaling] <sizex> <sizey> numbers...8158 8159 "digits..." is a sequence of integer values 0,1,2,..,9. You may also use '-' and '|' characters for smooth slides between blocks.8160 "numbers..." is a sequence of floating point values, so the "M" option provides more freedom.8161 [scaling] is an optional linear scaling expression in the form of *FACTOR+OFFSET or *FACTOR-OFFSET, for example "r*0.1-2 5 5" creates a 5x5 random map with a 10% amplitude, shifted down by 2.8162 8163 See also the WorldMap object.]]></description>8164 </element>8165 <element name="wrldwat" type="float" min="-20" max="200" default="-1.0"/>8166 <element name="wrldbnd" type="integer" min="0" max="2" default="0">8167 <description><![CDATA[Teleporting a creature that is outside of the world area is attempted every 'performance sampling period' steps. Teleport succeeds only when the target location in the world is empty (there is no collision).]]></description>8168 </element>8169 <element name="wrldg" type="float" min="0" max="10" default="1.0">8170 <description><![CDATA[You can adjust gravity for your experiments.8171 The "official" setting used to evaluate and compare creatures is 1.]]></description>8172 </element>8173 <element name="wrldchg" function="true" type="void" flags="32"><arguments/></element>8174 <element name="simtype" type="integer" min="0" max="1" default="0">8175 <description><![CDATA[MechaStick is a fast and simple primary Framsticks simulation engine.8176 ODE is Open Dynamics Engine by Russel Smith et al.8177 8178 NOTE: switching between simulation engines causes removal of all objects in the world (e.g. creatures).]]></description>8179 </element>8180 <element name="nnspeed" type="float" min="0" max="1000" default="1.0">8181 <description><![CDATA[Number of neural network simulation steps in each physics simulation step]]></description>8182 </element>8183 <element name="rndcollisions" type="integer" min="0" max="1" default="1">8184 <description><![CDATA[When enabled, custom collision handlers are invoked in random order. This can help remove unfair bias in some experiments - for example where the same collision order in each simulation step would cause some creatures colliding with food to consume energy while other colliding creatures would starve.]]></description>8185 </element>8186 <element name="signals" type="WorldSignals" flags="35"/>8187 </type>8188 <type name="WorldMap" context="Visual style definition">8189 <description><![CDATA[Environment details for "Blocks" and "Heightfield" world type. The most important concept is a "Map", which is the array of Map elements. Internally, Maps have more elements than could be deduced from the user-supplied World.wrldsiz, as additional rows of element are added to provide smooth transitions to the flat surroundings.8190 8191 Blocks: x/ysize=World.wrldsiz+4 rows of blocks (from which only 2+World.wrldsiz rows are placed within the world boundaries)8192 8193 Smooth: x/ysize=World.wrldsiz+2 rows of vertices (creating World.wrldsiz+1 rows of triangles, everything within the world boundaries)8194 ]]></description>8195 <element name="xsize" type="integer" flags="1"/>8196 <element name="ysize" type="integer" flags="1"/>8197 <element name="getHeight" function="true" type="float">8198 <description><![CDATA[Height at any 2d coordinate]]></description>8199 <arguments>8200 <argument name="x" type="float"/>8201 <argument name="y" type="float"/>8202 </arguments>8203 </element>8204 <element name="getMap" function="true" type="Object">8205 <description><![CDATA[retrieve map cell object]]></description>8206 <arguments>8207 <argument name="x" type="integer"/>8208 <argument name="y" type="integer"/>8209 </arguments>8210 </element>8211 <element name="intersect" function="true" type="Vector">8212 <description><![CDATA[Calculate the intersection point between the world surface and the ray projected from "3d point" towards the given direction. 3D points are actually 3-elements Vector objects. The resulting vector contains the additional fourth element - the intersection point distance. The function returns null if there is no intersection.8213 8214 See "standard_events.inc" file, which uses "intersect" for calculating the world coordinates corresponding to the user-clicked screen location.8215 Bugs: This function does not currently handle the heightfield environment correctly (works as if it was flat)]]></description>8216 <arguments>8217 <argument name="3d point" type="Vector"/>8218 <argument name="3d direction" type="Vector"/>8219 <argument name="range" type="float"/>8220 </arguments>8221 </element>8222 <element name="intersect" function="true" type="Vector">8223 <description><![CDATA[Works like intersect(3d point,3d direction,range) for inifinite range, that is without limiting the intersection distance]]></description>8224 <arguments>8225 <argument name="3d point" type="Vector"/>8226 <argument name="3d direction" type="Vector"/>8227 </arguments>8228 </element>8229 </type>8230 8239 <type name="Signal" context="Signal label formula"> 8231 8240 <element name="value" type="untyped" flags="1"> … … 8287 8296 </type> 8288 8297 <type name="CLI" context="Command line interface"> 8289 <description><![CDATA[Command line support functions.]]></description>8298 <description><![CDATA[Command-line support functions.]]></description> 8290 8299 <element name="script" type="string"/> 8291 8300 <element name="execute" function="true" type="void"> … … 8325 8334 </element> 8326 8335 <element name="listMacros" function="true" type="void"><arguments/></element> 8336 <element name="findAndExpandMacro" function="true" type="string"> 8337 <arguments> 8338 <argument name="text" type="string"/> 8339 </arguments> 8340 </element> 8327 8341 <element name="stdin" type="Object" flags="3"/> 8328 8342 <element name="stdout" type="Object" flags="3"/> … … 8478 8492 <element name="newCreatureCharts" function="true"/> 8479 8493 <element name="newSimStatsCharts" function="true"/> 8480 <element name="user_interaction" type="integer" min="0" max=" 31" default="31">8494 <element name="user_interaction" type="integer" min="0" max="255" default="127"> 8481 8495 <description><![CDATA[Bit field: 8482 8496 1 - menu access … … 8485 8499 8 - select creatures 8486 8500 16 - change ShowManager options in menu (including switching shows) 8487 Bits 2-16 are not implemented in the old Framsticks Theater application.]]></description> 8501 32 - change display mode (normal/VR/AR) 8502 64 - extract genotype 8503 128 - change display mode buttons visibility 8504 Bits 2-128 are not implemented in the old Framsticks Theater application.]]></description> 8488 8505 </element> 8489 8506 <element name="world_visibility" type="integer" min="0" max="31" default="31"> … … 8502 8519 <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description> 8503 8520 </element> 8521 <element name="menu_group" type="string"> 8522 <description><![CDATA[Default empty value means all groups. Groups can be also displayed as submenus by adding action parameters having ids of "showgroup_TheNameOfTheGroupToShow". 8523 Not implemented in the old Framsticks Theater application.]]></description> 8524 </element> 8504 8525 <element name="back_action" type="string"> 8505 8526 <description><![CDATA[Not implemented in the old Framsticks Theater application.]]></description> … … 8614 8635 <arguments> 8615 8636 <argument name="name" type="string"/> 8637 </arguments> 8638 </element> 8639 <element name="newMenu" function="true" type="GUIElement"> 8640 <arguments> 8641 <argument name="name" type="string"/> 8642 <argument name="menu items" type="Object"/> 8616 8643 </arguments> 8617 8644 </element> … … 8725 8752 </arguments> 8726 8753 </element> 8754 <element name="getItemGUI" function="true" type="untyped"> 8755 <description><![CDATA[Returns null if the requested item is scrolled out of view.]]></description> 8756 <arguments> 8757 <argument name="index" type="integer"/> 8758 </arguments> 8759 </element> 8727 8760 <element name="removeItem" function="true" type="void"> 8728 8761 <arguments> … … 8807 8840 <description><![CDATA[Button: 0=regular, 1=borderless 8808 8841 List: 0=regular, 1=invisible selection 8809 Textfield: 0=dark border, 1=bright border ]]></description>8842 Textfield: 0=dark border, 1=bright borderModel: 0=no shadow, 1=with shadow]]></description> 8810 8843 </element> 8811 8844 <element name="feedback" type="integer"/> … … 8843 8876 <argument name="duration" type="float"/> 8844 8877 </arguments> 8878 </element> 8879 <element name="gui_owner" type="GUIElement" flags="1"> 8880 <description><![CDATA[GUIElement that owns this GUIElement's GUIContext. 8881 Multiple GUI context are currently only used for list items, with each item creating independent GUI namespace. 8882 Example: 8883 function onGUIEvent(elem, arg) 8884 { 8885 Simulator.print("clicked "+elem.name); 8886 Simulator.print("inside item #"+elem.gui_owner_item+" in the list "+elem.gui_owner.name); 8887 } 8888 ]]></description> 8889 </element> 8890 <element name="gui_owner_item" type="integer" flags="1"> 8891 <description><![CDATA[Index of the list item element owning this GUIElement's GUIContext. Valid when gui_owner is a list.]]></description> 8892 </element> 8893 <element name="gui" type="untyped" flags="1"> 8894 <description><![CDATA[GUIContext of this GUIElement]]></description> 8845 8895 </element> 8846 8896 </type> … … 8880 8930 <element name="shine" type="integer" flags="256"/> 8881 8931 <element name="texture" type="string" flags="256"/> 8882 <element name="shader" type=" Shader" flags="256"/>8932 <element name="shader" type="string" flags="256"/> 8883 8933 </type> 8884 8934 <type name="Matrix" context="Framsticks Theater"> … … 8989 9039 <element name="get" function="true" type="Obj3D" flags="256"> 8990 9040 <arguments> 8991 <argument name=" index" type="integer"/>9041 <argument name="or name" type="untyped"/> 8992 9042 </arguments> 8993 9043 </element> … … 9040 9090 </arguments> 9041 9091 </element> 9042 </type>9043 <type name="Shader" context="Framsticks Theater">9044 <description><![CDATA[Shader object]]></description>9045 <element name="new" function="true" type="Shader">9046 <arguments>9047 <argument name="flags" type="integer"/>9048 </arguments>9049 </element>9050 <element name="vertex" type="string" flags="256"/>9051 <element name="fragment" type="string" flags="256"/>9052 9092 </type> 9053 9093 <type name="Sharing" context="Framsticks Theater">
Note: See TracChangeset
for help on using the changeset viewer.