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

Mapchooser4


Post New Thread Reply   
 
Thread Tools Display Modes
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-15-2018 , 21:52   Re: Mapchooser4
Reply With Quote #681

L 12/15/2018 - 20:48:04: Invalid event (name "SendAudio") (plugin "testing/mapchooser4.amxx")
L 12/15/2018 - 20:48:04: [AMXX] Run time error 10 (plugin "mapchooser4.amxx") (native "register_event") - debug not enabled!
L 12/15/2018 - 20:48:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).


Plugin requires maintenance or taken down.
__________________
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-15-2018 , 22:04   Re: Mapchooser4
Reply With Quote #682

Quote:
Originally Posted by DJEarthQuake View Post
L 12/15/2018 - 20:48:04: Invalid event (name "SendAudio") (plugin "testing/mapchooser4.amxx")
L 12/15/2018 - 20:48:04: [AMXX] Run time error 10 (plugin "mapchooser4.amxx") (native "register_event") - debug not enabled!
L 12/15/2018 - 20:48:04: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).


Plugin requires maintenance or taken down.
It loads fine for me. I'm not sure what you are doing to make it not work.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-15-2018 , 22:21   Re: Mapchooser4
Reply With Quote #683

I could try commenting it out as that is only referenced once in 2 lines.


L 12/15/2018 - 21:18:51: Invalid event (name "SendAudio") (plugin "testing/mapchooser4.amxx")
L 12/15/2018 - 21:18:51: [AMXX] Displaying debug trace (plugin "testing/mapchooser4.amxx", version "3.42a")
L 12/15/2018 - 21:18:51: [AMXX] Run time error 10: native error (native "register_event")
L 12/15/2018 - 21:18:51: [AMXX] [0] mapchooser4.sma::plugin_init (line 169)


I commented out the 2 lines.

L 12/15/2018 - 21:20:21: [testing/mapchooser4a.amxx] Found 154 maps in maps folder
L 12/15/2018 - 21:20:21: [AMXX] - Nextmap Chooser 4: Found 154 maps in maps folder


Excited to see what this thing can do now. It is responding to vote (MAPNAME) now. Thx for encouraging me fysiks.

HLDS version : 48/1.1.2.2/Stdio 7882 secure (50)
AMX Mod X 1.9.0.5234
Build ID: 5234:9eb1f42
Core mode: JIT+ASM32
mod gearbox
__________________

Last edited by DJEarthQuake; 12-15-2018 at 22:25. Reason: V.
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-15-2018 , 22:37   Re: Mapchooser4
Reply With Quote #684

I misread. This is for CS only for now.
__________________
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-16-2018 , 00:35   Re: Mapchooser4
Reply With Quote #685

Quote:
Originally Posted by DJEarthQuake View Post
I misread. This is for CS only for now.
I loaded it in Day of Defeat but didn't actually join the server to test any functionality, just enough to test the error you got. This page claims that the SendAudio event is only available in CS and CS:CZ but apparently it's available in more than that.
__________________
fysiks is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 12-16-2018 , 16:37   Re: Mapchooser4
Reply With Quote #686

Optimized. Half-Life Opposing Force support. Just say the map name instead of nom or nominate. Added many prefixes.
Attached Files
File Type: txt mapchooser4.txt (64.1 KB, 113 views)
File Type: sma Get Plugin or Get Source (mapchooser4.sma - 108 views - 54.4 KB)
__________________

Last edited by DJEarthQuake; 08-05-2021 at 15:21. Reason: Updated 08/05/2021
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-09-2019 , 00:47   Re: Mapchooser4
Reply With Quote #687

Code:
                if ( cstrike_running() )         g_buyingtime = true         else g_buyingtime = false

Lines like this ported this to Half-Life and Opposing Force.
RTV was busted otherwise. That was just the start.

If this plugin is missing any map prefixes please let me know.
__________________

Last edited by DJEarthQuake; 07-09-2019 at 03:48.
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-17-2019 , 19:23   Re: Mapchooser4
Reply With Quote #688

All languages are now up-to-date for Amxx 1.9 so we no longer see caret^:
Quote:
You must wait another 1 minutes until you can say ^"rockthevote^".
Instead:
Quote:
You must wait another 1 minutes until you can say "rockthevote".
Language file update is a couple posts back. The plugin version I made has some improvements like more map extensions and port to HL.
__________________
DJEarthQuake is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-28-2019 , 07:50   Re: Mapchooser4
Reply With Quote #689

@fysiks or anybody who uses this. Do you have log of error native with this trying to over-write the root game mod directory? I found many instances. It may have to do with the maphistory as I did not see any other code that pertains to it. Either way disturbing.

Quote:
Couldn't write file "gearbox/"
Code:
        if ((file_exists(g_maphistFile)) && (g_MapHistory > 0))         {                 new text[32]                 new a = 0                 // shift list up 1                 for (new pos = 0; pos < g_MapHistory; pos++)                 {                         read_file(g_maphistFile,pos+1,text,31,a)                         write_file(g_maphistFile,text,pos)                 }         }         write_file(g_maphistFile,current_map,g_MapHistory-1)
__________________
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-28-2019 , 19:17   Re: Mapchooser4
Reply With Quote #690

Well, I don't run this plugin. Did you modify the plugin at all? Does the map history work in-game? It looks like maybe g_maphistFile is an empty string.
__________________
fysiks 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 15:34.


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