Skip to content

Comments

Ignore installed builds whiout any valid executables when clicking play#168

Merged
JohnAFernandez merged 2 commits intoKnossosNET:mainfrom
Shivansps:improve-build-selection-play
Mar 22, 2024
Merged

Ignore installed builds whiout any valid executables when clicking play#168
JohnAFernandez merged 2 commits intoKnossosNET:mainfrom
Shivansps:improve-build-selection-play

Conversation

@Shivansps
Copy link
Member

@Shivansps Shivansps commented Mar 5, 2024

Build selection is done by what is selected by the dependency semantic version, semantic version can give you an invalid build, in the case of Wings of Dawn and linux.

17.0.0 contains linux exec, but 17.0.1 does not, if you manually install 17.0.0 linux build and 17.0.1 windows build is installed, wod will still try to select 17.0.1 on linux what will fail. This pr makes that when clicking play, builds whiout valid executables will not be longer considered for builds selection.

Not sure if something can be done during mod install to avoid this same scenario. As things are installing wod on linux will install an empty 17.0.1 because there arent any linux executables in that build.

EDIT: Ok i got a check in during mod install, this will try a maximum of 10 times to get an alternative build that sastifies the dependency if the currently selected one has an incompatible enviroment string.
This is nasty but it is the only thing i could think off since repo_minimal does not allow to properly do this check at the mod install stage.

I checked it with x64 and arm64 linux and it seens to behave as expected, but ill suggest that more testing is done here during mod install.

Build selection is done by what is selected by the dependency semantic version, semantic version can give you an invalid build, in the case of Wings of Dawn and linux.

17.0.0 contains linux exec, but 17.0.1 does not, if you manually install 17.0.0 linux build and 17.0.1 windows build is installed, wod will still try to select 17.0.1 what will fail. This pr makes that when clicking play, builds whiout valid executables will not be longer considered for builds selection.

Not sure if something can be done during mod install to avoid this same scenario.
@JohnAFernandez
Copy link
Contributor

Ok, I'll wait on more testing during mod install before merging.

@JohnAFernandez JohnAFernandez added the fix Fix for a bug label Mar 5, 2024
@JohnAFernandez JohnAFernandez added this to the 1.1.0 milestone Mar 5, 2024
@JohnAFernandez
Copy link
Contributor

Mod installation worked fine for me with these changes. I'm going to go ahead and merge.

@JohnAFernandez JohnAFernandez merged commit b52e078 into KnossosNET:main Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants