Author Topic: BMP Image to field placement.  (Read 1382 times)

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« on: February 07, 2004, 12:00:23 AM »
Okay today i am going to try this out let you know how i go here is the objective of the program.

Input a 256 color bmp image 512x512.

You define the color of zones and also countrys.

So lets say you want to place the following countrys.
Bishops
Rooks
Knights

Each country has 3 zones.

So that a tottal of about 9 colors per country that you need to define.

You go into aces high and build up your field groups. After you have done that just save the group.

Define it in the program as the.
Medium field = group one
Small Field = group two
Large field = Group three.

And also per country so lets say you have.

Country 1.
Medium Field = group one.
Small Field = group two.
Large field = group three.

Country 2.
ect repeat above.

After building a ma map i do not want to repeat the same placement of fields all over again and again. Instead i am going to build this program so that people like yourself who have no understand how to use the terrian editor can simply use the program i created to place the fields automaticaly.

This reduce a large percentage of time killer in the terrian editor. This reduces the following things you need to do in a MA map.

1. Place manual GV locations.
2. Place Resupply System.
3. Work On heightmap.

Allready i have created a program to autoevel fields base on the elv file data. This program also sets all objects to 30K so that when building your heightmap you can get a visual idea were everthing is located. This means that you can build lovely sloping terrian that is more aimed at gv war than using the terrian editor to do this task.

Though this will only place fields, its up to you as the terrian maker to re-place towns, place country strat system inplace, place the country resupply system, place the gv spawn locations. The reason why gv spawn locations need to be added manual is because of the nature of how and why and were you want them. Editing a bmp map to show the spawn points is pretty hard. Then its the issue with aleignment.

But i will let you know how i go.

F6Bomber.

Offline straffo

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 10029
BMP Image to field placement.
« Reply #1 on: September 29, 2004, 07:14:18 AM »
did you completed this project ?

Offline B17Skull12

  • Gold Member
  • *****
  • Posts: 3839
BMP Image to field placement.
« Reply #2 on: September 29, 2004, 03:38:15 PM »
WOW, now this would be useful :)
II/JG3 DGS II

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #3 on: September 30, 2004, 06:16:26 AM »
Yes i completed it and it been finished a long time ago.

I was going to design a 3D terrian editor for aces high, but the only problem is that time/money.

But yes the project was finished a long time ago, i can dig up the files if you would like.

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #4 on: September 30, 2004, 06:20:07 AM »
The program came with alot of function ality.

Auto Level.
Auto Hightmap.
Auto field placement.

Just to name acouple.

The only problem now is, i havent looked at the new data format that hitech uses for his maps and files. Unless he can give me some insight on how it works right now so i may change the code if it has changed.

Chad Lion.
clion@bigpond.com

Offline straffo

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 10029
BMP Image to field placement.
« Reply #5 on: September 30, 2004, 08:07:00 AM »
Quote
Originally posted by F1Bomber
Yes i completed it and it been finished a long time ago.

I was going to design a 3D terrian editor for aces high, but the only problem is that time/money.

But yes the project was finished a long time ago, i can dig up the files if you would like.

Yep :)
Otherwise I would have to make it myself ... and as I'm quite a lazy bastard the 1st release will be in spring 2016 :D

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #6 on: September 30, 2004, 09:57:20 AM »
http://www.bushtech.com.au/chads/work.zip

All there, documentation is on the files in some parts.

I am working on other projects at the moment, and i have little time to develop it anymore. i dont play aces high 2 anymore. But i may reconsider working on this or updating it for ah2 for a months subscription to ah2.

Chad Lion.

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #7 on: October 01, 2004, 08:07:10 AM »
Considering there hasnt been a reply yet.

Your either completly lost, or have no idea were to start. Or havent downloaded it yet?

Offline straffo

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 10029
BMP Image to field placement.
« Reply #8 on: October 01, 2004, 08:25:22 AM »
I'm lost :D

(plus your indenting suck :p)

Seriously I'm trying to find an friendly IDE ... next I'll have to learn the basic of Java (should not be difficult afterall I'm a c++ dev. )

I'm also trying to figure how the Gif to field work.

From what I've understood :
You set on colour for each item (ie : red for small field, green for Vfield etc ...)

like that :


But was is the purpose of the fields I've maked with a "?" ?
Can you also set a filter for open file dialog  ,I've no clue of the kind of file I should use ...

Offline straffo

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 10029
BMP Image to field placement.
« Reply #9 on: October 01, 2004, 09:03:46 AM »
feked dependancies ...

how do I say to netbean what path it should browse to find a complied class ?

I compiled BMPLoader.java (I did fight a bit to "mount" the Jar file ...)
So I've in my work directory a superb (and brand new) BMPloader.class (the equivalent of an .o if I'm not mistaken ?)
Now I stuck here :

Work/loadbitmap.java [38:1] cannot resolve symbol
symbol  : class BMPLoader
location: class loadbitmap
    BMPLoader loader;
    ^
1 error
Errors compiling loadbitmap.
 

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #10 on: October 01, 2004, 11:07:25 PM »
dont know if i actualy used the bml loader anymore, try to indent it out and try.

Just another note, I was not originaly going to release it. So please keep your programing sytles to yourself. Remember that development of software is not cheap nor is it free.

I will have a look at my files. brb.

Offline F1Bomber

  • Copper Member
  • **
  • Posts: 214
      • http://www.bushtech.com.au
BMP Image to field placement.
« Reply #11 on: October 01, 2004, 11:29:50 PM »
In the old days with the terriean editor you could save group of objects. I used this function to save a group of a small field, vh field, and other strat targets ects..

Simply select group you wanted to save and click export to a file.

The gif to field placement was originaly designed with a Moduler design approach and treating each field as an object.

Each instance of a field would have a loader that would load the raw txt file into its dataset. So this was done for the groups, eg.. Large Field, small field, and also medium field. When the colors were placed on the gif image, the program would offset the raw data to the new location and spit out the corret placement and also zone area.

This meant, that i could keep 4 objects in memory after reading the raw txt file. Then just offset them and spit out the correct placement of the fields on the map. All the user had to do was select the groups that he had saved and just assign them to the color on the gif image.

My memory is abit ruth at this stage, i havent looked over the code yet. There is bound to be logic bombs in it because i designed this during my learning java at Univercity for my computer science degree.

If you have a look at some of the dates on the files for example.
Created on 25 January 2004, 16:03

I finished the project this year about the start of the year, but i havent really worked on it since.

Mainly because of 2 main issues. Hitech upgraded aces high to ah2 and i talked to hitech that now he considered fields as a entity instead of multi objects.

My original plan with the design of the system was not to stop at its current state. But was to design a whole 3D world, that map makers could use all these functions and more, to creat worlds. With everthing that you would need in a map building application. I talked to skuzzy about it, but  I decided to leave it alone until aces high 2 came on the sceen and i could get more information off hitech how his new engine worked before starting the project.

I have about 3 documents that describe the design and implimentation of the new terriean editor. Going from raw data types to the full terriean editor. These were suppost to be submited to hitech near the complettion of this project so that i could get the all clear from him to design this for the map making community free of charge.

Through things change, I got less intrested in aces high 2. And the truth of the matter is, that i and another member that will go un-named submited 2 maps but no word of them since. But this was during the last 6 months of aces high. So pretty much i have focused my attentions in other areas.

You may not like some of my indexing in the application i did creat, through I was not neccearly creating the application so people could look at it. It was mainly a proof of concept on my part to see if i could achieve what i wanted to using my programing skills for univercity.

Your most welcome to ask any question, i will try to answere them the best way i can.
« Last Edit: October 01, 2004, 11:32:32 PM by F1Bomber »

Offline straffo

  • Persona Non Grata
  • Plutonium Member
  • *******
  • Posts: 10029
BMP Image to field placement.
« Reply #12 on: October 02, 2004, 07:28:50 AM »
Quote
Originally posted by F1Bomber
Just another note, I was not originaly going to release it. So please keep your programing sytles to yourself. Remember that development of software is not cheap nor is it free.


I know I'm a software developer since too long (1993 I think ...) I was just yanking your chain :p

If you look at the news you will see there is an expected modification of the TE coming ...


I wanted a tool to make terrain builing more RAD like and make just the prototype of the terrain.
After spending last night and some hours today on the TE I find it counter intuitive and really uneasy to use.

My choice would be to rebuild from scratch a new TE but I've neither the time nor the time or to give up... so give up.

Concerning skills after looking at your code you're IMO doing right ,your code just show a lack of experience but it's not unexpected concidering your still student.
I've seen far worst code made by "senior" developer :)

Offline reacher15

  • Copper Member
  • **
  • Posts: 260
BMP Image to field placement.
« Reply #13 on: February 05, 2006, 10:20:26 PM »
this is an awsome tool...it made placing fields and zones so easy! you need to see this gem at work. i spoke to Bomber about it but he has lost interest.

here is how it worked..this is the BMP file to set the zones and place the bases



here is the result



it took placing fields from mind numbing tedium to an actual working solution.

if someone can make this tool we will have alot more map makers and more MA maps

Offline Waffle

  • HTC Staff Member
  • Administrator
  • *****
  • Posts: 4849
      • HiTech Creations Inc. Aces High
BMP Image to field placement.
« Reply #14 on: February 06, 2006, 12:33:48 AM »
It took you 2 years to figure out how to use it and make that map?