Jump to content


Photo

Coding Help


  • Please log in to reply
38 replies to this topic

#21 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 16 July 2007 - 02:36 AM

Where in the INI is the buildable units located? I want to remove the Rohirrim from the Gondor Stables.

#22 thenewch

thenewch
  • Project Team
  • 129 posts
  • Projects:WOTS

Posted 16 July 2007 - 03:39 AM

Where in the INI is the buildable units located? I want to remove the Rohirrim from the Gondor Stables.


in commandset.ini, then go to the GondorStables
Posted Image
Posted Image
< Posted Image

#23 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 16 July 2007 - 05:43 PM

So if I want to remove one I just delete thier command set? I might want to use them again. So if I delete thier command set can I still use them for another faction. Like deleteing Mirkwood Archers, and giving them to the Avari Faction?

#24 thenewch

thenewch
  • Project Team
  • 129 posts
  • Projects:WOTS

Posted 16 July 2007 - 06:26 PM

So if I want to remove one I just delete thier command set? I might want to use them again. So if I delete thier command set can I still use them for another faction. Like deleteing Mirkwood Archers, and giving them to the Avari Faction?


you find the buildings commandset and put a ; in front of the unit you don't want to be built. So it would look something like this

CommandSet ERElvenBarracksCommandSet
	  1 	= Command_ConstructElvenLorienWarriorHorde
	  2 	= Command_ConstructElvenLorienArcherHorde
	  3 	= Command_ConstructElvenMithlondSentryHorde
	  4 	= Command_ConstructElvenMirkwoodArcherHorde
 	5 	= Command_ConstructNoldorWarriorHorde
	  7 	= Command_PurchaseUpgradeElvenBarracksLevel2
	  6 	= Command_Sell
End

CommandSet ElvenBarracksCommandSetLevel2
	  1 	= Command_ConstructElvenLorienWarriorHorde
	  2 	= Command_ConstructElvenLorienArcherHorde
	  3 	= Command_ConstructElvenMithlondSentryHorde
	  4 	= Command_ConstructElvenMirkwoodArcherHorde
	  5 	= Command_ConstructNoldorWarriorHorde
	  7 	= Command_PurchaseUpgradeElvenBarracksLevel3
	  6 	= Command_Sell
End

CommandSet ElvenBarracksCommandSetLevel3
	  1 	= Command_ConstructElvenLorienWarriorHorde
	  2 	= Command_ConstructElvenLorienArcherHorde
	  3 	= Command_ConstructElvenMithlondSentryHorde
	  4 	= Command_ConstructElvenMirkwoodArcherHorde
	  5 	= Command_ConstructNoldorWarriorHorde
	  6 	= Command_Sell
;	  7 	= Command_ConstructElvenLindonWarriorHorde
;	  8 	= Command_ConstructElvenImladrisWarriorHorde
End

There are ;'s in front of the units that won't be built. Then if you want them to be built again, just remove the ;
Posted Image
Posted Image
< Posted Image

#25 King Arvedui

King Arvedui

    The Last King of Arnor

  • Members
  • 135 posts
  • Location:Vancouver, BC
  • Projects:Return of the Eldar
  •  Return of the Eldar back-up coder, newbie modeller

Posted 16 July 2007 - 06:28 PM

So if I want to remove one I just delete thier command set? I might want to use them again. So if I delete thier command set can I still use them for another faction. Like deleteing Mirkwood Archers, and giving them to the Avari Faction?


yes but you would have to have two different command sets then. and dont forget to remove the command from level 2 and level 3 gondor stables command set

Edited by King Arvedui, 16 July 2007 - 06:29 PM.

Posted Image
Posted Image
Posted Image

#26 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 16 July 2007 - 10:45 PM

What are Imladris warriors?

#27 thenewch

thenewch
  • Project Team
  • 129 posts
  • Projects:WOTS

Posted 16 July 2007 - 11:27 PM

What are Imladris warriors?


Not sure, never tried em ;)
Posted Image
Posted Image
< Posted Image

#28 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 17 July 2007 - 01:24 AM

I was looking through the battle for middle earth 2 code. and found that the goblins had Alatar, and Pallando. Also Mordor has Gothmog. Do I just add them to the Buidable heros. and I want to add Durin's Bane too.

#29 thenewch

thenewch
  • Project Team
  • 129 posts
  • Projects:WOTS

Posted 17 July 2007 - 01:39 AM

I was looking through the battle for middle earth 2 code. and found that the goblins had Alatar, and Pallando. Also Mordor has Gothmog. Do I just add them to the Buidable heros. and I want to add Durin's Bane too.


it had ini's for them or commandsets?
Posted Image
Posted Image
< Posted Image

#30 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 17 July 2007 - 02:15 AM

They were in the player template.

#31 thenewch

thenewch
  • Project Team
  • 129 posts
  • Projects:WOTS

Posted 17 July 2007 - 02:35 AM

They were in the player template.


I've never seen it, try it and see what happens
Posted Image
Posted Image
< Posted Image

#32 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 17 July 2007 - 02:42 AM

I want to finish the mod then I or we (since I think lotrfreak might help me) then I or we could fix the minor bugs, I added the heros in I added Durin's Bane for a Goblin Hero.

#33 King Arvedui

King Arvedui

    The Last King of Arnor

  • Members
  • 135 posts
  • Location:Vancouver, BC
  • Projects:Return of the Eldar
  •  Return of the Eldar back-up coder, newbie modeller

Posted 17 July 2007 - 02:43 AM

i have tried it before for pallando and alatar and it never worked, now that i think of it ive never seen and ini for them in BFME2 or ROTKW

EDIT: Durins Bane was a Balrog right?

Edited by King Arvedui, 17 July 2007 - 02:49 AM.

Posted Image
Posted Image
Posted Image

#34 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 17 July 2007 - 02:57 AM

Yes, it was the one in Moria. I want to add it to the Goblins.

#35 King Arvedui

King Arvedui

    The Last King of Arnor

  • Members
  • 135 posts
  • Location:Vancouver, BC
  • Projects:Return of the Eldar
  •  Return of the Eldar back-up coder, newbie modeller

Posted 17 July 2007 - 03:00 AM

i thought so. are you having any problems? ive added a balrog for a hero before... well actually it was a ring hero but that means this should be easier :p
Posted Image
Posted Image
Posted Image

#36 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 17 July 2007 - 03:11 AM

So want to help me. Do I just add him to be a buildable Hero. Cost 8000.

Edited by Lord of the Grunts, 17 July 2007 - 03:11 AM.


#37 King Arvedui

King Arvedui

    The Last King of Arnor

  • Members
  • 135 posts
  • Location:Vancouver, BC
  • Projects:Return of the Eldar
  •  Return of the Eldar back-up coder, newbie modeller

Posted 17 July 2007 - 03:44 AM

what i did was copy neutral units balrog to object\evilfaction\units\wild changed line

#include "..\includes\StandardUnitEvaEvents.inc"

to

#include "..\..\..\includes\StandardUnitEvaEvents.inc"

changed object names and got rid of

	Behavior = LifetimeUpdate ModuleTag_LifetimeUpdate
		MinLifetime		= BALROG_LIFETIME
		MaxLifetime		= BALROG_LIFETIME
		DeathType		= FADED
	End


then go to playertemplate.ini and add him.


under engineering parameters add

BuildCost		= 8000
	BuildTime		= 60.0

then change the build time to whatever you like

i might be missing something but i think i have it all. if you need any more help tell me

Edited by King Arvedui, 17 July 2007 - 03:56 AM.

Posted Image
Posted Image
Posted Image

#38 Eonwe

Eonwe

    title available

  • Project Team
  • 534 posts

Posted 19 July 2007 - 05:07 AM

I have Questions concerning WOTR. is it possible to have more then 2 people playing?

Can there be more then 6 factions on the map?

Can starting units, Heros, and territories with buildings be made?

Edited by Lord of the Grunts, 19 July 2007 - 05:08 AM.


#39 King Arvedui

King Arvedui

    The Last King of Arnor

  • Members
  • 135 posts
  • Location:Vancouver, BC
  • Projects:Return of the Eldar
  •  Return of the Eldar back-up coder, newbie modeller

Posted 19 July 2007 - 05:58 AM

I have never attempted to edit WOTR so i don't know, but did you get the Balrog to work??
Posted Image
Posted Image
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users