Changeset 1305


Ignore:
Timestamp:
05/11/24 16:51:08 (6 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/config/version.h

    r692 r1305  
    11// This file is a part of Framsticks SDK.  http://www.framsticks.com/
    2 // Copyright (C) 1999-2017  Maciej Komosinski and Szymon Ulatowski.
     2// Copyright (C) 1999-2024  Maciej Komosinski and Szymon Ulatowski.
    33// See LICENSE.txt for details.
    44
    5 #define MAIN_REL_ID "5.0rc10"
    6 #define VERSION_INT 3
     5#define MAIN_REL_ID "5.0rc30"
     6#define VERSION_INT 22
     7
     8
     9#ifdef IPHONE
     10        // make the version displayed in the "About" window compatible with Apple's ideas about versioning
     11        #define IOS_VERSION "5.0.5" //can't be arbitrary text as in some other platforms, so let's make it "Framsticks version (disregarding rc)" + dot + "number increased on each release"
     12        #define VERSION_FOR_MOBI_ABOUT IOS_VERSION "<br><small>(Framsticks " MAIN_REL_ID ")</small>" //...but still display the true internal Framsticks version
     13#else
     14        #define VERSION_FOR_MOBI_ABOUT MAIN_REL_ID
     15#endif
  • cpp/frams/genetics/geneprops.h

    r1260 r1305  
    137137
    138138        double cred;              ///<incremented by D, decremented by d. Part's red color proportion
    139         double cgreen;            ///<incremented by B, decremented by b. Part's blue color proportion
    140         double cblue;             ///<incremented by G, decremented by g. Part's green color proportion
     139        double cgreen;            ///<incremented by B, decremented by b. Part's green color proportion
     140        double cblue;             ///<incremented by G, decremented by g. Part's blue color proportion
    141141
    142142        static GeneProps standard_values;
  • framspy/recording-body-coords.sim

    r1221 r1305  
    55# If STORE_ALL_PART_COORDS=0 below, only COG is stored and the format is
    66# [ [cog1x,cog1y,cog1z], [cog2x,cog2y,cog2z], [cog3x,cog3y,cog3z], ...]
    7 # where numbers are simulation steps.
     7# where index numbers in the names are simulation steps.
    88# So you get a vector of COG x,y,z coordinates repeated for every simulation step.
    99#
    1010# If STORE_ALL_PART_COORDS=1 below, the format is more verbose with one more level of nesting, because after the COG,
    11 # the list of coordinates of all Parts follows (the first number below is the simulation step, the second is Part number)
     11# the list of coordinates of all Parts follows (the first index in the names below is the simulation step, the second one is Part number)
    1212# [ [[cog1x,cog1y,cog1z], [p1_1x,p1_1y,p1_1z], [p1_2x,p1_2y,p1_2z], ...], ...]
    1313#
     
    2525{
    2626        super_onBorn(cr);
    27         cr.data->bodyrecording=[]; //create key and initialize its value in the "data" dictionary
     27        cr.data->bodyrecording=[]; //in the creature's "data" dictionary, create the key "bodyrecording" and initialize its value to empty vector. Equivalent to cr.data["bodyrecording"]=[]
    2828}
    2929
     
    4949        super_addGenotypePerformanceFromCreature(g, cr);
    5050
    51         g.data->bodyrecording = cr.data->bodyrecording; //no averaging or any other form of aggregation - here assuming we only evaluate a genotype once; if not, then we ignore (overwrite) recordings from previous evaluations
     51        g.data->bodyrecording = cr.data->bodyrecording; //no averaging or any other form of aggregation - here assuming we only evaluate a given Genotype object once; if not, then we ignore (overwrite) recordings from previous evaluations of this genotype
    5252       
    5353        //Simulator.print("Recorded time steps: %d" % g.data->bodyrecording.size); //just for debugging
Note: See TracChangeset for help on using the changeset viewer.