Skip to content

makes scenario_20_training1 playable again for non-english-languages#2095

Merged
daid merged 2 commits intodaid:masterfrom
aBlueShadow:scenario-cruiser-hotfix
May 10, 2024
Merged

makes scenario_20_training1 playable again for non-english-languages#2095
daid merged 2 commits intodaid:masterfrom
aBlueShadow:scenario-cruiser-hotfix

Conversation

@aBlueShadow
Copy link
Copy Markdown
Contributor

This addresses #1686 and especially #1686 (comment) , as that scenario became unplayable for non-english languages.

This PR does not try to fix the actual issue (which seems to be very persistent) but offers a workaround, to make it at least playable again.

  • Deletes all database references, notably the ones that copy the ship names and cause the issue.
  • The custom ship name is transferred to the ship description for simple scan. So it now can be considered a description of how this particular ship is used, rather than an custom model name. Positive side effect: Other than ship names, this can safely be translated.

Comment thread scripts/scenario_20_training1.lua Outdated

Here's your chance to beat up some helpless opponents.
Commander Saberhagen out.]]))
globalMessage("Test")
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Test"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops - Sorry that was a debugging remnant, I just removed it.

@daid
Copy link
Copy Markdown
Owner

daid commented May 10, 2024

I do wonder if there isn't just a simpler fix, where we say if ship_db == nil then return end. Which would make it the translated scenario doesn't have the DB entry and the base one does.

@aBlueShadow
Copy link
Copy Markdown
Contributor Author

That would still leave 3 other errors on lines with setModelDataName, though.

@daid
Copy link
Copy Markdown
Owner

daid commented May 10, 2024

also fixable with nil checks, but I understand that that isn't great. I'll think a bit about it and most likely accept your pull request. The database modification from scripts are messy, so maybe having less of them is better right now.

@aBlueShadow
Copy link
Copy Markdown
Contributor Author

aBlueShadow commented May 10, 2024

Especially for that scenario, I don't see much benefit for those db modifications considering the problems. It is literally just the same ship with the same db entry just copied into the exuari category with another name. I am not sure if that feature is worth the hassle. And the custom typenames are very descriptive, so sourcing them out to the descriptions wouldn't be that bad IMO.

@daid daid merged commit 41d28a0 into daid:master May 10, 2024
@aBlueShadow aBlueShadow deleted the scenario-cruiser-hotfix branch May 12, 2024 18:06
Tsht pushed a commit to Tsht/EmptyEpsilon that referenced this pull request Oct 12, 2024
…aid#2095)

* makes scenario_20_training1 playable again for non-english-languages

* remove debug message

---------

Co-authored-by: aBlueShadow <falter@mxdreamer>
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