Permanent DLC Unlocker Script

Posts 1–13 of 13 · Page 1 of 1
Permanent DLC Unlocker Script
I need help installing this DLC unlocker lua script for PD2. I know how to put the script codes in the files but I don't know where to put them afterward. I've tried putting them in my PD2 folder but that just prevents my game from starting. Any solutions on this?
You need to get some tools before you can just unlock everything.
1.get PD2HOOK
2.Extract the stuff into your game's folder.
3.Create a new folder called scripts or lua
4.Put your code into the folder what you created above, and use .lua at the end.
5.Go to your PD2HOOK.yml and open it with wordpad,notepad etc.
6a. If the script is a keybind go to your Keybind row and add a new one. Example: - [VK_F3, LUA\Ammo.lua]
6b. If the script is persistent, go to your Persistent row and add a new one. Example : - [Favors, LUA\Favors.lua]
7.Save everything and check for typos when you give the location to the files.

The script what i suggest for DLC unlock is the following
Code:
--OJ Simpson's Master DLC Unlock
--run during intro movie to unlock all DLC in the game
for dlc_name, dlc_data in pairs( Global.dlc_manager.all_dlc_data ) do
	dlc_name = { app_id = "218620", no_install = true }
	dlc_data.verified = true
end
So I followed your instructions and launched up the game and made sure to press F1 during the intro. But the DLC is still isn't unlocked for me also I'm getting this error in the debug console: cannot open LUA\\carrystackerinit.lua: No such file or directory
I have these files in the game directory right now IPHLPAPI.dll, iphlpapi.yml, and PD2Hook.yml
can you just upload your pd2hook and lua files pls with unlocked all dlc and unlocked infamy plsim a super noob plssss
Quote Originally Posted by m4g3n View Post
can you just upload your pd2hook and lua files pls with unlocked all dlc and unlocked infamy plsim a super noob plssss
Or you could just learn... This isn't that hard. It's just copy and pasting.
Quote Originally Posted by kel007 View Post
Or you could just learn... This isn't that hard. It's just copy and pasting.
plss dude i cant really do it you know im so slow to learn codes pls plss post your pd2 and lua files plsssss
Quote Originally Posted by m4g3n View Post
plss dude i cant really do it you know im so slow to learn codes pls plss post your pd2 and lua files plsssss
So what have you done so far? The codes are already up there (above post). Copy them, paste them into text files, save the text files as lua files.

The sample hook is also up there. Just change the name into the name of your lua files.

You don't even need to learn codes for this one. Unless you have trouble copying information. In which, I would advise you to highlight the text and then press Ctrl and C simultaneously. Press Ctrl and V to paste.

Edit: Or just get one of the available dlc downloads. There's like 2 or 3 threads on it.
Quote Originally Posted by kel007 View Post
So what have you done so far? The codes are already up there (above post). Copy them, paste them into text files, save the text files as lua files.

The sample hook is also up there. Just change the name into the name of your lua files.

You don't even need to learn codes for this one. Unless you have trouble copying information. In which, I would advise you to highlight the text and then press Ctrl and C simultaneously. Press Ctrl and V to paste.

Edit: Or just get one of the available dlc downloads. There's like 2 or 3 threads on it.
i still cant plss upload you own pd2hook and anything else needed plss
Ah you need to remove/edit pd2hook.yml and remove everything what you don't have.
Add the path to the persistent line. Should look like this:
Code:
Config:
  OutputMode: 3
  OutputFile: PD2Hook.log
  PrintOffsets: false
  ExtraCols: 10
  ExtraRows: 10
KeyBindings:
PersistScripts:
  - [DLC, LUA\DLC.lua]
Sorry for my noob behavior here but I'm partly lost and having problems know what to delete and what not to delete in the pd2hook.yml. Gonna post what I have in the original pd2hook.yml file so you can see what I should delete and what not to delete.

Config:
OutputMode: 3
OutputFile: PD2Hook.log
PrintOffsets: false
ExtraCols: 10
ExtraRows: 10
#The line below is optional, If you don't know what it is for, comment it out or remove it.
FirstRunScript: LUA\newtests.lua
# Format is - [KeyCode, ScriptFile]
KeyBindings:
- [VK_F1, LUA\somescript.lua]
- [VK_F2, LUA\somescript.lua]
- [VK_F3, LUA\somescript.lua]
- [VK_F4, LUA\somescript.lua]
- [VK_F5, LUA\somescript.lua]
- [VK_F6, LUA\somescript.lua]
- [VK_F7, LUA\somescript.lua]
- [VK_F8, LUA\somescript.lua]
- [VK_F9, LUA\somescript.lua]
# This would give you a "run last script" key on F10
- [VK_F10, '*']
# This would give you a global toggle key on F11.
- [VK_F11, '']
- [0x7B, LUA\somescript.lua]
- [0xDC, LUA\somescript.lua]
- [0x21, LUA\somescript.lua]
- [0x22, LUA\somescript.lua]
- [0x7A, LUA\somescript.lua]
#Persist scripts are optional, if you don't know what they are, remove/comment the entire section below.
#IF YOU DIDN'T READ THE LINE ABOVE THIS ONE YOU ARE A FUCKING MORON.
PersistScripts:
- [CarryStackerSetupDone, LUA\\carrystackerinit.lua]
#PostRequireScripts are optional too, see the README for what their purpose is. comment it out otherwise.
PostRequireScripts:
- [lib/managers/playermanager, LUA\playermanagerhack.lua]
#CloseScripts are again, optional, see the README, yadda yadda.
CloseScripts:
- LUA\statesaver.lua
Quote Originally Posted by The Tree Squid Master View Post
Sorry for my noob behavior here but I'm partly lost and having problems know what to delete and what not to delete in the pd2hook.yml. Gonna post what I have in the original pd2hook.yml file so you can see what I should delete and what not to delete.
There's plenty of redundant code there. Just copy and paste f34rY's code into your hook file.

Edit I just notice she added a redundant keybinding.
Should go like

Code:
Config:
  OutputMode: 1
  OutputFile: PD2Hook.log
  PrintOffsets: false

PersistScripts:
  - [DLC, DLC.lua]
Provided your file name for the dlc is DLC.lua. If you put your DLC.lua into a folder, then add that folder. e.g. if it is inside "scripts" folder then it would be [DLC, scripts/DLC.lua]
Thank you everyone in this thread for helping me with setting up this script. I finally got this darn script to work for me but I have this little question involving custom HUDs. What would I do with the iphlpapi.dll and the other files when I want to install a hud like hoxhud or pocohud? Do I overwrite them or just rename them?
Quote Originally Posted by The Tree Squid Master View Post
Thank you everyone in this thread for helping me with setting up this script. I finally got this darn script to work for me but I have this little question involving custom HUDs. What would I do with the iphlpapi.dll and the other files when I want to install a hud like hoxhud or pocohud? Do I overwrite them or just rename them?
For HoxHud, just copy and paste their files into the file directory (i.e. iphlpapi.dll, pd2apidll1.dll and HoxHud folder into C:\Program Files (x86)\Steam\SteamApps\common\PAYDAY 2\)

For PocoHud, you have to follow their instructions and add the following

Code:
 - [Poco, poco\common.luac]
 - [PocoHud3, poco\Hud3.luac]
under your PersistScripts. Obviously you also have to copy and paste their files (i.e. iphlpapi.dll and poco folder)
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Talk with us