Tremulous Forum

Mods => Modding Center => Topic started by: Foe of Eternity on May 19, 2008, 08:53:35 pm

Title: !info command
Post by: Foe of Eternity on May 19, 2008, 08:53:35 pm
i have searched unsuccessfully for finding how to make information on the server appear when you do !info

is there any websites or direct knowledge that could lead me in the right direction?
Title: Re: !info command
Post by: David on May 19, 2008, 09:11:39 pm
Docs are: http://elarned.co.uk/coding/done.php#info
Title: Re: !info command
Post by: Foe of Eternity on May 19, 2008, 10:39:56 pm
that works except for
Quote
set bool "$bool_"
set bool_1 "ON"
set bool_0 "OFF"
set g_unlagged 1
set g_allowShare 0

info/info-settings.txt:
Unlagged: $bool$g_unlagged
Share: $bool$g_allowShare

]/!info settings
Unlagged: ON
Share: OFF

the "on" and "off" do not display, it's just a blank
Title: Re: !info command
Post by: benmachine on May 20, 2008, 01:59:07 pm
My laziness with testing has cost me once again. I've released about as many versions of !info that work as those that don't.
Tell me what QVM you're using (exactly, including the version number) and I'll try to find out how it behaves.
If I can't get it to co-operate I'll be happy to direct you to one that will or compile a new one for you with the fixed code.

In the meantime, check the values of the cvars bool, g_friendlyFire, and whatever else you're testing to make sure they're being set correctly. Try substituting them separately and seeing what effect this has.
Title: Re: !info command
Post by: Lakitu7 on May 20, 2008, 05:38:53 pm
Psh, don't try to support every old version. Just tell people to upgrade. :p
Title: Re: !info command
Post by: Foe of Eternity on May 20, 2008, 08:37:16 pm
lol, anyway, i use Nero's QVM...everything except the boolean works

i have version 0.6
Title: Re: !info command
Post by: Foe of Eternity on May 20, 2008, 09:24:34 pm
Psh, don't try to support every old version. Just tell people to upgrade. :p

what upgrade did you have in mind?
Title: Re: !info command
Post by: Lakitu7 on May 21, 2008, 08:15:40 am
Nero forked from my qvm some time ago and I don't know if he still updates it. Ask that he update it to my newer stuff and it will include Ben's patches, or ask him to just apply ben's newer patches. If you know what you're doing, you can do it yourself.

If he won't and you can't do it yourself, then decide whether this particular functionality of !info is more important to you than whatever drove you to use Nero's qvm and decide which you want to use.
Title: Re: !info command
Post by: benmachine on May 22, 2008, 02:40:26 pm
Nero's QVM doesn't compile for me (it looks like he forgot to svn add src/game/g_bot.c) so I can't help you any further.
I recommend, like Lakitu7 said, that you use a newer QVM or persecute Nero to update his.