Ignore:
Timestamp:
11/21/22 01:32:43 (12 days ago)
Author:
sz
Message:

updated for Framsticks v5.0rc25
notable change: max=-1 means unlimited string length (in attribute definitions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/Framclipse/com.framsticks.framclipse/res/framscript.xml

    r1181 r1188  
    2727        <type name="style" context="style file">
    2828<description><![CDATA[General visual style properties.]]></description>
    29                 <element name="style" type="string" default="standard"/>
     29                <element name="style" type="string" max="-1" default="standard"/>
    3030                <element name="name" type="string" flags="19"/>
    3131                <element name="info" type="string" flags="19"/>
     
    19781978                        <description><![CDATA[If active, the amount of linear mix is random in each crossover operation, so the "Fraction inherited in linear mix crossover" parameter is ignored.]]></description>
    19791979                </element>
    1980                 <element name="fn_mut_bound_low" type="string" default="[-10.0, -10.0]">
     1980                <element name="fn_mut_bound_low" type="string" max="-1" default="[-10.0, -10.0]">
    19811981                        <description><![CDATA[A vector of lower bounds (one real value for each variable)]]></description>
    19821982                </element>
    1983                 <element name="fn_mut_bound_high" type="string" default="[10.0, 10.0]">
     1983                <element name="fn_mut_bound_high" type="string" max="-1" default="[10.0, 10.0]">
    19841984                        <description><![CDATA[A vector of higher bounds (one real value for each variable)]]></description>
    19851985                </element>
    1986                 <element name="fn_mut_stddev" type="string" default="[0.1, 0.1]">
     1986                <element name="fn_mut_stddev" type="string" max="-1" default="[0.1, 0.1]">
    19871987                        <description><![CDATA[A vector of standard deviations (one real value for each variable)]]></description>
    19881988                </element>
     
    25382538                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    25392539                <element name="i" type="string"/>
    2540                 <element name="Vstyle" type="string" default="joint"/>
     2540                <element name="Vstyle" type="string" max="-1" default="joint">
     2541                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     2542                </element>
    25412543                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    25422544                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    27802782        <type name="Model" context="Global context">
    27812783                <element name="se" type="float" flags="256"/>
    2782                 <element name="Vstyle" type="string" flags="256"/>
     2784                <element name="Vstyle" type="string" flags="256">
     2785                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     2786                </element>
    27832787                <element name="geno" type="Geno" flags="257"/>
    27842788                <element name="newFromString" function="true" type="Model">
     
    31103114                <element name="d" type="string"/>
    31113115                <element name="i" type="string"/>
    3112                 <element name="Vstyle" type="string" default="neuro"/>
     3116                <element name="Vstyle" type="string" max="-1" default="neuro">
     3117                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     3118                </element>
    31133119                <element name="getInputCount" type="integer" flags="3"/>
    31143120                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    36693675                <element name="rz" type="float" flags="1024"/>
    36703676                <element name="i" type="string"/>
    3671                 <element name="Vstyle" type="string" default="part"/>
     3677                <element name="Vstyle" type="string" max="-1" default="part">
     3678                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     3679                </element>
    36723680                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    36733681                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    39663974        </type>
    39673975        <type name="POVExport" context="Global context">
    3968                 <element name="povex_outdir" type="string" default=".">
     3976                <element name="povex_outdir" type="string" max="-1" default=".">
    39693977                        <description><![CDATA[Directory name WITHOUT trailing '/' sign]]></description>
    39703978                </element>
    3971                 <element name="povex_outfiles" type="string" default="scene_%04d.pov">
     3979                <element name="povex_outfiles" type="string" max="-1" default="scene_%04d.pov">
    39723980                        <description><![CDATA[Frame number replaces %d (eg. 'scene%03d.pov')]]></description>
    39733981                </element>
     
    42344242                        <description><![CDATA[Resets the simulator to its default state, resets all parameters to default values and then loads this experiment definition.]]></description>
    42354243<arguments/></element>
    4236                 <element name="usercode" type="string" min="1">
     4244                <element name="usercode" type="string" min="1" max="-1">
    42374245                        <description><![CDATA[You can override any function from the original experiment definition script. Use the same function names and provide alternative implementations.
    42384246Example:
     
    51965204                        <description><![CDATA[If active, the amount of linear mix is random in each crossover operation, so the "Fraction inherited in linear mix crossover" parameter is ignored.]]></description>
    51975205                </element>
    5198                 <element name="fn_mut_bound_low" type="string" default="[-10.0, -10.0]">
     5206                <element name="fn_mut_bound_low" type="string" max="-1" default="[-10.0, -10.0]">
    51995207                        <description><![CDATA[A vector of lower bounds (one real value for each variable)]]></description>
    52005208                </element>
    5201                 <element name="fn_mut_bound_high" type="string" default="[10.0, 10.0]">
     5209                <element name="fn_mut_bound_high" type="string" max="-1" default="[10.0, 10.0]">
    52025210                        <description><![CDATA[A vector of higher bounds (one real value for each variable)]]></description>
    52035211                </element>
    5204                 <element name="fn_mut_stddev" type="string" default="[0.1, 0.1]">
     5212                <element name="fn_mut_stddev" type="string" max="-1" default="[0.1, 0.1]">
    52055213                        <description><![CDATA[A vector of standard deviations (one real value for each variable)]]></description>
    52065214                </element>
     
    60586066                        <description><![CDATA[Resets the simulator to its default state, resets all parameters to default values and then loads this experiment definition.]]></description>
    60596067<arguments/></element>
    6060                 <element name="usercode" type="string" min="1">
     6068                <element name="usercode" type="string" min="1" max="-1">
    60616069                        <description><![CDATA[You can override any function from the original experiment definition script. Use the same function names and provide alternative implementations.
    60626070Example:
     
    65996607                        <description><![CDATA[String prefix used in the Framsticks file format to indicate object fields that contain serialized objects.]]></description>
    66006608                </element>
     6609                <element name="ESC" type="string" flags="1"/>
     6610                <element name="NBSP" type="string" flags="1"/>
    66016611        </type>
    66026612        <type name="UserScripts" context="Global context">
     
    68156825
    68166826Internaly, the data returned by this function is generated by the 'scripts/worldmap-faces.script' file, so you can refer to its source if needed.
    6817 The first argument to getAsString() (if not null or empty string) selects an alternate userscript to be used instead of the default "worldmap-faces.script", allowing for extension and customization.
     6827The first argument to getAsString() (if not null or empty string) selects an alternate userscript to be used instead of the default 'worldmap-faces.script', allowing for extension and customization.
    68186828Examples:
    68196829WorldMap.getAsString(null,null) //use the default script
     
    71057115                <element name="d" type="string"/>
    71067116                <element name="i" type="string"/>
    7107                 <element name="Vstyle" type="string" default="neuro"/>
     7117                <element name="Vstyle" type="string" max="-1" default="neuro">
     7118                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     7119                </element>
    71087120                <element name="getInputCount" type="integer" flags="3"/>
    71097121                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    79107922                <element name="stam" type="float" min="0" max="1" default="0.25"/>
    79117923                <element name="i" type="string"/>
    7912                 <element name="Vstyle" type="string" default="joint"/>
     7924                <element name="Vstyle" type="string" max="-1" default="joint">
     7925                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     7926                </element>
    79137927                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    79147928                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    79237937        <type name="m" context="Visual style definition">
    79247938                <element name="se" type="float" flags="1024"/>
    7925                 <element name="Vstyle" type="string"/>
     7939                <element name="Vstyle" type="string" max="-1">
     7940                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     7941                </element>
    79267942        </type>
    79277943        <type name="Material" context="Visual style definition">
     
    79787994                <element name="d" type="string"/>
    79797995                <element name="i" type="string"/>
    7980                 <element name="Vstyle" type="string" default="neuro"/>
     7996                <element name="Vstyle" type="string" max="-1" default="neuro">
     7997                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     7998                </element>
    79817999                <element name="getInputCount" type="integer" flags="3"/>
    79828000                <element name="getInputNeuroDef" function="true" type="NeuroDef">
     
    80188036                <element name="rz" type="float" flags="1024"/>
    80198037                <element name="i" type="string"/>
    8020                 <element name="Vstyle" type="string" default="part"/>
     8038                <element name="Vstyle" type="string" max="-1" default="part">
     8039                        <description><![CDATA[See the "Visual style definition" context for more information]]></description>
     8040                </element>
    80218041                <element name="vr" type="float" min="0" max="1" default="0.5"/>
    80228042                <element name="vg" type="float" min="0" max="1" default="0.5" flags="1024"/>
     
    81818201        </type>
    81828202        <type name="VisualStyle" context="Visual style definition">
    8183                 <element name="style" type="string" default="standard"/>
     8203                <element name="style" type="string" max="-1" default="standard"/>
    81848204                <element name="name" type="string" flags="19"/>
    81858205                <element name="info" type="string" flags="19"/>
     
    89388958        </type>
    89398959        <type name="ImageExport" context="Framsticks Theater">
    8940                 <element name="imgex_outdir" type="string" default=".">
     8960                <element name="imgex_outdir" type="string" max="-1" default=".">
    89418961                        <description><![CDATA[Directory name WITHOUT trailing '/' sign]]></description>
    89428962                </element>
    8943                 <element name="imgex_outfiles" type="string" default="scene_%04d.jpg">
     8963                <element name="imgex_outfiles" type="string" max="-1" default="scene_%04d.jpg">
    89448964                        <description><![CDATA[Frame number replaces %d (eg. 'image%03d.jpg')]]></description>
    89458965                </element>
     
    93619381        </type>
    93629382        <type name="VisualStyle" context="Framsticks Theater">
    9363                 <element name="style" type="string" default="standard"/>
     9383                <element name="style" type="string" max="-1" default="standard"/>
    93649384                <element name="name" type="string" flags="19"/>
    93659385                <element name="info" type="string" flags="19"/>
Note: See TracChangeset for help on using the changeset viewer.