BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: xlDanek on March 09, 2009, 10:38:01 am

Title: Shockvoice Module
Post by: xlDanek on March 09, 2009, 10:38:01 am
Hi Temar!

Is it possible to rewrite your Teamspeak Module that it can show the members on our Shockvoice-Server (another voice-tool -> www.shockvoice.net)?

I tried it but my knowledge in php isn't good enough to do it by myself. But I think that it is possible, am I right?
Title: Re: Shockvoice Module
Post by: Slacklin on March 09, 2009, 04:16:52 pm
There is quite a bit difference between Shockvoice and Teamspeak. You may have better luck modifying the Ventrillo (http://bebot.link/module-requests/ventrillo/) plug in that is available here. Teamspeak has a dedicated console port that is used to generate queries and not XML like Shockvoice.
Title: Re: Shockvoice Module
Post by: Glarawyn on March 09, 2009, 06:47:08 pm
If Shockvoice gives you XML output of the status, parsing the XML for display should be easy. As I mentioned, Ventrilo would be much easier if they gave XML output. But since they don't, I had to create custom string parsers.

The whois module fetches XML player data from FC's servers. You may want to look there to see how that XML is parsed and look at XML Character Information (http://people.anarchy-online.com/character/bio/d/1/name/slacklin/bio.xml).

Once you get the XML parsing figured out, you should be able to use the Ventrilo for BeBot 0.4 (http://bebot.link/0-4-x-customunofficial-modules/ventrilo/) as a template.
Title: Re: Shockvoice Module
Post by: xlDanek on March 10, 2009, 09:03:05 pm
Thx for your answers!

I will give it a try ;)

But first problem:

How can I fetch the sourcecode of an URL like "http://SERVER:PORT/SERVER_ID" which gives the status of the Shockvoice-Server in a XML format?

I tried "file_get_contents", but I think it has a problem with the ":" beetween SERVER and PORT! A normal URL like "http://bebot.link" is no problem with that function.
Title: Re: Shockvoice Module
Post by: cob on March 11, 2009, 08:21:26 am
hi,

there should be a query.tar.gz file in the shockvoice server directory. this is the viewer.
Title: Re: Shockvoice Module
Post by: xlDanek on March 11, 2009, 07:04:56 pm
Hmm, I have no query.tar.gz or anything similar in the Server-Directory. Curious...
Title: Re: Shockvoice Module
Post by: cob on March 12, 2009, 07:32:42 am
Well, i'm sure it's part of the 0.8.4 Linux server version.
Title: Re: Shockvoice Module
Post by: Glarawyn on August 31, 2009, 04:52:12 pm
I'm not above bribery for code. I could really use some QL300 Supple armor parts on RK1. ;)
SimplePortal 2.3.7 © 2008-2024, SimplePortal