Food message

This is the complete specification for the food message, saved from the now dead-and-buried sl ecowiki.

Feel free to comment it, but don't expect this to change. If you want to suggest a modification/improvement, please see the Version 2 instead.

From SL EcoWiki

Usage

This message is sent to give food to another object in response to an Eat Message.

Structure

The only variables in this message are what food types it affects and how much food is returned. The hexidecimal message ID for this message is 0×10010200. In order to request food an object should add to that message ID the food types it wants to request in the bit positions replaced by AA in the example below. You may send a return for more than one type of food if the request contained more than one type. The types set should indicate which of the requested types you are returning. Do not set a type that was not requested.

Example Format: 0×100102AA|FF

Affects Bits

Change the affects bits of your message according to the food types listed below.

Animal Food

bit assignment – UUUUUUUM

    • U – Unassigned

    • M – Meat(HEX 1)

Plant Food

bit assignment – UUWRLNSF

    • U – Unassigned

    • T – Tree Leaf(Hex 10)

    • L – Leaf(Hex 08)

    • N – Nut(Hex 04)

    • S – Seed(Hex 02)

    • F – Fruit(Hex 01)

Message Payload

The Message Payload for this message is a single integer indicating how much food you are sending. This message should not send more food than is requested by the requesting object. If you have less food available than is requested do not send more than you have.

Example Messages

    • 0×10010208|20 – This message is giving 20 leaf food.

    • 0×1001020A|10 – This message is giving 10 food either Leaf or Seed.