.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2003, 01:39 AM

Sammual Sammual is offline
BANNED USER
 
Join Date: Oct 2003
Posts: 194
Thanks: 0
Thanked 0 Times in 0 Posts
Sammual is on a distinguished road
Default 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
Reply With Quote
  #2  
Old November 4th, 2003, 01:44 PM

Sammual Sammual is offline
BANNED USER
 
Join Date: Oct 2003
Posts: 194
Thanks: 0
Thanked 0 Times in 0 Posts
Sammual is on a distinguished road
Default 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
Reply With Quote
  #3  
Old November 4th, 2003, 04:43 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: Map Creation Questions.

Quote:
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.
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)
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #4  
Old November 4th, 2003, 05:17 PM

Sammual Sammual is offline
BANNED USER
 
Join Date: Oct 2003
Posts: 194
Thanks: 0
Thanked 0 Times in 0 Posts
Sammual is on a distinguished road
Default Re: Map Creation Questions.

Quote:
Originally posted by Gandalf Parker:
quote:
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.
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)

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
Reply With Quote
  #5  
Old November 5th, 2003, 03:59 PM

Sammual Sammual is offline
BANNED USER
 
Join Date: Oct 2003
Posts: 194
Thanks: 0
Thanked 0 Times in 0 Posts
Sammual is on a distinguished road
Default 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
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:10 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.