Forum index VCMI Project - Heroes 3: WoG recreated
Forum of the project aiming to recreate best turn-based strategy ever!

FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  StatisticsStatistics
RegisterRegister  Log inLog in  AlbumAlbum  DownloadDownload

Previous topic :: Next topic
Resourceful AI mod
Author Message
val-gaav 

Joined: 24 Feb 2008
Posts: 186
Posted: 2017-01-20, 11:26   Resourceful AI mod

I am a bit sick with people bashing VCMI AI, while it actually isn't that bad at all.

So to remedy and give some good PR for 0.99 (which is a very nice and stable release) I've decided to make a small mod that would alter starting resources json config file to give AI all the resources it needs .

Code:

What this mod does is changing starting resources AI gets to give AI players almost unlimited resources and gold, thus AI can build every turn in the towns it owns and pose at least some threat to a human player. Note that on S sized maps this settings will make AI very hard or almost impossiblle to beat.  On most M, L, XL sized maps it should be fine to turn this mod on.


Mod is certainly a small one, but I think it is very needed one so that we can reduce number of complains about AI and give a simple answer to all those who complain: "Install resourceful AI mod from launcher" is way better and easier then telling people to alter the json config manually themselves :)

As such I would like to request adding it in launcher so that people can have easy access to it, complain less and like Vcmi more :)

Resourceful AI.zip
Resourceful AI mod
Download 144 Time(s) 1.54 KB

 
     
misiokles 

Joined: 12 Nov 2015
Posts: 183
Posted: 2017-01-21, 08:38   

Yeah, I use this "trick" for some time, and I've noticed that playing S and M size map are reasonably hard to win (more AI players, more harder to win). So, it's semi-solution for now!
 
     
Warmonger 
VCMI programmer


Age: 28
Joined: 07 Jun 2008
Posts: 1545
Location: Warsaw, Poland
Posted: 2017-01-21, 08:39   

Quote:
As such I would like to request adding it in launcher so that people can have easy access to it

Yes, I will have to poke Tow again about fixing FTP server :roll:
_________________
Think twice if you really need to send me private message. Use public forum for general questions.
DJ Warmonger blog
beegee wrote:
Warmonger, you are the best!
 
 
     
val-gaav 

Joined: 24 Feb 2008
Posts: 186
Posted: 2017-01-21, 11:11   

misiokles wrote:
Yeah, I use this "trick" for some time, and I've noticed that playing S and M size map are reasonably hard to win (more AI players, more harder to win). So, it's semi-solution for now!


It is a good solution :) . For larger maps AI would have to be better at developing main hero. AI also doesn't know what secondary skills to take or that it should try to get that tome of earth magic that is on map . This could be offset a bit by giving AI other bonuses then resources, like extra experience or skills on level up, but right now there is no settings for such things in vcmi jsons.


BTW on XL maps with lots of castles AI with this bonuses might also be quite good due to extra gold. Human player will not have enough gold to buy every unit from every castle.... AI however will .
 
     
misiokles 

Joined: 12 Nov 2015
Posts: 183
Posted: 2017-01-21, 11:31   

I agree with you. Just want to say that with that mod, there's no easy small maps to less experienced players :mrgreen:
 
     
Draeganfire 

Age: 45
Joined: 15 Sep 2016
Posts: 47
Posted: 2017-01-24, 03:44   

I m wondering, is there any way to make the mod a part of the game at the harder skill level settings? That way someone learning the game can choose easy and have a relatively simple game, while someone wanting the challenge could choose the harder settings and have to compete with the limitless resources?
 
     
val-gaav 

Joined: 24 Feb 2008
Posts: 186
Posted: 2017-01-24, 15:23   

Yes the mod is just replacing normal startres.json file from config . Having it as mod is handy because you can turn it on/off depending on what you want to gain.

This is how the file looks in the mod (note that easy and normal settings already give a bit less to the AI)
Quote:

// Starting resources, ordered by difficulty level (0 to 4)
{
"difficulty":
[
{
"human": { "wood" : 30, "mercury": 15, "ore": 30, "sulfur": 15, "crystal": 15, "gems": 15, "gold": 30000, "mithril": 0 },
"ai": { "wood" : 500, "mercury": 200, "ore": 500, "sulfur": 200, "crystal": 200, "gems": 200, "gold": 500000, "mithril": 0 }
},

{
"human": { "wood" : 20, "mercury": 10, "ore": 20, "sulfur": 10, "crystal": 10, "gems": 10, "gold": 20000, "mithril": 0 },
"ai": { "wood" : 1000, "mercury": 400, "ore": 1000, "sulfur": 400, "crystal": 400, "gems": 400, "gold": 750000, "mithril": 0 }
},

{
"human": { "wood" : 15, "mercury": 7, "ore": 15, "sulfur": 7, "crystal": 7, "gems": 7, "gold": 15000, "mithril": 0 },
"ai": { "wood" : 1500, "mercury": 700, "ore": 1500, "sulfur": 700, "crystal": 700, "gems": 700, "gold": 1000000, "mithril": 0 }
},

{
"human": { "wood" : 10, "mercury": 4, "ore": 10, "sulfur": 4, "crystal": 4, "gems": 4, "gold": 10000, "mithril": 0 },
"ai": { "wood" : 1500, "mercury": 700, "ore": 1500, "sulfur": 700, "crystal": 700, "gems": 700, "gold": 1000000, "mithril": 0 }
},

{
"human": { "wood" : 0, "mercury": 0, "ore": 0 , "sulfur": 0, "crystal": 0, "gems": 0, "gold": 0, "mithril": 0 },
"ai": { "wood" : 1500, "mercury": 700, "ore": 1500, "sulfur": 700, "crystal": 700, "gems": 700, "gold": 1000000, "mithril": 0 }
}
]
}

 
     
Display posts from previous:   
Reply to topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Add this topic to your bookmarks
Printable version

Jump to:  

Powered by phpBB modified by Przemo © 2003 phpBB Group

Hosting provided by DigitalOcean
Page generated in 0.02 second. SQL queries: 15