Help with ET campaign maps


(Papa Fatman) #1

Hi guys
Sorry if this question has been asked and answered before but I really can’t find a clear answer.
I am a NOOB (obviously). Not only that, a retarded one :slight_smile:
I know you guys like to answer these kinds of questions, I would (If I knew how).
Anyway, I would like to know EXACTLY what to do step-by-step for creating a customized campaign. People say that this is easy, but I don’t. :eek:
What I want is the 6 maps that came with ET plus I want to add like 4 that I D/L from the net.
So, in one campaign I want:

  • oasis
  • battery
  • goldrush
  • radar
  • railgun
  • fueldump
  • my map 1
  • my map 2
  • my map 3
  • my map 4

I can’t thank you enough for your help. And remember, take it easy on me, I’m a virgin to this
stuff :smiley:


(zbzero) #2

Man try get a program in wolfmap.de, the name is Neelix Campaign creator, this tool will do the job for you.
Link: http://www.wolfmap.de/details.php?file_id=459

PS: put the .PK3 in your etmain directory and the .cfg in your MOD folder.
PS2: Not add more then 10 maps in a campaign


(Papa Fatman) #3

Thanks, zbzero
I’ll give it a try.


(YourFather_CZ) #4

If you would ike to do it manually you need basicly follow these five steps:

[ol]
[li]Choose maps for your campaign
[/li][li]Create .campaign file
[/li][li]Insert your custom .campaign file into .pk3 file
[/li][li]Upload your .pk3 file containing .campaign file to your server
[/li][li]Adjust your server .cfg file
[/li][/ol]

ad 1) [ul]
[li]If you want to try and choose from nearly all released maps there is great site for that (see left menu Downloads - Maps). Maps are sorted in alphabetical order and have good description.
[/li][li]If you don’t want to spend much time by choosing maps for your server there is another great site. There is no description but maps can be sorted in total-download order - that’s mean you can easily choose popular maps.
[/li][/ul]

Once you’ve choosen and downloaded desired maps proceed to step 2.

ad 2)
Create new ‘plain text file’ and put following script into that file:

{
        name                   "Put Name of Your Campaign Here"
        shortname              "put_shortname_here"
        description            "Put description here."
        maps                   "put;sorted;list;of;maps;shortnames;here"
        mapTC                  374 374
        type                   "put_name_of_game_type_here"
}

Now adapt each setting to your needs; here are meanings of all key words:

[ul]
[li]name - this is name of your campaign which is shown to players (e.g. during loading or in vote-campaign menu); use name what you want
[/li][li]shortname - this is name which is used by game and it’s also shown to players during voting about new campaign; this should be something simillar to name' of your campaing; do not use space inshortname’
[/li][li]description - this is description of your campaign which is shown to players (e.g. during loading map); good description is ordered list of maps in campaign
[/li][li]maps - this is sorted list of maps’ shortnames' separated by semicolons; it's explained in next paragraph [/li][li][B]mapTC[/B] - this is map offset on map image; default map window is 650x650 pixels; this allows map pins to be more central located in map window; if you are unsure what numbers you should use - use 374 374 [/li][li][B]type[/B] - there is actually only one possible gametype:wolfmp’
[/li][/ul]

Where to get `shortname’ of each map?
One of the places is .arena file which is usually supplied with map in .pk3 file.

In WolfET world, pk3 files are ZIP archives which can be opened by any tools that is capable to work with ZIP archives. Since `Windows XP’, there is embeded tool in Windows for working with ZIP archives. If you are not sure how to use I’d recommend tool named WinRAR (trial version).

Now open (using tool mentioned above) downloaded .pk3 file which is containing map you’d like to use on your campaign. Once you’ve opened this .pk3 file find directory `scripts’ and there located .arena file. Open this .arena file as plain text file.

Here is example of .arena file map called Beach Invasion:

{
	map                             "et_beach"
	longname                     "Beach Invasion"
	type                             "wolfmp wolfsw"
	timelimit                        20
	axisRespawnTim           30
	alliedRespawnTime        20
	briefing                         "Bla bla bla."
	axiswintext                   "The Allies have been striked back!"
	alliedwintext                  "A sweet victory for the Allied Forces."
	mapposition_x             300
	mapposition_y             490
}

The second line (map “et_beach”) is what you’re looking for, to be exact in this case - et_beach' is what you are looking for - this is map'sshortname’.

Now, find shortname' for all of the maps you want to use your campaign and fill fieldmaps’ in your .campaign file.

Now you have got ready your .campaign file to insert into. pk3 and according to your request it may looks like this:

{
        name                   "Ten Maps"
        shortname              "cmpgn_tenmaps"
        description            "Campaign contains these ten:  **1. Siwa Oasis*2. Seawall Battery*3. Gold Rush*4. Würzburg Radar*5. Rail Gun*6. Your Custom Map 1*6. Your Custom Map 2*6. Your Custom Map 3*6. Your Custom Map 4*6. Your Custom Map 5"
        maps                   "oasis;battery;goldrush;radar;railgun;your_map_1;your_map_2;your_map_3;your_map_4;your_map_5;"
        mapTC                  374 374
        type                   "wolfmp"
}

Note: asterisk(s) used in `description’ means new line.
Note 2: it doesn’t matter what name you’ll choose for your .campaign file. tenmaps.campaign could be good name for your campaign file

ad 3)
If you’ve downloaded and installed WinRAR (as mentioned in step 2): create empty folder and name it scripts then move your .campaign into this folder. Now right-click on that (scripts) folder and choose Add to archive...' - it'll popup WinRAR dialog window. Choose 'ZIP' as type of compression then change extension (from .zip to .pk3) in name of archive then hitOK’ button. You’ve just created new .pk3 archive which is ready to use. Good name for your .pk3 file with scripts is something like this: zz_xyz_scripts01.pk3 (xyz should be abbreviation of name your server; 01 is number which should be increased every time you update this .pk3 file - to avoid bad things)

ad 4)
You can put your custom’ non-map’ .pk3 files to etmain' directory (on your server) but better place is mod directory. E.g. if you run ETPro, put your .pk3 containing everything else except maps toetpro’ directory. If you run No Quarter 1.2.5 (and bellow) put it to `noquarter’ directory.

ad 5)

  • [li]If you run ETPro: add to your server .cfg file following line: [/li]set b_campaignfile "scripts/NAME_OF_YOUR_CAMPAIGN_FILE.campaign"


    If you named your campaign file: ten_maps.campaign you should use:
    set b_campaignfile "scripts/ten_maps.campaign"


    [li]Create text file named SHORTNAME_OF_YOUR_CAMPAIGN.cfg which will contain following and add it to your mod directory (e.g. etpro, noquarter, etc.):
    [/li]
    set d1 "campaign SHORTNAME_OF_YOUR_CAMPAIGN ; set nextcampaign vstr d1" set d_initial "set g_gametype 4 ; map FIRST_MAP_IN_YOUR_CAMPAIGN ; set nextcampaign vstr d1" vstr d_initial


    If is name of first map in your campaign Siwa Oasis and shortname of your campaign is cmpgn_tenmaps then use following:

    set d1 "campaign cmpgn_tenmaps ; set nextcampaign vstr d1" set d_initial "set g_gametype 4 ; map oasis ; set nextcampaign vstr d1" vstr d_initial


    [li]Add to your server .cfg following: [/li]exec SHORTNAME_OF_YOUR_CAMPAIGN.cfg


    If is shortname of your campaign is cmpgn_tenmaps then add:

    exec cmpgn_tenmaps.cfg

Note: in one .campaign file you can store plenty of campaigns, each definition of campaign have to be nested in brackets:

{ 
here is definition of campaign 
}

{ 
here is definition another campaign 
}

Note 2: maximum for one campaign is ten maps.


(Papa Fatman) #5

Super informative. Thank you very much!!!:smiley:

*** UPDATE ***

This is EXACTLY the information that I needed. This works great and it’s something I’ve always wanted to do. Thank you very much for posting this and thank you for the time you spent working on it for me. I know noobs are annoying sometimes but we all have to start somewhere. <Your>Father<CZ>, U DA MAN!!!


(zbzero) #6

Just a little update about the post of Your Father.

The file .campaign is a text file renamed to .campaign, you can create a text file then after do like Your-Father wrote and after you finish it rename the extention of the file to .campaign
Same for the .cfg file

For the .pk3, you must create a .zip file them rename it to .pk3