creatures caves welcome, guest
downloads   gallery   dev   community   creatchi   forum   mycaves
bookmarks | search | post new topic
Development Forum
old
Message numbers. Can they clash?   
Doringo
Lodestar

Doringo


 visit Doringo's website: Abacus & Ettinus
  10/29/2015

Hello everyone, I've had a question that's been on my mind lately as I've been developing, and that's this: Can message numbers clash with other existing ones in the world? Like if two different agents use the same message numbers for two other completely different agents, will it cause issues?

Let's say we have Agents A, B, C and D for example. Agents A and B and Agents C and D are not in any way related (One is a door and remote control and one is a lift and call button) but agent A and agent C both use the same message number, will it cause issues in the world?

 
Papriko
Peppery One

Papriko



  10/29/2015

I am not entirely sure what exactly you mean, could you elaborate a little more, please?

Guessing that this is what you means, here is an example from my Extension Cord and Beeper agents:
The cord has a classifier of 3 8 22813 and it's script that I linked to the input port 3 8 22813 1000.
The Beeper is 3 3 22813 and it's input port script is 3 3 22813 1000.
Despite using the same unique species number and the same message ID, they do not clash in any way and can co-exist perfectly fine, due to having a different genus in the classifier of object and script.

Some people might think this is a kinda "dirty" way of doing things, but it works fine, so I think it is a great way to save on classifiers, though it may get confusing when done in bulk.


Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Doringo
Lodestar

Doringo


 visit Doringo's website: Abacus & Ettinus
  10/29/2015

What I mean is, if agent A uses a message number to communicate to agent B, will there be problems if agent C uses the same message number to communicate with agent D. Keep in mind that agents C and D are completely different from agents A and B.

Also I'm well aware of the class number trick, as I do it myself and I think it's really useful.

 
Papriko
Peppery One

Papriko



  10/29/2015  1

Well, if they do not "accidentally" target the wrong one, e.g. through a VA variable getting overwritten inccorectly, there should be no issues. You target a specific agent or group of agents via classifier. When they are separate as you said, then they are separate from each other. It's not like you're yelling into the world "Everyone execute script 1012!!!".

Lets play plants! Photosynthesis... Photosynthesis... Photosynthesis...
 
Doringo
Lodestar

Doringo


 visit Doringo's website: Abacus & Ettinus
  10/29/2015

Ah, that answers my question. Thanks.
 


downloads
cobs
adoptions
creaturelink
metarooms
breeds
 
gallery
art
wallpaper
screenshots
graphics
promos
sprites
dev
hack shack
script reservations
dev resources
active projects
dev forum
 
community
links
advice
chat
polls
resources
creatchi
 
forum
bookmarks
general
news
help
development
strangeo
survivor
mycaves
log in
register
lost pw
0 online
creatures caves is your #1 resource for the creatures artificial life game series: creatures, creatures 2, creatures 3, docking station, and the upcoming creatures family.

contact    help    privacy policy    terms & conditions    rules    donate    wiki