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
Your own squad

 
Post new topic   Reply to topic Printable version
 View previous topic  ChatNet Protocol v1.6 Post :: Post Biller question  View next topic  
Author Message
NightHawk
Newbie


Joined: Dec 09 2003
Posts: 20
Location: Sabotage'd
Offline

PostPosted: Wed Dec 01, 2004 3:03 am    Post subject: Your own squad Reply to topic Reply with quote

I suggest adding the squad of your current name to the LOGINOK:Name login resonse. This way, clients can easily put the right squad in when you press # to send a squad message.
Back to top
View users profile Send private message Add User to Ignore List
SuSE
Me measures good


Joined: Dec 02 2002
Posts: 2307
Offline

PostPosted: Wed Dec 01, 2004 4:40 am    Post subject: Reply to topic Reply with quote

CRAZY TALK! sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Wed Dec 01, 2004 11:01 am    Post subject: Reply to topic Reply with quote

Or simply have the end-user enter the information into the client. Although, I'd like to have squads listed with each player, Grel. had simply said that this is a "simple chat" protocol.
_________________
Performance is often the art of cheating carefully. - James Gosling
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 Dec 02, 2004 10:04 am    Post subject: Reply to topic Reply with quote

If you want to add extra server dependant things to your client go ahead. The official distro will ignore messages it doesn't recognize. You can make a module to hook new message types. Simplified example:
Code: Show/Hide
chatnet->AddHandler("GETSQUAD", myhandler);
myhandler(p, line)
{
t = getplayerbyname(line)
sendmessage(p, t->squad)
}

If Grelminar adds python support to the chatnet module then this could be done in minutes.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
NightHawk
Newbie


Joined: Dec 09 2003
Posts: 20
Location: Sabotage'd
Offline

PostPosted: Fri Dec 03, 2004 1:43 am    Post subject: Reply to topic Reply with quote

obviously you could do something like that, but this is a suggestion for the official version.
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Fri Dec 03, 2004 9:17 am    Post subject: Reply to topic Reply with quote

NightHawk wrote:
obviously you could do something like that, but this is a suggestion for the official version.


In that case, I'd rather see squads listed in the ENTERING packet. Since you know your own name, you can figure out your own squad from them (how Subspace does it).
Back to top
View users profile Send private message Add User to Ignore List Send email
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Fri Dec 03, 2004 1:23 pm    Post subject: Reply to topic Reply with quote

Back to Smong suggesting adding your own Chatnet commands; the last thing we need, is every zone making their own splinter of the protocol. Ya know what I mean?
Back to top
View users profile Send private message Add User to Ignore List
-Smong-
Guest


Offline

PostPosted: Fri Dec 03, 2004 6:06 pm    Post subject: Reply to topic Reply with quote

Come on, 'simple chat'. Since when did IRC even have squads?

It doesn't matter if a zone does or does not support extra protocol, the client should handle this gracefully. A query (also handled by the custom module) can be sent by the client asking whether it implements a specific message type.

There's no reason why a client can't be closed to public. A zone could for example create a remote admin control panel using a custom chatnet client distributed to staff only or a website with scripted pages.
Back to top
NightHawk
Newbie


Joined: Dec 09 2003
Posts: 20
Location: Sabotage'd
Offline

PostPosted: Fri Dec 03, 2004 8:14 pm    Post subject: Reply to topic Reply with quote

Mine GO BOOM wrote:
[..]

In that case, I'd rather see squads listed in the ENTERING packet. Since you know your own name, you can figure out your own squad from them (how Subspace does it).


this wont work with the current protocol because it doesn't send yourself. but i guess if that was changed, it would be a little more efficient. even if having the client know other peoples squads isn't really as important in my mind.
Back to top
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Fri Dec 03, 2004 9:12 pm    Post subject: Reply to topic Reply with quote

Ok then, a simple ?squad command would be fine. Hopefully Grelminar should see this thread, and maybe add it into playercmd.c. Until then, others should recommend a better outputting string that what I used.
Code: Show/Hide
local helptext_t squad_help =
"Targets: none or player\n"
"Args: none\n"
"Displays your or a target player's current squad.\n";

local void Csquad(const char *params, Player *p, const Target *target)
{
   Player *t = (target->type) == T_PLAYER ? target->u.p : p;

   chat->SendMessage(p,
      "Squad for %s: %s",
      t->name,
      t->squad[0] ? t->squad : ":none:");
}
Back to top
View users profile Send private message Add User to Ignore List Send email
NightHawk
Newbie


Joined: Dec 09 2003
Posts: 20
Location: Sabotage'd
Offline

PostPosted: Fri Dec 03, 2004 10:42 pm    Post subject: Reply to topic Reply with quote

?squad is already a billing command, i assume..
i guess you could use this, but it's kind of ugly design wise doing ?squad, hiding the result from the client's screen, etc.

resorting to parsing user commands, aghh, sounds like a bot on subgame2.
Back to top
View users profile Send private message Add User to Ignore List
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: 53 page(s) served in previous 5 minutes.

phpBB Created this page in 0.526342 seconds : 36 queries executed (81.6%): GZIP compression disabled