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

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

Merged
merged 2 commits into from
May 10, 2024

Conversation

aBlueShadow
Copy link
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.

@@ -135,6 +84,7 @@ There will be not much resistance, so you can try different approaches and tacti

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

Choose a reason for hiding this comment

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

"Test"?

Copy link
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
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
Contributor Author

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

@daid
Copy link
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
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
7 checks passed
@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