andy5995 Posted September 10, 2021 Report Share Posted September 10, 2021 petra_extreme is a new mod that adds a higher level of difficulty to the AI Download 3 1 Quote Link to comment Share on other sites More sharing options...
Player of 0AD Posted September 10, 2021 Report Share Posted September 10, 2021 How exactly? Quote Link to comment Share on other sites More sharing options...
MoLAoS Posted September 10, 2021 Report Share Posted September 10, 2021 2 minutes ago, Player of 0AD said: How exactly? Adds a 6th AI bonuses setting modifying build time and resource rate. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 10, 2021 Author Report Share Posted September 10, 2021 The build time is the same as a "very hard". But the gather and trade rate is quite a bit higher. https://github.com/andy5995/petra_extreme/blob/faa5d1a086fc61af3a89dccb408ab4cfc7cc6e15/simulation/helpers/InitGame.js#L44-L48 1 Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted September 11, 2021 Report Share Posted September 11, 2021 Thank you very much @andy5995, how did you tweak the resource gathering bonus for the AI? Which file and which command controls the AI's eco bonus? 1 Quote Link to comment Share on other sites More sharing options...
Player of 0AD Posted September 11, 2021 Report Share Posted September 11, 2021 2 minutes ago, Yekaterina said: Thank you very much @andy5995, how did you tweak the resource gathering bonus for the AI? Which file and which command controls the AI's eco bonus? https://github.com/andy5995/petra_extreme/blob/faa5d1a086fc61af3a89dccb408ab4cfc7cc6e15/simulation/helpers/InitGame.js#L44-L48 // Sandbox, Very Easy, Easy, Medium, Hard, Very Hard, Extreme // rate apply on resource stockpiling as gathering and trading // time apply on building, upgrading, packing, training and technologies let rate = [ 0.42, 0.56, 0.75, 1.00, 1.25, 1.56, 2.5 ]; let time = [ 1.40, 1.25, 1.10, 1.00, 1.00, 1.00, 1.0 ]; 2 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 11, 2021 Report Share Posted September 11, 2021 @andy5995 Cool, thank you! Are there plans to add your mod into the game, or shall it remain as mod? 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted September 11, 2021 Report Share Posted September 11, 2021 We prefer to actually make the PetraAI harder by smarter, but maybe this should be included as a temporary feature. Altough I guess we should also change the construction times on extreme. 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 11, 2021 Report Share Posted September 11, 2021 BTW, does Petra use formations? (and would get bonuses for that?) Quote Link to comment Share on other sites More sharing options...
Player of 0AD Posted September 11, 2021 Report Share Posted September 11, 2021 2 hours ago, Ceres said: BTW, does Petra use formations? (and would get bonuses for that?) It seems like Petra never uses formations, but this is just a minor mistake and not too relevant in comparison to other mistakes. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 11, 2021 Author Report Share Posted September 11, 2021 12 hours ago, Freagarach said: We prefer to actually make the PetraAI harder by smarter, but maybe this should be included as a temporary feature. Altough I guess we should also change the construction times on extreme. I understand everyone would prefer a smarter AI and I would do that if I could, just so you know. A temporary feature? Ok, let me know if you'd like me to submit it as a patch (cc @Stan`). Me and @Jammyjamjammanhave only tested it a little, and I wasn't sure yet about what values to use for the construction time. @CeresI'm not sure yet. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 11, 2021 Author Report Share Posted September 11, 2021 (edited) @Freagarachit would be *really* nice if that rate and time value were configurable in the options. I'm not sure if that could be done though if all players had different values without causing an OOS. I'm guessing it wouldn't be too hard. In a multiplayer game, the rate and build time specified by the host could override the values from all the clients. So basically, if a player joins the game lobby, that would be when the values get sent from the server to the client, as I see it. Edited September 11, 2021 by andy5995 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted September 12, 2021 Report Share Posted September 12, 2021 You can take a look at other numerical values (e.g. relic count). I know you can do that. About including this in the main game, I'm not sure it is needed, I mean if one VH AI is too easy, one can just fight more? I have yet to see someone beating 7 teamed AIs. 9 hours ago, andy5995 said: I understand everyone would prefer a smarter AI and I would do that if I could, just so you know. Yeah, same here. ^^ I've tried a few things, but none really jumped the efficiency of her. I guess it needs more involved rewrites. Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 12, 2021 Report Share Posted September 12, 2021 The problem on some older PCs is that the game lags when playing with too many AIs, though. But that's getting a bit OT here, sorry. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 13, 2021 Author Report Share Posted September 13, 2021 22 hours ago, Freagarach said: About including this in the main game, I'm not sure it is needed, I mean if one VH AI is too easy, one can just fight more? I have yet to see someone beating 7 teamed AIs. @FreagarachI usually don't play solo... me and Jammy sometimes play vs 3 or 4 VH bots or 5 med bots. But that means we can't play any skirmish maps; there are no 2v4 or 2v5 skirmish maps in the default 0ad distribution. Also, sometimes we play with 1 or 2 other people, in which case 4 or 5 VH bots doesn't make for a challenging game. And then there's the point @Ceresmade 17 hours ago, Ceres said: The problem on some older PCs is that the game lags when playing with too many AIs, though. But that's getting a bit OT here, sorry. @CeresI don't think it's off-topic when when a thread about a mod develops into a discussion about implementing the mod into the main code base. 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 13, 2021 Author Report Share Posted September 13, 2021 I've made the rate and time configurable in options->game setup; however, I didn't notice any effect when testing. @Freagarachcan you tell me how to view the values of the rate and time array during game play? Using the Javascript console somehow? Quote Link to comment Share on other sites More sharing options...
Freagarach Posted September 13, 2021 Report Share Posted September 13, 2021 See e.g. https://code.wildfiregames.com/D4250. Do note I meant it to be configurable in the match settings; it is unwise (also impossible, IIRC) to use config values in the simulation, imagine the person you are playing with has different values! 1 Quote Link to comment Share on other sites More sharing options...
Ceres Posted September 13, 2021 Report Share Posted September 13, 2021 @andy5995 You are right, of course. And thanks for making this! 1 Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 14, 2021 Author Report Share Posted September 14, 2021 I don't even think this mod works. After more testing, Very Hard AI vs Extreme, I'm not seeing any noticeable difference. Sometimes the VH wins, sometime the Extreme wins. Even if I change the rate of the extreme to 3.5 and build/research time to 0.5. Quote Link to comment Share on other sites More sharing options...
Yekaterina Posted September 14, 2021 Report Share Posted September 14, 2021 54 minutes ago, andy5995 said: I don't even think this mod works. After more testing, Very Hard AI vs Extreme, I'm not seeing any noticeable difference. Sometimes the VH wins, sometime the Extreme wins. Even if I change the rate of the extreme to 3.5 and build/research time to 0.5. I think the reason might be, even though Petra has gathered resources, it does not know how to spend it properly. Therefore, we need to tweak other parameters in the attack plan.js and buildplan.js and config.js Another thing is, if you decrease the build time for the AI that will allow it to boom a lot faster. 1 1 Quote Link to comment Share on other sites More sharing options...
Freagarach Posted September 14, 2021 Report Share Posted September 14, 2021 4 hours ago, andy5995 said: I don't even think this mod works. After more testing, Very Hard AI vs Extreme, I'm not seeing any noticeable difference. Sometimes the VH wins, sometime the Extreme wins. Even if I change the rate of the extreme to 3.5 and build/research time to 0.5. Well, a 120 men strong army, including champions and siege at around 11 minutes is not something I see with VH often. ^^ The problem is _how_ she attacks and recovers from attacks, I think. Quote Link to comment Share on other sites More sharing options...
andy5995 Posted September 20, 2021 Author Report Share Posted September 20, 2021 (edited) I found there's already an extensive thread about a harder AI and a couple that are being worked on are Kiara and Catilini Another related thread (res-gestae-mod) So.. this very simple mod I did is likely not worth trying at this point. Edited September 20, 2021 by andy5995 Quote Link to comment Share on other sites More sharing options...
Stan` Posted September 20, 2021 Report Share Posted September 20, 2021 Oh nice I hadn't heard of Catilini 1 Quote Link to comment Share on other sites More sharing options...
KKaslana Posted September 20, 2021 Report Share Posted September 20, 2021 Hi @Stan`, it's a bot I made in order to test my Res Gestae mod. By the way, it's called Catilina, not Catilini. 1 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.