PAYDAY 2

PAYDAY 2

View Stats:
Lauleyhn Nov 25, 2015 @ 1:21pm
Skip exp screen
I thought i heard of a mod that lets you skip the outro screen of a successful heist, somebody know, if there is such a mod present?

Edit: Card drop should still be there, of course.
Last edited by Lauleyhn; Nov 25, 2015 @ 1:22pm
< >
Showing 1-11 of 11 comments
ANIMA丷AMORIS Nov 25, 2015 @ 7:51pm 
lib/states/missionendstate

local MES_sc_orig = MissionEndState.setup_controller function MissionEndState:setup_controller(...) MES_sc_orig(self, ...) self._completion_bonus_done = true self._continue_block_timer = nil end function MissionEndState._continue_blocked(self, ...) return false end local MES_cbd_orig = MissionEndState.completion_bonus_done function MissionEndState:completion_bonus_done(...) MES_cbd_orig(self, ...) self._completion_bonus_done = true end
Lauleyhn Nov 26, 2015 @ 8:43am 
Thanks. I'm no modder but i'll give it a shot anyway. For other ppl looking for this, here the older thing;

Create a file named "MES.lua" in a directory named "Mods" located in the root payday 2 directory and add this code below:

-- Mission End State
local MES = MissionEndState.setup_controller
function MissionEndState.setup_controller(self, ...)
MES(self, ...)
self._completion_bonus_done = true
self._continue_block_timer = nil
end

function MissionEndState._continue_blocked(self, ...)
return false
end

local MES = MissionEndState.completion_bonus_done
function MissionEndState.completion_bonus_done(self, ...)
MES(self, ...)
self._completion_bonus_done = true
end

Create a post require in your PD2Hook.yml:

- ['lib/states/missionendstate', Mods\MES.lua]

Have only 1 space before and after " - " in your post require.

If you ever want to look at the code yourself then it can be found in "lib\states\missionendstate.lua"
Last edited by Lauleyhn; Nov 26, 2015 @ 8:48am
B Dawg (Banned) Nov 26, 2015 @ 9:03am 
Awesome. I always hated the damn Money & EXP counting ♥♥♥♥♥♥♥♥ that takes soooooo ♥♥♥♥♥♥♥ long.
Lauleyhn Nov 26, 2015 @ 9:23am 
Welp. Can't make it work. I thought the hook.yml refers just to the mod.txt, since i couldn't even find the directory.
|-|0F|\|/\RR Nov 26, 2015 @ 9:59am 
would someone be so kind and turn it into blt?? i dont know scripting :(
ANIMA丷AMORIS Nov 26, 2015 @ 12:59pm 
Originally posted by Lauleyhn:
Welp. Can't make it work. I thought the hook.yml refers just to the mod.txt, since i couldn't even find the directory.
Below is an example of how-to-do for each hook - the only ones available and in both cases named IPHLPAPI.dll, so check which one you have/use; the one from first example is smaller than the one from second example.

1. Harfatus/Olipro's hook - PD2Hook.yml:
Config: OutputMode: 1 OutputFile: PD2Hook.log PrintOffsets: false KeyBindings: - [VK_F1, Scripts\Name1.lua] PersistScripts: - [GSV, Scripts\Name2.lua] PostRequireScripts: - [lib/states/missionendstate, < your directory's name >\< your file's name >.lua]

2. James Wilko's hook aka BetterLuaTool - mod.txt:
{ "name" : "< name it whatever you feel like it >", "description" : "< self-explanatory >", "author" : "< regarding this particular code, I don't remember since it's quite old >", "contact" : "N/A", "version" : "< which ever you want >", "priority" : 0, "hooks" : [ { "hook_id" : "lib/states/missionendstate", "script_path" : "< your file's name >.lua" } ] }
Last edited by ANIMA丷AMORIS; Nov 26, 2015 @ 1:40pm
ANIMA丷AMORIS Nov 26, 2015 @ 1:07pm 
Originally posted by HofNarr:
would someone be so kind and turn it into blt?? i dont know scripting :(
As far I know, any "old" script code is compatible with BLT. The only difference is that you need to use mod.txt instead of PD2Hook.yml, and of course, it's corresponding IPHLPAPI.dll file.
Last edited by ANIMA丷AMORIS; Nov 26, 2015 @ 1:36pm
Lauleyhn Nov 26, 2015 @ 1:09pm 
I did put the text in mod.txt, do i need the pd2hook.yml too?

Edit: Well, guess i just got ninja'd.
Last edited by Lauleyhn; Nov 26, 2015 @ 1:10pm
|-|0F|\|/\RR Nov 26, 2015 @ 2:57pm 
so i got it to blt, but i registered this works only in offline mod.
if i play with friends this won't work, is this because i did something wrong? or is it only supposed to be working in offline mode?? even i host a game this won't work :( or is there a workaround so this works online too??
|-|0F|\|/\RR Nov 27, 2015 @ 10:03am 
the host had this mod too, but it didnt work :(
ANIMA丷AMORIS Nov 27, 2015 @ 11:22am 
Originally posted by HofNarr:
the host had this mod too, but it didnt work :(
Well, the code is valid, I'm using it for almost two years now... That being said, be sure that you have set it up correctly and/or you don't have another mod which interferes with this one - rewrites the same function/s.

NOTE: Works only if you're the host, obviously, and it will not automatically skip XP screen, you still need to hit enter button.
Last edited by ANIMA丷AMORIS; Nov 27, 2015 @ 11:25am
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Nov 25, 2015 @ 1:21pm
Posts: 11