.:HyPeX:. Posted December 29, 2014 Share Posted December 29, 2014 Well this is totally annoying me, i've removed every single line of fadeCamera of the race resource, yet the camera is still faded upon a map change?? Is there something i'm missing? Greetz EDIT: Apparently, its not a faceCamera (I cant turn it off via runcode), where in the race resource is there anything that makes a fade upon changing map? Link to comment
Dealman Posted December 29, 2014 Share Posted December 29, 2014 Did you try using Notepad++'s search function? In case you missed something... Search "fade" (36 hits in 7 files) F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\countdown.lua (1 hit) Line 69: self.client.fade = enable F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\countdown_client.lua (1 hit) Line 70: if self.fade then F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\editor_support_client.lua (2 hits) Line 32: -- Do fadeup and tell server client is ready Line 33: setTimer(fadeCamera, 200, 1, true, 1.0) F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\nametags.lua (1 hit) Line 24: -- Make the text a bit brighter and fade more gradually F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\race_client.lua (16 hits) Line 18: fadeCamera(false,0.0) Line 122: -- Start the fadeout as soon as possible Line 171: fadeCamera( false, 0.0, 0,0,0 ) -- fadeout, instant, black Line 171: fadeCamera( false, 0.0, 0,0,0 ) -- fadeout, instant, black Line 190: fadeCamera(true) Line 266: fadeCamera( false, 0.0 ) Line 283: -- Do fadeup and then tell server client is ready Line 284: setTimer(fadeCamera, delay + 750, 1, true, 10.0) Line 285: setTimer(fadeCamera, delay + 1500, 1, true, 2.0) Line 415: if Spectate.fadedout then Line 790: Spectate.fadedout = true Line 1067: Spectate.fadedout = true Line 1075: Spectate.fadedout = false Line 1092: if Spectate.fadedout then Line 1185: fadeCamera(false,0.0, 0,0,0) -- Instant black Line 1189: setTimer(fadeCamera,250+500,1,true,1.0) -- And up F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\race_server.lua (2 hits) Line 762: fadeCamera ( g_RootPlayers, false, 0.0, 0,0, 0 ) Line 814: fadeCamera ( g_Root, false, 0.0, 0,0, 0 ) F:\Games\MTA San Andreas 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\util_client.lua (13 hits) Line 315: -- Trigger an event when the screen fades in/out Line 317: local fadeInFinTimer = Timer:create() Line 319: _fadeCamera = fadeCamera Line 319: _fadeCamera = fadeCamera Line 320: function fadeCamera(fadeIn,timeToFade,...) Line 320: function fadeCamera(fadeIn,timeToFade,...) Line 321: _fadeCamera (fadeIn,timeToFade,...) Line 321: _fadeCamera (fadeIn,timeToFade,...) Line 323: if not fadeIn then Line 324: fadeInFinTimer:killTimer() Line 327: fadeInFinTimer:setTimer( onfadeInFin, math.max(50,ticksToFade/8), 1 ) Line 327: fadeInFinTimer:setTimer( onfadeInFin, math.max(50,ticksToFade/8), 1 ) Line 331: function onfadeInFin() Link to comment
.:HyPeX:. Posted December 29, 2014 Author Share Posted December 29, 2014 (edited) Yeah, i already removed alot, this was my only hit: C:\Juegos\Binaries\GTA MTA\MTA 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\client_anim.lua (2 hits) Line 128: Fade in a picture: Line 133: Fade in a picture using a preset (for more presets, see the end of this file): C:\Juegos\Binaries\GTA MTA\MTA 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\countdown.lua (1 hit) Line 69: self.client.fade = enable C:\Juegos\Binaries\GTA MTA\MTA 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\countdown_client.lua (1 hit) Line 70: if self.fade then C:\Juegos\Binaries\GTA MTA\MTA 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\nametags.lua (1 hit) Line 24: -- Make the text a bit brighter and fade more gradually None of those are really relative with the issue i've got so far... Edited December 29, 2014 by Guest Link to comment
Dealman Posted December 29, 2014 Share Posted December 29, 2014 Well that's all the hits for "fade" in the entire Race resource. If it's neither of those, it's another resource controlling it. Link to comment
.:HyPeX:. Posted December 29, 2014 Author Share Posted December 29, 2014 Well that's all the hits for "fade" in the entire Race resource. If it's neither of those, it's another resource controlling it. To clarify furthermore the issue, if i directly start the gamemode, it does load a map with no fades or anything, works perfectly. Upon changing map, it fades and cant disable it. If i restart the race, nothing happens. I must go back to some gamemode like play and then turn on back race to be able to see me again. Thanks for the idea about the hit, it'll be better than looping each file the next time.. But still, i'm totally stuck here... Link to comment
Dealman Posted December 30, 2014 Share Posted December 30, 2014 Maybe it's something within the mapmanager resource? Link to comment
.:HyPeX:. Posted December 30, 2014 Author Share Posted December 30, 2014 Maybe it's something within the mapmanager resource? I doubt it. mapmanager only switchs the map itself, loading another map does not turn the screen off... (Else, it would happen on resource start when they're loaded) Anyone with has any clue would be appreciated. Link to comment
MTA Team botder Posted December 30, 2014 MTA Team Share Posted December 30, 2014 race_client.lua (line 169 for me) -- Called from server function notifyLoadingMap( mapName, authorName ) fadeCamera( false, 0.0, 0,0,0 ) -- fadeout, instant, black TravelScreen.show( mapName, authorName ) end in function initRace (line 266 for me) fadeCamera( false, 0.0 ) later in the initRace function (line 284 for me) setTimer(fadeCamera, delay + 750, 1, true, 10.0) setTimer(fadeCamera, delay + 1500, 1, true, 2.0) race_server.lua (line 759 for me) addEventHandler('onGamemodeMapStop', g_Root, function(mapres) --Clear the scoreboard for i,player in ipairs(getElementsByType"player") do setElementData ( player, "race rank", "" ) setElementData ( player, "checkpoint", "" ) end fadeCamera ( g_RootPlayers, false, 0.0, 0,0, 0 ) gotoState('NoMap') unloadAll() end ) Link to comment
.:HyPeX:. Posted December 30, 2014 Author Share Posted December 30, 2014 I removed all those things already, all the debbuging level i could get to, was to get a dark flashing when the race goes into state "NoMap". I cant find what can be related in the race to this - almost no function is affected. Search "NoMap" (3 hits in 2 files) C:\Juegos\Binaries\GTA MTA\MTA 1.4\server\mods\deathmatch\resources\[gamemodes]\[race]\race\racestates_server.lua (2 hits) Line 7: -- NoMap * No map loaded Line 195: if currentRaceStateName == 'NoMap' then return true end Link to comment
MTA Team botder Posted December 30, 2014 MTA Team Share Posted December 30, 2014 You have to disable "MovePlayerAway" (race_client). Possible explanation: The function moves the player's camera and player to a far position and then back, which causes the short black screen. Warning: I don't know what might break when you disable it. Link to comment
.:HyPeX:. Posted December 30, 2014 Author Share Posted December 30, 2014 You have to disable "MovePlayerAway" (race_client).Possible explanation: The function moves the player's camera and player to a far position and then back, which causes the short black screen. Warning: I don't know what might break when you disable it. I've disabled it, the camera is still taken away to a random spot in the air (Why??) and i'm not sure from where this is being done, wich function does this at NoMap? Link to comment
.:HyPeX:. Posted December 31, 2014 Author Share Posted December 31, 2014 Bump, i've discovered a quick teleport away of the camera in fact wont disable the camera - it justs lags when it TPs back to the vehicle in the new map, but it doesnt fades. There's something causing a fade itself - and i dont know what. 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