The Gaardian Aardwolf Notes Archive

display all notes from
on the board
between and
containing the phrase

showing 13 most recent notes by Cizra
"a near-death thief"
Note #16871
posted on Typos
Friday, December 14, 2018 @ 04:38
... in Den of Thieves, should obviously be a near-dead thief.
a dog of the witch sycorax should be capitalised
Note #15388
posted on Typos
Tuesday, December 8, 2015 @ 07:02
Sycorax is a proper name, so I guess it could stand a lil' capitalisation.
Re: train command
Note #32266
posted on Ideas
Monday, June 1, 2015 @ 09:06
Reply to: Note 32265 posted by Cizra

... one needs to know exactly how the train cost changes with already
present trains, tierstats, wishstats and whatnot.

Sorry for the note writing messup.

Cizra
train command
Note #32265
posted on Ideas
Monday, June 1, 2015 @ 09:04
There should be a "train stat all" command which spends trains until
a) trains run out
b) per-point cost increases
c) I hit the cap.

Currently, this is implementable in client with much spam, or else
Python scripting in MUSHclient +++++
Note #6744
posted on Tech
Tuesday, May 26, 2015 @ 19:34
Reply to: Note 6743 posted by Konnan

I have a proxy plugin, written in Lua, that deserialises JSON args,
calls the right thing, then serializes the return values and stuffs into
a variable, which I then retrieve in the Python-side helper.
Since I foresee no concurrent calls, one variable globally should be enough.

Have fun!
Cizra

P.S. I have working proofs-of-concept, GMCP and stuff.
Re: Python scripting in MUSHclient ++++
Note #6742
posted on Tech
Tuesday, May 26, 2015 @ 18:50
Reply to: Note 6741 posted by Cizra

Never mind, figured out how to do it. Thank you for your time!

Cizra
Re: Python scripting in MUSHclient +++
Note #6741
posted on Tech
Tuesday, May 26, 2015 @ 18:12
Reply to: Note 6740 posted by Arcidayne

The doc at http://www.gammon.com.au/scripts/function.php?name=CallPlugin says
this:

Prototype: long CallPlugin(BSTR PluginID, BSTR Routine, BSTR Argument)


As you can see, no useful data comes out, neither in return value nor in any
output arguments.
The Lua version of the function is different. As Lua doesn't use WSH,
the APIs in different languages appear to have diverged a bit, and now it is
possible to do stuff in Lua that is not possible in other languages.

In other words, the question is really not Python specific, but rather
how to call plugins with WSH and get data out.


Cizra
Re: Python scripting in MUSHclient +
Note #6739
posted on Tech
Tuesday, May 26, 2015 @ 17:35
Reply to: Note 6738 posted by Arcidayne

Why are you pointing this out? I know how to call CallPlugin from Python.
What I don't know is how to make it return data. Can you help me with that?

Cizra
Python scripting in MUSHclient
Note #6737
posted on Tech
Tuesday, May 26, 2015 @ 17:02
I'm experimenting with Python as my scripting language in MUSHclient.
Initially, it seemed to work well, but now I've hit my first hiccup:
How do you CallPlugin and retrieve data?
The Lua version of CallPlugin supports multiple arguments (which are easy to
work around by JSONing everything) and return values (which are not straight-
forward to implement).

I could create an intermediate Lua script that'd accept calls from Python,
unwrap the args and forward the call to the desired plugin, later wrap this
into a nice Python function to hide the guts. However, I can't figure out how
to get data back out, say, into aliases or triggers. I can't CallPlugin the
scripting environment. Maybe I could OnPluginBroadcast the data in, but this
approach doesn't scale -- I'd have to create a listener for every function
I'm calling.

Ideas?
Cizra
Portal wear location is wrong in "wearable"
Note #12829
posted on Bugs
Tuesday, February 5, 2013 @ 03:57
The "wearable" command says that the portal wear location is number 32.
invmon tags report it as 31.
I have the portal wish and I was using "wear portalname" to wear it.
You equip the Amulet of Aardwolf as a portal.
{invmon}2,object id goes here,-1,31

Cizra
Re: Colors in GMCP room names
Note #6058
posted on Tech
Wednesday, January 30, 2013 @ 05:00
By the way, I patched my client to strip those ANSI sequences, so
you needn't try too hard :-)

Cizra
Colors in GMCP room names
Note #6056
posted on Tech
Wednesday, January 30, 2013 @ 02:47
Hi all!

My MUD client barfs when Aardwolf sends ANSI escape sequences inside room
names, over GMCP. The devs claim some kind of standard says there should be no
ANSI escape sequences inside GMCP strings anyway (which I'm sceptical about).
Considering that to my knowledge, the MUSHclient mapper doesn't care about
colors in the database, so they get stripped anyway,

could we please have either no ANSI sequences inside GMCP
or
a way to turn them off?


Cizra
Re: Let me be the first... ++++
Note #22640
posted on General
Wednesday, December 12, 2012 @ 08:11
Reply to: Note 22639 posted by Vakieh

Is there a counter we can underoverflow, being infinitely nasty and thereby
becoming infinitely good?