PDA

View Full Version : Better way to change maps?


=3VIL=Kampfer
09-20-2005, 10:35 AM
Is there a better way to change maps to a specific map?

Currently I'm doing this:

run rcon exec mapList.list which will return something like:

0: "Dalian_Plant" gpm_cq 32
1: "Daqing_Oilfields" gpm_cq 32
3: "Dragon_Valley" gpm_cq 32

If the server is on Dalian_Plant, and you need to switch to Dragon_Valley, you use the following commands:

rcon exec admin.nextLevel 3
rcon exec admin.runNextLevel

And the server will switch to Dragon Valley
The only flaw I see with this method is that the map must be in the rotation to be switched to.

The other method I've used, which allows switching to any map/size is this:
rcon exec mapList.clear
rcon exec maplist.append Dragon_Valley gpm_cq 32
rcon exec admin.runNextLevel
rcon exec maplist.load
Does anyone know a better method of switching maps?

MajorWoody
09-20-2005, 11:58 PM
Use BF2CC :)

The developer keeps hinting to an ingame menu for it... Not the answer you wanted, i know.

=3VIL=Kampfer
09-21-2005, 09:15 AM
I'm developing my own server monitor and was looking for the best way to implement a map change feature. I was hoping that maybe there was a more direct way that I overlooked. In one of the lists that RD posted, there is a command "admin.changeMap" but I get the "unknown object or method" when trying to use it.

BF2CC is great, but I wanted a few of the features that I put in MoH^Shield (http://3vilclan.com/mohshield) and also didn't want to require any mods installed.

SNYPE
09-21-2005, 12:02 PM
I found in the Demo a folder buried in the Mod folder called AliasedCommands.con that contains a list of commands and their aliases. I havent had a chance to check and see if anything was changed for the Full version but here are a few aliases I had noticed:

alias nextmap admin.runnextlevel
alias nm admin.runnextlevel

alias load admin.changemap
alias map admin.changemap
alias loadmap admin.changemap
alias setnextmap admin.setNextLevel

The admin.changemap command is on this list, maybe they changed it for Full.

=3VIL=Kampfer
09-21-2005, 02:03 PM
Great info Snype, but none of them seem to work.

I tried all the aliases and get "Wrong syntax!" with each one. This is also the same reply if you enter an incorrect command (try "asdf", get the same result).

When using admin.changeMap I get "Unknown object or method" which is saying it recognizes the "admin" object, but there is no method called "changeMap" defined for the "admin" object.

The first method I posted (setNextLevel,runNextLevel) works very well. But like I said, the only draw back is that you can only change to maps in the rotation.

Thx for the info guys. :)

P.S. I'm testing with full version, 1.02 patch.