Raised This Month: $ Target: $400
 0% 

Polymorph: Mod Manager


Post New Thread Reply   
 
Thread Tools Display Modes
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-21-2024 , 10:50   Re: Polymorph: Mod Manager
Reply With Quote #1101

There is no "mapsfile" folder. Your INI files should in in the "polymorph" folder and maps must be in the normal maps folder (map files cannot reside anywhere other than the normal maps folder).
__________________

Last edited by fysiks; 05-21-2024 at 10:51.
fysiks is offline
loqed
New Member
Join Date: May 2024
Location: Krasnoyarsk
Old 09-12-2024 , 06:18   Re: Polymorph: Mod Manager
Reply With Quote #1102

Hi, I can't extend the mod

The mod extension option is ignored
There are no errors in the console
I tried changing cvars
poly_extendmod 1
poly_extendmod 2
only when
poly_extendmod 0
the extension option is gone
maybe I broke something during localization
could you help, I really liked your plugin
https://pastebin.com/SKLiePTe

regamedll 5.26.0.668
Amxx 1.10.0
Metamod-r v1.3.0

error log
[AMXX] Displaying debug trace (plugin "polymorph.amxx", version "1.1.2")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX] [0] polymorph.sma::countModVotes (line 543)

Last edited by loqed; 09-13-2024 at 01:46. Reason: add info
loqed is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-13-2024 , 02:07   Re: Polymorph: Mod Manager
Reply With Quote #1103

Well, I guess the obligatory questions first:
Did it work without any modification?
Do you get any errors in the error logs?

Regarding, "the model extension option is ignore", what does this mean? This could be interpreted in different ways. Does the menu ignore the button press (i.e. the menu remains open) or does it just not end up extending the mod provided that you know there were enough votes to achieve that outcome?

The "poly_extendmod" cvar is interpreted as a boolean meaning that any non-zero value will be treated as "true".

Note: I know nothing about regamedll and I've never tested with AMX Mod X 1.10.0 (it didn't exist when I created Polymorph).
__________________

Last edited by fysiks; 09-13-2024 at 23:19.
fysiks is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-13-2024 , 02:30   Re: Polymorph: Mod Manager
Reply With Quote #1104

Quote:
Originally Posted by loqed View Post
error log
[AMXX] Displaying debug trace (plugin "polymorph.amxx", version "1.1.2")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX] [0] polymorph.sma::countModVotes (line 543)
There is no functional code on line 543 and it's not even in the countModVotes function. This means that you're running a different version than what you posted.

However, I think I found the issue! You cannot simply change the title in the show_menu() function because the title is actually used to link the shown menu to the menu functionality. This is done via the register_menuid() function. So, change both menu titles in show_menu() back to the original English and test again, just to verify that that is the actual problem. Then, you can try to update the title in both show_menu() and register_menuid() with your language's version and then test again.
__________________
fysiks is offline
loqed
New Member
Join Date: May 2024
Location: Krasnoyarsk
Old 09-13-2024 , 04:01   Re: Polymorph: Mod Manager
Reply With Quote #1105

I apologize for the fact that my explanations are not entirely clear, because I am writing to you through Google Translate.

This error log was made with your version of the plugin, I have already tried everything...

And at the moment the problem is not just that there is no option to choose the extend mod
But that any choice is ignored and the one that comes first is selected

this is written in the chat after the end of the vote for the next mod
POLY_DEBUG: # of voters: 0

I also tried to make a translation through lang
previously removing <//> from register_dictionary("polymorph.txt")
https://pastebin.com/A13YaUYT

And in this case, the error is only different
and the selection menu does not open at all

error log

[AMXX] Displaying debug trace (plugin "polymorph.amxx", version "1.1.2")
[AMXX] Run time error 25: parameter error
[AMXX] [0] polymorphMod.sma::startModVote (line 530)
[AMXX] [1] polymorphMod.sma::_polyn_votemod (line 310)
Unhandled dynamic native error [AMXX] Displaying debug trace (plugin "poly_rtv.amxx", version "1.0") [AMXX] Run time error 10: native error (native "polyn_votemod") [AMXX] [0] poly_rtv.sma::startRockVote (line 145)

Last edited by loqed; 09-13-2024 at 04:08. Reason: add info
loqed is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-13-2024 , 23:37   Re: Polymorph: Mod Manager
Reply With Quote #1106

Ok, so, I have to apologize regarding my first post. I was accidentally comparing your version to a version that is not posted on the forums. I have removed that paragraph for the benefit of future readers.

So, when I compare your original version from above to the version of Polymorph on the forums, the only issue I see is the aforementioned note about the show_menu() title parameter.

The error for line 543 doesn't really make any sense because none of the code on which this line is dependent is conditional. It seems to imply that the cvar "amx_vote_answers" failed to be created. Are you sure there wasn't an error before this? Does this cvar exist? Are you accidentally running this plugin twice (even if different versions)?

I never did implement localization for the unique Polymorph messages so uncommenting the registering of the polymorph.txt dictionary won't do anything.
__________________
fysiks is offline
cs_deathmatch
New Member
Join Date: Sep 2024
Old 09-22-2024 , 16:26   Re: Polymorph: Mod Manager
Reply With Quote #1107

just figured i'd report this bug i ran into, in case it saves anybody else some troubleshooting time

For some reason if the name class in [mod] contains a space, the plugins for that mod won't load at all

eg:

[mod]
name "Gun Game"
mapsfile maps.ini
mapspermod 1

[cfg]

[plugins]
gungame.amxx

doesn't load gungame.amxx

but:

[mod]
name "GunGame"
mapsfile maps.ini
mapspermod 1

[cfg]

[plugins]
gungame.amxx

works perfectly

Last edited by cs_deathmatch; 09-22-2024 at 16:27. Reason: minor clarification
cs_deathmatch is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-24-2024 , 22:07   Re: Polymorph: Mod Manager
Reply With Quote #1108

Quote:
Originally Posted by cs_deathmatch View Post
just figured i'd report this bug i ran into, in case it saves anybody else some troubleshooting time

For some reason if the name class in [mod] contains a space, the plugins for that mod won't load at all
I'm unable to reproduce this issue. Spaces are perfectly normal and will work if the words are surrounded by quotation marks.

So, I think your issue is probably related to something else. One thing to note is that if you change the name of the mod that is supposed to load when the map starts, the plugin will fail. You simply need to restart or change the map. I actually discovered this (again) when trying to test your theory.

I would guess that this is what happened and it happened at the same time that you changed the name of the mod to remove the space. I would recommend trying it again but remember to restart or change the map a second time after you edited the name of the mod.
__________________
fysiks 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 13:39.


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