Post: Bo2 Gsc Mod Menu Cant See Players In Player Menu
08-16-2017, 12:36 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hello I Am Trying to Fix My Mod Menu I Cant See Players In My Menu When I Go To players Menu If Anyone Know How To Fix This It Be Great Help My Code Below:
    
updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give No Clip", ::playerNoclip);
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}
add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}
updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 50 + (self.menu.curs[self.menu.currentmenu] * 16.80);
}
08-16-2017, 03:38 AM #2
anthonything
Space Ninja
Originally posted by ShadeyTV View Post
Hello I Am Trying to Fix My Mod Menu I Cant See Players In My Menu When I Go To players Menu If Anyone Know How To Fix This It Be Great Help My Code Below:
    
updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give No Clip", ::playerNoclip);
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}
add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}
updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 50 + (self.menu.curs[self.menu.currentmenu] * 16.80);
}


are you unable to see any players or only some players?
09-07-2017, 02:37 AM #3
I Am Trying to fix it like it wont show anyone up
09-10-2017, 12:53 AM #4
AerialOnDex
Bounty hunter
Originally posted by ShadeyTV View Post
I Am Trying to fix it like it wont show anyone up


If there is over 12 people in the game it won't show I'm pretty sure it may be 10 idk
10-03-2017, 01:46 AM #5
DoraTheKiller97
Treasure hunter
Try changing your verificationToColor code. Something like this.

    
verificationToColor(status)
{
if (status == "Host")
return "^3";
if (status == "Co-Host")
return "^5";
if (status == "Admin")
return "^1";
if (status == "VIP")
return "^4";
if (status == "Verified")
return "^2";
else
return "";
}


This should fix it because your problem is calling too much text on the screen. This should fix it to a point.

The following user thanked DoraTheKiller97 for this useful post:

DF_AUS

The following user groaned DoraTheKiller97 for this awful post:

anthonything
10-03-2017, 01:57 AM #6
Patrick
League Champion
Originally posted by DoraTheKiller97 View Post
Try changing your verificationToColor code. Something like this.

    
verificationToColor(status)
{
if (status == "Host")
return "^3";
if (status == "Co-Host")
return "^5";
if (status == "Admin")
return "^1";
if (status == "VIP")
return "^4";
if (status == "Verified")
return "^2";
else
return "";
}


This should fix it because your problem is calling too much text on the screen. This should fix it to a point.


Or you fix it properly, fixes include:
Draw separate string elements for the clients menu
Create a second page for x amount of players
Create a player menu bases on the clients team
Create a simple \n infinite scrolling
Create a function that reduces the name depending on the final string size

The following user groaned Patrick for this awful post:

DF_AUS
10-03-2017, 02:25 AM #7
DoraTheKiller97
Treasure hunter
Originally posted by Patrick View Post
Or you fix it properly, fixes include:
Draw separate string elements for the clients menu
Create a second page for x amount of players
Create a player menu bases on the clients team
Create a simple \n infinite scrolling
Create a function that reduces the name depending on the final string size

I swear you look for when i respond and try to help someone and try to one up me everytime. Pretentious.

Yes this works too and would be better, however maybe the OP doesn't wanna use an infinite scrolling base.
So yeah. What i said is basically all the OP can do for that base. He wouldn't be asking a question like this if he could do all that to begin with..

The following user thanked DoraTheKiller97 for this useful post:

DF_AUS

The following 2 users groaned at DoraTheKiller97 for this awful post:

anthonything, Patrick
10-03-2017, 01:17 PM #8
Patrick
League Champion
Originally posted by DoraTheKiller97 View Post
I swear you look for when i respond and try to help someone and try to one up me everytime. Pretentious.

Yes this works too and would be better, however maybe the OP doesn't wanna use an infinite scrolling base.
So yeah. What i said is basically all the OP can do for that base. He wouldn't be asking a question like this if he could do all that to begin with..


I have gave multiple solutions to this fix, not just add infinite scrolling, but hey ho! i don't expect much from you.
But your statement saying i look for when you respond to stuff? no i don't, i seen the thread got bumped so i replies to it plus its you following me around groaning all my posts with the other goons.

The following user groaned Patrick for this awful post:

DF_AUS

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo