Accessing Core and Char commands from web client?

General discussion about the Genesis Web Client located at https://www.genesismud.org/play/

Moderator: Eowul

Forum rules
- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.
Post Reply
klause
Novice
Posts: 1
Joined: 28 Nov 2018 21:22

Accessing Core and Char commands from web client?

Post by klause » 28 Nov 2018 23:00

The post about the API Documentation has a lot of useful info, and I've been reading through it to make scripts and aliases. I'm wondering if the web client has a way of accessing the Core and Char aspects. I'm mostly curious about the Char.Team package.

Unfortunately gwc.gmcp.data.character.team doesn't work, and dumping the JSON return from gwc.gmcp.data.character shows a somewhat neutered availability vs the Char.[variable] that's out there.

Any thoughts would be greatly appreciate, especially if I'm missing something, or there's a way to send GMCP commands that are in the Core and Char packages.

Thanks!

Drazson
Titan
Posts: 499
Joined: 24 Jan 2016 21:27

Re: Accessing Core and Char commands from web client?

Post by Drazson » 29 Nov 2018 09:51

I can't tell without actually checking anything but you could check if the team is allocated in the room and you go that way, somehow. Also, you could try shifting to team.character instead or idk.. Also check console while in team?

P.S. Despite using those a lot, I had no idea that post existed, thanks!

User avatar
cotillion
Site Admin
Posts: 350
Joined: 04 Mar 2010 01:14

Re: Accessing Core and Char commands from web client?

Post by cotillion » 29 Nov 2018 10:25

It's currently not available under 'gwc' in triggers / aliases.

In the meantime you can access the entire gmcp stack through mud.gmcp
However that's really not supported so it might stop working in the future....

User avatar
Shanoga
Wizard
Posts: 193
Joined: 03 Mar 2014 13:03
Location: US West

Re: Accessing Core and Char commands from web client?

Post by Shanoga » 30 Nov 2018 00:14

cotillion wrote:It's currently not available under 'gwc' in triggers / aliases.

In the meantime you can access the entire gmcp stack through mud.gmcp
However that's really not supported so it might stop working in the future....
Hot damn. I didn't know this was an option. Time to check it out...

@Cotillion: Is there an intention behind not enabling the gmcp.char.team package? Or is this something that could possibly be added to a to-do list as time allows?

Post Reply
http://tworzymyatmosfere.pl/przescieradla-jedwabne-z-gumka/