Windows/Linux script for extract default pictures for all maps
Posted: Tue May 19, 2020 4:18 pm
It is not by me. I only mirrored here from: http://www.unrealadmin.org/forums/showt ... hp?t=29928
Pack of many pictures for some maps (323 maps): lower case named version: Script for extracting pictures from your's maps: version to lower case named files: U need place this file on the root folder of your's ut server and run it. This works only for windows 2000 and high. Linux not supported. But this is very simple and u may be create some scripts for others OS.
After running script opens folders, placed in root your's ut server and named "img". This folders contains many bmp files for maps, if u need - convert to other grafics format any graphics converts such as ACDSEE.
For extracting picture used ut engine, and if on maps don't present some packages, then picture don't been extracted.
Sample using:
Wait until window with script displayed (this is some minutes)
On the end, script try to open folder with pictures:
Note: if exist folder temp_img on the root ut server, then will be deleted. this is folder for temporary storage for extracting from map.
Text data:
extractimg.bat:
extractimglower.bat (need program renlower.exe):
renlower.exe - CLI program, takes one argument - filename, and rename it to lowercase. In PHP its maybe:
Look like this info partially published before: viewtopic.php?f=5&t=12494
Pack of many pictures for some maps (323 maps): lower case named version: Script for extracting pictures from your's maps: version to lower case named files: U need place this file on the root folder of your's ut server and run it. This works only for windows 2000 and high. Linux not supported. But this is very simple and u may be create some scripts for others OS.
After running script opens folders, placed in root your's ut server and named "img". This folders contains many bmp files for maps, if u need - convert to other grafics format any graphics converts such as ACDSEE.
For extracting picture used ut engine, and if on maps don't present some packages, then picture don't been extracted.
Sample using:
Code: Select all
G:\UT <------ Please place this file extractimg.bat from archive and run it
├───Cache
├───Eal
├───Help
├───Logs
├───Manual
├───Maps
├───Music
├───NetGamesUSA
├───Sounds
├───System
│ ├───editorres
│ └───moviedemomanager-v1.0
├───Textures
└───Web
├───images
└───plaintext
On the end, script try to open folder with pictures:
Code: Select all
G:\UT
├───Cache
├───Eal
├───Help
├───img <------- Pictures placed here
├───Logs
├───Manual
├───Maps
├───Music
├───NetGamesUSA
├───Sounds
├───System
│ ├───editorres
│ └───moviedemomanager-v1.0
├───Textures
└───Web
├───images
└───plaintext
Text data:
extractimg.bat:
Code: Select all
@echo off
if not exist temp_img mkdir temp_img
if not exist img mkdir img
for %%F in (maps/*.unr) 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\
Code: Select all
@echo off
if not exist temp_img mkdir temp_img
if not exist img mkdir img
for %%F in (maps/*.unr) 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
renlower img\%%~nF.bmp
del /f/q temp_img\*.bmp >nul
)
rmdir temp_img
start img\
Code: Select all
<?php rename($argv[1], dirname($argv[1]).'/'.strtolower(basename($argv[1])));