Collecting all tree objects in GTA SA?
#1

This might be wrong section but;

Is it anywhere possible to gather all tree object locations in GTA SA by its files and possible recreate them? If so, how?

I'd rather not use MapAndreas since it recreates whole GTA SA.


Edit: Thanks for moving it to the correct section. :)
Reply
#2

First you would need to collect all the possible ModelIDs that are trees, then you can use that gtasa object array (texture studio has it inside) and loop through it and extract trees you would get their locations etc. so you can easily recreate them
Reply
#3

ColAndreas may be what you need.
Reply
#4

Most - if not all - tree and bush model ids can be conveniently found in data/maps/generic/vegapart.ide. Then what I would do is copy all IPL files to the scriptfiles directory and write a script to read those files line by line. Split with sscanf and then check if the id is a tree. If it is, write position and rotation to another file or into the database.

Note that the IPL files use quaternions for rotation so you will need to convert those to Euler.
Reply
#5

Quote:
Originally Posted by Vince
View Post
Most - if not all - tree and bush model ids can be conveniently found in data/maps/generic/vegapart.ide. Then what I would do is copy all IPL files to the scriptfiles directory and write a script to read those files line by line. Split with sscanf and then check if the id is a tree. If it is, write position and rotation to another file or into the database.

Note that the IPL files use quaternions for rotation so you will need to convert those to Euler.
But why go through all the trouble when this exists: http://i.imgur.com/ZzGCkna.png
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)