Forums » Suggestions

scripts communicating with the vo client

123»
Jul 11, 2006 csgno1 link
Currently I know how to watch for info in errors.log, and I can read a file of commands via a command in the wgaf.cfg file. Are there other methods to communicate with the vo client that I would have access to and would not piss off the devs?

--Harpo
Jul 11, 2006 Scuba Steve 9.0 link
The preferred method right now is to send keystrokes to the VO client via your resident OS' API functions.
Jul 11, 2006 roguelazer link
IE: Use OS X or Windows. Or spend 3 years coding something in Xlib. It's a hack no matter how you look at it.
Jul 11, 2006 csgno1 link
"The preferred method right now is to send keystrokes to the VO client via your resident OS' API functions."

Okay thanks. I'll go back under my rock until the next pop-out-and-ask-day (kind of like ground hog day, but more often)
Jul 12, 2006 moldyman link
^--- is a groundhog
Jul 12, 2006 smittens link
So moldy stops playing, ditches his event, yet shows up to be all snobbish and point out a spelling error? Wow you've been playing with Miharu too much
Jul 12, 2006 MSKanaka link
Erik has college to deal with. He doesn't have the time to run events, much less put up with shit from you.
Jul 12, 2006 csgno1 link
"So moldy stops playing, ditches his event, yet shows up to be all snobbish and point out a spelling error? Wow you've been playing with Miharu too much"

Chill man, if I cared about spelling/grammar mistakes I'd proofread.
Jul 13, 2006 MSKanaka link
I don't think Erik was providing spelling corrections either for that matter, now that I've looked again.

he was *calling* Harpo (or himself) a groundhog.
Jul 13, 2006 csgno1 link
Only 'cause I'm furry.
Jul 14, 2006 csgno1 link
On mac osx how can I make a sound from a shell command line or perl running in a shell? I want to be able to sound some kind of warning or alarm.
Jul 14, 2006 moldyman link
Um...

It wasn't a grammar correction. It was me trying to make a joke because I'm bored as hell out here in Tornado Alley. What the hell does one do out here?!
Jul 14, 2006 MSKanaka link
Harpo: You can make sounds with Applescript (I think), and I know that you can access Applescript through terminal... I forget how, though. greengeek might know.
Jul 14, 2006 thebrier link
If all you want is the terminal bell, you can sound that with:

echo $'\a'

...or you could use Applescript from the command-line to say something:

osascript -e 'say "I dont want to belong to any club that will accept me as a member."'
Jul 15, 2006 csgno1 link
Ah this osascript command will work out nicely, thank you :)
Jul 15, 2006 roguelazer link
Linux equivalent with speechd installed:

`echo "I don't want to belong to any club that will accept me as a member" > /dev/speech`
Jul 16, 2006 csgno1 link
I started working on a script to run while a person plays. So far it will:

1) Keeps a log like errors.log but never gets overwritten. Contains everything errors.log records.

2) Announces convoys via speech.

3) Reports storms to channel 911 by typing #storm in sector chat. (future plan is to have it post to a web page and have a page that shows storms in reverse chronological order.

So I'm looking for more ideas, what would players want to have added in?
Jul 16, 2006 Klabbath link
You rock, CS. I'd like to put my name on the list to get a copy of that script when you're done working on it, assuming that it works with Mac OS:X.

Thanks;

~D.
"Nigel"
Jul 17, 2006 csgno1 link
I'm developing it on OSX, so it will. But I want it to do more, any ideas?
Jul 17, 2006 LostCommander link
It took me a while to think of it, but...

Could it keep track of sell prices, keeping track of Low, High, and Average (of the times you have visited, possibly delievered to the webpage for a more accurate average) PRETTY PLEASE!?

Keeping track of buy prices would be nice too, but significantly more difficult...

[Edit: Just curious, how are you doing this? I may be interested in helping a bit if I can, and I would like if it could also run on Windows.]