Page 1 of 1

[Solved] - Ore and Gem value on a map

Posted: Wed Sep 25, 2019 3:07 pm
by Ronald
When desiging and creating an OpenRA map:
cash_value_of_an_ore_gem_field_tile_500.jpg
cash_value_of_an_ore_gem_field_tile_500.jpg (292.02 KiB) Viewed 1180 times
! - What is the total cash value of 1 maptile filled with
- Ore?
- Gems?

2 - How can one determine how much ore/gem cash-value is
- present inside a certain ore/gem field
- totally present on an OpenRA map?

Re: Ore and Gem value on a map

Posted: Wed Sep 25, 2019 3:50 pm
by FinalLSmasH
1- What is the total cash value of 1 maptile filled with
Ore 325
Gems 200

single tiles with no resources around it:
Ore 50
gems 100

2 - How can one determine how much ore/gem cash-value is
- count it yourself
- total is shown at the top on the right side of zoom

Re: Ore and Gem value on a map

Posted: Wed Sep 25, 2019 5:34 pm
by eskimo
I believe you can go in multiples of 25$ with ore.

Use the 'total $$$ on map' amount for 1st made ore patch. Then make a note of that number. Times that by 2, then make a new ore patch equalling so the total $$$ on map equals the "times 2" amount.

When adding 3rd,4th, etc, just make a note of the current total amount before and after placing new ore patch, using the difference of those amounts as a guide to the new patch $$ amount.

Sadly yes it's all manual.

Re: Ore and Gem value on a map

Posted: Wed Sep 25, 2019 8:41 pm
by Ronald
@FinalSmash and @eskimo: Thanks for your Ore/Gem value answers and pointing me in the right direction.

A - I've found some form of documentation over here on the OpenRa Wiki / Traits section:
https://github.com/OpenRA/OpenRA/wiki/T ... enratraits

world_yaml.jpg.jpg
world_yaml.jpg.jpg (130.35 KiB) Viewed 1155 times
B - The Ore/Gem values are declared inside the world.yaml file of a OpenRA mod.
map_editor_value_amount.jpg
map_editor_value_amount.jpg (204.82 KiB) Viewed 1155 times
C - I also just discovered that the Map Editor shows some sort of "total cash value" in the upper menu bar area.

Re: [Solved] - Ore and Gem value on a map

Posted: Thu Sep 26, 2019 4:42 am
by Graion Dilach
The problem with all this is that OpenRA does not store how much resource was placed on to a cell and instead derives the amount of layers from how many nearby resource cells were there and decides this upon map load which necessitates the wide lazy rounded ore blobs in maps and makes small patches (few cells wide) useless.

https://github.com/OpenRA/OpenRA/blob/1 ... er.cs#L133

Re: [Solved] - Ore and Gem value on a map

Posted: Thu Sep 26, 2019 5:34 pm
by Ronald
Graion Dilach wrote:
Thu Sep 26, 2019 4:42 am
The problem with all this is that OpenRA does not store how much resource was placed on to a cell
Thanks Graion, I already noticed something like this when digging into the map.yaml / world.yaml files.
- https://github.com/OpenRA/OpenRA/wiki/T ... sourcetype

Re: [Solved] - Ore and Gem value on a map

Posted: Sat Sep 28, 2019 8:37 am
by eskimo
I think the gradual growth per cell placing is a good aesthetic, but can also pose issues. So being quite meticulous will prevent mis placings that can't be seen which send harvesters on random drives, uneven $$$, uneven growth and uneven harvesting times. But those last two have not been fully tested or acknowledged on more natural looking ore placements.

Re: [Solved] - Ore and Gem value on a map

Posted: Sun Sep 29, 2019 9:44 am
by Matt
I made an unoptimized attempt to show the ore value per patch some time ago: https://github.com/OpenRA/OpenRA/pull/14055

Re: [Solved] - Ore and Gem value on a map

Posted: Wed Oct 02, 2019 8:16 am
by Ronald
@eskimo - Thanks for your comments
@Matt - That's a nice idea