MetaLife
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Statistics
Latest topics
» List of weapons approved (after test)
Status API EmptyWed Feb 22, 2012 12:43 pm by 7Sins Admin

» MetaLife FAQ
Status API EmptyWed Feb 22, 2012 11:58 am by 7Sins Admin

» MetaLife License
Status API EmptyWed Feb 22, 2012 11:09 am by 7Sins Admin

» MetaLife Feature List, version 1.21
Status API EmptyFri Feb 17, 2012 11:19 am by 7Sins Admin

» NEU MetaLIfe 2 Bedienungsanleitung (deutsch)
Status API EmptyFri Feb 17, 2012 10:56 am by 7Sins Admin

» NOUVEAU MetaLife2 manuel d'instruction (français)
Status API EmptyFri Feb 17, 2012 10:53 am by 7Sins Admin

» NEW MetaLIfe 2 Manual (English)
Status API EmptyFri Feb 17, 2012 10:47 am by 7Sins Admin

» NUOVO MetaLIfe 2 - manuale di istruzioni (italiano)
Status API EmptyFri Feb 17, 2012 10:46 am by 7Sins Admin

» NUOVO - manuale di istruzioni (italiano)
Status API EmptyFri Feb 17, 2012 10:43 am by 7Sins Admin


Status API

2 posters

Go down

Status API Empty Status API

Post  raddick Sat Feb 07, 2009 11:47 am

A fellow in the GM forum asked if GM had the ability to notify a user's weapons that the user had been capped, so the weapon could auto-sheath.

I think the idea that the meter might announce events on a common channel might be useful for that type of application, as well as if a sim owner wanted to track stats in their sim, like who has the most caps, hit accuracy, etc. This could be an optional function enabled by the server... as it does add additional messages that the meter must broadcast. Various types of events could be broadcast, such as only captures or death, but the sim owner might want to enable hit tracking as well.

Tala, I think we once discussed the idea of a HUD API so that people could develop their own HUDs. This could be a part of that API. It would also allow a user to track their own stats, even if sim-wide, the capability is disabled. OOohhhhhh... Smile

raddick

Posts : 9
Join date : 2009-01-28

Back to top Go down

Status API Empty Re: Status API

Post  Tala Sun Feb 08, 2009 12:46 pm

raddick wrote:A fellow in the GM forum asked if GM had the ability to notify a user's weapons that the user had been capped, so the weapon could auto-sheath.

Such notifications, like requesting a weapon to sheath, have been established by the battlezone meter, and are still in use. I think most weapons respect sheath-commands from a meter broadcasted on the "battlezone channel". I thought GM does that, too. Anyway, ML does.

raddick wrote:I think the idea that the meter might announce events on a common channel might be useful for that type of application, as well as if a sim owner wanted to track stats in their sim, like who has the most caps, hit accuracy, etc.

The GLM puts much emphasis on such a system. The idea that the meter sends various kinds of commands to the weapons (and vice versa), and the weapon must react on that, is problematic though, in my view: one can't be sure that the weapon really respects the requirements. This might have various reasons - it might be an open door for cheaters, or maybe some people just don't care about it, or they can't script too well.

An example: with ML, when someone is fallen the meter sends auto-sheath command to the weapons. However, it might be that the person re-draws a weapon, attaches another weapon, or that a weapon simply ignores the sheath command. That's why ML uses in addition other methods to block weapons of a fallen person.

So, for every rule we set up for a weapon, we must also think of all possible exceptions and loopholes that could be used for cheating (as an aside: this is why ML describes all weapon properties abstractly in a small set of variables, which reduces the number of rules that must be enforced dramatically, compared to other meters).

However, I am fond of the idea that a weapon can get information from the meter on the state of a person. I did some steps in this direction with ML 1.10, where an API has the communication with the region server has been introduced. This is though very basic still.

So, I think the answer is: Yes, for providing data to the weapon about the state of a person (health, stamina, amount of armour, strength etc etc). No, for introducing a messaging system which gives commands to weapons which cannot be enforced otherwise.


raddick wrote:
This could be an optional function enabled by the server... as it does add additional messages that the meter must broadcast. Various types of events could be broadcast, such as only captures or death, but the sim owner might want to enable hit tracking as well.

Ok, that's no major technical problem, and I think it's a good idea.

raddick wrote:
Tala, I think we once discussed the idea of a HUD API so that people could develop their own HUDs. This could be a part of that API. It would also allow a user to track their own stats, even if sim-wide, the capability is disabled. OOohhhhhh... Smile

I remember our chat. In principle yes. I deliberately set up the system in a way that the HUD is optional ... so performance would not suffer if we allow third-party HUDs. I'll try to provide an API in one of the upcoming releases.

Tala
Admin

Posts : 56
Join date : 2008-06-27

http://metalife.powerrpg.net

Back to top Go down

Status API Empty yep yep yep

Post  raddick Mon Feb 09, 2009 8:31 am

I agree that we cant rely on a weapon to react to a message from the meter, but my interest was more, enabling optional, informational status messages.

It may be that the weapon makers are not using this capability because they are unaware of it, as I was until the topic came up. And I was told yesterday that GM uses channel 21 to issue a 'recovery' message. GLM uses a negative channel for this purpose.

raddick

Posts : 9
Join date : 2009-01-28

Back to top Go down

Status API Empty querying Role?

Post  raddick Mon Feb 09, 2009 8:34 am

And on that note... is it possible to query the meter for information like what role the wearer has selected?

raddick

Posts : 9
Join date : 2009-01-28

Back to top Go down

Status API Empty Re: Status API

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum