Raised This Month: $301 Target: $400
 75% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
eric0279
AlliedModders Donor
Join Date: May 2007
Old 07-25-2013 , 05:49   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #241

Hello,

can you convert a plugin that uses buildvote for nativevote please?

http://pastebin.com/xyBxUng3

Cordialy
eric0279 is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 09-10-2013 , 12:51   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #242

How can I utilize this extension for an existing plugin such as Funvotes?

I tried installing it in the extension folder and putting the include file in the include folder, editing the plugin source to include the builtinvotes, and then recompiling it. I then ran the game (left 4 dead) but it still uses the sourcemod menu for the fun votes. What did I miss?
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-10-2013 , 16:35   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #243

Quote:
Originally Posted by Ellie View Post
How can I utilize this extension for an existing plugin such as Funvotes?

I tried installing it in the extension folder and putting the include file in the include folder, editing the plugin source to include the builtinvotes, and then recompiling it. I then ran the game (left 4 dead) but it still uses the sourcemod menu for the fun votes. What did I miss?
This extension is dead. Use NativeVotes instead.
NativeVotes has a slightly different API, but it tries to be closer to the basic Menu API than BuiltinVotes does.

Having said that, you're aware that BuiltinVotes and NativeVotes have their own APIs? They're not quite drop-in replacements. The NativeVotes MapChooser is probably a good example of this when compared to the SourceMod MapChooser.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 09-10-2013 at 16:43.
Powerlord is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 09-10-2013 , 20:34   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #244

Quote:
Originally Posted by Powerlord View Post
This extension is dead. Use NativeVotes instead.
NativeVotes has a slightly different API, but it tries to be closer to the basic Menu API than BuiltinVotes does.
Yeah I had seen that about nativevotes but wanted to give this one a try. So this extension doesn't work at all anymore? I get this:

Code:
L 09/10/2013 - 12:08:21: SourceMod error session started
L 09/10/2013 - 12:08:21: Info (map "l4d_hospital01_apartment") (file "errors_20130910.log")
L 09/10/2013 - 12:08:21: [SM] Unable to load extension "builtinvotes.ext": Could not find interface: IGameHelpers
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "FunVotes.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "builtinvotes_alltalkvote.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "builtinvotes_testvote.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running

Quote:
Originally Posted by Powerlord View Post
Having said that, you're aware that BuiltinVotes and NativeVotes have their own APIs? They're not quite drop-in replacements. The NativeVotes MapChooser is probably a good example of this when compared to the SourceMod MapChooser.
No I wasn't aware (any screenshots?). Maybe I just don't comprehend how this is supposed to work. Based on what I read, this extension and the plugin let you use the in-game vote panel instead of the sourcemod panel for plugin related votes, right? Or at least that is what I'm trying to do. If that's what it is, what I have to do? If it's not that, then I don't get it. I tried both the extension and the plugin, but I saw no difference (just the sourcemod vote panel).

Last edited by Ellie; 09-10-2013 at 20:41.
Ellie is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2013 , 10:21   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #245

Quote:
Originally Posted by Ellie View Post
Yeah I had seen that about nativevotes but wanted to give this one a try. So this extension doesn't work at all anymore? I get this:

Code:
L 09/10/2013 - 12:08:21: SourceMod error session started
L 09/10/2013 - 12:08:21: Info (map "l4d_hospital01_apartment") (file "errors_20130910.log")
L 09/10/2013 - 12:08:21: [SM] Unable to load extension "builtinvotes.ext": Could not find interface: IGameHelpers
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "FunVotes.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "builtinvotes_alltalkvote.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running
L 09/10/2013 - 12:08:21: [SM] Unable to load plugin "builtinvotes_testvote.smx": Required extension "BuiltinVotes" file("builtinvotes.ext") not running



No I wasn't aware (any screenshots?). Maybe I just don't comprehend how this is supposed to work. Based on what I read, this extension and the plugin let you use the in-game vote panel instead of the sourcemod panel for plugin related votes, right? Or at least that is what I'm trying to do. If that's what it is, what I have to do? If it's not that, then I don't get it. I tried both the extension and the plugin, but I saw no difference (just the sourcemod vote panel).
BuiltinVotes and NativeVotes aren't drop-in replacements for the SourceMod voting system. They have their own commands... things like NativeVotes_Create instead of CreateMenu and NativeVotes_AddItem instead of AddMenuItem, etc...

Note that Yes/No votes will do nothing for NativeVotes_AddItem... L4D and L4D2 (and now CS:GO thanks to Valve meddling) only support Yes/No votes in their builtin/native vote screens.

The NativeVotes thread is supposed to have a guide for porting plugins from the SourceMod Vote system to the NativeVotes system in the second post, but it looks like I never wrote it (whoops).
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Ellie
Senior Member
Join Date: Apr 2013
Old 09-11-2013 , 13:44   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #246

I think I get it now. So basically you'd have to code a plugin to use the commands of either the extension or plugin, and have the extension/plugin included in a plugin before it compiling right?

Also, I'm using sourcemode 1.4.7. Reason being is because some of the plugins I have for left 4 dead don't work with SM 1.5.

Last edited by Ellie; 09-11-2013 at 14:19.
Ellie is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-11-2013 , 15:05   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #247

Quote:
Originally Posted by Ellie View Post
Also, I'm using sourcemode 1.4.7. Reason being is because some of the plugins I have for left 4 dead don't work with SM 1.5.
SourceMod 1.5.x is fully backwards compatible with 1.4.x.
__________________
asherkin is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2013 , 16:15   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #248

Quote:
Originally Posted by asherkin View Post
SourceMod 1.5.x is fully backwards compatible with 1.4.x.
Except for extensions that use UserMessages because IUserMessages changed between 1.4.x and 1.5.x.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
canadianjeff
Senior Member
Join Date: Sep 2016
Old 06-13-2021 , 17:38   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #249

U:\programs\windows\SPCode.Portable\sourcepaw n\configs\sm_1_10_0_6478\include\builtinvotes .inc(185) : fatal error 196: deprecated syntax; see https://wiki.alliedmods.net/SourcePa...yntax#Typedefs

WHY GOD WHY!!!!!!!!!!!!!!

EDIT: updated builtinvotes.inc attached to this post
Attached Files
File Type: inc builtinvotes.inc (26.3 KB, 16 views)

Last edited by canadianjeff; 06-13-2021 at 17:43.
canadianjeff is offline
A1mDev
Junior Member
Join Date: Jun 2021
Old 07-13-2021 , 04:41   Re: [L4D,L4D2,TF2] BuiltinVotes 0.5.8 (2013-01-29)
Reply With Quote #250

@canadianjeff, I see you are using my file builtinvotes.inc . Rather the problem is in your plugin, in the header file everything is correct. You could create an 'Issue' on github for a solution. Because few people know about the existence of this version!

Last edited by A1mDev; 07-13-2021 at 04:49. Reason: add text
A1mDev 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 10:45.


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