DoktorSAS / PlutoniumT6Mapvote

Plutonium T6 Zombies and Multiplayer mapvote
GNU General Public License v3.0
14 stars 7 forks source link

Erraneous behaviour attemping to implement sv_gametypes #7

Open hrznz opened 2 months ago

hrznz commented 2 months ago

file

Server is only functional if mv_gametype is set to "", when the 2nd map is cycled and loads, the behaviour is unplayable and the following occurs:

- Scoreboard does not display
- Scoring does not occur properly (or at all)
- Score is set to 9999
- Respawning occurs in SD
- SD ends in one round
- Create a class disabled
- team change disabled

There are more errors that occur but these are the main ones that render the game unplayable

I've tried both the following settings for mv_gametypes

mv_gametypes "dm tdm sd dem dom gun"

OR

mv_gametypes "dm;dm.cfg tdm;tdm.cfg sd;sd.cfg dem;dem.cfg dom;dom.cfg gun;gun.cfg"

It seems that it is having issues loading the .cfg files and loading either a blank default config, or a blank config for each gamemode. Our testing has shown that the game is not detecting the config files or being pointed towards their location in-adequately

The mod functions fine if sv_gametypes is set to ""

Any help would be greatly appreciated, if you need more information please let me know

hrznz commented 2 months ago

I should also add, if mv_gametypes is left to blank ("") the only game modes in rotation are DM TDM and SD

When I make changes to dm.cfg and mv_gametypes is set to "", any changes like scorelimit 50 in dm, that change takes effect and the score limit is changed to 50

hrznz commented 2 months ago

@DoktorSAS

DoktorSAS commented 2 months ago

Sorry i got busy and forgot to check the issue. @hrznz

What could be the issue; The file is not executing or not placed in the correct folder. Becase BO2 is quite different from other clents it could require to execute files to setup gamemode. In the first case of mv_gametypes "dm tdm sd dem dom gun" it will set just the g_gametype value in the seccond case it should set the gametype and execute the file. In this cases check if the file get executed by doing the following.

  1. Check if your file at the line 796 inside the MapvoteSetRotation function you see the following array = strTok(gametype, ";"); If you see anything different just replace the line or download the last version of the code from the git and not from the release page.
    1. Check if localappdata you placed the gamesetting folder provided by plutonium (https://github.com/xerxes-at/T6ServerConfigs/archive/master.zip) and palce it on localappdata content inside the %localappdata%/Plutonium

Let me know after testing and if you still need help feel free to dm me on twitter (X) or discord (you can also tag me on plutonium discord on the bo2 modding chat).

hrznz commented 2 months ago

(https://github.com/xerxes-at/T6ServerConfigs/archive/master.zip)

This issue seems to be similar to one that has been raised before on Plutonium Forums https://forum.plutonium.pw/topic/2582/release-black-ops-ii-mapvote-for-zombies-and-multiplayer/146?_=1719318640998

The code is identical however latest release was downloaded and used just to be sure and the issue still occurs

image

I could be wrong but it appears (https://plutonium.pw/docs/server/t6/setting-up-a-server/) Step 1.2 "Run plutonium" grabs these files as they are already there

image

Also might be related, might not. If "set mv_lui = 1" {

Upon game ending, map voting is initiated however there are no vote options displayed just an intermission screen (As I said this might be related however the voting feature works fine with this set to 0)

Also no dramas, life can be busy some times!

@DoktorSAS If it is easier to DM you on discord I wouldn't mind either way

DoktorSAS commented 2 months ago

Great. Feel free to dm me on discord my username is always doktorsas mv_lui is for the lui design so if you don't setup the mod for client download it will not load anything because it will try to open a non existing menu.

hrznz commented 2 months ago

Hey @DoktorSAS

I managed to resolve the issue but only with a workaround

Forgive if file names or variable names aren't referred to properly as I'm not on my pc

Updated dvar_mv_gametypesNotInitlialzed in mapvote.gsc: "tdm;.cf dm;dm.cfg sd;sd.cfg" -> "tdm;.cf dm;dm.cfg sd;sd.cfg gun;gun.cfg dom;dom.cfg dem;dem.cfg"

Obviously this is not as intended but this works and the configs and any changes I make to them are loaded correctly

So maybe there's an issue with the mv_gametypes reading the configuration files

DoktorSAS commented 2 months ago

I'm glad that it got solved by adding more options. Its weird that happen. I'm still looking into the source of the issue but i can't reproduce the problem.

Let me know if you find any other issues. I'll keep this issue open so other can submit info if they run into it.