Automatic campaign change in Enemy Territory


(nQw.Wussie) #1

Hi !
I’m trying to achieve automatic campaign change through etadmin_mod for my ETPro server, depending on the number of connected players, like Phats wrote in his article: Advanced Campaign Structure - Using etadmin_mod (or maybe try the cached version if the original page is still down).
I followed the tutorial up to the point where I had to edit Etadmin_mod.pl file, and then I wasn’t able to find the “timed functions section” in order to insert the necessary code.
Has any of you guyz managed to get it working? The info in the wiki was not enough for me to figure it out, and I couldn’t find a relevant forum to ask about this, or the author’s email.
Any suggestion would be helpful at this point. Thanks in advance.


(system) #2

the 1000th edit hehe.
Ok, i would just place it at the bottom of the script.
Or search for timebased_functions :S

damn hard without a descent howto


(system) #3

Ok works for me, dont forget to create a pk3 with the rotation.campaign file.

But its a pain in the ass hehe, not used to it anymore :stuck_out_tongue:


(Paul) #4

Can’t u just exec on the last map in the campaign the new campaign cfg?


(system) #5

[quote=nQw.Wussie;198921]Hi !
I’m trying to achieve automatic campaign change through etadmin_mod for my ETPro server, depending on the number of connected players, like Phats wrote in his article: Advanced Campaign Structure - Using etadmin_mod (or maybe try the cached version if the original page is still down).
[/quote]

Don’t forget the dependence of the amount of players whats important in this case afaik.


(nQw.Wussie) #6

Hi again!
@Paul : the idea is to make the server change campaigns automatically, choosing small or big maps depending on the number of players present, in the absence of a top level admin (like moi :smiley: )

@dutchman : I did set up a rotation.campaign inside a pk3 file which almost works :tongue: ( it turns out that finding maps to safely start and end campaigns is no picnic ). Now I added the lines in question at the end of the etadmin_mod.pl script and I’ll have to test the results, which seem to be delayed.
Did you say this modification worked for you? If so, please tell me where exactly did you insert the necessary lines, as between the “…so and so…” line and the “…some latter line…” , because the timebased_functions expression you suggested has several occurrences throughout the file. If the lines should simply be added at the very end of the file, I need to know if it worked for you, so I know to look for an error elsewhere. Thanks.


(system) #7

Well Wussi, i just put them on the end of the file, at the bottom of the perl script.
I could not test it either cause our pro is only for some fights now and then. Just try it, maybe you can use omnibot to test it ? would be an idea…at the end of a campaign just take 80% of the bots away and see what happens but then again, i dont know if it works with etpro but maybe a worth a try :slight_smile:

Good luck!


(nQw.Wussie) #8

Yeah, I tryed that, I inserted those lines at the end of etadmin_mod.pl and tested it for a couple of days, but absolutely nothing happened. Even when 8 players were present on the server, there was no automatic campaign change and no line in etconsole.log to suggest that the script is even working.
I expected to see at least some lines in the log saying that the script is aware of the numeber of players, but there was nothing of the king. So I decided to give up due to the lack of support, since noone seems to have seen it work.
Instead I am giving a try to McSteve’s campswitcher.lua and see if that works. Any further suggestions regarding either one of these approaches would be appreciated. I’ll keep you posted.