Author Topic: Next Map Vote List  (Read 2247 times)

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Next Map Vote List
« on: August 12, 2009, 09:05:15 am »
Hi, IMO the next map vote list must to be with a minimum of 5/6 map + 1 for replay the last map, now the minimum is 10, I think is too much. :)

Offline Gixxer

  • Rank: Private
  • *
  • Posts: 1340
    • http://www.extremegamerz.net
Re: Next Map Vote List
« Reply #1 on: August 12, 2009, 09:41:07 pm »
have not tested this, but you can try it and see what happens, open ex_varcache.gsc in the extreme folder and find this

level.ex_mapvotemax = [[level.ex_drm]]("ex_endgame_vote_max", 160, 10, 160, "int");

change the 10 to 6, like i said i have not tested it so if it doesn't work change it back to 10.

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Re: Next Map Vote List
« Reply #2 on: August 14, 2009, 03:14:22 am »
Great it's ok Thaks!

Is possible also for a better chat, move the map vote list a little bit to the right?

Offline Gixxer

  • Rank: Private
  • *
  • Posts: 1340
    • http://www.extremegamerz.net
Re: Next Map Vote List
« Reply #3 on: August 14, 2009, 07:32:15 pm »
open _ex_mapvote.gsc in the extreme folder and find the hud display stuff and tinker with it until you get it to your liking

self.mv_votes = newClientHudElem(self);
      self.mv_votes.archived = false;
      self.mv_votes.horzAlign = "subleft";
      self.mv_votes.vertAlign = "subtop";
      self.mv_votes.alignX = "center";
      self.mv_votes.alignY = "middle";
      self.mv_votes.x = level.mv_originx2 - 20; //430;
      self.mv_votes.y = 105 + i * 16;
      self.mv_votes.sort = 104;
      self.mv_votes setValue(level.mv_items["votes"]);

the align stuff, there are several sections of it.

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Next Map Vote List
« Reply #4 on: August 14, 2009, 08:17:23 pm »
It's easier than you might think

extreme\_ex_mapvote.gsc

Locate the RunMapVote() procedure.


Look for this line:

level.mv_originx1 = int((640 - level.mv_width) / 2);


Make it look like this:

level.mv_originx1 = int((640 - level.mv_width) / 2) + 150;

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Re: Next Map Vote List
« Reply #5 on: August 15, 2009, 05:02:25 am »
Thanks, great....can also move to the right "Press fire to vote or melee to flip page" ?

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Next Map Vote List
« Reply #6 on: August 15, 2009, 11:30:59 am »
Can you try the attached file please?

In this version you can adjust the horizontal position by changing this line in the RunMapVote() procedure:

level.mv_movex = 150;

The attached file already has it set to 150.

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Re: Next Map Vote List
« Reply #7 on: August 15, 2009, 02:42:11 pm »
With your file there is an errror

******* script compile error *******
uninitialised variable 'evel'
************************************
********************
ERROR: script compile error
(see console for details)
********************
----- Server Shutdown -----

In my file I maked this:

level.mv_originx1 = int((640 - level.mv_width) / 2) + 140;

but  "Press fire to vote or melee to flip page" is in the old position, I need to move also it + 140.

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Next Map Vote List
« Reply #8 on: August 15, 2009, 03:53:34 pm »
The file I attached earlier came straight from my test server. No errors whatsoever. Server fires up without errors, and no script errors in the log after doing multiple map votes.
Remember you DO NOT have to edit anything in that file. Copy it to your server, and rotate to the next map.

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Re: Next Map Vote List
« Reply #9 on: August 15, 2009, 05:35:27 pm »
Ok now it's go, another question in your file I don't find the line to increase or reduce the number of map in the list
evel.ex_mapvotemax = [[level.ex_drm]]("ex_endgame_vote_max", 160, 7, 160, "int");
isn't there?

Offline PatmanSan

  • Administrator
  • Rank: Private
  • *****
  • Posts: 2527
Re: Next Map Vote List
« Reply #10 on: August 15, 2009, 06:07:15 pm »
Gixxer posted about that above:

Quote from: "Gixxer";p="29551"
have not tested this, but you can try it and see what happens, open ex_varcache.gsc in the extreme folder and find this

level.ex_mapvotemax = [[level.ex_drm]]("ex_endgame_vote_max", 160, 10, 160, "int");

change the 10 to 6, like i said i have not tested it so if it doesn't work change it back to 10.

It is in extreme\_ex_varcache.gsc
Do NOT increase the number of maps! 160 is also linked to the number of maps in the in-game voting menu. To reduce the minimum, change the 10.

Offline alyosha

  • Rank: Private
  • *
  • Posts: 203
Re: Next Map Vote List
« Reply #11 on: August 16, 2009, 05:47:43 am »
Thank you very much!