Jump to content

One resource to rule them all


Stan`
 Share

Recommended Posts

Made a quick mode to test having only one resource. The context was trying to investigate a bug for @The Undying Nephalim

It works for the most part

- It seems the minimap doesn't allow any other resource name (here gas) but that might be an oversight from Changeset 7555 – Wildfire Games metal works fine

- Petra doesn't like it. Too many hardcodings

- Counter.js had some hardcodings

Spoiler
Index: counters.js
===================================================================
--- counters.js	(revision 27143)
+++ counters.js	(working copy)
@@ -97,14 +97,12 @@
 		if (!g_TeamHelperData[playerState.team])
 		{
 			g_TeamHelperData[playerState.team] = {};
-			for (let value of ["food", "vegetarianFood", "femaleCitizen", "worker", "enemyUnitsKilled",
+			for (let value of ["femaleCitizen", "worker", "enemyUnitsKilled",
 			                   "unitsLost", "mapControl", "mapControlPeak",
 			                   "mapExploration", "totalBought", "totalSold"])
 				g_TeamHelperData[playerState.team][value] = new Array(playerState.sequences.time.length).fill(0);
 		}
 
-		summaryAddObject(g_TeamHelperData[playerState.team].food, playerState.sequences.resourcesGathered.food);
-		summaryAddObject(g_TeamHelperData[playerState.team].vegetarianFood, playerState.sequences.resourcesGathered.vegetarianFood);
 
 		summaryAddObject(g_TeamHelperData[playerState.team].femaleCitizen, playerState.sequences.unitsTrained.FemaleCitizen);
 		summaryAddObject(g_TeamHelperData[playerState.team].worker, playerState.sequences.unitsTrained.Worker);
@@ -310,9 +308,7 @@
 
 function calculateVegetarianRatio(playerState, index)
 {
-	return calculatePercent(
-		playerState.sequences.resourcesGathered.vegetarianFood[index],
-		playerState.sequences.resourcesGathered.food[index]);
+	return 0;
 }
 
 function calculateFeminization(playerState, index)

 

- Could be nice to test having different resource per faction using @s0600204 's mod Faction-Specific Resources mod for 0 A.D. - mod.io

one_resource.zip

  • Like 3
Link to comment
Share on other sites

3 hours ago, Stan` said:

Made a quick mode to test having only one resource. The context was trying to investigate a bug for @The Undying Nephalim

It works for the most part

- It seems the minimap doesn't allow any other resource name (here gas) but that might be an oversight from Changeset 7555 – Wildfire Games metal works fine

- Petra doesn't like it. Too many hardcodings

- Counter.js had some hardcodings

  Reveal hidden contents
Index: counters.js
===================================================================
--- counters.js	(revision 27143)
+++ counters.js	(working copy)
@@ -97,14 +97,12 @@
 		if (!g_TeamHelperData[playerState.team])
 		{
 			g_TeamHelperData[playerState.team] = {};
-			for (let value of ["food", "vegetarianFood", "femaleCitizen", "worker", "enemyUnitsKilled",
+			for (let value of ["femaleCitizen", "worker", "enemyUnitsKilled",
 			                   "unitsLost", "mapControl", "mapControlPeak",
 			                   "mapExploration", "totalBought", "totalSold"])
 				g_TeamHelperData[playerState.team][value] = new Array(playerState.sequences.time.length).fill(0);
 		}
 
-		summaryAddObject(g_TeamHelperData[playerState.team].food, playerState.sequences.resourcesGathered.food);
-		summaryAddObject(g_TeamHelperData[playerState.team].vegetarianFood, playerState.sequences.resourcesGathered.vegetarianFood);
 
 		summaryAddObject(g_TeamHelperData[playerState.team].femaleCitizen, playerState.sequences.unitsTrained.FemaleCitizen);
 		summaryAddObject(g_TeamHelperData[playerState.team].worker, playerState.sequences.unitsTrained.Worker);
@@ -310,9 +308,7 @@
 
 function calculateVegetarianRatio(playerState, index)
 {
-	return calculatePercent(
-		playerState.sequences.resourcesGathered.vegetarianFood[index],
-		playerState.sequences.resourcesGathered.food[index]);
+	return 0;
 }
 
 function calculateFeminization(playerState, index)

 

- Could be nice to test having different resource per faction using @s0600204 's mod Faction-Specific Resources mod for 0 A.D. - mod.io

one_resource.zip 207 kB · 2 downloads

it would be interesting to have rare resources to trade.

Exchange jade for silk.

Link to comment
Share on other sites

1 hour ago, Stan` said:

You mean like DE's glory?

Glory isn't tradeable or tributable. I assume 'rare resources' could be. So imagine a diamond mine on the map, you could gather from it and then use it for something special or send it to a different player or convert it to a different resource at the market. I imagine rare resources would net a high value in trading/bartering and be usable for impactful special features or techs. 

  • Like 1
Link to comment
Share on other sites

1 hour ago, wowgetoffyourcellphone said:

Glory isn't tradeable or tributable. I assume 'rare resources' could be. So imagine a diamond mine on the map, you could gather from it and then use it for something special or send it to a different player or convert it to a different resource at the market. I imagine rare resources would net a high value in trading/bartering and be usable for impactful special features or techs. 

It will serve a lot to exchange and control them would give special bonuses.

Link to comment
Share on other sites

  • 2 weeks later...
于 2022 年 11 月 10 日上午 3:18,wowgetoffyourcellphone 说道:

荣耀不可交易或贡献。 我认为“稀有资源”可能是。 因此,想象一下地图上的一个钻石矿,您可以从中收集,然后将其用于特殊用途或将其发送给不同的玩家或将其转换为市场上的不同资源。 我想稀有资源将在交易/易货交易中获得高价值,并可用于有影响力的特殊功能或技术。 

Generally speaking, it is "luxury goods", whether it is gems, spices, silk, tea, coffee, tobacco.

  • Like 2
Link to comment
Share on other sites

19 分钟前,Lion.Kanzen 说:

应该有基本资源(当前资源)。

抽象或无形资源:信仰、热情、荣耀荣誉、美德。

和可互换的资源。 这些应该只在市场上。

或者理论上不会出现在储备栏上,只会出现在市场上。用于交换资源的资源。

I think there is also a fundamental resource - prisoners of war, and in classical times prisoners of war were the main source of slaves.

Link to comment
Share on other sites

21 分钟前,Lion.Kanzen 说:

应该有基本资源(当前资源)。

抽象或无形资源:信仰、热情、荣耀荣誉、美德。

和可互换的资源。 这些应该只在市场上。

或者理论上不会出现在储备栏上,只会出现在市场上。用于交换资源的资源。

I think there is a question that must be addressed, is that do we think of metals as intermediaries for the exchange of various resources, that is, can metals be regarded as money? Because now in the market, it is not like in the age of empires that one resource is first exchanged for currency, and then currency is exchanged for other resources, but a state of barter in which each resource can be exchanged for other resources, which makes the role of the market. If it is too large, it interferes with the collection rule of resources.

Link to comment
Share on other sites

1 minute ago, AIEND said:

I think there is a question that must be addressed, is that do we think of metals as intermediaries for the exchange of various resources, that is, can metals be regarded as money? Because now in the market, it is not like in the age of empires that one resource is first exchanged for currency, and then currency is exchanged for other resources, but a state of barter in which each resource can be exchanged for other resources, which makes the role of the market. If it is too large, it interferes with the collection rule of resources.

not necessarily . Not all civilizations did this.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...