Noble Ape Philosophic - Contents - Introduction to ApeScript

File Format

The file format for the Noble Ape Simulation is text based and allows users to create their own Noble Ape Simulation environments. The following section explains the syntax of the Noble Ape Simulation's file format.

Comments

Comments allow users (or the Simulation) to add human read-able comments to the files which won't be read by the Simulation.

   /* This is a comment */

   /*
      This is also a comment
   */

Comments also allow users to remove sections of the file to test particular functionality or for temporary changes.

Objects and Variables

The Noble Ape file format is based on objects and variables. The central elements are five letters that identify both objects and variables. An object includes a number of variables. The example definition of object 'objec' and variable 'varia', is as follows;

   objec{
      varia = 123;
   };

Multiple values can be given for particular variables too. For example;

   airav = 123, 222, 111;

The Noble Ape Simulation supports two kinds of variables. One byte integers with values between 0 and 255 (inclusive), and two byte integers with values between 0 and 65535 (inclusive). Some variables will only accept one byte integers. In the file format variable definitions below, one_byte denotes a one byte value expected two_bytes denotes a two byte value expected.


Simulation Version Definition, simul

Simulation signature, signa
1 x two_bytes

   signa = 16807;

Simulation version number, verio
1 x two_bytes

   verio = 15089;

land definition, landd

Date in days and millenia, dated

   dated = 217;

Seed that created the land, landg
2 x two_bytes

   landg = 3114, 46978;

Time in minutes, timed
1 x two_bytes

   timed = 56008;

Being Definition, being

Location in x and y coordinates, locat
2 x two_bytes

   locat = 36568, 2558;

Direction facing, facin
1 x one_byte

   facin = 67;

Speed traveling, speed
1 x one_byte

   speed = 77;

Energy within, energ
1 x two_bytes

   energ = 39064;

Date of birth in days and millenia, datob

   datob = 85;

Random within, rando
2 x two_bytes

   rando = 4748, 56290;

State description, state
1 x two_bytes

   state = 54451;

Brain state values, brast
6 x two_bytes

   brast = 14151, 14615, 16657, 50072, 18772, 11823;

Height, heigt
1 x two_bytes

   heigt = 11025;

Mass, masss
1 x two_bytes

   masss = 38445;

ApeScript overrides, overr
1 x two_bytes

   overr = 35589;

Shouting values, shout
6 x one_byte

   shout = 88, 245, 107, 214, 136, 7;

Crowding, crowd
1 x one_byte

   crowd = 153;

Posture, postu
1 x one_byte

   postu = 146;

Inventory, inven
8 x two_bytes

   inven = 3912, 20787, 61026, 37953, 19699, 3853, 20515, 27365;

Number of parasites, paras
1 x one_byte

   paras = 95;

Honor, honor
1 x one_byte

   honor = 48;

Date of conception in days and millenia, conce

   conce = 209;

Attention group, atten
6 x one_byte

   atten = 200, 237, 97, 12, 75, 2;

Genetics, genet
8 x two_bytes

   genet = 21557, 32825, 20609, 25732, 9656, 25876, 7074, 13212;

Father genetics, fetag
8 x two_bytes

   fetag = 26292, 61018, 37479, 44074, 13514, 56037, 4680, 18921;

Father family names, fathn
2 x one_byte

   fathn = 197, 241;

Social simulation values, sosim
4 x two_bytes

   sosim = 8880, 22212, 39957, 11146;

Drives, drive
4 x one_byte

   drive = 229, 155, 77, 57;

Goals, goals
4 x two_bytes

   goals = 62966, 2039, 9960, 19617;

Preferences, prefe
14 x one_byte

   prefe = 5, 211, 254, 237, 165, 213, 243, 217, 228, 91, 250, 108, 195, 81;

Generation Max, genex
1 x two_bytes

   genex = 62434;

Generation Min, genen
1 x two_bytes

   genen = 39968;

Child Generation Max, chigx
1 x two_bytes

   chigx = 8110;

Child Generation Min, chign
1 x two_bytes

   chign = 4108;

Territory information, terit
128 x two_bytes

   terit = 40673, 64774, 42648, 24685, 46945, 24575, 28980, 6305, 64542, 15129, 6909, 55862, 12880, 17129, 3511, 39553, 44943, 4035, 62522, 17182, 28943, 40384, 55084, 37444, 46165, 19066, 36808, 44715, 24144, 1225, 26034, 39134, 8882, 59638, 43189, 11746, 23116, 24655, 64477, 33695, 23688, 61031, 53949, 44494, 54815, 52210, 41313, 61696, 30606, 9848, 39319, 44439, 42254, 23092, 10850, 50951, 42199, 11358, 58439, 6817, 18520, 46121, 6286, 18267, 47010, 3061, 7010, 52294, 2438, 30620, 48836, 16174, 9014, 51498, 60674, 22643, 60434, 40036, 28134, 12038, 17287, 23791, 33363, 13577, 63697, 32520, 6995, 9039, 16977, 57848, 36197, 7567, 42932, 21232, 10624, 46007, 56011, 31513, 55278, 26778, 38123, 63959, 44824, 34508, 59471, 51362, 17532, 26508, 20535, 24031, 65217, 21165, 58021, 55761, 20019, 12241, 24378, 2238, 11011, 240, 49441, 35817, 40625, 30647, 51596, 10443, 17880, 27695;

Immune system information, immun
48 x one_byte

   immun = 127, 242, 179, 140, 109, 72, 208, 30, 72, 27, 45, 79, 175, 113, 113, 128, 95, 215, 242, 211, 158, 244, 196, 241, 155, 148, 150, 232, 29, 171, 129, 147, 179, 115, 126, 27, 39, 217, 196, 57, 87, 22, 100, 65, 185, 53, 21, 232;

Brain code register, brreg
3 x one_byte

   brreg = 240, 60, 149;

Brain code probe, brpro
96 x one_byte

   brpro = 216, 232, 206, 30, 24, 100, 250, 173, 104, 221, 252, 89, 50, 19, 1, 9, 57, 11, 15, 31, 229, 202, 113, 104, 5, 248, 54, 46, 152, 220, 202, 173, 200, 106, 219, 237, 37, 128, 26, 154, 157, 207, 166, 38, 67, 25, 221, 175, 232, 58, 137, 197, 31, 60, 109, 25, 157, 56, 222, 16, 230, 96, 195, 123, 232, 114, 195, 242, 179, 22, 96, 222, 139, 201, 89, 2, 185, 16, 50, 98, 205, 185, 65, 247, 115, 118, 245, 211, 219, 183, 163, 213, 163, 135, 121, 127;

Partial Files

The file format supports partial files. If the user wants to change just the landscape characteristics or the time etc, they can create files that only change those variables.
Noble Ape Philosophic - Contents - Introduction to ApeScript