Author Topic: MapVote - Maplist Expansion  (Read 3188 times)

0 Members and 1 Guest are viewing this topic.

Offline Nolava

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
MapVote - Maplist Expansion
« on: March 21, 2017, 09:57:53 AM »
This sub-forum is only for help or discussion regarding projects created by Team Ulysses. If you are requesting help, please search the forums FIRST to make sure your question has not already been answered. If you still need help, fill in the following information.

My ULib/ULX versions (run "ulx version" in console):
ULib v2.62
ULX v3.72

Game mode(s) I am having this problem on: Terrortown

Lua errors shown in console, if any: -


Hello there!

I want to expand the List of the Mapvote to see more Maps. How can i do it?
Would be great if someone could help me :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: MapVote - Maplist Expansion
« Reply #1 on: March 21, 2017, 12:07:28 PM »
You want to show more than 10 maps? We currently use Garry's voting framework (http://wiki.garrysmod.com/page/Player/AddPlayerOption), which only supports ten options. To change this would require quite a bit of extra code for the additional keys, different UI, or to implement vote paging.
Experiencing God's grace one day at a time.

Offline Nolava

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: MapVote - Maplist Expansion
« Reply #2 on: March 21, 2017, 05:19:14 PM »
Uhm i have "Fretta-like MapVote". I know it is possible to show more maps but i dont know how

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: MapVote - Maplist Expansion
« Reply #3 on: March 21, 2017, 05:38:33 PM »
ULX does not use Fretta
Experiencing God's grace one day at a time.

Offline Nolava

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
Re: MapVote - Maplist Expansion
« Reply #4 on: March 22, 2017, 07:25:07 AM »
So ULX got its own MapVote? But i got ULX an Fretta activated

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: MapVote - Maplist Expansion
« Reply #5 on: March 22, 2017, 11:24:57 AM »
ULX uses a the built in voting system that garrysmod has. Having more than 10 vote options is not possible with this system unless we decide to rewrite it, which is unlikely at this moment due to the amount of work it would require.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: MapVote - Maplist Expansion
« Reply #6 on: March 23, 2017, 11:19:32 AM »
I think there's a bit of a misunderstanding here.

Nolava, Idon't think, is referring to ULX's built-in mapvote system. He's referring to the addon "Freeta-like MapVote," which has its own method for displaying a vote. If so, the configuration file (in /data/mapvote/config.txt) has a MapLimit key, which can be increased to suit your needs. The system will add a scrollbar if necessary.
bw81@ulysses-forums ~ % whoami
Homepage