Skip to content
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

Default Configs #19

Open
Thorinori opened this issue Feb 9, 2024 · 6 comments
Open

Default Configs #19

Thorinori opened this issue Feb 9, 2024 · 6 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@Thorinori
Copy link
Contributor

I wanted to double check what the default config settings were (and then change them to cnc-ddraw by default since Glide is basically super broken now) but can't seem to find how they are being set. I found where you are checking and creating the config entries, but am not quite sure beyond that. Any info would be appreciated!

@murkl
Copy link
Owner

murkl commented Feb 13, 2024

Actually the default configuration you can find starting from line 73 were the variables are defined. But this properties only set, if the user does not have already this property in d2launcher.conf. There you will find d2_args this is set to -3dfx (glide default). To change to cnc draw, you have to add a argument to wine to override the ddraw.dll.
And keep in mind, that since new API the cnc-draw files also avlaibalbe as download (#13)

@Thorinori
Copy link
Contributor Author

Alright cool, thanks! Not quite sure how I missed them if they are right there haha. Yeah, will look into setting the override automatically for sure, and ideally get it set for -ddraw default since just using Sven's Glide is VERY broken for a lot of players nowadays.
As for the API part, will I need to do an API call for the cnc-ddraw files specifically or do they just come with the MXL download now when you do it normally?

@murkl
Copy link
Owner

murkl commented Feb 13, 2024

With the new API is a little bit tricky :) You do not need to download cnc files from API yourself this is done in update patch step. Since d2launcher 4.0.0 (new API) the d2launcher-medianxl-*.zip files located in ~/.d2launcher/patches has a lot more files included from API (also the cnc files). And all this files included a patch file will override the files in $d2_dir. All custom cnc files in $d2_dir will also overridden. More infos especially for legacy support (patch files created before 4.0.0 which do not includes the cnc files) i have written here: #13 (comment)

@Thorinori
Copy link
Contributor Author

Perfect, so yeah just sounds like the wine override and changing the default flag will be all that is needed then!

@murkl
Copy link
Owner

murkl commented Feb 13, 2024

Indeed, thats the only things do modify. And if the provided cnc files/version from API do not work with linux we should talk to @whistmxl for seperated api endpoint for linux cnc files

Edit: But we need a falback/legacy solution for the old patch files (which do not include the cnc files). In this case, we should check on start of diablo if this files exists in $d2_dir and if not, run with glide (-3dfx)

@Thorinori
Copy link
Contributor Author

I generally have been using cnc since d2gl doesn't work right with d2stats currently, so as long as the version they are pulling via the API is recent it should work fine on linux.

As for the fallback option, yeah that sounds perfectly reasonable to me!

@murkl murkl added help wanted Extra attention is needed question Further information is requested labels Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants