[Patch] Automatic giant screens aka Timelapse

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: [Patch] Automatic giant screens aka Timelapse

Post by Roujin »

Urgh, that's why I don't like that patch format. :evil: If anything conflicts, TurtoiseSVN just spits out a "This patch seems outdated!" message. With SVN .diffs, you get at least to view the file and can decide how to handle conflicts...

So here's a svn .diff for 0.7.0RC2. Only little (not visible in game) changes compared to pm's last version:
* renamed some leftover "patches" to "settings"
* moved stuff around a little
* replaced a wrong type (uint8) by a better one (TransparencyOptionBits)

Have fun!

edit: I've just noticed that the version planetmaker has been updating all the time was not the most recent one I made and is missing features such as number of commands until screenshot is taken, or flexible local screenshot prefix.
currently investigating if this was by mistake or on purpose for some reason...
Attachments
automatic_screenshots_0.7.0RC2.diff
Automatic screenshots patch for 0.7.0RC2
(13.16 KiB) Downloaded 172 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
Iguanna
Engineer
Engineer
Posts: 100
Joined: 21 Nov 2007 00:06

Re: [Patch] Automatic giant screens aka Timelapse

Post by Iguanna »

Ah, thanks very much Roujin, that one applied no worries :)
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: [Patch] Automatic giant screens aka Timelapse

Post by Roujin »

Well, I wasn't able to contact planetmaker until now, so I'll just assume it was by mistake..

So here's an update of the last version I made (including command limit and flexible character for local screen signs) to r15870.

-- removed, see below --
Last edited by Roujin on 04 Apr 2009 10:34, edited 1 time in total.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] Automatic giant screens aka Timelapse

Post by planetmaker »

Roujin wrote:Well, I wasn't able to contact planetmaker until now, so I'll just assume it was by mistake..
That assumption is correct. Thanks for notifying and updating :)

Had (and have) little time lately :S
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] Automatic giant screens aka Timelapse

Post by planetmaker »

Uhm... Roujin, can it be that you forgot to include timelapse.* into the diff file? The source list(s) are updated, but the files are not there :D
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: [Patch] Automatic giant screens aka Timelapse

Post by Roujin »

indeed, sorry.. actually I just wanted to upload it again with the missing file, but while I was at it, I implemented the idea with different directories.
Tell me if you like it, or want something changed ;)

Now it creates a new folder "auto_screenshot" in the base dir (== wherever your openttd.cfg is found) and puts the global auto_screens there. Local screens are given a subdirectory in "auto_screenshot", after their sign name. For example if you make a sign "#important place", its local screens will saved as "[base_dir]/auto_screenshot/#important place/timelapse#000000.[ext]" onwards.

PS: Anyone who wants to test this, better apply it to r15953 instead of r15952, because an annoying little bug has been fixed in that revision. Patch applies to r15953 just as fine as it does to r15952.
Attachments
automatic_screenshots_r15952.diff
automatic screenshots for r15952
(21.76 KiB) Downloaded 231 times
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9432
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: [Patch] Automatic giant screens aka Timelapse

Post by planetmaker »

Roujin wrote: Now it creates a new folder "auto_screenshot" in the base dir (== wherever your openttd.cfg is found) and puts the global auto_screens there. Local screens are given a subdirectory in "auto_screenshot", after their sign name. For example if you make a sign "#important place", its local screens will saved as "[base_dir]/auto_screenshot/#important place/timelapse#000000.[ext]" onwards.
Thanks Roujin for the fix/update. And indeed, I very much like the idea with the directories. I already thought of that as a good enhancement of this patch but - as usual - time warranted to set working on it. So... thanks for this increase in usability, too!
Xaroth
Engineer
Engineer
Posts: 103
Joined: 01 May 2006 09:09

Re: [Patch] Automatic giant screens aka Timelapse

Post by Xaroth »

Nice concept, maybe some ideas:

1) standard-format screenshots instead of giant screenshots .. so you get just a portion of the map.. useful f.ex for sites that want to show what's going on on the server
1B) location of screenshot being either random location (some fancy calculation to make sure you're not taking screenshots of 80% edge in view) .. or based on last activity (might be a bit tricky?)

2) Saving options, while you can keep naming the screenshot after the date, maybe an option to use a fixed filename, or a numeric increment filename, to allow for better chronological indexing and constant-replacing of the same file (as with 1) to allow for a static filename that can be fetched for online display..


now if only there was a -proper- way to have a dedicated server with full screenshot capabilities with latest trunk, i would love to see timelapses of things like openttdcoop or h2h servers

[edit] it would actually help if i actually read -all- the pages in this topic ... some of those points might be null and void.
Lead Manager of OpenDUNE
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

Re: [Patch] Automatic giant screens aka Timelapse

Post by Roujin »

Thanks for your feedback, Xaroth. :)
like you mentioned, some of those points are (partially) already possible in the latest version of my patch
Xaroth wrote:Nice concept, maybe some ideas:

1) standard-format screenshots instead of giant screenshots .. so you get just a portion of the map.. useful f.ex for sites that want to show what's going on on the server
-> local screenshots in latest version of the patch
1B) location of screenshot being either random location (some fancy calculation to make sure you're not taking screenshots of 80% edge in view) .. or based on last activity (might be a bit tricky?)
Well, I think random location would not be very useful, especially if you want to make a timelapse video of it. Based on last activity is an interesting idea, but then again probably too much jumping around again if there are multiple players.

Currently you can have a bit of variety by using multiple signs for local screenshots...

2) Saving options, while you can keep naming the screenshot after the date, maybe an option to use a fixed filename, or a numeric increment filename, to allow for better chronological indexing and constant-replacing of the same file (as with 1) to allow for a static filename that can be fetched for online display..
Using only one file that gets overwritten again and again is an option I could add easily in next version. But can't this also been archieved by some clever script, that automatically selects the file with the highest number for display?
now if only there was a -proper- way to have a dedicated server with full screenshot capabilities with latest trunk, i would love to see timelapses of things like openttdcoop or h2h servers
Well, since we have such a high limit of client slots now, I guess someone could set up a machine that connects to the server of his likings as spectator with a version of openttd patched with my patch, in order to record timelapse videos...
Maybe the assembling of the screenshots to videos can also be automated... and then automatically uploaded somewhere..

Unfortunately, that's all beyond my ability, so I'm still waiting for someone to do something like this. 8)
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
Dustin
Transport Coordinator
Transport Coordinator
Posts: 272
Joined: 07 Dec 2005 19:22

Re: [Patch] Automatic giant screens aka Timelapse

Post by Dustin »

This is such a super cool idea. It would be really nice for AI development. Is there a way we can vote it into 0.7.X sometime soon? Is it ready for prime time?
User avatar
Xander
Route Supervisor
Route Supervisor
Posts: 485
Joined: 18 May 2007 12:47
Location: Oxford
Contact:

Re: [Patch] Automatic giant screens aka Timelapse

Post by Xander »

Things aren't "voted" in - they get developed, brought up to trunk standards, tested thoroughly and then, if it fits in with the main game and adds to the overall "fun" (this is at the lead developers discretion) it goes in.

Or at least the process looks like that. Devs feel free to correct me :)
Real Tycoons do it on Trains!

JAMI: Just Another Moronic Intelligence
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 40 guests