Skip to content

Keep the command-line world when no mod sets one - #1020

Closed
Solessfir wants to merge 1 commit into
Try:masterfrom
Solessfir:fix-world-arg
Closed

Solessfir wants to merge 1 commit into
Try:masterfrom
Solessfir:fix-world-arg

Conversation

@Solessfir

Copy link
Copy Markdown
Contributor

Since 01540fe -w <world> is ignored: Gothic takes the world from the command line, then overwrites it with the mod descriptor's world, which is empty without a mod, so the game falls back to the default world.

The descriptor's world now only replaces it when the mod sets one, as before.

Tested on Windows: -w oldworld.zen -nomenu starts in the Valley of Mines again.

@Try

Try commented Oct 21, 2026

Copy link
Copy Markdown
Owner

Thanks for the hint @Solessfir !

I've pushed my own fix instead: idea is to resolve things in GameModDescriptor, leave only game-related fail-safes outside of it.

@Try Try closed this Oct 21, 2026
@Solessfir
Solessfir deleted the fix-world-arg branch October 21, 2026 20:43
Try added a commit that referenced this pull request Oct 22, 2026
Try added a commit that referenced this pull request Oct 22, 2026
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