
come on Zaggy..
get us the images..

Widmak
Moderators: Lone Wolf, Snake Man
Terrainview and CATE dont mess up your falcon installation, as you work with the new theater.L2 files not in Falcon4 dir.quote:Originally posted by xjussix:
Sure, I'll try it this weekend. Any chance of screwing my F4 install up?
So how about if xjussix creates C reader for the bitmaps, outputs some text/conf file for CATE to read. Can CATE then know which segment/tile (coordinates) its processing?quote:Originally posted by Skyfire76:
1- I don't think this should be done in CATE, which should stay purely script based, IMHO. This would be at the edge of CATE actual features, but why not. But see point 3.
3- This would probably be too slow in VB, so again, if xjussix could make another program in C++ for this, all the better.
Scenarios:quote:4- I don't really see how this could be time-saving for you (you still have to colour the whole bitmap), but after all, it's none of my concern
I guess so if Julian ment with the 512x512 reference as 64 segment theater. But if we are looking for one pixel - one tile, then its 64 theater 1024x1024 bitmap and with 128 theater its 2048x2048 bitmap.quote:Originally posted by Skyfire76:
About the couloring of a bitmap, if I'm not mistaken, that would mean you would have to do a 1024x1024 bitmap (for a 128x128 terrain)
Yes. Thats no problem, we arent working on exact science here. we just "kiddie color" the map with BIG brushes, it takes about 10 minutes to color that kind of bitmap and thats using some detail. We can draw the map fast in minute or two if we just platter around a bitquote:and giving each pixel the right coulour !!!
Or is it faster if xjussix writes it with C ?quote:Originally posted by Skyfire76:
This is perfectly doable for me in VB, as long as I can remember how to read a bitmap
Well using those RGB colors in the conf file referring to tile-types, like example 0,255,0 as green would be ok I assume.quote:That would just need on your side that you make a correct conf file (that is : all colours in bitmap are referenced in conf file).
Okay, well maybe we need to make good plan for this. If we have terrainview, CATE, bitmap reader, bitmap-conf-tiler and so on... its one big mess I tell yaquote:However, this does not fit in the current CATE features, but I can do another program for that.
Yes - I forget exactly - its been a while - but I think its inverted, so the first segement of 16x16 tiles are actually the bottom left and the last set is top rightquote:Originally posted by Skyfire76:
And BTW : did you get the email WidowMaker sent to you and Dr Fred Balding about the order in which regions and tiles are "ordered" in the O2 and L2 regarding final terrain map ?
This seems doable, and if I manage to do something like this, it could be enhanced later with some of the ideas of the "Autotiling thoughts" thread.quote:Originally posted by Widowmaker:
been sleeping for a while and i'm already way behind..
256 color bmp
1024*1024 for 64 theater
2048*2048 for 128 theater
4096*4096 for 256 theater
a script wich holds
tilenumbers for instance
and theatersize
Theatersize= 4096
Tilelist:
16 0,0,0
48 0,10,0
etcetra
this way we can alter 256 tiles to this script to read from that 256 paleta of the BMP
Very good very good
and afterthat we have CATE to finetune all
Widmak
I really can't say : I don't know the CAM file format ...quote:Originally posted by Snake Man:
I was thinking more stuff we can automatize, which take painful work from human otherwise.
Airbase tiling and leveling. Yes Widowmaker has been pushing airbase leveling already, but thats just leveling... somebody need to first tile those damn things.
We can read airbase type and coordinates from campaign .cam files, then using those coordinates the correct tiles (according to airbase type, orientation) can be laid out. This of course might be few more lines of code than just replacing existing tiles.
I believe Codec or BaldEagle can provide the necessary campaign objective (.cam) file structures to read the information.
Would this sound something we can do?
PMC TFW
Snake Man
a 256 color bmp image is indexed RedGreenBlue valuesquote:Originally posted by Skyfire76:
This seems doable, and if I manage to do something like this, it could be enhanced later with some of the ideas of the "Autotiling thoughts" thread.
One question : will the palette always be the same (that is : will 256 colors always be the same ones)?
Does someone have the BMP file format somewhere ? IIRC, it's basically an header, then a list of RGB bytes, but some more info on the header would be welcome.
Regards.
Really?quote:Originally posted by Skyfire76:
This seems doable, and if I manage to do something like this, it could be enhanced later with some of the ideas of the "Autotiling thoughts" thread.
I don't have such info here. But I can try to look it from the web, Julian knows the format also, so maybe he can help.quote:Does someone have the BMP file format somewhere ?
Calm down, Snake Manquote:Originally posted by Snake Man:
Really?
That would be great. I'll prepare a screenshot for you what would be another killer feature for CATE. Stay tuned.
I don't have such info here. But I can try to look it from the web, Julian knows the format also, so maybe he can help.
PMC TFW
Snake Man
if alt <0 then alt=1 is not good because Widowmaker wants to make fjords for Iceland and needs the zero ocean altitudequote:Originally posted by Skyfire76:
I could replace this with (if Altitude<0 then Altitude=1) but then, each ocean tile could be raised to 1 foot (except if you make sure ocean tiles are NEVER concerned by rules ..).
O2 is saved with the same name as the L2. But this is really not a big issue, its just user friendliness not to make the user to copy the O2 to match the saved L2.quote:so I'm not sure of how I could base the code to know what name the O2 file should have
Look what the user types for the Save L2 and use that name to copy O2.quote:"Creating" the O2 file at this stage is the same thing as copying the original O2 file. Problem, as said, is to know under which name.
Yeah, of course, but as far as I know, the user can now save the L2 data under "newl2.absolutely_nomeaning_extension" file name. What name I give the O2 in this case ?quote:Originally posted by Snake Man:
Look what the user types for the Save L2 and use that name to copy O2.
PMC TFW
Snake Man
Good newsquote:Originally posted by Snake Man:
Dont worry, I'll get that L2/O2 info for you shortly
PMC TFW
Snake Man
I did not try it with extension yet, but you should ask only the user input for <name>.L2 and that way you use it to make <name>.O2 then.quote:Originally posted by Skyfire76:
user can now save the L2 data under "newl2.absolutely_nomeaning_extension" file name. What name I give the O2 in this case ?
I have always just wrote there like "afghanistan" and hit save or enter. Then it saves nicely "afghanistan.L2" hmm, thats the v1.20quote:Originally posted by Skyfire76:
I think you've not tried latest version yet : I use standard Microsoft Save dialog box. So it's up to the user.