8000 Smarter base file detection by Smealm · Pull Request #7 · Toylerrr/GOGtoGV · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Smarter base file detection #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Smarter base file detection #7

wants to merge 1 commit into from

Conversation

Smealm
Copy link
Contributor
@Smealm Smealm commented Apr 22, 2025

Script now takes into account file name length when determining main file to base file to source metadata from, and for the dlc's to platform off of.

This is done with the expectation that filenames follow this scheme setup_{game-name}{version}{arch}_{gog-build-id}

and dlc follow

setup_{game-name}-{dlc-name}{version}{arch}_{gog-build-id}

if it gets the wrong base file using this schema then worse case scenerio this fork does nothing, but now in the average case scenerio where the name schemes match the base file will be done first and any dlc second.

e.g of correct naming schema:
setup_yakuza_kiwami_2_1.004a_(64bit)(65330).exe (this is base)
setup_yakuza_kiwami_2
-clan_creator_bundle_1.004a(64bit)_(65330) (this is DLC content, the name is obviously longer)

e.g of cases where the schema is inneffective:
setup_enter_the_gungeon_2.1.9_(64bit)(29557) (base game)
setup_microtransaction_gun_2.1.9
(29557) (this is dlc content, names shorter, doesn't follow the schema)

Script now takes into account file name length when determining main file to base file to base metadata and for the dlc's to platform off of. 

This is done with the expectation that filenames follow this scheme
setup_{game-name}_{version}_{arch}_{gog-build-id}

and dlc follow

setup_{game-name}_-_{dlc-name}_{version}_{arch}_{gog-build-id}

if it gets the wrong base file using this schema then worse case scenerio this fork does nothing, but now in the average case scenerio where the name schemes match the base file will be done first and any dlc second.
@Toylerrr
Copy link
Owner
Toylerrr commented May 5, 2025

Sorry I haven't gotten to this, Ill get to it this week tho.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0