IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to remove stock maps and stock campaigns from the "Vote"-menu
Ragnar_40k
post Mar 15 2008, 02:42 PM
Post #1


Group Icon General of the Army

Group: RtCW/ET-Division

Joined: 3-December 04
From: Berlin, Germany
Member No.: 1791



Download: Attached File  remove_stock_content.zip ( 432.83K ) Number of downloads: 205


  1. Preamble
    Sometimes its desired to remove maps or campaigns so players can't vote for it. While this is easy for custom content - simply remove the respective files - its more difficult to remove "stock" content, like the default maps or the default campaigns. The pk3-files included in this zip-file give you the choice to disable it. These pk3-files should work with vanilla ET and with all custom mods.

  2. Removing default campaigns
    1. Installation
      Unzip the file "remove_stock_campaigns.pk3" into your mod folder (or etmain folder when you don't run a mod) and restart the server.

    2. Uninstall
      Delete the file "remove_stock_campaigns.pk3"and restart the server.

    3. What is does
      The file "remove_stock_campaigns.pk3" removes the "Central Europe" and the "North Africa" campaign from the vote menu, so players can't vote for it.

      Additionally console votes like "callvote campaign cmpgn_northafrica" don't work anymore.

    4. How it works
      The removal is simply accomplished by replacing the *.campaign files from pak0.pk3 with empty files using a custom pk3-file.

  3. Removing default maps
    1. Installation
      Unzip the respective remove_xxx.pk3 file(s) into your mod folder (or etmain folder when you don't run a mod) and restart the server.

      To disable
      • Seawall Battery use "remove_battery.pk3"
      • Gold Rush use "remove_goldrush.pk3"
      • Siwa Oasis use "emove_oasis.pk3"
      • Wuerzburg Radar use "remove_radar.pk3"
      • Rail Gun use "remove_railgun.pk3"
      • Fuel Dump use "remove_fueldump.pk3"

    2. Uninstall
      Delete the respective file(s) and restart the server.

    3. What is does
      It removes the respective map file from the "Vote"-menu, so players can't vote for it. Though its still possible for players to use "callvote map" console command. To counter this the pk3-files also contain altered map scripts, so as soon as warmup is over the map is finished (with the attacker as winner!). The script can't prevent the server from entering warmup, but during warmup messages are shown which notify the players about the deactivation of this specific map with a request to use the "Vote"-menu to vote for another map.

    4. How it works
      The respective *.arena-file from pak0.pk3 is replaced by an empty file using a custom pk3-file. This makes the map disappear from the "Vote"-menu.

      Players can still use console commands like "callvote map battery" to change the map (the .bsp file is still there!). To prevent this, the pk3-file also contains a altered mapscript, so the map can't be played. Only the warmup is running, showing several messages with the request to use the "Vote"-menu to vote for another map. As soon as warmup ends, the attacking team is set as winner and a "wm_endround" command is issued.

  4. FAQ/Known issues
    Q1: Players can still use "callvote map" commands to change the map. Any way to prevent this?
    A1: There is no way to prevent this w/o creating a mod.

    Q2: After a "callvote map" command succeds the map loads and warmup is entered. Any way to prevent this?
    A2: There is no way to prevent this w/o creating a mod, but the pk3 files also contain altered map scripts, so the map ends as soon as warmup is over.

    Q3: The pk3-files don't work, the maps/campaigns are still shown in the "Vote"-menu. What is wrong?
    A3: Since custom pk3-files are used to replace stock content, other pk3-files can replace this content too. There are 2 ways to fix this:
    1. Remove the interfering pk3-file(s).
    2. Rename the remove_xxx.pk3 files so they come after the interfering pk3-file(s) in alphabetical order.

    Q4: After a successful map vote the map playes normally instead to end right after warmup, what is wrong?
    A4: Either other pk3-files interfere with the remove_xxx.pk3 files (i.e. they contain altered map scripts, see A3 for a fix) or you running a mod with custom mapscripts enabled for this map - remove (or rename) the custom mapscript file in your mapscript directory.

  5. Screenshots
    • All stock maps are removed from the "Vote"-menu:
      Attached File  stock_maps_gone.jpg ( 105.26K ) Number of downloads: 243
    • Stock campaigns removed from the "Vote"-menu:
      Attached File  stock_campaigns_gone.jpg ( 103.8K ) Number of downloads: 198
    • Console votes for stock maps still work:
      Attached File  console_vote_succeeds.jpg ( 138.05K ) Number of downloads: 191
    • Altered map scripts prevent playing the map:
      Attached File  map_disabled.jpg ( 144.55K ) Number of downloads: 191

  6. Contact
    For comments, bug reports etc. please visit: http://forum.splatterladder.com/index.php?showtopic=8202 (i.e. this forum thread).


--------------------


Silver horses ran down moonbeams in your dark eyes.
Go to the top of the page
 
+Quote Post
[PP]Mojo
post Oct 15 2008, 02:00 AM
Post #2


Private

Group: Members

Joined: 15-October 08
From: Vienna, VA USA
Member No.: 77624



Brilliant! Works like a charm on my ETPub 0.8.1 server. Thanks for the great tool.


--------------------
Pinkys Playhouse - http://www.unrealpinky.com - Server located in Chicago, USA
Go to the top of the page
 
+Quote Post
Dookie7
post Aug 27 2010, 04:01 PM
Post #3


Group Icon Master Sergeant

Group: Members

Joined: 31-October 07
From: Croatia
Member No.: 61826



ty


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2024 - 12:05 AM