#1 2017-03-12 14:44:10

kimse
Player
Denmark
Reputation: 0
Registered: 2017-03-12
Posts: 1
Linux Chrome 57.0

Getting next map from server

Would it be possible to probe the BFSM daemon or BF1942 dedicated server daemon, or by any other means get the value of the next map ?

The purpose for this is to display it on e.g. a website.

I'm an experienced Linux user,  but not much with BF1942 dedicated server daemon / BFSM daemon.

So any code examples would be very helpful.

Thank you in advance.

Offline

    Positive reputation 0   Negative reputation 0

#2 2017-03-13 00:45:29

tuia
BFSoldier
Portugal
Reputation: +1152
Location: Lisbon
Registered: 2012-02-20
Posts: 6,412
Website
Linux Firefox 45.0

Re: Getting next map from server

The only way I can think of, right now, is to check maplist.con file for game.setCurrentLevel line. That is actually how BFSM gets the next map to send as a server message after !nextmap is typed in server chat.

A BF1942 server reply to a GameSpy  query on default port 23000 only shows current map among other things (player scores, kills, deaths, ping, etc.), but BF1942 server could be modified to add the next map field also.

Offline

    Positive reputation 1   Negative reputation 0

Board footer