Pack of many pictures for some maps (323 maps) and
lower case named version
Script for extracting pictures from your's maps and
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:
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
Wait until window with script displayed (this is some minutes)
On the end, script try to open folder with pictures:
Code:
G:\UT
├───Cache
├───Eal
├───Help
├───img <------- Pictures placed here
├───Logs
├───Manual
├───Maps
├───Music
├───NetGamesUSA
├───Sounds
├───System
│ ├───editorres
│ └───moviedemomanager-v1.0
├───Textures
└───Web
├───images
└───plaintext
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.
-----
ADD:
New mirror:
http://inethub.olvi.net.ua/ftp/ut/utilites/
ftp://inethub.olvi.net.ua/ut/utilites/
Direct links:
http://inethub.olvi.net.ua/ftp/ut/ut...extractimg.rar
http://inethub.olvi.net.ua/ftp/ut/ut...ctimglower.rar
http://inethub.olvi.net.ua/ftp/ut/utilites/img.rar
http://inethub.olvi.net.ua/ftp/ut/utilites/imglower.rar
ftp://inethub.olvi.net.ua/ut/utilites/extractimg.rar
ftp://inethub.olvi.net.ua/ut/utilite...ctimglower.rar
ftp://inethub.olvi.net.ua/ut/utilites/img.rar
ftp://inethub.olvi.net.ua/ut/utilites/imglower.rar
Text data:
extractimg.bat:
Code:
@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\
extractimglower.bat (need program renlower.exe):
Code:
@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\
renlower.exe - CLI program, takes one argument - filename, and rename it to lowercase. In PHP its maybe:
PHP Code:
<?php rename($argv[1], dirname($argv[1]).'/'.strtolower(basename($argv[1])));
---
Theme cloned at
http://inethub.olvi.net.ua/personal/ut.php