Skocz do zawartości

  • Zaloguj korzystając z Facebooka Zaloguj korzystając z Twittera Zaloguj przez Steam Zaloguj poprzez Google      Logowanie »   
  • Rejestracja

Witamy w Nieoficjalnym polskim support'cie AMX Mod X

Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
  • Rozpoczynaj nowe tematy i odpowiedaj na inne
  • Zapisz się do tematów i for, aby otrzymywać automatyczne uaktualnienia
  • Dodawaj wydarzenia do kalendarza społecznościowego
  • Stwórz swój własny profil i zdobywaj nowych znajomych
  • Zdobywaj nowe doświadczenia

Dołączona grafika Dołączona grafika

Guest Message by DevFuse


[L4D,L4D2,TF2,CSGO] NativeVotes [Beta] (v0.7.4, 2013-02-24)

  • Nie możesz napisać tematu
  • Zaloguj się, aby dodać odpowiedź
Brak odpowiedzi do tego tematu

#1 Adminek AMXX.PL

    Admin :)

  • Bot

Reputacja: 156

  • Postów:7280
  • Lokalizacja:AMXX.PL

Napisano 09.02.2013 08:05

(I apologize if you got here because this is marked as "Any". It only supports the 4 games listed up top.)Source Code on GitHubBug Tracker on GitHubRequires SourceMod 1.5-hg3755 or newer to compileHowever, the plugin itself should run on SourceMod 1.4.ChangelogA lot of versions here were only posted as test versions, so if you missed them... that's why.
  • 0.7.4
    • Fixes that a vote's details or winner were one character shorter than they should be.
  • 0.7.3
    • If hintboxes are enabled, the hintbox is now drawn once when the vote starts. This is to clear the previous vote's entries
    • Eliminated duplicate code from the function that builds the hintbox list.
    • The above shared code now only sorts the votes that actually exist. Shouldn't make a difference, but just in case...
  • 0.7.2
    • Votes should be registered again. 0.7.0 accidentally had some code removed that really is necessary for the plugin to work.
    • Fixed votes ending early if votes not on the list were selected (i.e. hitting F5 when there are 4 or less options).
  • 0.7.1
    • Now calls correct checking method when a client disconnects.
  • 0.7.0
    • Another callvote fix, this time due to a previous fix only being changed in two of three places.
    • Fixed issue with vote item count not being used when preparing vote results and instead using the array size.
    • Changed method for clearing vote counts. No longer resizes array, but instead sets all values to 0. Resizing caused the bug immediately before this.
    • Various vote counts are now correctly updated when a client disconnects.
    • Vote will now end if the last player whose vote was pending disconnects.
    • New method to update client count on server's votecontroller entity.
  • 0.6.3
    • When a player disconnects, their vote wasn't being cleared.
  • 0.6.2
    • Fixed MenuAction_VoteEnd callback looping around the wrong value.
    • Moved bot check code to more appropriate location.
    • Clients were not being properly returned to the VoteResults callback.
    • No longer allow plugins to ask for an item one past the end of the vote list in NativeVotes_GetItem.
  • 0.6.1
    • Changed numbering scheme to 3 digit. 0.60 was a typo (or braino) on my part and kinda stuck; it needs to be 0.6.1 in the future for Updater compatibility (which isn't yet present).
    • Updated callvote handling. The forward declaration was missing the second argument and would cause errors when someone used the callvote command.
    • Updated NativeVotes_CallVoteHandler in .inc file. It now returns an Action. This was a design flaw; previously it was impossible for a registered vote manager to tell NativeVotes it wasn't handling a specific vote.
  • 0.60
    • Initial Release
What is NativeVotes?NativeVotes is an API to generate vote panels using the game's own vote panels. It is the next version of the BuiltinVotes extension, but as a plugin.What's new since BuiltinVotes 0.5.8?
  • NativeVotes_Close must be called instead of CloseHandle or the plugin will leak handles.
  • The API was completed redesigned. Whenever possible, the API was moved to be closer to the SourceMod menu API.
    • Unfortunately, that doesn't apply to the Vote Results callback. Plugins can't send back multi-dimensional arrays from natives. If you need to, you can call the NativeVotes_FixResults stock to change the votes back to multi-dimensional. An example of this is in NativeVotes MapChooser.
  • NativeVotes has its own configuration file now.
  • CS:GO is now supported. Needs testing.
  • Fail screen is no longer automatically shown if you close a vote without sending a fail or pass screen. Closing it without sending one IS a mistake on the plugin developers part.
  • NativeVotes manipulates the server's vote_controller entity. This should address issues where vote counts weren't showing up.
CVarsEdit these in cfg/sourcemod/nativevotes.cfg
  • nativevotes_version - NativeVotes API version
  • nativevotes_progress_hintbox - [0/1] def. 0 - Show current vote progress in a hint box
  • nativevotes_progress_chat - [0/1] def. 0 - Show current vote progress as chat messages
  • nativevotes_progress_console - [0/1] def. 0 - Show current vote progress as console messages
  • nativevotes_progress_client_console - [0/1] def 0 - Show current vote progress as console messages to clients
  • nativevotes_vote_delay - def 30 - Sets the recommended time in between public votes. This is only for votes that check NativeVotes_CheckVoteDelay or NativeVotes_IsNewVoteAllowed
Known Issues
  • Unloading NativeVotes while a vote panel is open may do bad things if the plugin isn't expecting it. The example plugin, NativeVotes MapChooser, doesn't expect it and will bomb.
  • NativeVotes_RegisterVoteManager currently does nothing and instead returns an error. This functionality will be added at a later time.
  • Yes/No votes may work, but "Yes" and "No" aren't being registered as answers correctly.
  • Natives dealing with adding and removing items shouldn't work on L4D and L4D2, but this isn't currently restricted.
  • NativeVotes_DisplayCallVoteFail does nothing on L4D and L4D2. I need more data about what they display when a vote fails to start.
NativeVotes API is in the attached This is a work in progress and enum values in particular may change.What is votediagnostics.smx?votediagnostics is a special tool for people using the real vote panels that the game itself provides. It creates a logfile named vote_diagnostics.txtI need people to do this to gather information on the vote IDs and also what CS:GO does with its other team strings. Attached Files Dołączona grafika (29.1 KB) Dołączona grafika Get Plugin or Get Source (votediagnostics.sp - 17.0 KB) Dołączona grafika votediagnostics.smx (9.0 KB) Dołączona grafika nativevotes.smx (32.5 KB) Dołączona grafika nativevotes-basecommands.smx (5.1 KB) Dołączona grafika nativevotes (79.3 KB)

Wyświetl pełny artykuł

Użytkownicy przeglądający ten temat: 0

0 użytkowników, 0 gości, 0 anonimowych