View Full Version : Map Creation Questions.
Sammual
November 4th, 2003, 01:39 AM
How does the game know where the provinces borders are and where the center of the province is?
(Anything RED is a border and a single white pixel is the center of a province?)
How does the game number the provinces?
(Start in the upper left and scan right, go down a row when you hit the edge and start back on the left, repeat. First "Capital" pixel is 1, second is 2....?)
Sammual
Sammual
November 4th, 2003, 01:44 PM
I started work on a web-based senerio editor and I think I answered some of my own questions.
1) The game does not care about borders.
2) The "Capital" pixel is the key.
3) The provinces number from bottem left to the right, up, to the right, in order of the "Capital" pixel found.
In order to go any further I need to know the (X,Y) so-ordinants for each "Capital" pixel. As I am working within a web based system I am having a lot of trouble with that one. I can make map makers ad this info at the bottom of a map file, make the user click on each one when a new map is added, or find someone to write me a Java Applet that scans a TGA file and reports back the (X,Y) for each lone White pixel.
Suggestions anyone?
Sammual
Gandalf Parker
November 4th, 2003, 04:43 PM
Originally posted by Sammual:
I can make map makers ad this info at the bottom of a map file, make the user click on each one when a new map is added, or find someone to write me a Java Applet that scans a TGA file and reports back the (X,Y) for each lone White pixel.
<font size="2" face="sans-serif, arial, verdana">Id say user-clicks, or java script would be easier.
Since the capitals are always a particular color, and one pixel big, the script shouldnt be too hard. It just needs to read the tga scanning single lines and reporting x,y for each "white pixel". If it numbers each find sequentially then it would match province numbers? (sorry, I cant write the script. I can just talk about it)
Sammual
November 4th, 2003, 05:17 PM
Originally posted by Gandalf Parker:
</font><blockquote><font size="1" face="sans-serif, arial, verdana">quote:</font><hr /><font size="2" face="sans-serif, arial, verdana">Originally posted by Sammual:
I can make map makers ad this info at the bottom of a map file, make the user click on each one when a new map is added, or find someone to write me a Java Applet that scans a TGA file and reports back the (X,Y) for each lone White pixel.
<font size="2" face="sans-serif, arial, verdana">Id say user-clicks, or java script would be easier.
Since the capitals are always a particular color, and one pixel big, the script shouldnt be too hard. It just needs to read the tga scanning single lines and reporting x,y for each "white pixel". If it numbers each find sequentially then it would match province numbers? (sorry, I cant write the script. I can just talk about it) </font><hr /></blockquote><font size="2" face="sans-serif, arial, verdana">The problem is JavaScript and Cold Fusion can not read a TGA to find the color value or (X,Y) of a given pixel. That is why I would need the user to click on them for the program or a Java program to scan the TGA.
Sammual - Time to learn Java
Sammual
November 5th, 2003, 03:59 PM
Does anyone have the graphics for things like the Forts, Temples, Ownership flags?
If so please let me know if I can get a copy.
Thanks,
Sammual
vBulletin® v3.8.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.