Stan` Posted October 10, 2022 Report Share Posted October 10, 2022 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.zipFetching info... 3 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 10, 2022 Report Share Posted October 10, 2022 On 10/10/2022 at 2:05 PM, 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 Expand it would be interesting to have rare resources to trade. Exchange jade for silk. Quote Link to comment Share on other sites More sharing options...
Stan` Posted October 10, 2022 Author Report Share Posted October 10, 2022 You mean like DE's glory? Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 10, 2022 Report Share Posted October 10, 2022 On 10/10/2022 at 5:35 PM, Stan` said: You mean like DE's glory? Expand Not exactly, it's more like AoE 3 and rise of nations. In AoE 3 us called Export. https://ageofempires.fandom.com/wiki/Export https://riseofnations.fandom.com/wiki/Rare_Resources Quote Link to comment Share on other sites More sharing options...
wowgetoffyourcellphone Posted October 10, 2022 Report Share Posted October 10, 2022 On 10/10/2022 at 5:35 PM, Stan` said: You mean like DE's glory? Expand 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. 1 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 10, 2022 Report Share Posted October 10, 2022 On 10/10/2022 at 7:18 PM, 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. Expand It will serve a lot to exchange and control them would give special bonuses. Quote Link to comment Share on other sites More sharing options...
AIEND Posted October 20, 2022 Report Share Posted October 20, 2022 On 10/10/2022 at 7:18 PM, wowgetoffyourcellphone said: 荣耀不可交易或贡献。 我认为“稀有资源”可能是。 因此,想象一下地图上的一个钻石矿,您可以从中收集,然后将其用于特殊用途或将其发送给不同的玩家或将其转换为市场上的不同资源。 我想稀有资源将在交易/易货交易中获得高价值,并可用于有影响力的特殊功能或技术。 Expand Generally speaking, it is "luxury goods", whether it is gems, spices, silk, tea, coffee, tobacco. 2 Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 20, 2022 Report Share Posted October 20, 2022 On 20/10/2022 at 9:33 AM, AIEND said: Generally speaking, it is "luxury goods", whether it is gems, spices, silk, tea, coffee, tobacco. Expand Good name. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 20, 2022 Report Share Posted October 20, 2022 there should be basic resources (current ones). Abstract or intangible resources: Faith, fervor, glory honor, virtue. And interchangeable resources. These should be on the market only. Or in theory not to appear in the stockpile bar, only in the market.Resources that serve to exchange resources. Quote Link to comment Share on other sites More sharing options...
AIEND Posted October 20, 2022 Report Share Posted October 20, 2022 On 20/10/2022 at 4:54 PM, Lion.Kanzen said: 应该有基本资源(当前资源)。 抽象或无形资源:信仰、热情、荣耀荣誉、美德。 和可互换的资源。 这些应该只在市场上。 或者理论上不会出现在储备栏上,只会出现在市场上。用于交换资源的资源。 Expand I think there is also a fundamental resource - prisoners of war, and in classical times prisoners of war were the main source of slaves. Quote Link to comment Share on other sites More sharing options...
AIEND Posted October 20, 2022 Report Share Posted October 20, 2022 On 20/10/2022 at 4:54 PM, Lion.Kanzen said: 应该有基本资源(当前资源)。 抽象或无形资源:信仰、热情、荣耀荣誉、美德。 和可互换的资源。 这些应该只在市场上。 或者理论上不会出现在储备栏上,只会出现在市场上。用于交换资源的资源。 Expand 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. Quote Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted October 20, 2022 Report Share Posted October 20, 2022 On 20/10/2022 at 5:16 PM, 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. Expand not necessarily . Not all civilizations did this. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.