Frictional Games Forum (read-only)
Mapping grass - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Mapping grass (/thread-13723.html)



Mapping grass - Stepper321 - 03-03-2012

Soo, i have a shitload of grass in my map but its collidable, it will take a really long while to remove this or something, and i want it to have a random scale like in the wikipedia said, how to place grass the correct way?


RE: Mapping grass - nemesis567 - 03-03-2012

In the wikipedia? You have to uncheck the collide box inside the level editor for each piece seperately. I haven't checked but there might be a way to do it via NP++ by opening the map file and replacing something.



RE: Mapping grass - palistov - 03-04-2012

nemesis567 is correct; the easiest way to do this is to open the map file in your notepad editor and replace occurrences of Collide="True" to Collide="False". The trick is to make sure you only change that property for grass objects.

Follow these steps
1) Back up your map. Always do this when messing with the map file outside the LevelEditor.

2) Find your grass's FileID. To do this, open your map file in your notepad editor and do a search for the keyphrase FileIndex_StaticObjects. Look through all the lines under that category which are grass static objects, since you may have placed multiple types. Those indexes are the ones you want to change.

3) Do a ctrl+F Find & Replace for all instances of Collide="true" FileIndex="<GRASS_OBJ_INDEX>", changing true to fase. Leave the index alone. Replace <GRASS_OBJ_INDEX> with the FileID you found in step 2. Repeat for all indexes of grass static objects in your map.

If you can't get it to work, send your map file to me, I'll do it for ya. But get into this kind of search and replace function, it helps me a lot when building maps. I actually do it quite often.


RE: Mapping grass - Stepper321 - 03-04-2012

(03-04-2012, 05:30 AM)palistov Wrote: Thanks..


Kay, i will do this the next time i will do grass in my maps, now ive made outside the map a grass compound wich is huge with many grasses, then i placed it into the map and duplicated it over and over Smile