Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
CHAT and CHATTXT trouble - new biller protocol - SOLVED!!!!

 
Post new topic   Reply to topic Printable version
 View previous topic  As3 buy module, it spams me. Post :: Post Permit + AS3  View next topic  
Author Message
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Sun Feb 25, 2007 12:36 pm    Post subject: CHAT and CHATTXT trouble - new biller protocol - SOLVED!!!! Reply to topic Reply with quote

I'm stuck. As far as i can tell im using the new-biller-prot correctly to send these chat messages. Except it doesnt work. So i think i must be doing ti wrong.

I've got everything else working now. Its just this thats causing me probs

From the new-biller-proc
Quote:

::::: messaging

when a player sends a ?chat message, the server sends:
g->b: "CHAT:pid:channel:sound:text"
pid is the sending player.
channel is the name of the channel. alternatively, it can be a
number signifying which of the player's channels the message is
intended for.
sound is a sound code, to be interpreted by the client.
text is the text of the message.

when a player gets a ?chat message, the server receives:
b->g: "CHATTXT:channel:sender:sound:text"
b->g: "CHAT:pid:number"
channel is the name of the channel that this message is on.
sender is the name of the player who sent the message.
sound is a sound code.
text is the text of the message.
pid is the pid of a player who received the message.
number is what channel that player should see the message as coming
from.

the CHATTXT message is used so that the biller can send a chat
message to many players on one server without sending the full text
and sender name to each of them. the contents of the CHATTXT message
should be cached on the server, and the text used for any following
CHAT messages, until the next CHATTXT. for example, if the server
gets "CHATTXT:sscx:player:0:hello" and then "CHAT:22:3", player 22
should see something like "3:player> hello".


an example of me communitcating with asss

Code: Show/Hide

//asss servers connect to biller

1>  CONNECT:1.3.1:asss 1.4.3:PSSF Testing Billing Zone2::********
1<  CONNECTOK:SkyBill 0.12:PSS
2>  CONNECT:1.3.1:asss 1.4.3:PSSF Testing Billing Zone::*******
2<  CONNECTOK:SkyBill 0.12:PSS


//i login with a different username on each server

2>  PLOGIN:0:0:Doc Flabby?:********:127.0.0.1:1197480155:a732944c6f7f296eb1a9ba80eacea6464b67815f1acef9efe79bdf627406c5e27af21ad08c67c690f51ccc962c2e647cbd4ec7edab42cd3db17f6d9d1355abaf
2<  POK:0::Doc Flabby?:$Flabby$:7:701:28 Jan 2007 21:17:52
2<  BNR:0:
2>  PENTERARENA:0
2<  MSG:0:0:Welcome to the PSS Network provided by SkyBill 0.12
2>  CMD:0:chat:flabb,flabby,alerts
2<  MSG:0:0:Chats Updated.
2>  CMD:0:obscene:

1>  PLOGIN:0:0:Doc Flabby:********:127.0.0.1:1197480155:73318f732ba873b999b4adf74c87a13a56c05d5761313c39bc179026600cce5f2d3a59d6d39aed99f7ac7a6277c5fbaa35fb98081e15316cbd1d2c0c03c888d0
1<  POK:0::Doc Flabby:$Flabby$:6:1224:28 Jan 2007 16:55:34
1<  BNR:0:c6220dc70d22ffc6200dc7c6c6c6200d0d22ff220dc7c7c6ffff0d0d0d22ffff0d0d0dff222220202022222222222222ffff0d0d0d22ffff0d0d0dffc6c60d200d22ffff20c7c7c6c6ff20c70d22ffc60d20c7c6ff22c7c70d22ffc6c70d20c6
1>  PENTERARENA:0
1<  MSG:0:0:Welcome to the PSS Network provided by SkyBill 0.12
1>  CMD:0:chat:random,flabb
1<  MSG:0:0:Chats Updated.
1>  CMD:0:obscene:

//chat command

//i write using the player "Doc Flabby?" logged on server 2 i type ";hello"
//this should then appear in chat 1 on server 1

//message received by biller
2>  CHAT:0:1:0:helo
//my response to is send to both servers
2<  CHATTXT:flabb:Doc Flabby?:0:helo
1<  CHATTXT:flabb:Doc Flabby?:0:helo
2<  CHAT:0:0
1<  CHAT:0:1


anyone got an idea of what im doing wrong?
_________________
Rediscover online gaming. Get Subspace | STF The future...prehaps


Last edited by Doc Flabby on Thu Mar 08, 2007 2:35 pm, edited 1 time in total
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Mon Feb 26, 2007 8:35 am    Post subject: Reply to topic Reply with quote

Did you open up the asss billing code and take a look?
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Tue Feb 27, 2007 3:47 am    Post subject: Reply to topic Reply with quote

I've had a look but it didnt help. My knowlege of c isnt very high however. trying to compile asss so i could try and debug the biller module to see where i am going wrong is causing me problems too
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Sun Mar 04, 2007 10:23 am    Post subject: Reply to topic Reply with quote

is it possible to complite the billing module separatly, i havnt managed to compile asss on windows, i just want to step though it in a debugger so i can see if it is responding how i think it is to what i am sending it.
Back to top
View users profile Send private message Add User to Ignore List
Doc Flabby
Server Help Squatter


Joined: Feb 26 2006
Posts: 636
Offline

PostPosted: Thu Mar 08, 2007 2:39 pm    Post subject: Reply to topic Reply with quote

SOLVED this problem

There is what i think may be a bug in the as3 billing module

You need to add a trailing colon to the CHAT command

for example
DOES NOT WORK

Code: Show/Hide

CHATTXT:flabb:Doc Flabby?:0:helo
CHAT:0:1


WORKS

Code: Show/Hide

CHATTXT:flabb:Doc Flabby?:0:helo
CHAT:0:1:


now my tcp biller can continue yey!
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Mar 08, 2007 4:07 pm    Post subject: Reply to topic Reply with quote

Ok I posted a bug report and 2 suggested fixes:
http://asss.yi.org/bugs/view.php?id=97
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 112 page(s) served in previous 5 minutes.

phpBB Created this page in 0.452439 seconds : 31 queries executed (93.7%): GZIP compression disabled