27.03.2008, 09:13
I have recently managed to work out how to use these, so while it is fresh in my mind I will write it down.
First I have made a working folder into which I copied the required files:
actors.static --- from the required map files
Actors Tools
Act.jar
create.bat
extract.bat
Mapsize.txt
Actors Cutter Tool
actors_cutter.exe
I made my own create.bat and extract.bat using a text editor with text entries as follows:
@echo off
java -jar Act.jar create
pause
@echo off
java -jar Act.jar extract actors.static
pause
Now you can start working on your actors.static
Step 1
Run extract.bat
This will create your set of out*.txt files
Step 2
Rename all out*.txt to in*.txt
Step 3
Ensure that Mapsize.txt has the y value in metres of your map.
Create will read this value so it will not run correctly without it.
For Slovakia my Mapsize.txt file is:
# Size of map y direction in meters
136000.0
Step 4
rename the actors.static to actors.static.bak --- just to stop it being overwritten
Run create.bat
You will see the progress in the window which appears.
If successful a new actors.static will be created, same as actors.static.bak
Step 5
Now that you know it works.
Run extract.bat again.
This will create a new set of out*.txt files -- keep these.
You still have your in*.txt files
Step 6
Try editing inBuildings.txt.
Delete half the entries.
Run create.bat
This will create a new smaller actors.static.
Step 7
In your map folder backup the existing actors.static
Copy and paste the new small actors.static into you map folder.
Run FMB Map Editor to view the content.
Step 8
If all of that works ok now is the time to try Actors Cutter
This needs to be in the same folder as a set of out*.txt files.
These should still be in your working folder
Run actors_cutter.exe ---- Do not follow the on screen instructions.
You must specify the bottom left x,y coordinates first followed by the top right coordinates.
The on screen message is wrong.
You will get two sets of out*.txt files produced numbered 1 and 2
1 is the set within the defined box
2 is the rest.
Step 9
You are probably most interested in buildings.
You should still have a full set of in*.txt files in your working folder
delete inBuildings.txt
rename outBuildings_1.txt to inBuildings.txt
Run create.bat
This will create a new actors.static representing the box area defined in actors_cutter
Copy this into you map folder and view in FMB
Hope I haven't forgotten anything.
First I have made a working folder into which I copied the required files:
actors.static --- from the required map files
Actors Tools
Act.jar
create.bat
extract.bat
Mapsize.txt
Actors Cutter Tool
actors_cutter.exe
I made my own create.bat and extract.bat using a text editor with text entries as follows:
@echo off
java -jar Act.jar create
pause
@echo off
java -jar Act.jar extract actors.static
pause
Now you can start working on your actors.static
Step 1
Run extract.bat
This will create your set of out*.txt files
Step 2
Rename all out*.txt to in*.txt
Step 3
Ensure that Mapsize.txt has the y value in metres of your map.
Create will read this value so it will not run correctly without it.
For Slovakia my Mapsize.txt file is:
# Size of map y direction in meters
136000.0
Step 4
rename the actors.static to actors.static.bak --- just to stop it being overwritten
Run create.bat
You will see the progress in the window which appears.
If successful a new actors.static will be created, same as actors.static.bak
Step 5
Now that you know it works.
Run extract.bat again.
This will create a new set of out*.txt files -- keep these.
You still have your in*.txt files
Step 6
Try editing inBuildings.txt.
Delete half the entries.
Run create.bat
This will create a new smaller actors.static.
Step 7
In your map folder backup the existing actors.static
Copy and paste the new small actors.static into you map folder.
Run FMB Map Editor to view the content.
Step 8
If all of that works ok now is the time to try Actors Cutter
This needs to be in the same folder as a set of out*.txt files.
These should still be in your working folder
Run actors_cutter.exe ---- Do not follow the on screen instructions.
You must specify the bottom left x,y coordinates first followed by the top right coordinates.
The on screen message is wrong.
You will get two sets of out*.txt files produced numbered 1 and 2
1 is the set within the defined box
2 is the rest.
Step 9
You are probably most interested in buildings.
You should still have a full set of in*.txt files in your working folder
delete inBuildings.txt
rename outBuildings_1.txt to inBuildings.txt
Run create.bat
This will create a new actors.static representing the box area defined in actors_cutter
Copy this into you map folder and view in FMB
Hope I haven't forgotten anything.