ApeSDK Philosophic - Contents - Introduction to ApeScript

## File Format

The file format for the ApeSDK is text based and allows users to create their own Simulated Ape environments. The following section explains the syntax of Simulated Ape'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 ApeSDK 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 ApeSDK 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;

Time in minutes, timed
1 x two_bytes

timed = 3114;

Seed that created the land, landg
2 x two_bytes

landg = 46978, 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
0 x two_bytes

terit =

Immune system information, immun
52 x one_byte

immun = 225, 6, 152, 109, 97, 255, 52, 161, 30, 25, 253, 54, 80, 233, 183, 129, 143, 195, 58, 30, 15, 192, 44, 68, 85, 122, 200, 171, 80, 201, 178, 222, 178, 246, 181, 226, 76, 79, 221, 159, 136, 103, 189, 206, 31, 242, 97, 0, 142, 120, 151, 151;

Brain code register, brreg
3 x one_byte

brreg = 14, 52, 98;

Brain code probe, brpro
96 x one_byte

brpro = 7, 215, 94, 71, 161, 88, 41, 142, 91, 162, 245, 98, 70, 134, 156, 196, 46, 54, 42, 2, 115, 18, 100, 230, 6, 135, 239, 83, 9, 209, 8, 83, 79, 81, 248, 101, 143, 180, 240, 128, 183, 203, 25, 238, 154, 235, 215, 24, 204, 79, 162, 124, 140, 55, 223, 193, 173, 165, 209, 51, 209, 58, 190, 3, 240, 33, 233, 177, 183, 140, 203, 216, 47, 127, 242, 179, 140, 109, 72, 208, 30, 72, 27, 45, 79, 175, 113, 113, 128, 95, 215, 242, 211, 158, 244, 196;

## 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.

ApeSDK Philosophic - Contents - Introduction to ApeScript