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

[L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-11-2011 , 00:27   Re: [WIP] Builtin Votes
Reply With Quote #21

Ran into an interesting error that I'll have to track down tomorrow: If no votes are cast, the server crashes when the vote ends... calling handler->OnVoteEnd is causing a Segment Fault. It almost looks like my global reference to the current vote's handler is getting unset.

At least I tracked down the error that was causing the vote to not display at all. However, I haven't even gotten around to seeing what happens if I actually vote.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 10-11-2011 , 10:14   Re: [WIP] Builtin Votes
Reply With Quote #22

Thanks for the update. If need any help with testing (Linux), then I'm more than happy to.
jasonfrog is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-12-2011 , 11:35   Re: [WIP] Builtin Votes
Reply With Quote #23

I think I located the bug from yesterday. I'm going to fix it and the code to display the vote soon, as right now it thinks that 0 players are in the vote. :/

P.S. If anyone wants to see the code for the still-buggy version, it's posted in this thread on the MM:S Questions board.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-17-2011 , 10:35   Re: [WIP] Builtin Votes
Reply With Quote #24

Ugh, I have a new version ready for testing, but an invasion of real life this weekend kinda prevented me (and I did spend some time actually playing TF2... whoops).

I can't do testing now (since I'm at work), but if I have some free time, I may work on porting the code for the L4D and L4D2 versions from the old (not working) codebase.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
cool_myll
SourceMod Donor
Join Date: Aug 2011
Old 10-18-2011 , 03:37   Re: [WIP] Builtin Votes
Reply With Quote #25

Thanks for working on this. I feel like if this is released in a stable form and also used by other developers (like the UMC one) it will change a lot of things for voting.

Voting via the radio menu blocks a lot of things as you know.
__________________
cool_myll is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-31-2011 , 21:11   Re: [WIP] [L4D,L4D2,TF2] BuiltinVotes
Reply With Quote #26

The release of SourceMod 1.4.0 has delayed this a bit, as I've had other plugins and things I needed to update to work with 1.4.

I also haven't yet updated my build environment to be based on SourceMod 1.4, but at least 2 of my enhancement requests got into 1.4, so there's a large block of code I can delete now and just call the SourceMod function instead. \o/

In other news, here's a new builtinvotes.inc. I've built MapChooser Extended 1.7 against it, even though the extension isn't ready yet.
Attached Files
File Type: inc builtinvotes.inc (17.3 KB, 199 views)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 10-31-2011 at 21:13.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-02-2011 , 11:25   Re: [WIP] [L4D,L4D2,TF2] BuiltinVotes
Reply With Quote #27

I was trying to work on the L4D/L4D2 code and ran into a slight snag: The latest HL2SDK releases for those appear to have an issue where, if you load icvar.h, it gives you an error:
'g_pMemAlloc' : undeclared identifier d:\projects\sourcemod\dev\hl2sdk-l4d\public\icvar.h

This happens for both SDKs (but not the Orange Box Valve SDK).

In other news, the TF2 version is currently building against SourceMod 1.4 correctly. Now back to testing.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-02-2011 , 14:24   Re: [WIP] [L4D,L4D2,TF2] BuiltinVotes
Reply With Quote #28

Uploaded an updated version of the ource with SourceMod 1.3 compatibility removed (sorry, it's 1.4 only now) and some L4D/L4D2 code fixed (some additionally fixes are still needed). Also uploaded the debug build of BuiltinVotes TF2 for Windows.

Edit: Also added Linux Debug build and TF2 MapChooser. Note that TF2 MapChooser has not been updated for MapChooser 1.4.

Edit 2: Well, it turns out that I removed VoteEnd a while back, but can't actually do that... VoteEnd and End need to be separate, as the vote winner is only passed back if advaced vote handling is disabled.

I'll be updating the builds and source on the first page shortly.

I'd make another post, but Asherkin has been yelling at me lately for making repeated posts.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-02-2011 at 16:02.
Powerlord is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 11-02-2011 , 17:23   Re: [WIP] [L4D,L4D2,TF2] BuiltinVotes
Reply With Quote #29

Woop! Congrats on the release. Giving it a go now.
jasonfrog is offline
jasonfrog
Senior Member
Join Date: Mar 2008
Old 11-02-2011 , 18:20   Re: [WIP] [L4D,L4D2,TF2] BuiltinVotes
Reply With Quote #30

Tried it on a linux box with SM1.4 and either map_chooser_extended or tf2mapchooser.

Server crashed immediately on sm_mapvote.

Do you want crash dump?

Last edited by jasonfrog; 11-02-2011 at 19:10.
jasonfrog is offline
Reply


Thread Tools
Display Modes

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 20:09.


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