Raised This Month: $32 Target: $400
 8% 

TF2 Vote Usermessages


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-15-2011 , 16:41   Re: TF2 Vote Usermessages
Reply With Quote #71

I posted what I have so far for the extension before I go in and do major editing on it in the [WIP] Builtin Votes thread.

Honestly, I think I should re-architect how it works, too... it's a bit of a mess.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-19-2011 , 20:12   Re: TF2 Vote Usermessages
Reply With Quote #72

I discovered 4 new CallVoteFailed error numbers after I tried starting a vote as a spectator and getting a fail code I hadn't seen before. The new ones are:
12 - Can't Kick Server Admin
13 - Vote Scramble In Progress
14 - Spectators can't vote
15 - Next level already set

For whatever reason, error code 11 appear to be unused... or I need to restart my server after other tests to figure out what they are.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-19-2011 at 23:16.
Powerlord is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-19-2011 , 21:26   Re: TF2 Vote Usermessages
Reply With Quote #73

Quote:
Originally Posted by Powerlord View Post
For whatever reason, error codes 10 and 11 appear to be unused... or I need to restart my server after other tests to figure out what they are.
Code:
0: "#GameUI_vote_failed" // Sent to everyone
1: "#GameUI_vote_failed_transition_vote"
2: "#GameUI_vote_failed_vote_spam"
3: "#GameUI_vote_failed_yesno" // Sent to everyone
4: "#GameUI_vote_failed_quorum" // Sent to everyone
5: "#GameUI_vote_failed_disabled_issue"
6: "#GameUI_vote_failed_map_not_found"
7: "#GameUI_vote_failed_map_name_required"
8: "#GameUI_vote_failed_recently"
9: "#GameUI_vote_failed_team_cant_call"
10: "#GameUI_vote_failed_waitingforplayers"
11: Something to do with a player not being found, seems to be unused.
12: "#GameUI_vote_failed_cannot_kick_admin"
13: "#GameUI_vote_failed_scramble_in_prog"
14: "#GameUI_vote_failed_spectator"
15: "#GameUI_vote_failed_nextlevel_set"
__________________

Last edited by asherkin; 07-20-2011 at 06:06.
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-19-2011 , 23:17   Re: TF2 Vote Usermessages
Reply With Quote #74

Quote:
Originally Posted by asherkin View Post
Code:
0: "#GameUI_vote_failed" // Sent to everyone
1: "#GameUI_vote_failed_transition_vote"
2: "#GameUI_vote_failed_vote_spam"
3: "#GameUI_vote_failed_yesno" // Sent to everyone
4: "#GameUI_vote_failed_quorum" // Sent to everyone
5: "#GameUI_vote_failed_disabled_issue"
6: "#GameUI_vote_failed_map_not_found"
7: "#GameUI_vote_failed_map_name_required"
8: "#GameUI_vote_failed_recently"
8: "#GameUI_vote_failed_team_cant_call"
9: "#GameUI_vote_failed_waitingforplayers"
10: Something to do with a player not being found, seems to be unused.
11: "#GameUI_vote_failed_cannot_kick_admin"
12: "#GameUI_vote_failed_scramble_in_prog"
13: "#GameUI_vote_failed_spectator"
14: "#GameUI_vote_failed_nextlevel_set"
You have 8 listed twice, and all the ones after the second 8 (including the second 8) are one value too low.

Edit: I see it has been fixed now.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-20-2011 at 12:06.
Powerlord is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 08-19-2011 , 10:23   Re: TF2 Vote Usermessages
Reply With Quote #75

Any progress on this? Is it possible for valve to open it if people ask for this?
cool_myll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-19-2011 , 11:51   Re: TF2 Vote Usermessages
Reply With Quote #76

Quote:
Originally Posted by cool_myll View Post
Any progress on this? Is it possible for valve to open it if people ask for this?
I've been working on an extension, but my home dev environment was kind of dead for a few weeks (desktop PC died and I just got a new one) and I haven't set my dev environment back up.

That and I've been lazy. There's a lot of grunt work I need to do to fix a design mistake I made (hey, turns out vote-specific things in the global handler is a bad thing).

I plan to do some more work this weekend on it.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-19-2011 at 11:55.
Powerlord is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 08-19-2011 , 12:57   Re: TF2 Vote Usermessages
Reply With Quote #77

Thanks i thought the project was dead
cool_myll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-19-2011 , 13:47   Re: TF2 Vote Usermessages
Reply With Quote #78

Quote:
Originally Posted by cool_myll View Post
Thanks i thought the project was dead
Well, it turns out I forgot to implement some functionality in the last version of that extension I posted, and it also turns out that, to implement said functionality caused a boatload of new errors because of the previous incorrect decision I made.

I seriously don't know what I was thinking moving the list of who voted and what they voted for in the global map handler. Really, the only thing the global handler should be doing is keeping track of if there is currently a vote in progress or not (and which vote if there is one) and when the next vote can start. Oh, and create a new vote handle, of course.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-19-2011 at 13:57.
Powerlord is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 09-28-2011 , 02:53   Re: TF2 Vote Usermessages
Reply With Quote #79

Sorry but any progress? I feel that this has the potential to change the votes a lot if this is finally released in a stable form.
Now most people randomly vote cause vote block changing their weapons.

EDIT: Just saw your WIP update. Thanks. Keep up the good work
__________________

Last edited by cool_myll; 09-28-2011 at 03:53.
cool_myll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-29-2011 , 11:12   Re: TF2 Vote Usermessages
Reply With Quote #80

Quote:
Originally Posted by cool_myll View Post
Sorry but any progress? I feel that this has the potential to change the votes a lot if this is finally released in a stable form.
Now most people randomly vote cause vote block changing their weapons.

EDIT: Just saw your WIP update. Thanks. Keep up the good work
Yeah, sorry.

I'm also discovering things that work in the SourceMod voting system that don't work when creating my own mod because it expects the game engine itself to do specific things.

Specifically, the game engine has timers for menus, and voting is assumed to be done when all vote menus for all clients close. However, the TF2 Voting system doesn't do that. I'm checking into how to do it the way I want.

This also means that people programming against this extension must call either the vote passed or vote failed method (I forget their exact names) to clear the vote from the screen. Later, I'll make a list of the exact changes from the SourceMod system. Some of the more complex things are staying the same (the VoteResults callback, for instance).

Note: I haven't even started on the natives yet in my code. I'm hoping I can import those (nearly) wholesale from my previous version. I have changed a few things in the interface. For example, the vote types have changed and are now mandatory, although I may change it to default to BuiltinVoteType_Custom_YesNo as it works in all 3 games (Custom_Multiple only works in TF2).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode