Person8880 / Shine

An administration mod for Natural Selection 2.
53 stars 23 forks source link

infested mod, voting for same map again but no infested bugs #860

Closed ailmanki closed 3 years ago

ailmanki commented 3 years ago

Players vote for infest_veil, server loads ns2_veil with infested mod automatically; players at the end of the map, vote for ns2_veil, server gets confused and bugs it seems. The extend vote, extends ns2_veil, instead of infest_veil and well at times it possible to extend ns2_veil, and vote for ns2_veil twice.

So due to how ns2 vanilla manages the infest_ prefix .. it makes problems. The code is in core/lua/MapCycle.lua *line 108 -> HasPrefix

Person8880 commented 3 years ago

I've updated the plugin to identify that it's loaded infest_<map> if:

This allows for extending the infested map as expected (along with properly loading map-specific settings for it and knowing where it is in the cycle), and will be in the next update.