Extract screenshots from maps

Tutorials and discussions about Mapping - Introduce your own ones!
Post Reply
User avatar
UTPe
Masterful
Posts: 583
Joined: Sun Jul 12, 2009 7:10 pm
Personal rank: Dude
Location: Trieste, Italy
Contact:

Extract screenshots from maps

Post by UTPe »

Hi guys,
after some months of absence I'm finally back and just yesterday I joined the new discord channel.

Well, I wanted to reply to a post on Hook's forum but I'm still waiting for my old password so I publish here my reply to Darkelarious (maybe others could find this topic useful). If you're in contact with him, please tell him, thanks.
This was the post: https://www.tapatalk.com/groups/hooksut ... t2863.html
and this was the question:

Code: Select all

From the looks of it, thumbnails are extracted from the map file itself. Is there a way to do this manually? Is there a way to automate this so I can implement this for the 333networks website?
Yes, there's a batch file I found somewhere online time ago that lets you automate this operation.
You've to save this .bat file into your UT folder and edit it to obtain your screenshots. In the code, you can see for example I wrote SUF to get all the map screenshots from SUF sniper maps present in my maps folder.
This script will create a "img" folder (in your UT folder) where it will save the level screenshots.


----------------------------------------------------------------------------------------------
@echo off
if not exist temp_img mkdir temp_img
if not exist img mkdir img
for %%F in (maps/*SUF*.*) do (
title Procees %%~nF...
system\ucc batchexport %%F Texture bmp ..\temp_img\
if exist temp_img\screenshot.bmp copy temp_img\screenshot.bmp img\%%~nF.bmp >nul
del /f/q temp_img\*.bmp >nul
)
rmdir temp_img
start img\
----------------------------------------------------------------------------------------------


If you need to setup a stats website for your server, you obviously need also the maps screenshots and this script might help you.

cheers,
Pietro
Attachments
extract_img.rar
(288 Bytes) Downloaded 80 times
Personal map database: http://www.ut99maps.net

"These are the days that we will return to one day in the future only in memories." (The Midnight)
User avatar
obliterat0r
Novice
Posts: 5
Joined: Mon Nov 21, 2016 12:40 pm

Re: Extract screenshots from maps

Post by obliterat0r »

Here's a pack of images I dumped with the ucc script, and then compressed in *.jpg format http://www.mediafire.com/file/j44l8p8kl ... erat0r.tar
User avatar
Dr.Flay
Godlike
Posts: 3347
Joined: Thu Aug 04, 2011 9:26 pm
Personal rank: Chaos Evangelist
Location: Kernow, UK
Contact:

Re: Extract screenshots from maps

Post by Dr.Flay »

Thanks very much, I will notify Darkelarious in the IRC room

Manual config
irc.synirc.net #333networks SSL 6697
Auto config
irc://irc.synirc.net:6697/333networks
Web client
https://cgiirc.synirc.net/?chan=%23333networks
Post Reply