Jump to content


Bajsapan

Member Since 08 Aug 2015
Offline Last Active Sep 24 2015 01:57 PM

#1014910 BFME2 remove catapults/ballistas

Posted by Bajsapan on 24 September 2015 - 01:53 PM

 

Ok man, my suggestion to you would be to change the AI's priority for building them.

 

This is quite a simple process and only requires editing one file (if I remember correctly). Basically, the AI builds its base in three phases and depending on what phase it's on, it will only use certain units. All we're going to do is make it so it will only build siege weapons when it has reached phase three. We will then make it so it only uses one percent of its total command points on them (you'll be lucky if you see any siege weapon at all with a percentage that low).

 

The file you want to edit is skirmishaidata.ini (data/ini/default/skirmishaidata). In this file, you have all the AI's setting for build priorities (and all other kind of things). Use the Find tool (Ctrl + F) and search for ArmyMemberDefinition. When you find the first one, start to go down through them, looking for any siege weapons. Keep in mind that you're also looking for things like Ents and Battering rams as well as the obvious Trebuchets, Catapults and Ballista.

 

This is what the Gondor Trebuchet definition looks like:

	ArmyMemberDefinition GondorTrebuchet_Member
		Unit			= GondorTrebuchet ;seige weapon
		PercentageOfArmyPhase1	= 5.0
		PercentageOfArmyPhase2	= 20.0
		PercentageOfArmyPhase3	= 25.0
	End

Now you want to change it so it only builds in phase three and only with the lowest priority. It should look like this:

	ArmyMemberDefinition GondorTrebuchet_Member
		Unit			= GondorTrebuchet ;seige weapon
		PercentageOfArmyPhase1	= 0.0
		PercentageOfArmyPhase2	= 0.0
		PercentageOfArmyPhase3	= 1.0
	End

Make sure you go through all the definitions and find all the different types of siege weapons and edit them accordingly. You can of course change all the phases to 0.0 and completely remove the AI's ability to build them at all.

 

 

I'm almost certain doing this will give you the desired effect with minimum effort. Good look man and let me know how it goes. :thumbsuphappy:

 

 

ADDED: It might be a good idea to a comment out the old values as apposed to overwriting them (in case you ever want to undo the changes without deleting the file). It would look like this:

	ArmyMemberDefinition GondorTrebuchet_Member
		Unit			= GondorTrebuchet ;seige weapon
		PercentageOfArmyPhase1	= 0.0		;5.0
		PercentageOfArmyPhase2	= 0.0		;20.0
		PercentageOfArmyPhase3	= 1.0		;25.0
	End

*Quoted wrong person bost above, mod please remove it*

 

Man, I don't know anything about coding those files, not even what program to open them with. Neither can I find the .ini files for the buildings, as I have no f*cking idea where to look. I've gone through BFME2 files at programs(x86) but can't find anything of wich you've mentioned. 

I'm using vanilla BFME2 v1.06. If someone could edit the files really quick for me, it'd be awesome. What I'm trying to figure out atm is how to remove trolls, mumakills, catapults and stuff like that, so that I can have massive infantry battles instead of getting butchered by 10+ catapults and/or trolls. Your idea seemed much better than removing siegeworks commandbuttons, incase I want to use a catapult or something. If anyone could edit those files and upload them somewhere, I'd be very thankful!  :)