Jump to content


Photo

Gondor Farm with buildable units?


  • Please log in to reply
13 replies to this topic

#1 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 02:59 AM

was wondering how i modify the farm to allow units to be built from them? im guessing it must be similar to Isengards Lumbermill cos i can attach units to that no problem due to the fact that they can already build the tree loppers. any ideas?
- Freedom is Choice -

#2 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 07:37 AM

just adding on to this i thought id try and figure it out. im wondering if the code to allow the farm to make units is in the KindOf part of the code. i was looking at the farm and the barracks for this. just wondering ur thoughts:

Farm:
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE SCORE NEED_BASE_FOUNDATION CASTLE_KEEP FS_CASH_PRODUCER LIVING_WORLD_BUILDING_MIRROR ATTACK_NEEDS_LINE_OF_SIGHT CAN_ATTACK MADE_OF_STONE ECONOMY_STRUCTURE IGNORE_FOR_VICTORY

Barracks:
KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE SCORE FS_FACTORY AUTO_RALLYPOINT MP_COUNT_FOR_VICTORY NEED_BASE_FOUNDATION ATTACK_NEEDS_LINE_OF_SIGHT CAN_ATTACK MADE_OF_STONE LIVING_WORLD_BUILDING_MIRROR

might be as simple as just adding a line of text.
- Freedom is Choice -

#3 Deathstrike

Deathstrike
  • Members
  • 11 posts

Posted 13 April 2006 - 08:04 AM

You'll also need these two modules in your farm:

Behavior = ProductionUpdate ModuleTag_Production1
		GiveNoXP		= Yes	
  End

  Behavior = QueueProductionExitUpdate ModuleTag_Production2
	UnitCreatePoint		= X:-28.0 Y:-32.0 Z:0.0
	NaturalRallyPoint	= X:65.0 Y:70.0 Z:0.0
	ExitDelay			= STANDARD_HORDE_EXIT_DELAY
	PlacementViewAngle	= 45
  End


#4 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 08:24 AM

ok the code you pasted, is that 'all' i need to put in for the farm? is that correct?

a couple more things. theres 2 farm ini's. the one called 'farm' and farminterface

in the commandset there is only the RohanFarm available as a structure but it says you can build the rohan peasent horde.

so which ones am i using?

Edited by Zen Jiriki, 13 April 2006 - 08:56 AM.

- Freedom is Choice -

#5 Deathstrike

Deathstrike
  • Members
  • 11 posts

Posted 13 April 2006 - 11:02 AM

FarmInterface is a generic object used by all farms, if I'm not mistaken. RohanFarm is a Child object of the FarmInterface, meaning that it has all its characteristics with some changes.

Long story short, it doesn't matter in which one you put it.

#6 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 12:23 PM

ok i input the code into both the farm.ini and the farminterface.ini separately to see if it would work. while there is no error and the game boots up fine, there are no buttons that appear like they do for the barracks to build units.

CommandSet RohanFarmCommandSet
1 = Command_ConstructRohanPeasantHorde
6 = Command_Sell

i also found this in commandset.

CommandSet MenPorterCommandSet
1 = Command_Stop
2 = Command_PorterExtinguishFire
3 = Command_PorterConstructMenFarm
4 = Command_PorterConstructMenBarracks
5 = Command_PorterConstructMenArcheryRange
6 = Command_PorterConstructMenStable
7 = Command_PorterConstructMenWorkshop
8 = Command_PorterConstructMenSentryTower
9 = Command_PorterConstructMenWell
10 = Command_PorterConstructMenStatue
11 = Command_PorterConstructMenBlacksmith
12 = Command_PorterConstructMenMarketPlace
13 = Command_PorterConstructMenWallHub
14 = Command_PorterConstructMenFortress

End

im wondering waht the 'menfarm' is and where its located.

this would be a great thing to get working i reckon. hehe
- Freedom is Choice -

#7 Bart

Bart

  • Network Admins
  • 8,524 posts
  • Location:The Netherlands
  • Division:Revora
  • Job:Network Leader

Posted 13 April 2006 - 03:14 PM

the 'menfarm' is actually GondorFarm
bartvh | Join me, make your signature small!
Einstein: "We can’t solve problems by using the same kind of thinking we used when we created them."

#8 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 03:25 PM

i thought it might have been the only problem is actually finding the menfarm.ini to edit. that code didnt work in the farm or farminterface so it must be in the menfarm one. just where it is is beyond me.
- Freedom is Choice -

#9 Deathstrike

Deathstrike
  • Members
  • 11 posts

Posted 13 April 2006 - 05:18 PM

Like he said, MenFarm is the same as GondorFarm. The commandbutton refers to the GondorFarm object when it's clicked.

#10 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 05:39 PM

ok so what do i do now? as i mentioned the code didnt make the game crash, but it didnt allow me to build units. except for RohanFarm in commandset theres no where else that its connected to.
- Freedom is Choice -

#11 Deathstrike

Deathstrike
  • Members
  • 11 posts

Posted 13 April 2006 - 05:43 PM

Just to confirm this, you did actually add the creation commandbuttons to the RohanFarm's commandset, right?

#12 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 06:07 PM

you mean this?:

CommandSet RohanFarmCommandSet
1 = Command_ConstructRohanPeasantHorde
6 = Command_Sell

if not then no. how would i go about doing that?
- Freedom is Choice -

#13 Deathstrike

Deathstrike
  • Members
  • 11 posts

Posted 13 April 2006 - 06:11 PM

Go to your farm.ini, and look for this line:
CommandSet = SellableCommandSet

Change it to
CommandSet = RohanFarmCommandSet

Also, make sure the Commandset has an "End" statement at the, well, end. You didn't post that.

#14 ZenBKage

ZenBKage

    Ini Coder/BFME2 Arcade Edition Creater

  • Hosted
  • 427 posts

Posted 13 April 2006 - 06:13 PM

ok as an update that all worked:) its fantasic. this opens up the doors for some great possibilities. thanks heaps deathstrike:)

Edited by Zen Jiriki, 13 April 2006 - 06:44 PM.

- Freedom is Choice -




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users