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

Open an saved game with game scripts. #5750

Closed
DorpsGek opened this issue Sep 16, 2013 · 6 comments
Closed

Open an saved game with game scripts. #5750

DorpsGek opened this issue Sep 16, 2013 · 6 comments
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

idioty opened the ticket and wrote:

I created a game script, available on bananas: Feca Goal Games.
I save a game with this script with r25777 version in Mac OSX 10.8.5.
I can this saved game open in this operating system.
But I can't open in Windows 7 32 bit. And if I save an game on Windows, I can't open in Windows or OSX.

Attachments

Reported version: trunk
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/5750
@DorpsGek
Copy link
Member Author

idioty wrote:

OK, it looks like the problem was info.nut file
I deleted every lines from info.nut, and readded and saved in Windows 8. After I can open the saved game both in Windows and OSX.

But!!!
If I save a game in Windows, and I want open this in OSX, the Load(version, table) method never called.
And vice versa, if I save a game in Osx, and I open this in Windows, the method never called.
If I save a game and reopen the same system the method called!


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750#comment12622

@DorpsGek
Copy link
Member Author

idioty wrote:

I tried also wih Ubuntu 13.04. With Windows 8 worked same way.
Both OSx and Ubuntu also opened aright the saved game. (In both cases called the Load(version, table) method).
But if I saved a game in OSX (OSX in game settings.png) and opened in Ubuntu, the script settings window not loaded (script settings window: Ubuntu loaded settings.png), left in the default (Ubuntu default settings.png).
If I saved a game in Ubuntu (with default settings: Ubuntu default settings.png) and opened in OSX, the script settings window loaded well, and looks like in Ubuntu!

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750#comment12624

@DorpsGek
Copy link
Member Author

idioty wrote:

OK, it looks like the problem was info.nut file... again... :)
In Feca Goal Games version 7 (available on bananas) the Windows can open the osx saved game. I tried with OpenTTD trunk r25777.
But the Windows not load the script settings window (like Ubuntu). If I open a Windows saved game in OSX, the script settings window also loaded fine.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750#comment12630

@DorpsGek
Copy link
Member Author

DorpsGek commented Oct 6, 2013

frosch wrote:

The samegame references a language with empty name.

Do you have some weird old/backup/whatever file in your lang folder, which contains the lines:
# STR_GOAL_PROGRESS_NEWS????????:Goal progress{}{}{CARGO_LIST}: {CARGO_SHORT} transported ({NUM} %){}{CARGO_LIST}: {CARGO_SHORT} transported ({NUM} %){}{CARGO_LIST}: {CARGO_SHORT} transported ({NUM} %)
# STR_GOAL_PROGRESS?????????:Nahát{}{}12 {CARGO_LIST}:{CARGO_SHO

What is the exact filename? I guess OTTD should not consider that file a language file, but it did somehow.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750#comment12661

@DorpsGek
Copy link
Member Author

DorpsGek commented Oct 6, 2013

frosch wrote:

I assume your editor creates backup files with the pattern ".*.txt". OTTD considered these as language files for a language with empty name, which broke stuff.


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750#comment12664

@DorpsGek
Copy link
Member Author

DorpsGek commented Oct 6, 2013

frosch closed the ticket.

Reason for closing: Fixed

inm r25818


This comment was imported from FlySpray: https://bugs.openttd.org/task/5750

@DorpsGek DorpsGek closed this as completed Oct 6, 2013
@DorpsGek DorpsGek added flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) Goal/Game script labels Apr 7, 2018
@frosch123 frosch123 added the component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) label Apr 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: AI/Game script (squirrel) This issue is related to Squirrel (Scripting language) flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

2 participants