Nescio Posted June 21, 2019 Author Report Share Posted June 21, 2019 Feature requests (things I can't do myself): AI: build forge adjacent to metal mines; fundamentally, dropsite determination ought to be based on resource type, instead of treating wood, stone, metal all as one and the same AI: replace all hard-coded template file name paths with classes attach points for units (e.g. chariots, elephants), to allow soldiers to fight and be killed independently from the unit that's carrying them `<BuildRestrictions/Distance>` applies to other players as well, e.g. you can't build a fortress right next to one of a different player damage variance: instead of a fixed amount of damage, attack damage now varies from 50% to 150% of the defined value currency-based market, rather than barter-based (see D1957 and onwards) units should be able to have a garrison size greater than 1 (similar to population); e.g. cavalry occupies two garrison slots, elephants six resource variance: resource suppliers now start with a random amount between `<ResourceSupply/Min>` and `<ResourceSupply/Max>`. resource consumption for attacks; e.g. everytime a stone-thrower shoots, you pay 1 stone elevation bonus is taken into account for attack range visualization elevation bonus applies to vision range as well different ranged attacks for different garrisoned units (e.g. archers, javelineers, and stone-throwers on quinqueremes) Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 21, 2019 Report Share Posted June 21, 2019 16 minutes ago, Nescio said: resource variance: resource suppliers now start with a random amount between `<ResourceSupply/Min>` and `<ResourceSupply/Max>` I'll do that after D1718 is committed, (maybe after the template differential to actually use that feature) 18 minutes ago, Nescio said: elevation bonus is taken into account for attack range visualization I think there is a patch for that. 18 minutes ago, Nescio said: different ranged attacks for different garrisoned units (e.g. archers, javelineers, and stone-throwers on quinqueremes) You mean like if you garrison a catapult the building should fire catapult projectiles ? Quote Link to comment Share on other sites More sharing options...
Nescio Posted June 21, 2019 Author Report Share Posted June 21, 2019 39 minutes ago, Stan` said: You mean like if you garrison a catapult the building should fire catapult projectiles ? Yes! And if a structure has both archers and javelineers inside, it ought to fire both arrows (long range, lower damage) and javelins (shorter range, high damage). 1 Quote Link to comment Share on other sites More sharing options...
Silier Posted June 21, 2019 Report Share Posted June 21, 2019 1 hour ago, Nescio said: elevation bonus applies to vision range as well c++ changes required 1 hour ago, Nescio said: elevation bonus is taken into account for attack range visualization see D1800, I may update it today to affect units and recalculate once per turn 1 hour ago, Nescio said: AI: build forge adjacent to metal mines; fundamentally, dropsite determination ought to be based on resource type, instead of treating wood, stone, metal all as one and the same basemanager : findBestDropsiteLocation remove these lines for (let res in gameState.sharedScript.resourceMaps) if (res != "food") total += gameState.sharedScript.resourceMaps[res].map[j]; Quote Link to comment Share on other sites More sharing options...
Nescio Posted June 21, 2019 Author Report Share Posted June 21, 2019 27 minutes ago, Angen said: basemanager : findBestDropsiteLocation remove these lines for (let res in gameState.sharedScript.resourceMaps) if (res != "food") total += gameState.sharedScript.resourceMaps[res].map[j]; Thanks, I tried that, but the AI doesn't build forges near mines. My guess is something should be changed in lines 421 onwards. Quote Link to comment Share on other sites More sharing options...
Silier Posted June 21, 2019 Report Share Posted June 21, 2019 ai buidls new dropsite only if assumes it is worth it. basemanager 543 you may need to play with the numbers when it is worth because you just removed 3 other resources from equation ( as the main would calculate twice I think) And sure, there is dropsite to dropsite and dropsite to cc cutoff at some distance. Quote Link to comment Share on other sites More sharing options...
Nescio Posted June 21, 2019 Author Report Share Posted June 21, 2019 The AI doesn't use DropsiteMetal or DropsiteStone, instead, it uses the Storehouse class, which means it will build centres or storehouses near mines, even though it can only drop of iron at the forge. I made the forge a requirement for every phase, to ensure the AI builds one, but as a consequence its units move long distances to and from the mines. Quote Link to comment Share on other sites More sharing options...
Nescio Posted June 29, 2019 Author Report Share Posted June 29, 2019 Minor tweaks: structures can no longer attack structures outposts no longer have attack or vision of there own; instead, outposts has aura which improves garrisoned unit; one unit can be garrisoned on it, instead of inside; can be killed indepently from outpost (cf. walls); ungarrisoned outpost: garrisoned outpost: 4 Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 3, 2019 Author Report Share Posted July 3, 2019 And I've been playing around with the gui again: However, I'm having some issues with the panel entities: I want not only to display heroes and catafalques, but also wonders, therefore I changed `gui/session/session.js` line 186 into: var g_PanelEntityOrder = ["Hero", "Relic", "Wonder"]; As you can see the wonder doesn't show up. What am I doing wrong? The panels show the health bar, which is helpful for heroes. For catafalques and wonders capture points are at least as important as health, therefore a capture bar should be displayed too. I tried implementing it myself, but couldn't get it working properly without errors. Maybe someone more versed in javascript than me is willing to write a patch for that and upload it to phabricator? Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 5, 2019 Author Report Share Posted July 5, 2019 (edited) Several 0abc updates: city walls have 49 pierce armour, all other structures 36 standardized structure foundation armour for all structures to 1 crush, 2 hack, 16 pierce, 4 thrust altered random map starter units: infantry: Carthage: 5 spearmen Gauls, Rome: 5 swordsmen Kush, Mauryas: 5 archers Macedon, Ptolemies, Seleucids: 5 pikemen one cavalry: Carthage, Macedon, Seleucids: lancer champion Gauls, Kushites, Ptolemies: spearman champion Mauryas: javelineer Rome: spearman one healer animals worth 300 food Mauryas: one worker elephant changed centre costs to 200 food, 200 metal, 400 stone, 200 wood; 400 building time; 10 population bonus new civ bonuses: Spoiler All bonuses and penalties from the default distribution have been removed. Carthage: markets −50% wood cost; city walls +25% stone cost, −25% wood cost, +20% build time, +20% health; merchant ships and traders −15% training time. Gauls: centres 0 stone cost, +150% wood cost, −20% build time, −20% health, −10% territory influence; economic structures −15% build time, −15% health; fortresses −50% stone cost, +100% wood cost; military structures −20% build time, −20% health; city walls −10% build time, −10% health; temples 0 stone cost, +200% wood cost, −40% build time, −40% health; healers +2 armour levels; melee cavalry −15% training time. Kushites: economic structures −70% wood cost, +100% build time; healers +3 healing range. Macedon: military structures −10% build time; siege engines −15% construction time. Mauryas: centres 0 stone cost, +200% wood cost, +5 population bonus, +10 garrison capacity; economic structures −10% wood cost, −10% build time, −10% health; city walls 0 stone cost, +200% wood cost, −25% build time, −25% health; temples 0 stone cost, +300% wood cost, −20% build time, −20% health; elephants −15% training time. Ptolemies: economic structures −70% wood cost, +100% build time; healers −20% healing time. Rome: siege walls −10% build time; city walls +10% stone cost, +10% wood cost, +10% build time, +10% health. stone throwers +25% wood cost, +20% health, +25% ranged attack crush damage. Seleucids: starting centre +30% resource costs, +30% build time, +5 population bonus, +10 garrison capacity, +30% health, +30% capture points, +11% territory influence. Team bonuses — [EDIT]: In the city phase, Carthage can upgrade their houses to apartment blocks (+50% health and capacity) and their centres to fortified centres (+100% health and capacity): Spoiler From left to right: centre, fortified centre, fortress: Edited July 5, 2019 by Nescio cart fortified centre 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted July 6, 2019 Report Share Posted July 6, 2019 On 7/3/2019 at 4:45 PM, Nescio said: want not only to display heroes and catafalques, but also wonders, therefore I changed `gui/session/session.js` line 186 into: var g_PanelEntityOrder = ["Hero", "Relic", "Wonder"]; As you can see the wonder doesn't show up. What am I doing wrong? You'll have to add `Wonder` to "Player.js" line 42 in simulation. On 7/3/2019 at 4:45 PM, Nescio said: The panels show the health bar, which is helpful for heroes. For catafalques and wonders capture points are at least as important as health, therefore a capture bar should be displayed too. I tried implementing it myself, but couldn't get it working properly without errors. Maybe someone more versed in javascript than me is willing to write a patch for that and upload it to phabricator? I've just been fooling around with that, I got the capture bar, without errors, but it overwrites the health bar. I'm just not very experienced with the GUI. Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 6, 2019 Author Report Share Posted July 6, 2019 6 hours ago, Freagarach said: You'll have to add `Wonder` to "Player.js" line 42 in simulation. Thanks for pointing that out! Indeed I didn't look outside the gui folder when tweaking the gui. It now works: Spoiler 6 hours ago, Freagarach said: I've just been fooling around with that, I got the capture bar, without errors, but it overwrites the health bar. I'm just not very experienced with the GUI. Posted some feedback at https://code.wildfiregames.com/D2047 Another thing, when you have insufficient population capacity to train units, the population numbers flash orange every 0.5 s. Similarily, I want resource amounts to flash orange when they're negative (because of resource trickle rates in my mod). If you have time and are willing to, then perhaps you can figure out how to do that? 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted July 6, 2019 Report Share Posted July 6, 2019 Glad it works! Thanks for the feedback, I'll update when I get the chance. 29 minutes ago, Nescio said: Another thing, when you have insufficient population capacity to train units, the population numbers flash orange every 0.5 s. Similarily, I want resource amounts to flash orange when they're negative (because of resource trickle rates in my mod). If you have time and are willing to, then perhaps you can figure out how to do that? You can take a look at "session.js" at line 817. The "IsTrainingBlocked" comes from the "GuiInterface.js"-component in simulation. Quote Link to comment Share on other sites More sharing options...
borg- Posted July 6, 2019 Report Share Posted July 6, 2019 On 6/29/2019 at 5:18 AM, Nescio said: Minor tweaks: structures can no longer attack structures outposts no longer have attack or vision of there own; instead, outposts has aura which improves garrisoned unit; one unit can be garrisoned on it, instead of inside; can be killed indepently from outpost (cf. walls); ungarrisoned outpost: garrisoned outpost: This is cool, but how does it work with a melee unit? Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 6, 2019 Author Report Share Posted July 6, 2019 (edited) 1 hour ago, borg- said: This is cool, but how does it work with a melee unit? It works as I expect one would expect: you can garrison one melee infantry inside an outpost, giving extensive vision and protection from melee attacks. However, he can't attack nearby units (because he doesn't have a ranged attack himself) and he can be hit by enemy ranged attacks. (Those two poor blue men can't attack the red one, therefore they try to capture the outpost. Unfortunately they have a capture attack of 2 each and the outpost has a garrisoned capture regeneration of 5 (0 when ungarrisoned), which means they'll never be able to capture it; they need at least three men to capture a garrisoned outpost.) Minor details: red pike goes through the roof and garrisoned flag is unnecessary. [EDIT]: civ flags are now removed Edited July 6, 2019 by Nescio new commit 1 Quote Link to comment Share on other sites More sharing options...
borg- Posted July 6, 2019 Report Share Posted July 6, 2019 5 minutes ago, Nescio said: It works as I expect one would expect: you can garrison one melee infantry inside an outpost, giving extensive vision and protection from melee attacks. However, he can't attack nearby units (because he doesn't have a ranged attack himself) and he can be hit by enemy ranged attacks. (Those two poor blue men can't attack the red one, therefore they try to capture the outpost. Unfortunately they have a capture attack of 2 each and the outpost has a garrisoned capture regeneration of 5 (0 when ungarrisoned), which means they'll never be able to capture it; they need at least three men to capture a garrisoned outpost.) Minor details: red pike goes through the roof and garrisoned flag is unnecessary. Thank you for the explanation, very interesting. 1 Quote Link to comment Share on other sites More sharing options...
balduin Posted July 7, 2019 Report Share Posted July 7, 2019 Is there a version of this mod, which can be downloaded from the in-game download manager? If there is a version available what is the name? Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 7, 2019 Author Report Share Posted July 7, 2019 3 hours ago, balduin said: Is there a version of this mod, which can be downloaded from the in-game download manager? If there is a version available what is the name? No, there isn't, nor will there be. Uploading a mod to https://mod.io/ (the host for the in-game mod download manager) is rather time consuming; I tried it once for a tiny mod, which took me about fifteen minutes to write the mod but over an hour to upload it to mod.io and complete all required steps over there. Moreover, everytime a new version of a mod is uploaded, it has to be checked and signed by a dedicated team member (@Itms or someone else with similar privileges) before it becomes available for download. In other words, it might be convenient from a player point-of-view but is quite inefficient from a developer perspective. My mod is very much a work-in-progress, sometimes I do nothing for a month, sometimes I make more than a dozen commits per day. Uploading changes to the repository ( https://github.com/0abc/0abc-a23 ) takes a few seconds via the command line. Everyone can view the newest version immediately and clone the repository or download a zip. Place the mod in your mod folder and it is available in game. See also posts on the first page of this thread. 2 Quote Link to comment Share on other sites More sharing options...
balduin Posted July 7, 2019 Report Share Posted July 7, 2019 @Nescio Thanks for the explanation. Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 8, 2019 Author Report Share Posted July 8, 2019 12 hours ago, balduin said: @Nescio Thanks for the explanation. You're welcome. The main point is that this mod is available and playable. Feel free to try it out yourself. Feedback is appreciated. Quote Link to comment Share on other sites More sharing options...
Freagarach Posted July 9, 2019 Report Share Posted July 9, 2019 (edited) On 6/21/2019 at 1:19 PM, Nescio said: units should be able to have a garrison size greater than 1 (similar to population); e.g. cavalry occupies two garrison slots, elephants six D2056. On 6/21/2019 at 1:19 PM, Nescio said: damage variance: instead of a fixed amount of damage, attack damage now varies from 50% to 150% of the defined value That one is not too hard: In "Armour.js"-component, line 53 (in TakeDamage) you could add "* randFloat(0.5, 1.5)". Edited July 9, 2019 by Freagarach Typo. Link. Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 9, 2019 Author Report Share Posted July 9, 2019 4 hours ago, Freagarach said: D2056. That one is not too hard: In "Armour.js"-component, line 53 (in TakeDamage) you could add "* randFloat(0.5, 1.5)". Great, your help is appreciated! Quote Link to comment Share on other sites More sharing options...
Freagarach Posted July 9, 2019 Report Share Posted July 9, 2019 42 minutes ago, Nescio said: Great, your help is appreciated! Glad to be of service I saw in your requested features at git that you want to have capturable foundations: see here. Quote Link to comment Share on other sites More sharing options...
Nescio Posted July 9, 2019 Author Report Share Posted July 9, 2019 (edited) 1 hour ago, Freagarach said: Glad to be of service I saw in your requested features at git that you want to have capturable foundations: see here. Thanks, missed that one. On 4/2/2019 at 5:11 PM, Freagarach said: It can indeed be done. For anyone interested: add the "capturable" element in "templates/special/filter/foundation.xml". Just tried it, but both <Capturable/> and <Capturable merge=""/> cause errors for structures that aren't capturable (e.g. palisades and walls in my mod). [EDIT]: Ignore that, it seems to work indeed; something else is causing errors with wallsets. [EDIT]: D2054, apparently. [EDIT]: now fixed. Edited July 9, 2019 by Nescio update 2 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted July 9, 2019 Report Share Posted July 9, 2019 (edited) Happy it works, I was already trying to reproduce it The only thing I dislike is that a uncapturable structure also has a foundation which is not capturable. Fun fact: AI will also capture foundations and finish them Edited July 21, 2019 by Freagarach Typo. 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.