Jump to content


Photo

vision range


  • Please log in to reply
6 replies to this topic

#1 kaiba

kaiba
  • Members
  • 11 posts

Posted 12 May 2009 - 08:35 AM

hi guys ^^

i want to increase the goblins and mirkwood archers vision range
i start edit game data.ini but nothing happen in the game they still have the same vision
also i want them to attack the enemies as soon as they seeing them (without moving forword them first)

any help what i should edit

Edited by kaiba, 12 May 2009 - 10:10 AM.

however iam a new member , i think ridder geel is the master of coding

#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 12 May 2009 - 05:19 PM

You need to edit the macro's in the gamedata.ini, but you cant so you need to edit the unit and horde files :thumbsdownsmiley:
for the range they start attacking just find the weapon they use and change this line:
AttackRange		 = ELVEN_MIRKWOOD_ARCHER_RANGE

in the unit inis change these lines:
VisionRange = ELVEN_MIRKWOOD_ARCHER_VISION_RANGE

Those values up there are defined in gamedata.ini, but you can not change those :unsure:
So you need to look for their original values and edit them :unsure:
Ridder Geel

#3 kaiba

kaiba
  • Members
  • 11 posts

Posted 14 May 2009 - 07:15 AM

still not getit if i cant change the range's values in gamedata.ini so how i supoused increase their range

and about the attack i want them to fire the arrows as soon as they see the enimes without moving
for example if u put the miekwood archers on high ground they will move towords the enmies unit first then fire
so iwant them just fire the arrows without moving at all
however iam a new member , i think ridder geel is the master of coding

#4 yorxdestroyer uu

yorxdestroyer uu
  • Members
  • 45 posts

Posted 14 May 2009 - 09:52 AM

You see what is the value in the gamedata.ini then you edit the (higher)value in the <unitname>.ini
I'm a BFME and Spore modder

#5 MrFurious

MrFurious
  • Members
  • 87 posts
  • Location:The Netherlands
  • Projects:Memories Through Middle-Earth Coder

Posted 14 May 2009 - 03:24 PM

You have 2 ways of adding a value. The first is commonly used by EA, and is by the use of Macro's. You insert a name, and define the value of the name somewhere. In gamedata.ini you'll find this line:
#define	ELVEN_MIRKWOOD_ARCHER_RANGE				450
This means that the line ELVEN_MIRKWOOD_ARCHER_RANGE says to use the value 450.
So if you use this line:
AttackRange		 = ELVEN_MIRKWOOD_ARCHER_RANGE
then the value for the attack range will be 450. You can also use a number instead of the Macro:
AttackRange		 = 600
Now their attack range is 600, instead of 450.

#6 Sûlherokhh

Sûlherokhh

    Sagacious Engineer

  • Project Team
  • 3,754 posts
  • Location:Central Germany
  • Projects:S.E.E., Sage A.I., Code Advisor
  •  'Axe'er of the Gordic Knot

Posted 14 May 2009 - 08:30 PM

If you just want to increase the radius within which YOU are able to see enemy units and structures, you will have to increase the range of the so called SHROUDCLEARANCE too.

bannerreal01mittelit3.jpg
Axed Head and A.I. Coder for S.E.E. and ... stuff

".. coding is basically boring. What's fun is finding out how things work, take them apart and then put them together in ways that were not intended nor even conceived."


#7 Prolong

Prolong
  • Members
  • 133 posts

Posted 14 May 2009 - 10:19 PM

Don't bother with gamedata.ini beyond to see what the previous values are, since if you're using a -mod command changing these macros accomplishes nothing. Just go to mirkwoodarcher.ini and hardcode the vision/shroud clearing values there. You'll need to change the Range value in weapon.ini for both Silverthorn and Normal bows.

You have 2 ways of adding a value. The first is commonly used by EA, and is by the use of Macro's. You insert a name, and define the value of the name somewhere. In gamedata.ini you'll find this line:

#define	ELVEN_MIRKWOOD_ARCHER_RANGE				450
This means that the line ELVEN_MIRKWOOD_ARCHER_RANGE says to use the value 450.
So if you use this line:
AttackRange		 = ELVEN_MIRKWOOD_ARCHER_RANGE
then the value for the attack range will be 450. You can also use a number instead of the Macro:
AttackRange		 = 600
Now their attack range is 600, instead of 450.



If you just want to increase the radius within which YOU are able to see enemy units and structures, you will have to increase the range of the so called SHROUDCLEARANCE too.

Vision range controls only how far the computer looks for enemies to attack. Shroud clearing controls what the player can see around a unit.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users