Jump to content


Photo

Siege Tower Trolls


  • Please log in to reply
26 replies to this topic

#1 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 14 February 2011 - 07:29 PM

I'm trying to make some changes to the mordor Siege Towers. First, I wanna make the trolls, who push the tower, attackable. Just like in the movie where Gandalf tells the men to aim for the trolls. I'm trying to make it more realistic. So I went the the seige tower.ini and found where the siege tower crew is referenced and changed this line:
ObjectStatusOfCrew		= UNSELECTABLE UNATTACKABLE
and I changed it to SELECTABLE and ATTACKABLE
ObjectStatusOfCrew		= SELECTABLE ATTACKABLE

However, when I do that, i get a game error, saying "Selectable" and "attackable" arent valid descriptions for the "ObjectstatusOfCrew". So i'm clueless as to what to do from here.

Second, I'm wondering if its possible to make the tower "dependable" on the troll to be able to move? For example, if the trolls are killed, the tower cannot move anymore. I'd appreciate any help, thanks in advance!

#2 clank234

clank234

    The guy who is always on the forums :)

  • Members
  • 489 posts
  • Location:England
  • Projects:Scaled war in the South
  •  coder, skinner, modeler, a lot of help from Ridder Geel and Kwen :)

Posted 14 February 2011 - 08:00 PM

Your error means that SELECTABLE ATTACKABLE were never meant to be in the ObjectStatusOfCrew line :good:
"Strayed by the little and it will fail" ~ Galadriel

"So do all you live to see such times, but all we have to decide is what to do with the time that is given to us" ~ Gandalf

"Many that live deserve death, and some that die deserve life" ~ Gandalf

"Men, men are weak" ~ Elrond

"Then i will die as one of them" ~ Aragorn

"Certaincy of death, small chance of success. What are waiting for?" ~ Gimli

"How about dying side by side with a friend" ~ Legolas

"War will make corpses of us all" ~ Faramir


-------------------------------------
Posted Image

#3 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 14 February 2011 - 08:12 PM

lol yes I figured that out. So to the main question: do you know how to make the trolls "attackable"? I'd be really pleased if I could get this to work becuz this will make it more realistic and movie-like in my opinion. Oh and thought of adding "ATTACKABLE" to the siege tower trolls's "KindOf", but that isnt valid either.

#4 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 14 February 2011 - 10:50 PM

lol yes I figured that out. So to the main question: do you know how to make the trolls "attackable"? I'd be really pleased if I could get this to work becuz this will make it more realistic and movie-like in my opinion. Oh and thought of adding "ATTACKABLE" to the siege tower trolls's "KindOf", but that isnt valid either.

try remove "attackable from the line altogether

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#5 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 15 February 2011 - 04:33 AM

Hey modboy, I tried removing "UNATTACKABLE" from seige tower's passenger code where the siege tower trolls are referenced. So now it just says "UNSELECTABLE". However its still not working. At least the AI arent attacking the seige trolls. I tried turning their ThreatLevel way up but that didnt work either. Heres the code in the siege tower in case you were interested:

Behavior = HordeSiegeEngineContain ModuleTag_06
    ObjectStatusOfContained	= UNSELECTABLE UNATTACKABLE CAN_ATTACK
	ObjectStatusOfCrew		= UNSELECTABLE ;UNATTACKABLE
    Slots					= 2 ;0
	ShowPips				= No    
    DamagePercentToUnits	= 0%
    PassengerFilter			= ANY +CAN_USE_SIEGE_TOWER
    AllowAlliesInside		= Yes
    AllowEnemiesInside		= No
    AllowNeutralInside		= No
    CrewFilter				= NONE +MONSTER     ;Crew is always checked first, then Passenger
    CrewMax					= 2
    InitialCrew				= MordorSiegeTowerCrew 2
    ExitDelay				= 0  ; half second
    NumberOfExitPaths		= 0 ; Defaults to 1.  Set 0 to not use ExitStart/ExitEnd, set higher than 1 to use ExitStart01-nn/ExitEnd01-nn
    GoAggressiveOnExit		= Yes ; AI Will tell people to set their mood to Aggressive on exiting
	EnterSound				= GarrisonEnter
	ExitSound				= GarrisonExit

	FadeFilter	= ALL -MONSTER
	FadePassengerOnEnter = Yes
	EnterFadeTime = 2000
	FadePassengerOnExit = Yes
	ExitFadeTime = 1000
	FadeReverse = Yes

    PassengerBonePrefix		= PassengerBone:Passenger   KindOf:INFANTRY         
    PassengerBonePrefix		= PassengerBone:Crew        KindOf:MONSTER

	BoneSpecificConditionState 1 PASSENGER_VARIATION_1
	BoneSpecificConditionState 2 PASSENGER_VARIATION_2
  End

I really hope I can get this to work.

#6 Kwen

Kwen

    Vileartist

  • T3A Staff
  • 4,865 posts
  • Location:Korea I wish
  • Projects:It'sa secreeet
  •  T3A's First N00b
  • Division:BFME
  • Job:T3A Expert
  • Donated

Posted 15 February 2011 - 04:51 AM

Have you tried removing the entire line? ObjectStatusOfCrew

                           https://www.twitch.tv/vileartist - Yes shameless self-promotion

          ----------------------------------------------------------------------------------------------------------------------

                            "Old modders never die, they just fade away" ~ Hostile


#7 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 15 February 2011 - 05:05 AM

Yes I tried removing that entire line and it still didnt work. I'm wondering if its simply not possible for a "Passenger" unit to be attacked? I'd be really dissapointed if thats the case. Well I'll try messing around with it for a few more hours and see if I can figure something out.

#8 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 02:14 PM

what about adding Just SELECTABLE
to it...

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#9 Mouth of Sauron

Mouth of Sauron

    title available

  • Members
  • 252 posts
  • Location:Barad-Dûr

Posted 15 February 2011 - 04:27 PM

IMHO, the crew is just a sort of decoration... even if you killed them, got all proper animations, etc., the tower still has it's locomotor and moves, I'd say it's not the trolls who make it move, it's the tower that draws the trolls :wink_new:

#10 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 04:28 PM

i figured....i wonder if you could it though and then have a thing where if if fa troll died you could have another troll take its place...

you coud make a model condition state that changes the locomoter set when the trolls die... that simple

Edited by modboy451, 15 February 2011 - 04:40 PM.

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#11 Mouth of Sauron

Mouth of Sauron

    title available

  • Members
  • 252 posts
  • Location:Barad-Dûr

Posted 15 February 2011 - 04:51 PM

Locomotor of the troll, sure, but how about the locomotor of the tower, another object ?

#12 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 15 February 2011 - 05:13 PM

So is it not possible to make it so that the siege tower trolls can be killed? Thats what i'm trying to find out.
And I guess you cant really make the trolls cause the tower to move. I had thought of a crude way of doing it before, where the troll spawns an OCL on its death with an attribute modifier that selectively cuts the speed of the Tower to 0%, rendering it immovable. And the "alive" trolls itself has a passive leadership bonus with a VERY small radius that effects siege towers bringing their speed back up to 100%. So this could allow the tower to move again if you assign other trolls to push the siege tower. but obviously this way isnt all that great and i'm not even sure if it would work.

#13 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 06:18 PM

i will look into it...it might actually be POSSIBLE.. but it might take ALOT of coding (a couple new objects) though

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#14 clank234

clank234

    The guy who is always on the forums :)

  • Members
  • 489 posts
  • Location:England
  • Projects:Scaled war in the South
  •  coder, skinner, modeler, a lot of help from Ridder Geel and Kwen :)

Posted 15 February 2011 - 06:34 PM

The trolls are just for the view because it would look weird if a big Siege Tower is just moving with nothing helpng it :p And the movie used trolls to push them so EA made it look like the movie IMO. But it would be possible. When the trolls die make an OCL that summons a ping and changes the Siege Towers Locometer to 0% But maybe you can make a new object (which will be the trolls) and then give them their own Kindof and maybe with some modeling you can get it to work :wink_new:
"Strayed by the little and it will fail" ~ Galadriel

"So do all you live to see such times, but all we have to decide is what to do with the time that is given to us" ~ Gandalf

"Many that live deserve death, and some that die deserve life" ~ Gandalf

"Men, men are weak" ~ Elrond

"Then i will die as one of them" ~ Aragorn

"Certaincy of death, small chance of success. What are waiting for?" ~ Gimli

"How about dying side by side with a friend" ~ Legolas

"War will make corpses of us all" ~ Faramir


-------------------------------------
Posted Image

#15 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 15 February 2011 - 07:11 PM

Ya clank I was thinking something along those lines, but its not gonna be easy. And i'd appreciate it Modboy if you'd look into it a bit. Meanwhile i'm gonna mess around with it myself.

#16 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 07:22 PM

Actually it might not even require modeling!

I think I've seen something like this before...u might have to use a passenger...pippin/merry on tree beard for example...and you some scripts

Oh and if I do find out I will make an article about it most likly

I'm assuming this is ok???

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#17 Gandalf17

Gandalf17
  • Members
  • 59 posts
  • Location:United States
  • Projects:Scaled War in the South
  •  Coder

Posted 15 February 2011 - 08:03 PM

Well if you can figure this out, you should definitly make an article, all the credit goes to you. And I really appreciate this btw.

#18 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 08:04 PM

np :wink_new:

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image

#19 clank234

clank234

    The guy who is always on the forums :)

  • Members
  • 489 posts
  • Location:England
  • Projects:Scaled war in the South
  •  coder, skinner, modeler, a lot of help from Ridder Geel and Kwen :)

Posted 15 February 2011 - 08:10 PM

Actually it might not even require modeling!

I think I've seen something like this before...u might have to use a passenger...pippin/merry on tree beard for example...and you some scripts


To have a passenger bone you need to model otherwise how is the game gonna know where the passenger goes :) But the siege tower probably has Passenger bones for the crew already. And why would you need scripts :p And Treebeard has passenger bones for Merry&Pippin and then you code it your self ^_^
If I'm mistaken, someone correct me :wink_new:

Edited by clank234, 15 February 2011 - 08:14 PM.

"Strayed by the little and it will fail" ~ Galadriel

"So do all you live to see such times, but all we have to decide is what to do with the time that is given to us" ~ Gandalf

"Many that live deserve death, and some that die deserve life" ~ Gandalf

"Men, men are weak" ~ Elrond

"Then i will die as one of them" ~ Aragorn

"Certaincy of death, small chance of success. What are waiting for?" ~ Gimli

"How about dying side by side with a friend" ~ Legolas

"War will make corpses of us all" ~ Faramir


-------------------------------------
Posted Image

#20 modboy451

modboy451

    A small Big-time Modder!

  • Project Team
  • 783 posts
  • Location:U.S.A
  •  Experienced INI Coder, Advanced Rigger/Binder.

Posted 15 February 2011 - 08:16 PM

I have an idea...but it to big to explain here

John 3:16 (NIV)
For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.


Psalm 23:1 (ESV)
A Psalm of David.
The LORD is my shepherd; I shall not want.


Posted Image
Posted Image
Posted Image
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users