xE//XenO Posted November 16, 2016 Share Posted November 16, 2016 When i try to change my race settings for example from true to false i can do it but nothing changes i tried to restart script and reupload it but still and the settings get saved what i did put but nothing happends any help :x? Link to comment
LoPollo Posted November 16, 2016 Share Posted November 16, 2016 More info pls. What setting(s) are you changing? Link to comment
xE//XenO Posted November 16, 2016 Author Share Posted November 16, 2016 random maps to true Link to comment
LoPollo Posted November 16, 2016 Share Posted November 16, 2016 (edited) 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 November 16, 2016 by LoPollo Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now