vote include

For all the help you need with Armagetron!
Post Reply
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

vote include

Post by dukevin »

Hm, this doesn't seem to be working.

I have file "a.cfg" in /var/ and attempt to do "/vote include a.cfg" and it says "Include file vote/a.cfg not found or not readable" however, if I use "/admin include a.cfg" it works just fine.

So what gives?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: vote include

Post by Z-Man »

dukevin wrote:"Include file vote/a.cfg not found or not readable"
The hint is in the error message. Vote includes have to be put into the 'vote' subdirectory so nobody can /vote include things they're not meant to include.
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: vote include

Post by dukevin »

ah I see, thanks!

Is there documentation on this?
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: vote include

Post by Z-Man »

dukevin wrote:Is there documentation on this?
No, not that I'd know of, but apart from the issue you ran into, things should be rather obvious. Oh, and you can tweak the access level vote-included files are executed with at least via ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE.
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: vote include

Post by dukevin »

It works perfectly except I get a weird message (doesn't really matter, but might as well post)

I have ACCESS_LEVEL_VOTE_INCLUDE_EXECUTE 1 but when user /vote includes, it says "Including vote/a.cfg. Only users of access level Administrator or higher will receive the output."

But it works fine when I'm logged in as remote user. Not sure what that means.
Image
User avatar
Z-Man
God & Project Admin
Posts: 11736
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: vote include

Post by Z-Man »

It means what it says :) All output produced by the include process is only visible to administrators, not necessarily the player who issued the vote or those voting on it. That's because some of the output may contain sensitive information (it probably doesn't, but it could.) If you want the include to have immediately visible effects, use SAY or CONSOLE_OUT commands.
User avatar
dukevin
Round Winner
Posts: 219
Joined: Mon Aug 30, 2010 8:25 am
Location: Southern California
Contact:

Re: vote include

Post by dukevin »

Ah, thanks Z-Man, makes perfect sense now :)
Image
Post Reply