PDA

View Full Version : TeamSpeak ASP Edition v2.0.1


Dark-mixer
23-05-2003, 00:14
I have just upgradet a lot of things in the existing script.
- Full TS Server v2.0.19.16 comp.
- Enables templates
- Channel login links
- State correction
These are largest updates iv'e made on the script, but some of the functions have been upgraded a bit.
You can download the new script here :
WebPost Script (http://www.xsquad.dk/downloads/teamspeak.zip)

InterCEptor
07-06-2003, 23:19
Canīt get this to work!
Copied everything to my Webserver and done everything as said in the manual, but it just donīt seem to work.

www.ice-gameserver.de/teamspeak/

Table is empty all the time.
TS- and Webserver are running on the same machine!

Dark-mixer
08-06-2003, 00:27
InterCEptor->
To me it seems like the URL are wrong.
The server reply on the URL are that the file doesnt exist.
So please check your path on the webserver.

If you have futher questions regarding the script please contact me on coder@worldwidewhat.dk :D
Regards
Ðark-MiXer

nlintgen
27-06-2003, 10:05
when I click on the "details" link I get the following error:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'ChannelCodec(...)'
/teamspeak/Default.asp, line 135

I have the 2.0.19.40 version of the server, is this the problem or is it something else? If you need any more info just let me know.

Thanks,
Nick

Dark-mixer
27-06-2003, 10:51
#nlintgen
I haven't had time to take a look at the problem lately (Im restoring my house from a-z).
But you can contact me through mail ( teamspeak@worldwidewhat.dk ). That way your problem will be put into my priority listing.

Dark-mixer
27-06-2003, 10:56
I just had 2 sec. off time at work, and I used it to take a look at the script. It look like the error are caused by the new codec used in TeamSpeak. I'll try to find the new info's, and update the script.

Dark-mixer
27-06-2003, 12:12
You can update the script your self.
Here's the solution
Open the settings.asp file in notepad, and replace line 18 with this string
txtCodec = Array("CELP 5.1 Kbit","CELP 6.3 Kbit","GSM 14.8 Kbit","GSM 16.4 Kbit","CELP Windows 5.2 Kbit","Speex 3.4 Kbit","Speex 5.2 Kbit","Speex 7.2 Kbit","Speex 9.3 Kbit","Speex 12.3 Kbit","Speex 16.3 Kbit","Speex 19.5 Kbit","Speex 25.9 Kbit")

This should update the script, so it can see the new codec used in TS.

InterCEptor
28-06-2003, 03:22
I still try to get to run it, but there is no Server showing up!

I think I have to configure some access-rights on a win2000 server!

Does anybody know what and how?:mad:

*EDIT*

Ok, got it working so far, but when I click on Details,.....

www.ice-gameserver.de/teamspeak/default.asp

In case you would like to have a look!

Butte
28-06-2003, 15:49
Ive done what you said, but still no good.

The main page shows up allright, you can see the serveres.
But when clicking on details , i get the following message

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'ChannelCodec(...)'

/0_kpb/teamspeak/default.asp, line 135

Thanks for your help and great work on this asp edition of TS.
It is very much appriciated.

Anders
DK

nlintgen
28-06-2003, 19:06
Here is a file he sent me via email... just replace your current functions.asp with the one in this zip.

Butte
28-06-2003, 21:04
Thanks nlintgen

That part works now, i dont get the error message any more.

But when clicking details now, it wont fill the details.

If lets say, it shows 4 users online, then when clicking the details, it says 0 users all over.

Also, when clicking any of the rooms, it dosent connect to the proper room, but the same room all the time.

Do you also have these problems nlintgen ?

So the error is gone, but i still cant use the "details" for anything.

Thanks for replying so fast on my previous topic.

InterCEptor
28-06-2003, 21:32
Noone got a clue what is wrong with my homepage?
When I click on Details I get an Error!

500 - Page cannot be viewed!

nlintgen
28-06-2003, 21:46
InterCEptor,
I assume you are having the same problem we were having but that you have friendly http error messages enabled in your browser. Anyway, if you haven't tried it, replace your functions.asp file with the one I posted.

Butte,
I'm not sure that I am getting the details problems to the extent that you are. Some things don't seem to be showing up, though. I know that the channels/subchannels links don't work for me either but I haven't had time to investigate it yet. I'll let you know here if I find anything, though.

I believe Dark-mixer said he was going to be offline for a week or so... so we're probably on our own until then. Thanks for the script and help Dark-mixer!

InterCEptor
28-06-2003, 22:41
Ok, now Iīm on the state that Butte is!

5 Players on TS, but noone showing up in the details!

nlintgen
29-06-2003, 07:43
to get joining specific channels working... on line 132 of default.asp, add "?channel=" to the anchor...

dChLnk = "<a href='teamspeak://" & rs("server_ip") & ":" & rs("server_port") & "/?channel=" & ChannelNames(I) & "'>" & Server.HTMLEncode(ChannelNames(I)) & "</a>"

nlintgen
29-06-2003, 08:38
To get user details to work... in Default.asp, decrease each number by on in the User variable assignments as shown below (starts at line 117)...

UserNames = Split(GetUserInfo(UserData,13),vbCrLf)
UserChannelIDs = Split(GetUserInfo(UserData,0),),vbCrLf)
UserStatus = Split(GetUserInfo(UserData,10),),vbCrLf)
UserTime = Split(GetUserInfo(UserData,7),),vbCrLf)
UserPing = Split(GetUserInfo(UserData,6),),vbCrLf)
UserFlag = Split(GetUserInfo(UserData,11),),vbCrLf)

IRON_Sniper
01-07-2003, 17:56
hhhhmmmm......

I noticed after updating one of our servers to the latest windows version (201940) this script would display a person's name only in the first few seconds thatt hey were in the default channel. If they moved to a different channel, their names would not longer appear.

Judging from the previous post, would it be safe to guess that the responses coming from the server have changed?

Since the function using W3 Sockets has not changed, and it is apparently still able to log into our TS2 server... then I am guessing that the returned data is not being interpreted correctly - meaning the format of the retunred data is different between TS2 RC2 version 201940 and the last previous version.

Can anyone confirm this?

I will setup a test page doing the above mentioned change to see if it properly displays the data using the latest TS2 server.

InterCEptor
01-07-2003, 18:28
After I edited my Default.asp everything went fine!

Thx guys!

Chirkov
29-06-2004, 12:53
'Open w3 Socket
set socket = Server.CreateObject("Socket.TCP")

'Setting up the virtual telnet session.
socket.DoTelnetEmulation = true
socket.TelnetEmulation = "vt100"
socket.Host = xServer & ":" & xConnPort

'Connection to the server.
socket.Open()
socket.WaitFor("[TS]")

'Send command to server.
socket.SendText(Cmd & " " & xPort & vbCrLf)
socket.WaitFor("OK")

'Storing the data
GetServerData = socket.Buffer

'Sending quit command to server.
socket.SendText("quit" & vbCrLf)
socket.WaitForDisconnect
socket.Close()

this code (part of function.asp) works directly with sockets....

1) :confused: But I don't understand what for exists WebPostURL parameter on server? ... in this code in doesn't used!!....
2) In my local network this code work correctly.... But when I tried to execute this code on my server (in global network, OS - Win2003) it returned an error (Can't assign requested address). May be anybody know why this error may occurs.
The host name and port are correctly (via telnet i can work with TeamSpeak Server)

achben
03-11-2004, 05:19
OK! I got it all working. I will post my working folder in a zip file for download.
I would like to see someone develop a smaller version (width) for use in frames pages. Email me to get your IIS server to work.
Below was my error message.
Error Type:
Server object, ASP 0178 (0x80070005)
The call to Server.CreateObject failed while checking permissions. Access is denied to this object.
/TS/conf/functions.asp, line 132

http://tsadmin.servehttp.com/teamspeak/index.asp