![]() |
Map Creation Questions.
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 |
Re: Map Creation Questions.
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 |
Re: Map Creation Questions.
Quote:
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) |
Re: Map Creation Questions.
Quote:
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 |
Re: Map Creation Questions.
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 |
All times are GMT -4. The time now is 07:52 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.