View Full Version : MapTruncator v01 (pre-beta)


Kalderus
Jan 04, 2007, 10:21 AM
Hallo Lads and Gents

ive make a little tool to truncate os crop maps...

Features:

u can crop a area from a bigger map: example => u have a 100x100 plot map and crop an area of NNxNN on each position



this tool reads the plot-section of a CivWarlordsWBSave or Civ4WorldBuilderSave and get folowing values:

x/y pos
isXOfRiver
RiverXXDirection
FeatureType and FeatureVariety
TerrainType
PlotType

all other values would be deletet in this version...


+ u get at the end a picture of ur crop erea, Shor Map Infos (grid width, grid height, num plots written) and the PlotList...


what u must do is...

copy PlotList from MapTruncator-Output (below the crop picture) and reaplace the PlotList in ur CivWarlordsWBSave or Civ4WorldBuilderSave File.
copy relevant Map Infos in ur file
dont forget ur civ-start-positions...
think thats all



ToDO:

needful things


REQUIREMENTS:

this tool ist a php and javascript tool... u NEED:

an apache server or other server with php > 5.0 and the gd-libs (get XAMPP (http://www.apachefriends.org/de/index.html))
FireFox (http://www.mozilla.com/en-US/products/)1.5.0.9 (i only test in it, but try others)
activated javascript1.2 (?)


INSTALATION:


install XAMPP (http://www.apachefriends.org/de/index.html) (apache destr)
unzip the 145507 to the HTDOCS folder (Expample: c:\xampp\htdocs\MapTurncator\)
start ur browser with URL: "http://localhost/Maptruncator/".. lets go


ATTENTION:
a file u will upload is only a copy, the result is on screen

UPDATE: 6. Jan 2006 (version 05)

ADDED:

* graphical outfit updated
* all WBFile-Data will be read an write (improvements, units, citys...)
* map-legend
* terrain: all standart terrain-types and hills and mountains added
* map-data will be updated... grid width,grid height and num plots written
* starting position not supportet (u must look for right positions in player data)

Next Steps:

* map cleaner (u can delete some things u dont need...)
* set starting positions...
* ... needful things

ATTANTION: please delete the old version from ur htdoc folder... and extract there this 145507 version...

Thx

GoodGames

greets

Kalderus

PS: sorry for my bad english... i work on it (since 20 years:crazyeye: )

hamtastic
Jan 04, 2007, 06:31 PM
Sounds great!

I'd been thinking about how great something like this would be recently.

I can't say I understand perfectly from the above how to use it, but I'll see if I can give it a shot sooner or later.

Kalderus
Jan 05, 2007, 04:40 AM
ok here some screens...from version 05

Arne
Jan 05, 2007, 01:13 PM
Great tool! :goodjob: (Well I have to say, I didn't test it until now, but it sounds great. This is, what I was looking for allready for long time.).

Kalderus
Jan 05, 2007, 01:27 PM
thx,

current i work on next steps:

* display all map informations like hills, units...
* read and output all WBFile-Data
* clean up a map i.e. deleta all improvements or roads or TeamReveals
* set start positions

in future i want add:

* edit/add Teams and Player data
* edit/add map data
* edit/add game info data

and i want to make this tool mouse usable... its posible with javascript :crazyeye:

Kalderus
Jan 06, 2007, 01:23 PM
new version 05 updated... see first post...thx

Fiend777Fits
Oct 20, 2007, 07:57 PM
umm.. how does this work now? i see a box in the upper left and i cant seem to get it to select an area to "truncate" the map. it just remains there OFF the map. map cleaner doesnt work either. also save features, i see none. HELP!!!

EDIT: internet explorer obviously wasn't the browser you were talking about. hehe i feel stupid.

Kalderus
Oct 21, 2007, 01:10 PM
Hi Fiend777Fits

im sorry, but i dont more work on this browser-tool. current i make a new version for windows and primaly for bts...

but for this version u use, its important to use the firefox browser and u must make javascript ON in the browser...

then u can move with the arrow-buttons the truncate-area and press then the button to truncate this area...

then u get a plotlist of this area... if u copy only the plots in ur map-file u can use it very good... it works only this way

im sorry for stop this project:cry:, but a new is comming in the near future...;)

Fiend777Fits
Oct 21, 2007, 06:14 PM
Hi Fiend777Fits

im sorry, but i dont more work on this browser-tool. current i make a new version for windows and primaly for bts...

but for this version u use, its important to use the firefox browser and u must make javascript ON in the browser...

then u can move with the arrow-buttons the truncate-area and press then the button to truncate this area...

then u get a plotlist of this area... if u copy only the plots in ur map-file u can use it very good... it works only this way

im sorry for stop this project:cry:, but a new is comming in the near future...;)
yeah i figured it out. thanks for this tool. and keep up the good work