Raised This Month: $12 Target: $400
 3% 

Polymorph: Mod Manager


Post New Thread Reply   
 
Thread Tools Display Modes
sammy6369
New Member
Join Date: Jan 2015
Old 06-15-2017 , 10:47   Re: Polymorph: Mod Manager
Reply With Quote #921

I always startup a server with playing de_dust2.
But, the polymod_thismod is random.
Any cvars to set default mod?
Or can you add one pls.
sammy6369 is offline
hamzatahir
Junior Member
Join Date: May 2017
Old 06-16-2017 , 14:32   Re: Polymorph: Mod Manager
Reply With Quote #922

i'm using these 6 mods
1-Flower Mod - https://forums.alliedmods.net/showthread.php?t=171845
2-CSDM 2.0 - https://forums.alliedmods.net/showth...hp?t=290?t=290
3- Surf - https://forums.alliedmods.net/showthread.php?t=168274
4- DeathRun - https://forums.alliedmods.net/showthread.php?t=78197
5-GunGame - https://forums.alliedmods.net/showthread.php?p=404554
6-Public Mod uses the server's normal cfg

like after the time limit for certain map finishes automatically there's these 6 mods come in the vote and after it is done the maps from the map cycle of the certain mod shows up, i tried alot but it doesn't work
hamzatahir is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-17-2017 , 01:51   Re: Polymorph: Mod Manager
Reply With Quote #923

Quote:
Originally Posted by hamzatahir View Post
i tried alot but it doesn't work
That is not helpful. What doesn't work. What have you tried? What are you configuration files? etc.
__________________
fysiks is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 08-07-2017 , 07:50   Re: Polymorph: Mod Manager
Reply With Quote #924

Can you add 1 more setting that make some mod won't show when votemod but available in amx_nextmod cvar?

Like in a server when it normal a Zombie Plague but in some special event, Admin can change it to Zombie Scenario or Zombie Annihilation then change it later on and prevent member voted for that mod.
__________________
My plugin:

Last edited by Celena Luna; 08-07-2017 at 07:50.
Celena Luna is offline
Luix
Senior Member
Join Date: Dec 2009
Location: Venezuela
Old 12-22-2017 , 18:05   Re: Polymorph Compatibility
Reply With Quote #925

Quote:
Originally Posted by fysiks View Post
MOD Compatibility
Gungame:
  • Delete mapchooser.amxx.
  • Put poly_mapchooser.amxx in the /plugins folder.
  • Rename it as mapchooser.amxx
  • Add mapchooser.amxx to the list of plugins in the Polymorph MOD initializaition file.
This doesn't work, the poly_mapchooser.sma he uploaded doesn't register the plugin with the correct name in order to detect it.

Gungame detects the mapchooser this way:
PHP Code:
// start a map vote
stock start_mapvote()
{
    new 
dmmName[24], plugin;
    
    
// Galileo - galileo.amxx
    
if(galileoID != -1)
    {
        
log_amx("Starting a map vote from Galileo");
        
        
server_cmd("gal_startvote -nochange");
    }

    
// AMXX Nextmap Chooser - mapchooser.amxx
    
else if((plugin is_plugin_loaded("Nextmap Chooser")) != -1)
    {
        
log_amx("Starting a map vote from Nextmap Chooser");

        new 
oldWinLimit get_cvar_num("mp_winlimit"), oldMaxRounds get_cvar_num("mp_maxrounds");
        
set_cvar_num("mp_winlimit",0); // skip winlimit check
        
set_cvar_num("mp_maxrounds",-1); // trick plugin to think game is almost over

        // call the vote
        
if(callfunc_begin_i(get_func_id("voteNextmap",plugin),plugin) == 1)
            
callfunc_end();

        
// set maxrounds back
        
set_cvar_num("mp_winlimit",oldWinLimit);
        
set_cvar_num("mp_maxrounds",oldMaxRounds);
    } 
I just changed the name of the plugin to "Nextmap Chooser" like the default plugin to make it work. Hope it works for you too
Attached Files
File Type: sma Get Plugin or Get Source (poly_mapchooser.sma - 869 views - 335 Bytes)
__________________

Last edited by Luix; 12-22-2017 at 18:10.
Luix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 12-22-2017 , 18:32   Re: Polymorph: Mod Manager
Reply With Quote #926

That must have changed at some point or you have a different version of GunGame because it used to be based on filename which is why you need to rename the plugin to "mapchooser.amxx". If GunGame used the registered plugin name ("Nextmap Chooser") back when I wrote this, I wouldn't have said that you needed to rename poly_mapchooser to mapchooser over 7 years ago.

Note: The function is_plugin_loaded() can do either filename or plugin name.

P.S. I purposefully didn't use the name "Nextmap Chooser" so that it was clear that the plugin was not, in fact, the original plugin that ships with AMX Mod X.
__________________

Last edited by fysiks; 12-23-2017 at 04:39. Reason: Added clarification why I didn't register the plugin as "Nextmap Chooser"
fysiks is offline
Luix
Senior Member
Join Date: Dec 2009
Location: Venezuela
Old 12-24-2017 , 16:17   Re: Polymorph: Mod Manager
Reply With Quote #927

Quote:
Originally Posted by fysiks View Post
That must have changed at some point or you have a different version of GunGame because it used to be based on filename which is why you need to rename the plugin to "mapchooser.amxx". If GunGame used the registered plugin name ("Nextmap Chooser") back when I wrote this, I wouldn't have said that you needed to rename poly_mapchooser to mapchooser over 7 years ago.
I'm using this version, and seems to be the lastest one: GunGame 2.13c. (official links are down)

Quote:
Originally Posted by fysiks View Post
Note: The function is_plugin_loaded() can do either filename or plugin name.

P.S. I purposefully didn't use the name "Nextmap Chooser" so that it was clear that the plugin was not, in fact, the original plugin that ships with AMX Mod X.
To make it different, I just made "Polymorph" the author of the plugin, so I can see the difference on amx_plugins.

also, I tested poly_csdm_off.sma and it works, but if you have FFA activated in CSDM and you swap to another mod from CSDM, the FFA keeps activated on the next mod too. I just attach the small solution too.

I'm sorry if I did sound rude or something like that, just wanted to help and I really appreciate your plugin, I'm using it right now in my server, so big thanks for your effort and happy christmas!
Attached Files
File Type: sma Get Plugin or Get Source (poly_csdm_off.sma - 714 views - 258 Bytes)
__________________

Last edited by Luix; 12-24-2017 at 16:22.
Luix is offline
Dote
Member
Join Date: Jan 2018
Old 04-27-2018 , 11:16   Re: Polymorph: Mod Manager
Reply With Quote #928

how to install maps for mods?

Last edited by Dote; 04-27-2018 at 11:43.
Dote is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-27-2018 , 19:57   Re: Polymorph: Mod Manager
Reply With Quote #929

Quote:
Originally Posted by Dote View Post
how to install maps for mods?
The same way you install all other maps.
__________________
fysiks is offline
Dote
Member
Join Date: Jan 2018
Old 04-29-2018 , 11:04   Re: Polymorph: Mod Manager
Reply With Quote #930

Quote:
Originally Posted by fysiks View Post
The same way you install all other maps.
fixed THX
Dote 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 12:05.


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