Could it be that the bots are voting? I am using the mod "new experience"

Hi all ! question … can someone help me with this … ? It turns out that when a game ends in the mapvote something strange happens… it’s like someone constantly pressing the left mouse button and there are no players… only the bots… could it be that the bots are voting? I am using the mod “new experience” …

yes they are, I did alter some code within the voting section… I will look and post it here

ok open up the mapvote.gsx file with notepad++

at line 328 you have the voteThink section.

Alter it to look like:

voteThink()
{
	self endon( "disconnect" );
	level endon( "endVote" );
	guid = self getGuid();
		if ( guid == "0" )
		return;
		else

	self.votePick = -1;

Bots in cod4x use guid of 0.
So it removes the bots from voting

2 Likes

Thanks a lot ! it’s fixed …! it was really annoying… very grateful…
I have one last question … I would like to disable this end screen … (images) … it is possible to do it by modifying the …“ending.gsx” file … a moment ago I tried several things but the server crashes with the changes that I did… I don’t understand that language…

There are other aspects within the ending screen file so I would say it probably not safe to try and disable

1 Like

I had forgotten to upload the images of what I want to remove or at least that the time of the “top players” and the message of the “new experiance” and the creator last 1 second… that is not possible either?

Just took a look and you can remove some code so the Top Players info is removed.

On line 63 of ending.gsx remove all code except for thread credits();

so it looks like:

bestPlayers()
{
	thread credits();
}

Tested and it works without crashing the server

1 Like

You can edit the new experience line if you look for the section titled credits()

edit text to whatever you want

	credits[ 1 ] setText( "your website address here" );

“New Experience by Snoopy”

Who the heck is Snoopy, thats not the person who created New Experience

Leiizko is the main man

1 Like

very grateful… if it works well and you have removed the “top players” … great … everything is perfect …! Thank you very much for your time and effort in helping me !! good luck !!

It’s me… but I didn’t think he was referring to the creator… I thought it looked like the one that configured it or something like that… I didn’t want to steal credits from anyone at all… I just removed it anyway… I replaced it with the discord. .

Ah no problem, should be fine for you with the changes I suggested :+1:

1 Like

It is that on one occasion I downloaded from github a “new experience” configured in another way or another modified version and where it said “Leiizko” in this other one it said “duff” or something like that … then I thought that the name of the version was changed there person who configures or edits it…

Yeah ! kedo perfect for me … your help was all I needed! … =)

something went wrong in the mapvote.gsx … the server crashes after a while … this is what the console throws …

******* script runtime error *******
RandomInt parm must be positive integer.
: (file ‘code/mapvote.gsx’, line 443)
random = randomInt( maps.size );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
undefined is not an array index: (file ‘code/mapvote.gsx’, line 445)
votableMaps[ i ] = maps[ random ];
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
pair ‘undefined’ and ‘0’ has unmatching types ‘undefined’ and ‘int’: (file ‘code/mapvote.gsx’, line 474)
for( i = index; i < array.size; i++ )
*
called from:
(file ‘code/mapvote.gsx’, line 446)
maps = popArray( maps, random );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
cannot cast undefined to bool: (file ‘code/mapvote.gsx’, line 474)
for( i = index; i < array.size; i++ )
*
called from:
(file ‘code/mapvote.gsx’, line 446)
maps = popArray( maps, random );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
pair ‘undefined’ and ‘1’ has unmatching types ‘undefined’ and ‘int’: (file ‘code/mapvote.gsx’, line 476)
array[ i ] = array[ i + 1 ];
*
called from:
(file ‘code/mapvote.gsx’, line 446)
maps = popArray( maps, random );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
undefined is not an array index: (file ‘code/mapvote.gsx’, line 476)
array[ i ] = array[ i + 1 ];
*
called from:
(file ‘code/mapvote.gsx’, line 446)
maps = popArray( maps, random );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


******* script runtime error *******
undefined is not an array index: (file ‘code/mapvote.gsx’, line 476)
array[ i ] = array[ i + 1 ];
*
called from:
(file ‘code/mapvote.gsx’, line 446)
maps = popArray( maps, random );
*
called from:
(file ‘code/mapvote.gsx’, line 96)
votableMaps = getVotableMaps( legalMaps );
*
started from:
(file ‘code/mapvote.gsx’, line 448)
waittillframeend;
*


and this is my mapvote.gsx … I think I did what you told me correctly …

I will check it out later, but as I said the ending file controls other aspects. It must be that file that caused the issue as I don’t use mapvote anymore. When I did it worked perfectly with that line of code I added

Of the error code it seems to revolve around the map choice

1 Like

Thanks for answering…but don’t bother…thank you very much…! I’ll leave it as it is by default. It’s not worth so much effort on your part or mine for that small change. The server is already perfect! Thanks a lot … !

hola, y se soluciono con ese cambio porque mis bots estan votan y se los quiero eliminar o con ese cambio el servidor se sigue colgando?