Jump to content


Photo

Trying to to fix infinite ents

ents battle for middle earth bfme reinforcements

Best Answer Snaksolid, 03 November 2016 - 12:50 AM

Actually I did manage to fix the problem.

 

First I found this line of code in the file entsinfantry.ini (should be in the objects category under good faction).

 

ChildObject RohanEntFir_Summoned RohanEntFir
    KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS MONSTER SCORE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT PATH_THROUGH_INFANTRY CAN_ATTACK_WALLS SCARY BIG_MONSTER SUMMONED; ARMY_SUMMARY
    IsTrainable = No
    CommandPoints = 0
    Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
        MinLifetime        = 12000 
        MaxLifetime        = 12000
        DeathType        = FADED
    End    
End
 
And where it says CommandPoints = 0 I changed it to CommandPoints = 10 (which is the typical command point for ents in this mod). Also I had to do this for both types of Ents so make sure you keep that in mind. Another thing is what I did to make them practically permanent is i just add a bunch of 0's to the 12000 numbers. That pretty much makes them permanent.
 
Then I went to the file objectcreationlist.ini and found this line of code.
 
; Create A bunch of Ents out of thin air. 
ObjectCreationList OCL_SpawnEnts
    CreateObject
        ObjectNames = RohanEntFir_Summoned RohanEntBirch_Summoned
        Count = 4
        FadeIn = Yes
        FadeTime = 2000
        IgnoreCommandPointLimit = Yes
        Disposition = SPAWN_AROUND
        DispositionAngle = 90    ;SpawnAround uses this as the arc between guys
        DispositionIntensity = 200 ; and this for distance from center
        UseJustBuiltFlag = Yes
        StartingBusyTime = 5000
    End
End
 
And changed the line that says IgnoreCommandPointLimit = Yes to IgnoreCommandPointLimit = No.
Viola. No more infinite ents.
 
Also I tried to completely remove the time limit and it crashed the game every time so I just made it so ridiculously long that it really doesn't matter.
 
Go to the full post


  • Please log in to reply
2 replies to this topic

#1 Snaksolid

Snaksolid
  • Members
  • 10 posts

Posted 01 November 2016 - 03:43 AM

OK so I extended the timer for the Ents to make them pretty much permanent when summoned but the problem is even when I add command points to them they can be summoned infinitely even after you have had the command limit. what I want is for the ents to count towards the command limit and not be able to be summoned once the command limit has been reached. Any help is appreciated.


Edited by Snaksolid, 01 November 2016 - 03:44 AM.


#2 Echo

Echo

    T3A:Online

  • T3A Staff
  • 1,069 posts
  • Location:Germany
  • Projects:Lot3A
  •  ~~
  • Division:BFME
  • Job:T3A Moderator
  • Donated

Posted 01 November 2016 - 12:31 PM

If you want to make them permanent, why don't you remove the lifetime update entirely?

 

For your main issue, I don't think there's a proper fix to it. The ents that will join your army are part of the base entmoot_rohan.bse. You can remove them from the base, but that means they will never spawn. Those are the 2 choices that you certainly have.

 

You could try as a third option to place 4 waypoints on top of the ents in the base file, then remove the ents and write a script that makes them spawn only if the player has enough command points to summon them. However, I don't even know if scripts work properly in .bse files. Even if they do, this procedure could cause some bugs. It's worth a try I guess.


26285.png


#3 Snaksolid

Snaksolid
  • Members
  • 10 posts

Posted 03 November 2016 - 12:50 AM   Best Answer

Actually I did manage to fix the problem.

 

First I found this line of code in the file entsinfantry.ini (should be in the objects category under good faction).

 

ChildObject RohanEntFir_Summoned RohanEntFir
    KindOf = PRELOAD SELECTABLE CAN_CAST_REFLECTIONS MONSTER SCORE CAN_ATTACK ATTACK_NEEDS_LINE_OF_SIGHT PATH_THROUGH_INFANTRY CAN_ATTACK_WALLS SCARY BIG_MONSTER SUMMONED; ARMY_SUMMARY
    IsTrainable = No
    CommandPoints = 0
    Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
        MinLifetime        = 12000 
        MaxLifetime        = 12000
        DeathType        = FADED
    End    
End
 
And where it says CommandPoints = 0 I changed it to CommandPoints = 10 (which is the typical command point for ents in this mod). Also I had to do this for both types of Ents so make sure you keep that in mind. Another thing is what I did to make them practically permanent is i just add a bunch of 0's to the 12000 numbers. That pretty much makes them permanent.
 
Then I went to the file objectcreationlist.ini and found this line of code.
 
; Create A bunch of Ents out of thin air. 
ObjectCreationList OCL_SpawnEnts
    CreateObject
        ObjectNames = RohanEntFir_Summoned RohanEntBirch_Summoned
        Count = 4
        FadeIn = Yes
        FadeTime = 2000
        IgnoreCommandPointLimit = Yes
        Disposition = SPAWN_AROUND
        DispositionAngle = 90    ;SpawnAround uses this as the arc between guys
        DispositionIntensity = 200 ; and this for distance from center
        UseJustBuiltFlag = Yes
        StartingBusyTime = 5000
    End
End
 
And changed the line that says IgnoreCommandPointLimit = Yes to IgnoreCommandPointLimit = No.
Viola. No more infinite ents.
 
Also I tried to completely remove the time limit and it crashed the game every time so I just made it so ridiculously long that it really doesn't matter.
 

Edited by Snaksolid, 03 November 2016 - 01:00 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users