Code Monkey home page Code Monkey logo

Comments (3)

MontagueM avatar MontagueM commented on August 30, 2024

Honestly no clue, can't help here as seems like no one else has the issue and cannot be reproduced

from charm.

MontagueM avatar MontagueM commented on August 30, 2024

In fact I was able to replicate it, I'll see if I can figure it out

from charm.

MontagueM avatar MontagueM commented on August 30, 2024

ok i think i got what causes it, there are many things combined but the final thing is you cannot keep old packages in the destiny 2 directory - sometimes it doesnt delete them from your work space, especially if you use depot downloader or similar, and in doing so it will leave some packages left over that might not work - there are some approaches i could take to fix this, but none are really clean and nice

im not sure on any clean and concise way to manage this but the cleanest would be to just delete all the pkgs and redownload the game

or you could go through investment and delete all the packages that were meant to be removed via steamdb - could probably make a script to do this eg 8207814430234758153 in https://steamdb.info/depot/1085661/history/

all the _7/_8/_9 cause errors bc they have a higher patch number but should be deleted, so charm thinks theyre the newer patch but theyre missing info

actually yea easiest way would be to write a python script that takes the most recent manifest file and wipes all the old packages from the directory

i can probably code smth quick that will do it

import os
# go to https://steamdb.info/depot/1085661/ -> files -> show all, then ctrl + s the page
name = r"C:/Users/monta/Downloads/Game Depot (Depot 1085661) ยท SteamDB.htm"
pkgs_path = r"I:\SteamLibrary\steamapps\common\Destiny 2\packages"
auto_delete = True

packages = []
with open(name, "r", encoding="utf8") as f:
    for l in f.readlines():
        if ".pkg" in l:
            pkg = l.split(">")[1].split("<")[0]
            packages.append(pkg.split("/")[1])

for p in os.listdir(pkgs_path):
    if p not in packages and "_en_" not in p:
        print(f"{p} missing")
        if auto_delete:
            os.remove(f"{pkgs_path}/{p}")
            print(f"Removed {p}")

an it on mine and it fixed the problem, although if you have a language other than english it will delete the files + make sure to delete paths.cache

from charm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.