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

Polymorph: Mod Manager


Post New Thread Reply   
 
Thread Tools Display Modes
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-17-2019 , 22:40   Re: Polymorph: Mod Manager
Reply With Quote #981

Using the same /addons/ folder is more convenient since I just share everything plugin, config, lang, etc related, I use a plugins-common.ini and various plugins_[x].ini files depending on the server (selected by a different AMXX core file).

But this is outside the topic of conversation.

Since you are already editing plugins-polymorph.ini at the end of the map it would be efficient to empty the file on map start to at least reduce the chance of other servers from loading it.

Adding this block of code at the end of plugin_cfg() seems to do the trick.
Code:
//clean the file to prevent other servers from loading it new szMainFilePath[STRLEN_PATH] new pMainFile get_configsdir(szMainFilePath, charsmax(szMainFilePath)) format(szMainFilePath, charsmax(szMainFilePath), "%s/plugins-polymorph.ini", szMainFilePath) pMainFile = fopen(szMainFilePath, "wt"); if(pMainFile) {     fclose(pMainFile) }
__________________

Last edited by gabuch2; 05-17-2019 at 22:53.
gabuch2 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-18-2019 , 14:16   Re: Polymorph: Mod Manager
Reply With Quote #982

Yep, that is probably the best option.
__________________
fysiks is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 05-18-2019 , 15:01   Re: Polymorph: Mod Manager
Reply With Quote #983

I don't know if it is intended but when you set a mod with amx_nextmod and wait untill the time of the map runs out a new vote is send instead of waiting untill the timer ends and changes to the next mod and map selected by the command
Rivotril is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-18-2019 , 22:52   Re: Polymorph: Mod Manager
Reply With Quote #984

Quote:
Originally Posted by Rivotril View Post
I don't know if it is intended but when you set a mod with amx_nextmod and wait untill the time of the map runs out a new vote is send instead of waiting untill the timer ends and changes to the next mod and map selected by the command
Yep, if you have the mode set to vote on the mod then you'll always get a vote. You can set the next mod and then change the map if you want to avoid the vote. Otherwise, you could use a different mode.
__________________
fysiks is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-20-2019 , 00:05   Re: Polymorph: Mod Manager
Reply With Quote #985

Upon choosing "Mod Extending", when the map changed the plugin crashed.

Code:
L 05/20/2019 - 04:04:37: [polymorph.amxx] [Polymorph] Mod not found. Restart server.
L 05/20/2019 - 04:04:37: [AMXX] Plugin ("polymorph.amxx") is setting itself as failed.
L 05/20/2019 - 04:04:37: [AMXX] Plugin says: [Polymorph] Mod not found. Restart server.
__________________

Last edited by gabuch2; 05-20-2019 at 00:06.
gabuch2 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-20-2019 , 22:02   Re: Polymorph: Mod Manager
Reply With Quote #986

Quote:
Originally Posted by Gabe Iggy View Post
Upon choosing "Mod Extending", when the map changed the plugin crashed.

Code:
L 05/20/2019 - 04:04:37: [polymorph.amxx] [Polymorph] Mod not found. Restart server.
L 05/20/2019 - 04:04:37: [AMXX] Plugin ("polymorph.amxx") is setting itself as failed.
L 05/20/2019 - 04:04:37: [AMXX] Plugin says: [Polymorph] Mod not found. Restart server.
Probably because you are clearing the plugins-polymorph.ini file which is not re-written if the mod is extended. You can see this in plugin_end().

Why did I add this condition? I'm not sure. I can't remember if I had a good reason to not update the file every time but you could try.
__________________
fysiks is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 05-23-2019 , 23:01   Re: Polymorph: Mod Manager
Reply With Quote #987

a limitation to how much can you extend the same mod would be a cool addition
Rivotril is offline
Old 05-24-2019, 00:05
fysiks
This message has been deleted by fysiks. Reason: nvm, thought it was in there already but it's not.
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 05-25-2019 , 21:46   Re: Polymorph: Mod Manager
Reply With Quote #988

Is it too complicated to make it work with galileo?
if it isn't i want to try to do it, galileo has so many features that are really helpful
Rivotril is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-26-2019 , 02:06   Re: Polymorph: Mod Manager
Reply With Quote #989

Quote:
Originally Posted by Rivotril View Post
Is it too complicated to make it work with galileo?
if it isn't i want to try to do it, galileo has so many features that are really helpful
We already discussed this here.

Quote:
Originally Posted by Rivotril View Post
a limitation to how much can you extend the same mod would be a cool addition
This is possible.
__________________

Last edited by fysiks; 05-26-2019 at 02:09.
fysiks is offline
Rivotril
Senior Member
Join Date: Feb 2014
Location: Argentina
Old 05-28-2019 , 13:53   Re: Polymorph: Mod Manager
Reply With Quote #990

Quote:
Originally Posted by fysiks View Post
We already discussed this here.



This is possible.
Oh, ok, well then, some good additions would be if the mod gets extended not to show the current map on the vote, and for some reason i see mostly the same maps over and over in the vote (When mod gets extendend), it doesn't vary much with the entire map list.

Anyways, i love the work you did with Polymorph, hope you consider the ideas, thanks!
Rivotril 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 08:06.


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