Jump to content


Photo

Enabling to build Grond


  • Please log in to reply
26 replies to this topic

#1 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 04:51 PM

Hi Folks,

I'm pretty new with making custom maps with BFME 2 ROTWK and I can't resolve this problem with Grond.
I made a map with Minas Tirith and The Black Gate at the end with a rivier between them.
The problem is that I like to enable for the Mordor Player to build Grond at Siege Works.
At the edit_script I manage to find the code and inserted it, but still it does not work, when I play the map I can't build Grond.
I can insert it as a begin unit, but I rather build it multiple times.
The other problem is that if I have Grond as a unit it can't cross the river just as any mumakil.
I did create several different bridges, but no succes so far, the rest of the units have no problem crossing the river.

In My script is the following text,

***IF***
True.
***Then***
Player 'Player_2' allowed to build 'MordorGrond' is TRUE.

Player 2 is the spawnpoint I use in the game and I play as faction Mordor




Anyone advise,

Thanks a Lot

#2 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 25 January 2011 - 05:35 PM

Don't you need to edit the siegework's commandset? (add a button to add the grond construction button...
Ridder Geel

#3 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 05:58 PM

map --> gameplay --> command_button_add_to_an_object_type you mean?

There is constructMordor but no Grond.
I've scrolled down that list at least 5 times.
Am I looking at the right list?

#4 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 06:56 PM

Add this to your Map.ini
;BUILD GROND COMMANDBUTTON
CommandButton Command_ConstructMordorGrond
    Command                = UNIT_BUILD
    Object                = MordorGrond
    Options                = CANCELABLE
    TextLabel            = CONTROLBAR:ConstructMordorGrond
    ButtonImage            = BMGreatSiegeWorks_Grond
    ButtonBorderType        = BUILD 
    DescriptLabel            = CONTROLBAR:ToolTipBuildMordorGrond
    Radial                = Yes
    InPalantir               = Yes
    ShowProductionCount        = Yes
;    UnitSpecificSound           = GondorArcherVoiceBuy  
End


;MORDOR SIEGE WORKS COMMANDSETS 
CommandSet MordorSiegeWorksCommandSetLevel1
      1    = Command_ConstructMordorBatteringRam
      2    = Command_ConstructMordorCatapult
      3    = Command_ConstructMordorSiegeTower
      4    = Command_PurchaseTechnologyMordorForgedBlades    ; BFME EXPANSION PACT Faction Enhancement
      5    = Command_PurchaseTechnologyMordorHeavyArmor    ; BFME EXPANSION PACT Faction Enhancement
      7    = Command_ConstructMordorBlackRiderHorde
      6    = Command_Sell
      8    = Command_UpgradeMordorSiegeWorksLevel2
      9    = Command_ConstructMordorGrond
End

CommandSet MordorSiegeWorksCommandSetLevel2
      1    = Command_ConstructMordorBatteringRam
      2    = Command_ConstructMordorCatapult
      3    = Command_ConstructMordorSiegeTower
      4    = Command_PurchaseTechnologyMordorForgedBlades    ; BFME EXPANSION PACT Faction Enhancement
      5    = Command_PurchaseTechnologyMordorHeavyArmor    ; BFME EXPANSION PACT Faction Enhancement
      7    = Command_ConstructMordorBlackRiderHorde
      6    = Command_Sell
      8    = Command_UpgradeMordorSiegeWorksLevel3
      9    = Command_ConstructMordorGrond
End

CommandSet MordorSiegeWorksCommandSetLevel3
      1    = Command_ConstructMordorBatteringRam
      2    = Command_ConstructMordorCatapult
      3    = Command_ConstructMordorSiegeTower
      4    = Command_PurchaseTechnologyMordorForgedBlades    ; BFME EXPANSION PACT Faction Enhancement
      5    = Command_PurchaseTechnologyMordorHeavyArmor    ; BFME EXPANSION PACT Faction Enhancement
      7    = Command_ConstructMordorBlackRiderHorde
      6    = Command_Sell
      8    = Command_ConstructMordorGrond
End


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 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 07:19 PM

Very Nice.

I did not have a map.ini file, so I made one in the map where the other 2 files were located.
I paste your code in it, saved it as map.ini.
When I start a game, no changes.
After I try to search your lines in the script, wheter new options were available, none.
Giving them the name of your lines and numbers did also not work.

What am I doing wrong?
What am I supposed to do?

#6 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 07:24 PM

Very Nice.

I did not have a map.ini file, so I made one in the map where the other 2 files were located.
I paste your code in it, saved it as map.ini.
When I start a game, no changes.
After I try to search your lines in the script, wheter new options were available, none.
Giving them the name of your lines and numbers did also not work.

What am I doing wrong?
What am I supposed to do?


it was a configureation file correct???
not a text file...

if you don't know how try this one:
Attached File  map.ini   2.24KB   81 downloads

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

#7 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 07:38 PM

I did save it as an ini file. You send me the same map.ini as I saved.

At level 1 siegworks I can make 1 Grond. Very Nice.
At level 2 en 3 Grond button has dissappeared.
Siege Towers are not visible at the siege works.

At first, Nicely done.
Second, could you tell me how to fix this last problem with siege towers?

My script of the two:

1. Grond

Player 'Player_2' allowed to build 'MordorGrond' is TRUE.
[???]Command button: 'Command_ConstructMordorGrond' is added to all objects of type 'MordorSiegeWorks' in slot number 9 (1-12).


2. Siege Towers
Player 'Player_2' allowed to build 'MordorSiege Tower' is TRUE.
Command button: 'Command_ConstructMordorSiege Tower' is added to all objects of type 'MordorSiegeWorks' in slot number 3 (1-12).

Edited by Fonzaa, 25 January 2011 - 07:48 PM.


#8 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 07:58 PM

My script of the two:

1. Grond

Player 'Player_2' allowed to build 'MordorGrond' is TRUE.
[???]Command button: 'Command_ConstructMordorGrond' is added to all objects of type 'MordorSiegeWorks' in slot number 9 (1-12).


2. Siege Towers
Player 'Player_2' allowed to build 'MordorSiege Tower' is TRUE.
Command button: 'Command_ConstructMordorSiege Tower' is added to all objects of type 'MordorSiegeWorks' in slot number 3 (1-12).


here may be a problem for one:
Command_ConstructMordorSiege Tower

there shouldn't be a space there
it should be:
Command_ConstructMordorSiegeTower
and i dont know if you even need scripts do you???
im not a person who knows alot about map.ini (s)

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 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 08:00 PM

do you want to send me your map so i can take a look at 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

#10 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 08:23 PM

do you want to send me your map so i can take a look at it...



That Space was a type error in the thread, In the script it is typed without a space.
Without the script it does not work at all.
I'll send you my map, to your e-mail adress? Is there a way to upload it into this messagebox?

Edited by Fonzaa, 25 January 2011 - 09:04 PM.


#11 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 08:31 PM

do you want to send me your map so i can take a look at it...



That Space was a type error in the thread, In the script it is typed without a space.
Without the script it does not work at all.
I'll send you my map, to your e-mail adress? Is there a way to upload it into this messagebox?


yes you can upload it onto the this thread but then ANYONE can download it...thats your choice if you want
click the "choosefile" SCREENPIC_001.jpg button below the box when you are commenting and find the map(in order to send a MAP file it must be in a ZIP file or RAR file i think)

or you can PM me (click the "PM" to the left to go to a new message, let me know if it doesn't work)

and to the same while you are sending the message to me,
EX:
SCREENPIC_002.jpg

just type in "modboy451" it should come up

Edited by modboy451, 25 January 2011 - 08:37 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

#12 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 08:43 PM

i see you uploaded it...
i will take a look and get back to you:


Is this a BFME 1, 2 or ROTWK map??
it says HERE to make sure you list that

Edited by modboy451, 25 January 2011 - 08:45 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

#13 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 09:03 PM

i see you uploaded it...
i will take a look and get back to you:


Is this a BFME 1, 2 or ROTWK map??
it says HERE to make sure you list that


This is a ROTWK map most updated original version

#14 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 09:14 PM

i have to say...well constructed map
there are some things i could touch up if you would like (terrain, make you river flow in the right direction)
you really must tell me how you constructed the valley in which the river goes in (what tool)

as for your problem, i am seeing the same thing...i am trying some different scripts to get it to work..

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

#15 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 09:21 PM

i have to say...well constructed map
there are some things i could touch up if you would like (terrain, make you river flow in the right direction)
you really must tell me how you constructed the valley in which the river goes in (what tool)

as for your problem, i am seeing the same thing...i am trying some different scripts to get it to work..


Thank you for the compliment, although the credit should not go to me, but to the one who had a Minas Tirith Created.
I copied that City and pasted it into my map, after hours of trying to get into one flowing piece.
Even then there were a lot of bugs and gaps in the city, but it still is far from finished.
At first I'd like to be able to have a huge multiplayer game against a few friends with dozens of siege towers and grond in the middle before I finish the terrain details, but what do you mean with river flow in the right direction?

#16 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 09:23 PM

heres an idea
if you wanted the AI to use have grond and you
i can make a script that will automatically build grond IF you dont have one...
EX if grond dies, after 10 min(this can be any time) he is respawned from such and such place...

its your choice other wise i am still looking into a build option

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 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 09:27 PM

If Grond is destroyed and I need a level 1 siegeworks to rebuild it, not a problem.
I haven't tried a multiplayer game to confirm if this works, but I'll know that tomorrow.
The only 2 real issues are:

1. I can't build siege towers
2. Grond can't cross the river

I got the message about the flowing river :p
I can fix that

How I made the river?
I used Heigth Brush
10 size in cells
0 size in cells
2 Height in feet

just cross the landscape
Then the rivertool for the river

Edited by Fonzaa, 25 January 2011 - 09:38 PM.


#18 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 09:32 PM

If Grond is destroyed and I need a level 1 siegeworks to rebuild it, not a problem.
I haven't tried a multiplayer game to confirm if this works, but I'll know that tomorrow.
The only 2 real issues are:

1. I can't build siege towers
2. Grond can't cross the river

i dont know how to do fix the siege towers but:
you could make a strip of land that acts as a bridge...that goes through the river
just raise it the land in a certain spot up a little...

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 modboy451

modboy451

    A small Big-time Modder!

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

Posted 25 January 2011 - 09:33 PM

but what do you mean with river flow in the right direction?


your river flows to the left...it is a river that flows from starts on one end of the screen and goes to the other,
the way you have it setup as if its coming from minas tirth towards the black gate
i will show you:
SCREENPIC_003.jpg

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

#20 Fonzaa

Fonzaa
  • Members
  • 11 posts

Posted 25 January 2011 - 09:59 PM

I took you advise for the river crossing, that's no longer an issue, although I rather find a bridge which can let mumakil and Grond cross.
Any advise or possible solutions, links for the siege towers?

At some point Grond does work and Siege Towers don't
In your ini file does stand a whole text for grond and none for Siege Towers.
I tried to copy and modify them for the siege towers, but no result.
Could it be a solution?


your files with a copied and modified Siege Tower Part


;BUILD GROND COMMANDBUTTON
CommandButton Command_ConstructMordorGrond
Command = UNIT_BUILD
Object = MordorGrond
Options = CANCELABLE
TextLabel = CONTROLBAR:ConstructMordorGrond
ButtonImage = BMGreatSiegeWorks_Grond
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipBuildMordorGrond
Radial = Yes
InPalantir = Yes
ShowProductionCount = Yes
; UnitSpecificSound = GondorArcherVoiceBuy
End

; Build Siege Towers
CommandButton Command_ConstructMordorSiegeTower
Command = UNIT_BUILD
Object = MordorSiegeTower
Options = CANCELABLE
TextLabel = CONTROLBAR:ConstructMordorSiegeTower
ButtonImage = BMGreatSiegeWorks_SiegeTower
ButtonBorderType = BUILD
DescriptLabel = CONTROLBAR:ToolTipBuildMordorSiegeTower
Radial = Yes
InPalantir = Yes
ShowProductionCount = Yes
; UnitSpecificSound = GondorArcherVoiceBuy
End

;MORDOR SIEGE WORKS COMMANDSETS
CommandSet MordorSiegeWorksCommandSetLevel1
1 = Command_ConstructMordorBatteringRam
2 = Command_ConstructMordorCatapult
3 = Command_ConstructMordorSiegeTower
4 = Command_PurchaseTechnologyMordorForgedBlades ; BFME EXPANSION PACT Faction Enhancement
5 = Command_PurchaseTechnologyMordorHeavyArmor ; BFME EXPANSION PACT Faction Enhancement
7 = Command_ConstructMordorBlackRiderHorde
6 = Command_Sell
8 = Command_UpgradeMordorSiegeWorksLevel2
9 = Command_ConstructMordorGrond
End

CommandSet MordorSiegeWorksCommandSetLevel2
1 = Command_ConstructMordorBatteringRam
2 = Command_ConstructMordorCatapult
3 = Command_ConstructMordorSiegeTower
4 = Command_PurchaseTechnologyMordorForgedBlades ; BFME EXPANSION PACT Faction Enhancement
5 = Command_PurchaseTechnologyMordorHeavyArmor ; BFME EXPANSION PACT Faction Enhancement
7 = Command_ConstructMordorBlackRiderHorde
6 = Command_Sell
8 = Command_UpgradeMordorSiegeWorksLevel3
9 = Command_ConstructMordorGrond
End

CommandSet MordorSiegeWorksCommandSetLevel3
1 = Command_ConstructMordorBatteringRam
2 = Command_ConstructMordorCatapult
3 = Command_ConstructMordorSiegeTower
4 = Command_PurchaseTechnologyMordorForgedBlades ; BFME EXPANSION PACT Faction Enhancement
5 = Command_PurchaseTechnologyMordorHeavyArmor ; BFME EXPANSION PACT Faction Enhancement
7 = Command_ConstructMordorBlackRiderHorde
6 = Command_Sell
8 = Command_ConstructMordorGrond
End


With the following I can build Siege Towers in level 2 en level 3. It comes available in level 2

Object MordorSiegeWorks

CommandSet = MordorSiegeWorksCommandSetLevel1_ForMP

ReplaceModule ModuleTag_MordorSiegeWorksLevel2
Behavior = CommandSetUpgrade ModuleTag_MordorSiegeWorksLevel2_ForMP
TriggeredBy = Upgrade_MordorSiegeWorksLevel2
ConflictsWith = Upgrade_MordorSiegeWorksLevel3
CommandSet = MordorSiegeWorksCommandSetLevel2_ForMP
End
End

ReplaceModule ModuleTag_MordorSiegeWorksLevel3
Behavior = CommandSetUpgrade ModuleTag_MordorSiegeWorksLevel3_ForMP
TriggeredBy = Upgrade_MordorSiegeWorksLevel3
CommandSet = MordorSiegeWorksCommandSetLevel3_ForMP
End
End
End

The problem is that this disables your Grond text.
Now the step between that enables both

Edited by Fonzaa, 25 January 2011 - 10:35 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users