Wrong company's inagurated date
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 45
- Joined: 19 Feb 2012 16:00
Wrong company's inagurated date
Hi, is there any way to fix company inaugurated date? For some reason now it displays 2652 year(current date 2780), though real start of the game was 1888 year and time when company was founded.
Re: Wrong company's inagurated date
That sounds like a pretty nasty bug, you should probably file a report at https://github.com/OpenTTD/OpenTTD.
-
- Engineer
- Posts: 45
- Joined: 19 Feb 2012 16:00
Re: Wrong company's inagurated date
Oh, probably it was me, not the bug. Once I've transferred my save to scenario mode to delete FIRS petrol station that appeared right before railroad placement. I've tested it again and company start data has changed again. Still looking for the way to restore company start date though.. I believe scv can be opened by VS to edit save or I'm wrong?
Re: Wrong company's inagurated date
Yes, changing your NewGRFs in a game has the potential to completely ruin them - that's why it's hidden behind several layers of hidden options and developer tools.
Your best option is probably to restore a backup save if you have one, or start a new game and take this as a valuable learning experience if you don't.
Changing the NewGRF settings in a running game has a myriad of different ways to corrupt game state so there isn't an easy way to fix it and fixing the problem you currently have would probably just expose another problem.
Your best option is probably to restore a backup save if you have one, or start a new game and take this as a valuable learning experience if you don't.
Changing the NewGRF settings in a running game has a myriad of different ways to corrupt game state so there isn't an easy way to fix it and fixing the problem you currently have would probably just expose another problem.
Re: Wrong company's inagurated date
No, scn files and sav files cannot be opened by VS. But, if you study enough coding you can pretty much open anything with a hex editorRedEclipse wrote: ↑12 Aug 2021 20:01 Oh, probably it was me, not the bug. Once I've transferred my save to scenario mode to delete FIRS petrol station that appeared right before railroad placement. I've tested it again and company start data has changed again. Still looking for the way to restore company start date though.. I believe scv can be opened by VS to edit save or I'm wrong?
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Wrong company's inagurated date
Well, the ability to open a file with a hex editor is mostly dependent on understanding how the program which wrote said file works than it is dependent on coding ability.
But... yeah, editing save games by hand is usually not something you really want to do, not just in OpenTTD but pretty much in general.
-
- Engineer
- Posts: 45
- Joined: 19 Feb 2012 16:00
Re: Wrong company's inagurated date
Well, thanks for the tips. I'll try hex editor. I'm a web dev so it could be an interesting experience
Unfortunately due to behavior of FIRS grf starting a new game wouldn't help - those immortal petrol stations messing things around. I've tried to avoid building roads like cancer, but instead came up in solution to demolish them in scenario mode if they misbehave a lot.
P.S. I just remember of good old tool that I've used ages ago - ArtMoney. Found year by pattern and replaced it manually to proper year
Unfortunately due to behavior of FIRS grf starting a new game wouldn't help - those immortal petrol stations messing things around. I've tried to avoid building roads like cancer, but instead came up in solution to demolish them in scenario mode if they misbehave a lot.
P.S. I just remember of good old tool that I've used ages ago - ArtMoney. Found year by pattern and replaced it manually to proper year
Re: Wrong company's inagurated date
If that works for you, that's fine. But just for the sake of posterity, I'd like to state that this is not guaranteed to result in a functional game state. NwGRFs and game scripts can rely on the fact that the list of which NewGRFs are loaded is constant throughout the game. If that assumption is violated, many components of the game could behave erratically (which is a euphemism for "bad") afterwards.RedEclipse wrote: ↑12 Aug 2021 21:03P.S. I just remember of good old tool that I've used ages ago - ArtMoney. Found year by pattern and replaced it manually to proper year
So your best bet is still to not change NewGRF settings in a running ge, or at least have a backup save when you do.
-
- Engineer
- Posts: 45
- Joined: 19 Feb 2012 16:00
Re: Wrong company's inagurated date
But I didn't update the list of GRFs and scripts afterall. Or even this slight change may ruin the save?
Re: Wrong company's inagurated date
Oh, sorry, you just deleted an individual building? In that case I misread your earlier post.RedEclipse wrote: ↑12 Aug 2021 23:13 But I didn't update the list of GRFs and scripts afterall. Or even this slight change may ruin the save?
I don't understand just how much a NewGRF can do but this is definitely the kind of thing I wouldn't do without a backup save.
Worst thing that can happen to you if you change the founding date of your company through a hex editor is that your game will just go off the rails again a few hours later. Your choice if you want to accept that risk. There are definitely occasions where it's worth it.
Re: Wrong company's inagurated date
tip: if you want to hexedit your savegame, you must first set openttd.cfg to make uncompressed savegames.
-
- Traffic Manager
- Posts: 174
- Joined: 07 Sep 2020 15:12
- Location: Usually near some interesting rail systems. :P
Re: Wrong company's inagurated date
Next time use Ctrl+Alt+C to open cheat menu. Then turn on "magic bulldozer", delete the offending industry, and then turn the cheat again off... (having it always on can cause towns deleting industries too)RedEclipse wrote: ↑12 Aug 2021 20:01 Oh, probably it was me, not the bug. Once I've transferred my save to scenario mode to delete FIRS petrol station that appeared right before railroad placement. I've tested it again and company start data has changed again. Still looking for the way to restore company start date though.. I believe scv can be opened by VS to edit save or I'm wrong?
Are you an eye candy player? Check out Invisible engine set! viewtopic.php?f=67&t=88934
You can write to me in English, or Czech. Můžete mi psát česky nebo anglicky.
Formerly known as MLG.
You can write to me in English, or Czech. Můžete mi psát česky nebo anglicky.
Formerly known as MLG.
-
- Engineer
- Posts: 45
- Joined: 19 Feb 2012 16:00
Re: Wrong company's inagurated date
I'm totally fine with list of my current GRFs. Though I dislike in "Old Wagons with New Cargos" that most of commodities using inappropriate type of wagons. If i'll try to mess with OpenTTD GRFs it'll be my first mod, as I'm fan of good old TTTaschi wrote: ↑12 Aug 2021 23:30Oh, sorry, you just deleted an individual building? In that case I misread your earlier post.RedEclipse wrote: ↑12 Aug 2021 23:13 But I didn't update the list of GRFs and scripts afterall. Or even this slight change may ruin the save?
I don't understand just how much a NewGRF can do but this is definitely the kind of thing I wouldn't do without a backup save.
Worst thing that can happen to you if you change the founding date of your company through a hex editor is that your game will just go off the rails again a few hours later. Your choice if you want to accept that risk. There are definitely occasions where it's worth it.
Thanks, I'll keep that in mind.
To be honest I don't like to flag my game as "cheated". I love to keep original landscape, rivers and etc, industries aswell. But immortal petrol stations is what I dislike a lot in FIRS(though mod itself is gem).MLG wrote: ↑13 Aug 2021 06:27Next time use Ctrl+Alt+C to open cheat menu. Then turn on "magic bulldozer", delete the offending industry, and then turn the cheat again off... (having it always on can cause towns deleting industries too)RedEclipse wrote: ↑12 Aug 2021 20:01 Oh, probably it was me, not the bug. Once I've transferred my save to scenario mode to delete FIRS petrol station that appeared right before railroad placement. I've tested it again and company start data has changed again. Still looking for the way to restore company start date though.. I believe scv can be opened by VS to edit save or I'm wrong?
- Emperor Jake
- Tycoon
- Posts: 3427
- Joined: 24 Apr 2007 09:37
- Skype: Discord: Emperor Jake #4106
- Location: Not Actually Japan
- Contact:
Re: Wrong company's inagurated date
That hasn't been the case in well over a decade and yet the myth still persists. I haven't played with magic bulldozer off in years and towns have never removed industries. AIs, however, will sometimes destroy industries while trying to serve them.
To the OPs problem, I realise it's too late now but the company year reset might be avoided by renaming the .scn back to a .sav before reloading it (not sure though)
Who is online
Users browsing this forum: No registered users and 25 guests