Extract screenshots from maps

Tutorials and discussions about Mapping - Introduce your own ones!

Extract screenshots from maps

Postby UTPe » Fri Nov 03, 2017 12:51 pm

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 9 times
Personal UT99 website: http://utdatabase.gamezoo.org | Personal forum: http://fragfinity.freeforums.org/index.php
Personal file database: http://ut99files.gamezoo.org | Personal map database: http://ut99maps.gamezoo.org
User avatar
UTPe
Adept
 
Posts: 432
Joined: Sun Jul 12, 2009 7:10 pm
Location: Trieste, Italy
Personal rank: Dude

Re: Extract screenshots from maps

Postby obliterat0r » Sat Nov 04, 2017 1:28 am

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
obliterat0r
Novice
 
Posts: 5
Joined: Mon Nov 21, 2016 12:40 pm

Re: Extract screenshots from maps

Postby Dr.Flay » Sun Nov 05, 2017 8:30 pm

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
User avatar
Dr.Flay
Site Staff
 
Posts: 3055
Joined: Thu Aug 04, 2011 9:26 pm
Location: Kernow, UK
Personal rank: Chaos Evangelist


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest