Problem with difficulty settings in old scenario

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
silver_777
Engineer
Engineer
Posts: 25
Joined: 08 Apr 2007 19:26
Location: Poland

Problem with difficulty settings in old scenario

Post by silver_777 »

I've created a scenario few months ago. I always wanted to play this scenario with FIRS grf but without any new industries appearing during the game (some kind of sandbox mode). So I was very happy to discover a new option - industries denstiy --> sponsorship only.

The problem is I can't change this setting in the scenario editor during editing my old scenario. When I use command --> setting difficulty.industry_density 0 - I receive red message -> ERROR: This command/variable is only available to a network server. ;(

Someone told me that this setting sets up automatically in the way it is when I'm entering the scenario editor. So when it's set up to for example "medium" every crearted scenario will have this setting later. Is there a way to change that ??

Furthermore I want to indicate one thing. I found on my hard drive another old scenario (from 2008) and when I loaded it in the scenario editor it has "industries denstiy --> sponsorship only". How is this possible if "sponsorship only" is a new feature ??

If there is a need I can of course attach both scenarios. I would be very grateful for your response.
"The Quiet Things That Noone Ever Knows"
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Problem with difficulty settings in old scenario

Post by Eddi »

first question: no, unfortunately, it is not possible to change this setting after the scenario/savegame was created.

second question: old savegames which don't have a setting yet, automatically get initialised to the value you set on the main menu. (or the default value, if you have never touched it)
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

First, I'm sorry for reviving this old thread..
But I'm having the exact same problem as "silver_777"..

Can I somehow HEX-edit my way out of this problem??


Kind regards
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Problem with difficulty settings in old scenario

Post by Alberth »

I think some more info would be useful.

Unfortunately, silver_777 says three or four things, and asks at least three questions.
So "the same problem" is a bit fuzzy, could you clarify?

Also, if you are asking about the weird setting in an old scenario, more concrete data would be needed.
What scenario?
What version(s) did you try? What did each version say?

As for hex-editing, I would not consider that until all other options have been tried several times.
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

I'll try :wink:

OpenTTD version 1.1.5 on a Windows 7 Home Premium machine.

During the last couple of weeks I've been designing a scenario from scratch.
I didn't specify all the difficulty settings before I started building my scenario - I thought that was something I could change at a later time.

Specifically it's the number of industries that I'd like to change from "high" to "sponsorship only".. But the little yellow arrow is grayed out so I can't change it.

I should probably have specified ALL settings before saving the scenario for the first time - But I didn't..
I put a lot of work into this scenario and therefore I'd rather not do it all over again.

That's why I'm kind of hoping for a "quick fix"...


Kind regards
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Problem with difficulty settings in old scenario

Post by Alberth »

So your 'old scenario' is not that old. I thought you wanted to load one from before the introduction of "sponsorship only".

As you have discovered, the scenario editor is quite limited.
The core problem with scenarios is that they are not proper scenarios, they are just savegames without companies. That means all the restrictions of 'normal' savegames apply on them too.
For this reason there are no quick fixes afaik, I am afraid :(

We have had discussions about a bette scenario file format, but so far nobody has felt the itch badly enough to go and fix the situation.
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

I'm itching really bad :D Just don't know how to scratch... YET!

HEX-editor???



Kind regards
The knack of flying is learning how to throw yourself at the ground and miss.
Douglas Adams.
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

Okay, I kind of give up..

Been searching high and low for a way to HEX-edit my .scn-file without any luck.
Instead I found a "copy & paste"-patch, but I have no idea about how to "install" it.. To me it looks like that you'd have to overwrite some of the OpenTTD installation files?? Don't know if that's something I want to experiment with..

Looks like I'll have to build the scenario from scratch, again.. :-/
If I could only save and reuse the terrain...


Kind regards
The knack of flying is learning how to throw yourself at the ground and miss.
Douglas Adams.
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4766
Joined: 09 Sep 2007 05:03
Location: home

Re: Problem with difficulty settings in old scenario

Post by Alberth »

MuHcOw wrote:Been searching high and low for a way to HEX-edit my .scn-file without any luck.
It is not a simple 'poke at address X file'; the savegame is a compressed file consisting of chunks of variable sized data. You'll need to dig in the file format (and probably build a rough reader) to understand what to change.
MuHcOw wrote:Instead I found a "copy & paste"-patch, but I have no idea about how to "install" it.. To me it looks like that you'd have to overwrite some of the OpenTTD installation files?? Don't know if that's something I want to experiment with..
It's a soyrce patch (like all patches here), you have to build the program from its source code after applying the patch.
It won't do you much good though, as applying a patch changes the program version, so you cannot load the resulting scenario file in a un-modified version anymore (I think, not 100% sure of this).
MuHcOw wrote:If I could only save and reuse the terrain...
Save the scenario as a height map, and load it in the new version.
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

Alberth wrote:Save the scenario as a height map, and load it in the new version.
Can I save a height map with OpenTTD?? I have only found a "Load Height Map" button....
Saving the terrain would REALLY save me a lot of work. Placing new towns and industries won't be much of a problem.

Kind regards
The knack of flying is learning how to throw yourself at the ground and miss.
Douglas Adams.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Problem with difficulty settings in old scenario

Post by Eddi »

try in 1.2.0-RC2
MuHcOw
Engineer
Engineer
Posts: 38
Joined: 04 Mar 2012 23:22
Location: Denmark

Re: Problem with difficulty settings in old scenario

Post by MuHcOw »

Alberth wrote:Save the scenario as a height map, and load it in the new version.
Eddi wrote:try in 1.2.0-RC2

Thank you so much guys!! - Worked like a charm :bow: :bow: :bow:



Kind regards
The knack of flying is learning how to throw yourself at the ground and miss.
Douglas Adams.
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Baidu [Spider] and 3 guests