PAYDAY 2

PAYDAY 2

View Stats:
Frankelstner Sep 5, 2017 @ 10:33am
all_xy_h.bundle creator aka Bundle Modder fix
Do not use this. Use this instead: http://modwork.shop/22724

This changes the bundle metadata back to the way it used to be, so the Bundle Modder will access the files just fine again. So this is a standalone complementary to the Bundle Modder that must be run before using the Bundle Modder itself.

Install Python, preferably 2.7: https://www.python.org/ftp/python/2.7.13/python-2.7.13.msi

Download the script and hashlist at https://bitbucket.org/Frankelstner/pd2-hashlist/downloads/

Extract script (bundle fixer.py) and hashlist into the Bundle Modder folder. Double click the script to run. On success, the all_h.bundle should now be in the Bundle Modder folder and the Bundle Modder can now be used as usual. If that fails, right click the script and choose "Edit with IDLE", then press F5 to run; the difference between double clicking and IDLE+F5 is that the latter gives you time to read the error message.

The script should automatically find the assets folder on Windows; but the path can also be adjusted manually at the top of the script.

Whenever the game gets an update, you must run the script again before using the Bundle Modder. You also should check for a hashlist update so that the Bundle Modder can resolve as many paths as possible.
Last edited by Frankelstner; Jul 4, 2018 @ 11:27am
< >
Showing 1-15 of 67 comments
Zdann Sep 5, 2017 @ 10:34am 
Thanks for this. It didn't seem like the Bundle Modder was ever going to get a fix for the issue, so this works fine.
Frankelstner Sep 5, 2017 @ 10:40am 
I think Steam has destroyed my indexing stuff in the code above so it is unusable. Please stand by.

edit: All done.
Last edited by Frankelstner; Sep 5, 2017 @ 10:45am
AdayDr1en Sep 5, 2017 @ 10:51am 
edit:

can someone say again how to use the script ? i have to move h bundles in a folder with script and run the script with python ?
Last edited by AdayDr1en; Sep 5, 2017 @ 11:08am
AdayDr1en Sep 5, 2017 @ 11:20am 
not sure what i'm doing wrong. isn't working. the script already has the assets location
Last edited by AdayDr1en; Sep 5, 2017 @ 11:21am
Frankelstner Sep 5, 2017 @ 11:21am 
Right click on the script -> Edit with IDLE -> Press F5 and tell me what it says.
AdayDr1en Sep 5, 2017 @ 11:22am 
Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>>
========= RESTART: C:\Users\Aday\Desktop\New folder\bundle fixer.py =========

Traceback (most recent call last):
File "C:\Users\Aday\Desktop\New folder\bundle fixer.py", line 65, in <module>
for i, dat in enumerate(AllMeta("all_h.bundle")):
File "C:\Users\Aday\Desktop\New folder\bundle fixer.py", line 35, in AllMeta
f = open(source,"rb")
IOError: [Errno 2] No such file or directory: 'all_h.bundle'
>>>
Frankelstner Sep 5, 2017 @ 11:24am 
You need to adjust the path to the assets of the game.
AdayDr1en Sep 5, 2017 @ 11:28am 
i'm confused.

"C:\Program Files (x86)\Steam\SteamApps\common\PAYDAY 2\assets"

is in the file when i open IDLE editor and notepad.

it's only when i put the script in the assets directory that i get all_h bundles (i know you said don't do this, but yeah).

what am i missing ?

"p = r"C:\Program Files (x86)\Steam\SteamApps\common\PAYDAY 2\assets""

is what i'm seeing in the script. i even pasted the path from inside the assets folder.
Last edited by AdayDr1en; Sep 5, 2017 @ 11:32am
Frankelstner Sep 5, 2017 @ 11:33am 
Never mind that.

Does the script move the all_h.bundle next to it in the same folder?

Originally posted by AdayDr1en | Git Gud:
it's only when i put the script in the assets directory that i get all_h bundles (i know you said don't do this, but yeah)..
I did not quite say that. It is necessary only if you want to use the Bundle Modder to apply mods that do not use the override folder. As my goal was an easy fix to fully restore the Bundle Modder, I move the file by default.
Last edited by Frankelstner; Sep 5, 2017 @ 11:37am
AdayDr1en Sep 5, 2017 @ 11:37am 
Originally posted by Frankelstner:

Does the script move the all_h.bundle next to it in the same folder?

no.

command window just opens and closes. i tried the script you uploaded and the path is right, so i'm confused.

yes i did make sure to install python 2.7. i'm using that for "open" with, the script.
Last edited by AdayDr1en; Sep 5, 2017 @ 11:51am
Frankelstner Sep 5, 2017 @ 11:50am 
Originally posted by AdayDr1en | Git Gud:
yes i did make sure to install python 2.7. i'm using that for "open" with.
Yeah that is true. The console output above already mentioned your version.

The only other thing I can think of the issue when running the script twice from different locations. On the first run, it will move the all_h.bundle next to it, so on the second run (from another place) it will not find anything.

Either way, it is not much of a problem as you did manage to run it from the assets folder itself. The only other functionality is automatically moving the all_h.bundle out of the folder, which is mostly optional and can always be done by hand if you need it.

Running IDLE with F5 is basically a command window itself that does not disappear instantly on error. So the error is still that it cannot find the all_h.bundle from outside.
AdayDr1en Sep 5, 2017 @ 11:51am 
edit:

so i moved all the h bundles into new folder with script and it generated all_ files in my assets folder. is this correct ? what do i do from here ? all_ 1-60.

and it left the regular h bundles in assets folder.
Last edited by AdayDr1en; Sep 5, 2017 @ 11:53am
Frankelstner Sep 5, 2017 @ 11:55am 
The script basically splits the all_h.bundle into these smaller bundles because that is what the Bundle Modder expects. You can now run the Bundle Modder as usual.
AdayDr1en Sep 5, 2017 @ 11:56am 
do i have to move out the regular h bundles ?
Last edited by AdayDr1en; Sep 5, 2017 @ 12:00pm
Frankelstner Sep 5, 2017 @ 12:01pm 
The intended workflow of the script:

1. Put it together with the hashlist into the Bundle Modder folder (or any other folder, but why bother).
2. Double click the script.
3. Run Bundle Modder as usual.

You should not need to move anything. You need to move only if you want to use the Bundle Modder for mods outside the override folder when the script fails to move the all_h.bundle on its own (I don't know why this happens).
< >
Showing 1-15 of 67 comments
Per page: 1530 50

Date Posted: Sep 5, 2017 @ 10:33am
Posts: 67