Page 1 of 3 1 2 3 LastLast
Results 1 to 20 of 47

Thread: Map rotation (12 maps) Server config?

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Map rotation (12 maps) Server config?

    Hi,

    maybe this question has already been asked and answered. I did not find the answer. I want to configure my game server (unranked) so that all 12 maps can be played without break in a row, A great map rotation of all official maps. The XP will remain. Is that possible? I found this guide, but it does not work for me:
    http://teamipx.net/gaming/games/etqw...-install-guide

  2. #2
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Attached to this reply you'll find the campaign definition that Villa uses for it's XP save server. I had to rename it so I could attach it to this post. Save the file locally and change the extension to pk4 if you want to use it.

    If you open it with Winrar, you'll see a file and a sub directory that contains another directory with the file "untilQWcrashes.def" in it. This file contains the actual list of the maps that are in the campaign and if you open it, you'll see that it's basically a trick, it's simply an almost endless repetition of the 12 maps that come with the game.

    -Villa-untilQWcrashes.zip

    You can use this as a basis for what you want and you can find more info about creating custom campaigns in this thread.

    This should work, but it's a bit of a hassle and you can probably do it in a simpler way. There should be a file called server.cfg in the \base directory of your server. You can set the game type of the server there by adding or editing si_rules. The default value is "sdGameRulesCampaign" but you can change that to "sdGameRulesObjective".

    Once you've done that, you could add this as the map rotation:

    set m1 "set g_nextMap $m2; spawnServer maps/refinery"
    set m2 "set g_nextMap $m3; spawnServer maps/slipgate"
    set m3 "set g_nextMap $m4; spawnServer maps/island"
    set m4 "set g_nextMap $m5; spawnServer maps/valley"
    set m5....
    set m12 "set g_nextMap $m1; spawnServer maps/volcano

    vstr m1

    (I didn't feel like typing it all out, I hope you get the idea.)

    This is UNTESTED but I'm fairly positive it should work. Might need some tweaking though, if you have any questions or need further help, please ask.

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  3. #3
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    It suddenly dawned on me that the second alternative I suggested isn't gonna achieve what you want. If you want to save XP over 12 maps in a row, setting the server to objective mode isn't going to work because you get an XP reset after each map. Sorry.

    My guess is that you'll have to create a custom campaign for what you want. The first part of my initial reply should help you getting started.

    Dr, Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  4. #4
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Thanx,
    I have made ​​many experiments, but never with the requested result. As far as I add only one map more here,

    set m0 "set g_nextMap $m1;spawnServer campaign_africa"
    set m1 "set g_nextMap $m2;spawnServer campaign_northamerica"
    set m2 "set g_nextMap $m3;spawnServer campaign_northeurope"
    set m3 "set g_nextMap $m0;spawnServer campaign_pacific"
    vstr m0

    the server will not start anymore.
    Hm, maybe im to stupid :-).

  5. #5
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    When i set sdGameRulesObjective the maps are loaded one after the other with this:
    set m1 "set g_nextMap $m2; spawnServer area22"
    set m2 "set g_nextMap $m3; spawnServer ark"
    set m3 "set g_nextMap $m4; spawnServer canyon"
    set m4 "set g_nextMap $m5; spawnServer island"
    set m5 "set g_nextMap $m6; spawnServer outskirts"
    set m6 "set g_nextMap $m8; spawnServer quarry"
    set m7 "set g_nextMap $m5; spawnServer refinery"
    set m8 "set g_nextMap $m5; spawnServer salvage"
    set m9 "set g_nextMap $m5; spawnServer sewer"
    set m10 "set g_nextMap $m5; spawnServer valley"
    set m11 "set g_nextMap $m5; spawnServer slipgate"
    set m12 "set g_nextMap $m1; spawnServer volcano"
    vstr m1
    but the xp will not be saved.

    if i set sdGameRulesCampaign then the server will not boot:-((
    Last edited by GUFX; 16th Oct 2015 at 16:11.

  6. #6
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    As I said in the "Does anyone still play ETQW?" thread, please have a look at this thread, the answer to your question is in it, but it will require some effort on your part.

    You need to create a new campaign and add all 12 stock maps to that campaign. You can find an example of new campaigns I created based on stock maps in that thread and that should help you getting started.

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  7. #7
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Thanks for your help. I play ETQW since 2007. Now I understand why I have never seen on any server an alternative campaign :-).
    What is the path to - $ root of custom campaign from $? On my server, I only see this strukture.
    /
    /etqw-150
    /etqw-150/base
    /etqw-150/pb
    /etqw-150/sdnet
    /etqw-150/base/bots
    /etqw-150/base/logs and inside /etqw-150/pb 4 directories

    Other directories i cant see.

  8. #8
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Quote Originally Posted by GUFX View Post
    Thanks for your help. I play ETQW since 2007. Now I understand why I have never seen on any server an alternative campaign :-).
    What is the path to - $ root of custom campaign from $? On my server, I only see this strukture.
    /
    /etqw-150
    /etqw-150/base
    /etqw-150/pb
    /etqw-150/sdnet
    /etqw-150/base/bots
    /etqw-150/base/logs and inside /etqw-150/pb 4 directories

    Other directories i cant see.
    Your new campaign is a file on your server that needs to be structured in a specific way or it won't work. Susefreak is talking about the structure of the file itself when he's talking about $ root of custom campaign$.

    I used a campaign created by Donnovan (bless him!) and edited that to suit my needs and you can download my custom campaign here.

    If you open it with Winrar or Winzip, you'll see what I mean by "structure of the file". The root directory contains one file (addon.conf) and 2 subdirectories (def and script). You will need to edit "addon.conf" and "remix.def" to suit your needs.

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  9. #9
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    I begin to understand :-). Its very complicated.

    Can I add new maps to this part in this way? i want to add all 12 maps to one campaign.

    campaignDef remix_africa {
    map "maps/refinery"
    map "maps/slipgate"
    map "maps/island"
    map "maps/new map" <-----------------


    data {
    "mtr_backdrop" "levelshots/campaigns/africa"
    }
    }
    Last edited by GUFX; 17th Oct 2015 at 13:20.

  10. #10
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Exactly! (and yes, it's complicated!)

    And "remix_africa" is just a name, you can change it to BerlinerBallerCampaign or whatever you like, but make sure you change the name in addon.conf as well!

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  11. #11
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    OK, Thank you!!

    After i have add this, the server is runnig, but i cant join.

    This error is displayed; Local data is not in sync with the server data.

    I have stored the structure of the directories and files here: /etqw-150/base/

    Maybe the error is in the file script/map.script in this line:
    //#include "script/maps/andes.script"
    If I remove the comment characters //# then refers the include command to a nonexistent resource

    Something is wrong :-(.
    Last edited by GUFX; 17th Oct 2015 at 16:28.

  12. #12
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    The lines with "//" in front of it are ignored by the game, it's called "commenting out" and iD games traditionally use "//" for that.

    You should leave those signs in the script file and comment out everything else you don't need in the other files as well. Or remove those lines entirely, but I prefer to leave them in and comment them out instead, which makes it easier to track back if something isn't working as expected.

    As I said in the other thread, I used a file created by Donnovan as a basis and his campaign contained a map called Andes which uses scripts. Instead of deleting the script entirely, I chose to keep it in and comment everything out, and that way I still have an example of how things should be formatted when I want to create a campaign that uses maps that require scripts.

    It's simply my way of doing things, deleting everything you don't need is perfectly okay as well.

    Every campaign that's in the addon.conf file that you don't use, should be commented out or removed entirely and the same is true for the campaigns that are in the remix.def file which you have no use for. You can see how you do that, when you have a look at the file that I posted, the northeurope campaign is included, but commented out completely in addon.conf and remix.def because I don't use it.

    You will also need to change some lines in the server.cfg you use. Here's what I used to run my custom made campaigns:

    Code:
    //This script cycles through the campaigns with the remixed stock maps
    
    set m1 "set g_nextMap $m2; spawnServer remix_africa"
    set m2 "set g_nextMap $m3; spawnServer remix_northamerica"
    set m3 "set g_nextMap $m1; spawnServer remix_pacific"
    
    vstr m1
    Yours should probably look like this (untested!):

    Code:
    set m1 "set g_nextMap $m1; spawnServer remix_africa"
    
    vstr m1
    Make sure you get the campaign names right of you changed those!

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  13. #13
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    I have now tested many variations on many paths, but the server will start at no.

    The scripts directory I do not need, because the function is commented out,or?

    Here is my file /etqw-150/base/def/campaigns/drfunkenstein_a1.def (or must i rename this file to the name of camaign?)
    campaignDef Last_STROGG_offensive {
    map "maps/valley"
    map "maps/slipgate"
    map "maps/island"
    map "maps/area22"
    map "maps/ark"
    map "maps/canyon"
    map "maps/outskirts"
    map "maps/quarry"
    map "maps/salvage"
    map "maps/sewer"
    map "maps/refinery"
    map "maps/volcano"

    data {
    "mtr_backdrop" "levelshots/campaigns/africa"
    }
    }
    My file /etqw-150/base/addon.conf
    addonDef {
    }

    campaignMetaData Last_STROGG_offensive {
    "pretty_name" "Last_STROGG_offensive"
    "server_shot_thumb" "levelshots/campaigns/thumbs/africa.tga"
    "show_in_browser" "1"
    }
    I test this:
    set m1 "set g_nextMap $m1; spawnServer Last_STROGG_offensive"

    vstr m1
    in server.cfg

    but actually my working server.cfg looks like this:

    set m0 "set g_nextMap $m1;spawnServer campaign_africa"
    set m1 "set g_nextMap $m2;spawnServer campaign_northamerica"
    set m2 "set g_nextMap $m3;spawnServer campaign_northeurope"
    set m3 "set g_nextMap $m0;spawnServer campaign_pacific"
    vstr m0
    Im at the end today :-//

  14. #14
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    There are 2 things I would like to suggest:
    - use a local dedicated server for testing purposes (it's installed by default, look for qwded.exe);
    - try to get my campaign file working first on that local server and when you are sure it works, start editing the files to your own needs and do this step by step.

    I can assure you I had some splitting headaches myself when I tried to figure this all out .

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  15. #15
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    I'm getting a cramp :-)))))))). It also does not work locally. Currently my ETQW server is hosted.I do not have enough rights on this hostet server. I can for example here no set/ change chmod for directories. It could be also a rights issue. I can not see the server logs (especially the syslogs).
    I have no idea where is the fault. Maybe it's just as I said above. I'm too stupid :_)

    Thank you for your support!

  16. #16
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    I'll see if I can come up with something that works for me locally and post it here.

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  17. #17
    Junior Member
    Join Date
    Jul 2013
    Location
    Germany/ Berlin
    Posts
    27
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    That would be great.

    Thank you!

  18. #18

    Re: Map rotation (12 maps) Server config?

    Doesn't the addon.conf need all the vanilla map checksums in the addonDef section? Or is that only true with custom maps?

    ~Assassin4004

  19. #19
    Senior Member DrFunkenstein's Avatar
    Join Date
    Jan 2010
    Location
    Somewhere over the Rainbow!
    Posts
    412
    Most Recent Awards:

    Re: Map rotation (12 maps) Server config?

    Quote Originally Posted by Assassin4004 View Post
    Doesn't the addon.conf need all the vanilla map checksums in the addonDef section? Or is that only true with custom maps?

    ~Assassin4004
    I'm guessing the answer to your question is a "no". There's no mentioning of the stock maps when Susefreak describes what's needed in addon.conf and they're aren't included in the list with hashes he links to in his post.

    But like I said: I'm guessing.

    Dr. Funkenstein
    Code:
    fajer, 120m E of Treatment Plant: funk hacks
    ((bh))*MANGINA* Aristotle: ....
    fajer, 120m E of Treatment Plant: i've seen him be a med then a eng
    fajer, 120m E of Treatment Plant: to disarm
    ((bh))*MANGINA* Aristotle, Treatment Plant: thats not a hack
    fajer, GDF Base: i watched funk heal himself then disarm
    fajer, GDF Base: even seen him rocket launch me, then disarm

  20. #20

    Re: Map rotation (12 maps) Server config?

    Yes, you're right. I just made a pk4 for this custom campaign. Checksum values for vanilla maps are not needed and neither are:

    #include "script/maps/vanilla_mapname.script"

    in map.script.

    I'll post the campaign pk4 I made after testing it out on my own custom server, if you don't mind. I know you mentioned about posting something though...

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •