Patch for status command

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby terencehill » Wed Dec 17, 2008 3:20 pm

Alien wrote:Yeah, thanks for fixing status 2.

I didn't want to fix status 2 btw...
I wanted that the name was near to the number and the IP, so they can be read quickly once u find the name u were seeking. This was the purpose. But now with alternate colors I've noticed that's almost the same thing, but nicer to see.

divVerent wrote:I did change it a bit though, since "status shjdlhjsdflhjdl" does print the regular status in previous DP svn.

OH man! I was convinced that the old cmd printed nothing with one or more given argument/s... My mistake, sry :)
terencehill
Alien
 
Posts: 176
Joined: Thu Jul 10, 2008 10:33 pm
Location: Italy

Postby divVerent » Wed Dec 17, 2008 8:09 pm

Speaking of status, as "status 1" now is fully parsable output, I think I'll make rcon2irc request that status. That way, it can have the full player names and IPs (no idea what for yet, but it may prove useful).
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby C.Brutail » Thu Dec 18, 2008 7:23 am

Good job mate! :)
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby divVerent » Thu Dec 18, 2008 8:07 am

Code: Select all
<OpBaI> login ***********
<haggerNexCTF> my wish is your command
<OpBaI> status
<haggerNexCTF> 84.58.11.28:26127      0  100  0:08:29 -666 #1   [R9M]div{}Verent [PB] {X} (dev)
<haggerNexCTF> botclient              0    0  0:07:13    0 #2   [Dave]Dominion {X}
<haggerNexCTF> botclient              0    0  0:01:58    0 #3   [Dave]Dominion {X}
<OpBaI> kick # 2 AHAHAHAHAHAHAH))
<haggerNexCTF> kicked 2 ([Dave]Dominion {X} @ botclient) (AHAHAHAHAHAHAH)))
<OpBaI> bans
<haggerNexCTF> 0 (194.187.59.90, 64.400002s), 1 (82.135.221, 64.400002s), 2 (82.135.221.82, 64.400002s)
<OpBaI> kickban # 1 86400 3 IRC testing AHAHAHAHAH))
<haggerNexCTF> kickbanned 1 ([R9M]div{}Verent [PB] {X} (dev) @ 84.58.11.28:26127), netmask 3, for 86400 seconds (IRC testing AHAHAHAHAH)))
<OpBaI> bans
<haggerNexCTF> 0 (194.187.59.90, 152.800003s), 1 (82.135.221, 32.800003s), 2 (82.135.221.82, 152.800003s), 3 (84.58.11, 86383.546875s)
<OpBaI> unban 3
<haggerNexCTF> removed ban #3 (84.58.11)
<OpBaI> aaa
<haggerNexCTF> unknown command (supported: status [substring], kick # id reason, kickban # id bantime mask reason, bans, unban banid)


With the "status 1" format, this was very easy.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby C.Brutail » Thu Dec 18, 2008 10:50 am

OMG COOLEST!

hm... was this done in pm-ing the bot on irc?
"One should strive to achieve; not sit in bitter regret."
WE ARE NEXUIZ.
Image
Image
C.Brutail
Laidback mapper
 
Posts: 2357
Joined: Tue Feb 28, 2006 7:26 pm
Location: Ironforge

Postby divVerent » Thu Dec 18, 2008 11:31 am

yes
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby [-z-] » Fri Jan 02, 2009 1:17 am

I'm finding a limit of 15 or 16 with "status 1" even when "status" or "status 2" show 22 players. Frags also returns 0 for CTF.

Image

Note: every 1 out of ~10 tries, I get 22 names from "status 1"
[-z-]
Site Admin and Nexuiz Ninja
 
Posts: 1794
Joined: Mon Nov 13, 2006 12:20 am
Location: Florida

Postby esteel » Thu Jan 08, 2009 12:20 am

The frags only showing 0/-666 is because the whole scorekeeping is now done in QC and setting the frags for the engine too would needlessly increase the bandwidth used by Nexuiz. If you want to see the frags use 'teamstatus'
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby divVerent » Thu Jan 08, 2009 6:13 am

[-z-]: Update your rcon2irc, this has been fixed in rcon2irc. You may want to increase the timeout for packet reading (rcon_timeout_inter=0.5 for example) if it still doesn't work reliably enough.

As for frags showing 0 and -666, this can't REALLY be helped... not sure if status should always be showing cl->frags. I can make the code show the "qcstatus" column instead, but then the column width would depend on the mod.
1. Open Notepad
2. Paste: ÿþMSMSMS
3. Save
4. Open the file in Notepad again

You can vary the number of "MS", so you can clearly see it's MS which is causing it.
divVerent
Site admin and keyboard killer
 
Posts: 3809
Joined: Thu Mar 02, 2006 4:46 pm
Location: BRLOGENSHFEGLE

Postby Alien » Thu Jan 08, 2009 7:57 am

Then I think frags should be changed to playing or spectating depending on the value.
Alien
Forum addon
 
Posts: 1212
Joined: Tue Apr 22, 2008 7:12 am

Previous

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron