Each log is sent with a number of fields required by simplelog. Simple log allows for a custom field called event_data_complex along with its category enumerator:
event_custom: category enumerator
event_data_complex: JSON.stringify(log_data)
Each log_data is a JSON object for that specific category as defined below.
Note: Note: event_custom will always map to a string of the event name. For example, if an event called FOO had a field of "event_custom", its value would be a string "FOO". Not all events have this field.
Change Log
Versions:
Original Version
Added return to menu log (7/25/2019)
Simple log now sends player_id (if present) from the URL to log.php (9/24/2019)
Game Notes:
The game has 9 levels, refered to in the logs as 0-8.
Each level involves putting atoms in a crystaline formation. Fill the box to complete the level (The box does not need to be completely filled). Players fill the box with crystals by rotating and moving the crystals around until they are densely packed.
The player gets a stability score for each level. Different score threshholds are required for different amount of stars.
Stars are collected to unlock gems in the museum and more levels.
Later levels (lvl4+) have atoms that have charge, which give more or less stability depending on how they are placed.
Stability is calculated by adding charge (stability due to charge) + pack (stability given by filling squares in the box).
Certain numbers of starts are required for each level.
Object of subobjects. Suboject name is coord_n where n is an integer starting at 0. Suboject values are x and y coordinates. Example: {'coord_0': {'x': 'int', 'y': 'int'}, 'coord_1': {'x': 'int', 'y': 'int'}, 'coord_2': {'x': 'int', 'y': 'int'}}
may be more coords, not sure if upper limit exists
endPosition
Object of subobjects. Suboject name is coord_n where n is an integer starting at 0. Suboject values are x and y coordinates. Example: {'coord_0': {'x': 'int', 'y': 'int'}, 'coord_1': {'x': 'int', 'y': 'int'}, 'coord_2': {'x': 'int', 'y': 'int'}}
may be more coords, not sure if upper limit exists