Deity Empires

Deity Empires

View Stats:
hantarooo Aug 25, 2019 @ 12:14am
New world map from png file and Minerals
No Minerals founded in the world map if I start new game and Load Map from png file.
I suggest following way.

1. The txt file maps from pixel colors to terrain IDs and mineral IDs.
Example 1: This means "Lime pixel is Grassland with Wheat".
0xff00ff00 = 1,10
Example 2: This means "Lime pixel is Grassland with no mineral".
0xff00ff00 = 1,0
Example 3: This means "Lime pixel is Grassland with no mineral" (default).
0xff00ff00 = 1

2. Minerals are randomly set.

These ways are chosen by txt file.
(RandomMineral=0 for mapped mineral, RandomMineral=1 for randomly minerals.)
Last edited by hantarooo; Aug 25, 2019 @ 12:16am
Originally posted by Tlaloc:
This sounds like a good way. We also expect to allow full map editing, so we expect the final format to be more similar to encounters.dat format, and will allow using translated text names, or id numbers where relevant:


random_minerals = 1 //if 0 then no minerals are randomly added and only below minerals appear. if 1 then minerals are randomly added and below are ignored. if 2 then minerals are randomly then the below minerals are added over top.

0xff00ff00 = { //green pixel
terrainid = grassland
mineralid = wheat
player = dianic
unit = highmen archer
citypop = 50000
cityrace = highmen
building = marketplace
building = blacksmith
}


0xff008000 = { //dark green pixel
terrainid = mountain
mineralid = adamantium
lair = 1
unit = red dragon
unit = baby red dragon
}



Are you creating maps? If you are then we will start to work on this sooner. Please let us know.


< >
Showing 1-5 of 5 comments
The author of this thread has indicated that this post answers the original topic.
Tlaloc  [developer] Aug 25, 2019 @ 1:10am 
This sounds like a good way. We also expect to allow full map editing, so we expect the final format to be more similar to encounters.dat format, and will allow using translated text names, or id numbers where relevant:


random_minerals = 1 //if 0 then no minerals are randomly added and only below minerals appear. if 1 then minerals are randomly added and below are ignored. if 2 then minerals are randomly then the below minerals are added over top.

0xff00ff00 = { //green pixel
terrainid = grassland
mineralid = wheat
player = dianic
unit = highmen archer
citypop = 50000
cityrace = highmen
building = marketplace
building = blacksmith
}


0xff008000 = { //dark green pixel
terrainid = mountain
mineralid = adamantium
lair = 1
unit = red dragon
unit = baby red dragon
}



Are you creating maps? If you are then we will start to work on this sooner. Please let us know.


hantarooo Aug 25, 2019 @ 1:31am 
Thank you.
I'm not creating maps.
But other Japanese person is playing with custom map he created.
I think he feel happy if he hear this.
GeorgeJJR Aug 25, 2019 @ 4:04am 
Full map editing would be amazing.
hantarooo Aug 27, 2019 @ 2:32am 
It may be better to specify the locations of the units and cities in image coordinates.
-Specifying these locations by coordinates is not difficult because they are sparse.
-Since there are many types of units and cities, the number of colors increases if specified by color. However, it is difficult for humans to distinguish subtle differences in pixel colors.
Tchey May 26, 2020 @ 1:30am 
Hello,

Almost a year later, is it a thing now, full map editing ?
If not, is it worked on ?
If yes, why i don’t find any player made map ?
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Aug 25, 2019 @ 12:14am
Posts: 5