OpenTTD Screensaver
Moderator: OpenTTD Developers
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
OpenTTD Screensaver
Bored of stupid windows screensavers? Use your favorite OTTD game as your screensaver!
How to use precompiled binaries
1) Download the screensaver package.
2) Extract it somewhere.
3) Put the original TTD data files (sample.cat, trg1r.grf, trgcr.grf, trghr.grf, trgir.grf and trgtr.grf) into "data" directory.
4) OPTIONAL: Copy your favorite OTTD savegame file into the "save" directory and rename it to screensaver.sav. Make sure the savegame is compatible with trunk revision 14030 (stables 0.6.2 and older are compatible). Make sure there are at least several signs defining individual camera views or the camera would be static.
5) Download the OpenTTDCoop GRF pack 7.1 and extract it into the data folder if you want to use the included demo game. Make sure there are all the GRFs your savegame uses if you are not using the demo game.
6) Enter the directory and right-click on the openttd.scr. Now choose "Install".
7) Windows screensaver dialog will pop up. Make sure correct timeout is selected.
8 ) OPTIONAL: Click Configuration. Seemingly unmodded OpenTTD will open. Now make sure valid screen resolution is set and fullscreen mode is ON. The screensaver looks very weird in windowed mode (but starts and quits faster). You can also adjust some more settings. You can later access the configuration mode by right-clicking the openttd.scr (the screensaver file) and schoosing "Configure" or by right-clicking desktop, choosing "Properties", then going to "Screensaver" tab and clicking the "Configure" button.
It is done, now you can test it
How to compile it yourself
1) Apply the patch on r14030 source as described in this thread. Or use BuildOTTD and then skip the step 4.
2) OPTIONAL: Apply any third party patches - screensaver should be compatible with most of them
3) Compile the patch using any compiler you like.
4) Rename the resulting openttd.exe to openttd.scr.
5) Continue with step 4 of "How to use precompiled binaries"
Known issues
- takes some time to load and quit (this is much faster in windowed mode, but it looks weird)
- no support for non-windows platforms and Win98 and older. Please confirm if it works on Vista and 2000.
- no support for passwords (at least it seems)
Version history
Version 1
- first public version
Version 2
- the camera now jumps randomly over the signs
- demo game present (requires OpenTTDCoop GRF pack 7.1)
- fixed many negative effects caused by the time flow (crashes, industry closures, new vehicle screens, town growth...)
- mouse movement now shuts the screensaver down (= the application now behaves fully as screensaver)
- updated to r14030
How to use precompiled binaries
1) Download the screensaver package.
2) Extract it somewhere.
3) Put the original TTD data files (sample.cat, trg1r.grf, trgcr.grf, trghr.grf, trgir.grf and trgtr.grf) into "data" directory.
4) OPTIONAL: Copy your favorite OTTD savegame file into the "save" directory and rename it to screensaver.sav. Make sure the savegame is compatible with trunk revision 14030 (stables 0.6.2 and older are compatible). Make sure there are at least several signs defining individual camera views or the camera would be static.
5) Download the OpenTTDCoop GRF pack 7.1 and extract it into the data folder if you want to use the included demo game. Make sure there are all the GRFs your savegame uses if you are not using the demo game.
6) Enter the directory and right-click on the openttd.scr. Now choose "Install".
7) Windows screensaver dialog will pop up. Make sure correct timeout is selected.
8 ) OPTIONAL: Click Configuration. Seemingly unmodded OpenTTD will open. Now make sure valid screen resolution is set and fullscreen mode is ON. The screensaver looks very weird in windowed mode (but starts and quits faster). You can also adjust some more settings. You can later access the configuration mode by right-clicking the openttd.scr (the screensaver file) and schoosing "Configure" or by right-clicking desktop, choosing "Properties", then going to "Screensaver" tab and clicking the "Configure" button.
It is done, now you can test it
How to compile it yourself
1) Apply the patch on r14030 source as described in this thread. Or use BuildOTTD and then skip the step 4.
2) OPTIONAL: Apply any third party patches - screensaver should be compatible with most of them
3) Compile the patch using any compiler you like.
4) Rename the resulting openttd.exe to openttd.scr.
5) Continue with step 4 of "How to use precompiled binaries"
Known issues
- takes some time to load and quit (this is much faster in windowed mode, but it looks weird)
- no support for non-windows platforms and Win98 and older. Please confirm if it works on Vista and 2000.
- no support for passwords (at least it seems)
Version history
Version 1
- first public version
Version 2
- the camera now jumps randomly over the signs
- demo game present (requires OpenTTDCoop GRF pack 7.1)
- fixed many negative effects caused by the time flow (crashes, industry closures, new vehicle screens, town growth...)
- mouse movement now shuts the screensaver down (= the application now behaves fully as screensaver)
- updated to r14030
Last edited by CommanderZ on 09 Aug 2008 17:12, edited 7 times in total.
Re: OpenTTD Screensaver
For hard-core OpenTTD experience there's a possibility in Vista to set up a screensaver as an animated desktop (needs external app).
Re: OpenTTD Screensaver
Interesting
For the moving viewport thing, (I'm sure you'd manage it on your own, but anyways ) you might have a look at this patch by me: http://www.tt-forums.net/viewtopic.php?f=33&t=36925
This combined with the patch option "Smooth viewport scrolling" gives very nice results imo
For the moving viewport thing, (I'm sure you'd manage it on your own, but anyways ) you might have a look at this patch by me: http://www.tt-forums.net/viewtopic.php?f=33&t=36925
This combined with the patch option "Smooth viewport scrolling" gives very nice results imo
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Thanks Roujin, you have saved me a lot of coding. This way I made it to work in less than hour
What annoys me is a still growing list of items that will need to be altered to make it work really correctly.
- no industry closures (including exhaustion in pikka's industries), no industry spawning
- no vehicle eldering (this can be bypassed by disabling breadowns)
- no plane crashes
- no annoying popups (news, finances, vehicle testing offers). Some can be disabled with correct patch settings, some not.
- no disasters (can be disabled in patch settings)
- no victory/defeat
.
.
.
In final analysis, the best would be if it was possible to stop time without pausing the game...I mean let the game run without increasing date.
I will post new version once I have a nice savegame to use as default screensaver.
What annoys me is a still growing list of items that will need to be altered to make it work really correctly.
- no industry closures (including exhaustion in pikka's industries), no industry spawning
- no vehicle eldering (this can be bypassed by disabling breadowns)
- no plane crashes
- no annoying popups (news, finances, vehicle testing offers). Some can be disabled with correct patch settings, some not.
- no disasters (can be disabled in patch settings)
- no victory/defeat
.
.
.
In final analysis, the best would be if it was possible to stop time without pausing the game...I mean let the game run without increasing date.
I will post new version once I have a nice savegame to use as default screensaver.
Re: OpenTTD Screensaver
Maybe you can utilize GM_MENU? Because those things shouldn't be happening in the main menu either...
edit: at least part of them.. I don't really know if industry closure and opening is disabled in GM_MENU, but I'd guess so...
edit: at least part of them.. I don't really know if industry closure and opening is disabled in GM_MENU, but I'd guess so...
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
I think I would break far more thing then I would get.
I haven't looked into it yet, but I still hope I will be able to "stop time". Preventing industry closures is probably very simple, so it doesn't matter much. The only thing I'm afraid of is the GRF-triggered closure, I have no idea how NewIndustries and GRF at all work.
EDIT: Yaaaay, it was as simple as I hoped it to be! Also, most of the annoying stuff seems to be dependent on days/months, so I fixed it everything at once...by adding one condition
EDIT 2: OTTD screenaver final release candidate will be released soon. I'm just trying to hunt down one crashing bug.
I haven't looked into it yet, but I still hope I will be able to "stop time". Preventing industry closures is probably very simple, so it doesn't matter much. The only thing I'm afraid of is the GRF-triggered closure, I have no idea how NewIndustries and GRF at all work.
EDIT: Yaaaay, it was as simple as I hoped it to be! Also, most of the annoying stuff seems to be dependent on days/months, so I fixed it everything at once...by adding one condition
EDIT 2: OTTD screenaver final release candidate will be released soon. I'm just trying to hunt down one crashing bug.
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Version 2
- the camera now jumps randomly over the signs
- demo game present (requires OpenTTDCoop GRF pack 7.1)
- fixed many negative effects caused by the time flow (crashes, industry closures, new vehicle screens, town growth...)
- mouse movement now shuts the screensaver down (= the application now behaves fully as screensaver)
- updated to r14030
- the camera now jumps randomly over the signs
- demo game present (requires OpenTTDCoop GRF pack 7.1)
- fixed many negative effects caused by the time flow (crashes, industry closures, new vehicle screens, town growth...)
- mouse movement now shuts the screensaver down (= the application now behaves fully as screensaver)
- updated to r14030
- Attachments
-
- screensaver_v2.diff
- Patch file against r14030
- (14.98 KiB) Downloaded 397 times
-
- OTTD Screensaver v2.zip
- Ready to use executable with preconfigured cfg file and demo game included.
- (2.82 MiB) Downloaded 879 times
Re: OpenTTD Screensaver
I´ve a problem with your screensaver on my WindowsXP laptop.
I configured it with my own savegames. The screensaver starts and chanches the view to the first sign.
But when die camera view moves a third time, the screensaver closes and exits.
I´m looking forward to your reply.
bye
Kruser
I configured it with my own savegames. The screensaver starts and chanches the view to the first sign.
But when die camera view moves a third time, the screensaver closes and exits.
I´m looking forward to your reply.
bye
Kruser
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Send me your savegame, I will have a look at it.
Re: OpenTTD Screensaver
Nice Idea, I like it.
However, it doesn't work for me. When I run it, my screen goes black for 5 secs, then dumps to the desktop.
My operating system is Windows 5.1.2600
However, it doesn't work for me. When I run it, my screen goes black for 5 secs, then dumps to the desktop.
My operating system is Windows 5.1.2600
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Did you exactly follow the instructions? This happens if you don't have the GRF pack and the saved game requires it (my demo game does).
Re: OpenTTD Screensaver
Got the GRF pack, had it for sometime. I'll retry copying the files, I might have missed one of them.CommanderZ wrote:Did you exactly follow the instructions? This happens if you don't have the GRF pack and the saved game requires it (my demo game does).
However in the "config" it worked, I got carried away playing it.
I wish that there was something like this for Locomotion.
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Are you using the demo game or your own map as screensaver?
Re: OpenTTD Screensaver
The one that is the main menu background.CommanderZ wrote:Are you using the demo game or your own map as screensaver?
Screensaver2.sav
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
Strange, it works for me
Does it work for you with the default sreensaver.sav?
Does it work for you with the default sreensaver.sav?
Re: OpenTTD Screensaver
No, the config mode crashes when I load screensaver.sav. I'll try copying the GRF pack again, I may have missed a file.CommanderZ wrote:Strange, it works for me
Does it work for you with the default sreensaver.sav?
Re: OpenTTD Screensaver
A really good idea, CommanderZ
In my scenario the viewport only switches between the first two signs (of four). In your example scenario it works.
In my scenario the viewport only switches between the first two signs (of four). In your example scenario it works.
- Attachments
-
- screensaver.sav
- (374.26 KiB) Downloaded 172 times
- CommanderZ
- Tycoon
- Posts: 1872
- Joined: 07 Apr 2008 18:29
- Location: Czech Republic
- Contact:
Re: OpenTTD Screensaver
I'm looking at it, thanks for report...it seems something is wrong with random number generator.Aylo wrote:A really good idea, CommanderZ
In my scenario the viewport only switches between the first two signs (of four). In your example scenario it works.
Btw, why the hell are you using ISR 3.2...8.0 is out and it is unbelievably beautiful.
Re: OpenTTD Screensaver
I'm using 0.3.2??? Maybe, my openttdcoop pakcage is not up to date. Normally I play with 0.8
Re: OpenTTD Screensaver
How do you create a "sign" in a savegame so that the screensaver can jump to that position?
Oh and the standard screensaver savegame doesnt work for me either. The second one does but jumps to the edge of the map after like 4 seconds. And yes I did follow the instructions...
Oh and the standard screensaver savegame doesnt work for me either. The second one does but jumps to the edge of the map after like 4 seconds. And yes I did follow the instructions...
Who is online
Users browsing this forum: No registered users and 43 guests