Jump to content


Photo

Increasing Build Radius of a Fortress


  • Please log in to reply
22 replies to this topic

#1 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 11 December 2009 - 08:10 PM

I got spoiled playing SEE with it's larger fortress build radius and would like to mod the stock BFME2 to get the same results, but nothing I've tried seems to work. I've figured out how to do it with farms, but what line am I looking for in gamedata.ini to do the same with a fortress?


Edited by Ridder Geel, 07 April 2013 - 03:53 PM.
Fixed title spelling, so search can find it correctly


#2 Imdrar

Imdrar

    The Dark Apprentice

  • Members
  • 430 posts
  • Location:The Borderline of Night and Day
  • Projects:Tol-in-Gaurhoth
  •  Villain On Demand

Posted 11 December 2009 - 11:12 PM

When saying "built radius" ... do you mean the distance wherein you can construct walls starting from a fortress-aligned wall hub? Or are you talking about the effective range of upgrades such as the Angmar ice walls?

And what have you tried to do already?

Defender of the Lawful Evil


Posted Image


#3 Ap0C552

Ap0C552
  • Members
  • 84 posts

Posted 12 December 2009 - 12:30 AM

<FACTION>_FORTRESS_WALL_EFFECTIVE_RADIUS =

I think

#4 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 12 December 2009 - 03:05 PM

By "build radius" - yes, I mean the distance you can build walls out from the fortress, usually shown by the white circle.


<FACTION>_FORTRESS_WALL_EFFECTIVE_RADIUS =

I think

I tried editing that in gamadata.ini - for some reason it still comes out the same smaller size. I entered the same #'s into that field that were in SEE - even doubled it - and no difference.
Any ideas?

Edited by Hairy Plotter, 12 December 2009 - 03:05 PM.


#5 Imdrar

Imdrar

    The Dark Apprentice

  • Members
  • 430 posts
  • Location:The Borderline of Night and Day
  • Projects:Tol-in-Gaurhoth
  •  Villain On Demand

Posted 12 December 2009 - 05:38 PM

The line where you entered this stuff, is it named "WallUpgradeRadius"? I have to ask for such details, because I can't have a look myself. :D

Defender of the Lawful Evil


Posted Image


#6 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 13 December 2009 - 07:52 PM

It was in gamadata.ini - the same text as shown above - <FACTION>_FORTRESS_WALL_EFFECTIVE_RADIUS - but it doesn't seem to change the length I can build my walls out from or the size of the white circle - I even changed it to match the numbers that are in SEE and no change...

Edited by Hairy Plotter, 13 December 2009 - 07:53 PM.


#7 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 13 December 2009 - 08:16 PM

It seems you guys cant seem to figure it out together :p So i will tell you how :p
Go to the Wall's ini :p and find this line:
MaxBuildoutDistance = 700;;MEN_FORTRESS_WALL_EFFECTIVE_RADIUS
in....
Behavior = WallHubBehavior ModuleTag_Build_A_Span
		Options = OPTION_ONE
		MaxBuildoutDistance = 700;;MEN_FORTRESS_WALL_EFFECTIVE_RADIUS
		StaggeredBuildFactor = STANDARD_WALL_STAGGERED_BUILD_FACTOR

	;;This defines the pattern built on flat terrain
		SegmentTemplateName = MenWallSegmentSmall
		SegmentTemplateName = MenWallSegmentSmall
		SegmentTemplateName = MenWallSegmentSmall
		SegmentTemplateName = MenWallSegmentSmall
		SegmentTemplateName = MenWallSegmentSmall
	;;SegmentTemplateName = MenWallSegmentSmall
	;;SegmentTemplateName = MenWallSegmentSmall
	;;SegmentTemplateName = MenWallSegmentSmall
		SegmentTemplateName = MenWallHubSmall
		
		HubCapTemplateName = MenWallHubSmall
		DefaultSegmentTemplateName = MenWallSegmentSmall
		CliffCapTemplateName = 	MenWallCliffCap
	;ShoreCapTemplateName = [NAME]		
	;BorderCapTemplateName = [NAME]		
	;ElevatedSegmentTemplateName = [NAME]
	End

I believe you want to change that line i put up there :p (MaxBuildoutDistance)
code found in... menwallhubsmallexpansion.ini :p
Ridder Geel

#8 Imdrar

Imdrar

    The Dark Apprentice

  • Members
  • 430 posts
  • Location:The Borderline of Night and Day
  • Projects:Tol-in-Gaurhoth
  •  Villain On Demand

Posted 13 December 2009 - 09:32 PM

It seems you guys cant seem to figure it out together :p So i will tell you how :p


I try my very best, but it's hard to figure out certain codes without having access to my home computer. All I can do is to dig in my memory, so you're in an unequal advantage. :p
Nevertheless, what you have found looks convincing. :p

Defender of the Lawful Evil


Posted Image


#9 Puzzler33

Puzzler33
  • Members
  • 226 posts

Posted 13 December 2009 - 11:15 PM

But the max buildout distance will only affect how long you can make a wall span before it places a hub and not how far away from the fortress walls and hubs can be built (or maybe the other way round), right?
Posted Image

#10 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 14 December 2009 - 12:04 AM

...no its the distance from the fort :p
The segments and such determine how many seg's before a hub :p
Ridder Geel

#11 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 14 December 2009 - 12:45 PM

Now THAT looks more promising... I'll give that a whirl this evening...

#12 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 14 December 2009 - 09:44 PM

Hmmm - no dice. I have my MEN_FORTRESS_WALL_EFFECTIVE_RADIUS up to 1200 like SEE and changed the max buildout distance, and while it does show the circle farther out it doesn't let you build the walls any further than it did before. Then once the walls are built and you select the furthest hub it moves the radius back to the original distance...

Edited by Hairy Plotter, 14 December 2009 - 09:44 PM.


#13 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 14 December 2009 - 09:59 PM

Did you change that code on any possible wall piece? :p

Or try changing something like this in the fortress' ini:
MaxCastleRadius 			= 130.0
Behavior = CastleBehavior ModuleTag_castle
		  CastleToUnpackForFaction	= Isengard Fortress_Isengard
		CastleToUnpackForFaction	= Men Fortress_Isengard
		CastleToUnpackForFaction	= Elves Fortress_Isengard
		CastleToUnpackForFaction	= Dwarves Fortress_Isengard		
		CastleToUnpackForFaction	= Wild Fortress_Isengard		
		CastleToUnpackForFaction	= Mordor Fortress_Isengard

;//Anything that does not fit this filter will be given to the neutral player, so the template can have rocks and props.
		FilterValidOwnedEntries = ANY +STRUCTURE +WALK_ON_TOP_OF_WALL +BASE_FOUNDATION +TACTICAL_MARKER		

		MaxCastleRadius 			= 130.0
		InstantUnpack				= Yes		
		KeepDeathKillsEverything	= Yes

		EvaEnemyCastleSightedEvent = EnemyFortressSighted
	End

And... Did you check SEE's codes? :good:

Edited by Ridder Geel, 14 December 2009 - 10:00 PM.

Ridder Geel

#14 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 15 December 2009 - 02:29 AM

MaxCastleRadius isn't it - and the radius in SEE is identical (130).
It's weird - the white circle is out further after changing the MaxBuildoutDistance, but the walls don't build out any further than they normally would - you can't even place a wall hub out any further...

#15 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 06 April 2013 - 01:46 AM

Bumping a SERIOUSLY old topic (but it's mine, so I figure I can :p )

I've just gotten back into modding BFME2 again, and the problem remains - how do I extend the radius of the fortress so that I can build walls further out (like in SEE?)

I've tried a number of things (see above,) but the walls coming off the hub do not extend any further out.

Any ideas of what I'm missing?



#16 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 06 April 2013 - 10:25 AM

So... which faction?

How about you try it with the elven faction, change the:

 

    Behavior = WallHubBehavior ModuleTag_WALL_HUB

        Options = OPTION_ONE
        MaxBuildoutDistance = MEN_FORTRESS_WALL_EFFECTIVE_RADIUS
        
        StaggeredBuildFactor = STANDARD_WALL_STAGGERED_BUILD_FACTOR

        //This defines the pattern built on flat terrain
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallSegment
        SegmentTemplateName = ElvenCastleWallHub
        
        BuilderRadius = 20

        HubCapTemplateName = ElvenCastleWallHub
        DefaultSegmentTemplateName = ElvenCastleWallSegment

        CliffCapTemplateName = ElvenWallCliffCap        
        ;ShoreCapTemplateName = [NAME]        
        ;BorderCapTemplateName = [NAME]        
        ;ElevatedSegmentTemplateName = [NAME]

    End
 

 

 

MaxBuildoutDistance...

As far as i know this really is the value for that...

Or simply replace all the MEN_FORTRESS_WALL_EFFECTIVE_RADIUS (so in every single ini that has it) with another macro, and change it to a new number.


Ridder Geel

#17 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 06 April 2013 - 10:46 PM

I was trying to mod the men faction first - no luck with maxbuildoutradius - the wall hub still only goes out to around 400 or so, even though maxbuildout is set to 1500...

#18 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 07 April 2013 - 03:17 PM

Well the Men faction has multiple wall objects, which might cause difficulty in debugging/figuring out what is wrong...

I'll see if i can find what needs to be changed...


Ridder Geel

#19 Hairy Plotter

Hairy Plotter
  • Members
  • 14 posts

Posted 08 April 2013 - 02:00 PM

I'm wondering - can't try it until later this afternoon, but is it possible that instead of (or maybe along with) the menwallhubsmallexpansion.ini / maxbuildoutdistance I also need to change the campsandcastles.ini as well?

 

(BTW Ridder - thanks for the typo fix - it's been bugging me every time I pull this up...)



#20 Ridder Geel

Ridder Geel

    Master Yelloh

  • T3A Staff
  • 10,852 posts
  • Location:The Netherlands (AKA: Holland)
  • Projects:RC Mod + SEE + RTS Engine
  •  The Dangerous T3A Team Chamber Member
  • Division:BFME
  • Job:T3A Staff

Posted 08 April 2013 - 11:01 PM

Possibly... There are wall pieces in different places, so you should try to eliminate anything that might possibly be stopping this wall from building out further :p


Ridder Geel




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users