[Solved] - Ore and Gem value on a map

Information and discussion for custom maps and mods.
Post Reply
Ronald
Posts: 39
Joined: Fri Aug 30, 2019 9:05 pm

[Solved] - Ore and Gem value on a map

Post by Ronald » Wed Sep 25, 2019 3:07 pm

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 858 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?
Last edited by Ronald on Wed Sep 25, 2019 9:06 pm, edited 1 time in total.

FinalLSmasH
Posts: 1
Joined: Sun Sep 22, 2019 1:14 am

Re: Ore and Gem value on a map

Post by FinalLSmasH » Wed Sep 25, 2019 3:50 pm

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

eskimo
Posts: 327
Joined: Tue Jan 17, 2017 9:59 pm

Re: Ore and Gem value on a map

Post by eskimo » Wed Sep 25, 2019 5:34 pm

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.

Ronald
Posts: 39
Joined: Fri Aug 30, 2019 9:05 pm

Re: Ore and Gem value on a map

Post by Ronald » Wed Sep 25, 2019 8:41 pm

@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 833 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 833 times
C - I also just discovered that the Map Editor shows some sort of "total cash value" in the upper menu bar area.

User avatar
Graion Dilach
Posts: 262
Joined: Fri May 15, 2015 5:57 pm

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

Post by Graion Dilach » 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 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

Ronald
Posts: 39
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald » Thu Sep 26, 2019 5:34 pm

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

eskimo
Posts: 327
Joined: Tue Jan 17, 2017 9:59 pm

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

Post by eskimo » Sat Sep 28, 2019 8:37 am

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.

Matt
Posts: 1024
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

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

Post by Matt » Sun Sep 29, 2019 9:44 am

I made an unoptimized attempt to show the ore value per patch some time ago: https://github.com/OpenRA/OpenRA/pull/14055

Ronald
Posts: 39
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald » Wed Oct 02, 2019 8:16 am

@eskimo - Thanks for your comments
@Matt - That's a nice idea

Post Reply