Jump to content

Race Settings Bug


xE//XenO

Recommended Posts

 

Spoiler

Inside the res:


race\modes\base.lua:
   87      if stateAllowsPostFinish() then
   88          gotoState('PostFinish')
   89:         local text = g_GameOptions.randommaps and 'Next map starts in:' or 'Vote for next map starts in:'
   90          Countdown.create(5, RaceMode.startNextMapSelect, text, 255, 255, 255, 0.6, 2.5 ):start()
   91  		triggerEvent('onPostFinish', g_Root)
   ..
   98  		Countdown.destroyAll()
   99  		destroyAllMessages()
  100: 		if g_GameOptions.randommaps then
  101  			startRandomMap()
  102  		else

race\race_server.lua:
   92  	g_GameOptions.ghostmode				= getBool('race.ghostmode',false)
   93  	g_GameOptions.ghostalpha			= getBool('race.ghostalpha',false)
   94: 	g_GameOptions.randommaps			= getBool('race.randommaps',false)
   95  	g_GameOptions.statskey				= getString('race.statskey','name')
   96  	g_GameOptions.vehiclecolors			= getString('race.vehiclecolors','file')

4 matches across 2 files

and


----------------------------------------------------------------------------
-- startRandomMap
--
-- Changes the current map to a random race map
----------------------------------------------------------------------------
function startRandomMap()

	-- Handle forced nextmap setting
	if maybeApplyForcedNextMap() then
		return
	end

	-- Get a random map chosen from the 10% of least recently player maps, with enough spawn points for all the players (if required)
	local map = getRandomMapCompatibleWithGamemode( getThisResource(), 10, g_GameOptions.ghostmode and 0 or getTotalPlayerCount() )
	if map then
		g_IgnoreSpawnCountProblems = map	-- Uber hack 4000
		if not exports.mapmanager:changeGamemodeMap ( map, nil, true ) then
			problemChangingMap()
		end
	else
		outputWarning( 'startRandomMap failed' )
	end
end

and maybeApplyForcedNextMap uses g_ForcedNextMap, setted at line 701 of racevoting_server.lua under addCommandHandler( 'nextmap', [...] )

Are you using this cmd? also is your server a default one (no scripts other than defaults, -play +race)?

Edited by LoPollo
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...