The Beep Goes On
12-08-2010, 01:40 PM
Hi Guys,
A new app was done to automate the creation of E-Trac and SE emulator target files...
~~~
11/15/2010
Creating emulator target files by hand requires the following steps:
1. Acquire target ID data including target description and E-Trac and/or SE target coordinates
2. Create text files for each target, all with the same name (infos.txt), listing the description and coordinates in machine-specific format
3. Acquire images for each target, resize them to 140x140 or less, and name them all the same name (image.gif)
4. Create a directory having the same name (for convenience) as the desired target file name
5. Create numbered sub-directories (starting at 0) for each target
6. Put the appropriate image and text file in the corresponding numbered sub-directory
7. Create a Zip file having the desired target file name and add the numbered sub-directories
8. Copy the resulting Zip file to datazips sub-directory and test
None of this is very difficult, but can be hard to manage. The main difficulties are the images and file and directory management, especially with a bunch of files all having the same name. Having worked with these files in the past and knowing that some might like to create emulator files, but not wanting to go through the hassle, I tried to create something that would remove the tedium and allow folks to concentrate on the data and target collections without the worry of logistics.
Basically, a user only needs to enter a target description and one set of coordinates. You can choose a default image to be used if you don't have appropriate images for your targets. In this case, a user will rely on the target description alone. It does remove a large roadblock by not requiring an image for your targets...we can't see the targets in the ground after all...it wouldn't be much different. Another image issue is resizing them all. It can take some time if you have a lot of targets. When you browse for a target image it will automaticaly copy the image and resize it appropriately.
The data for the application is in three XML files. You can edit them directly if you like. There is no rigorous referential integrity or keys linking the data. The only rule that is somewhat enforced is that every target needs a description. This means that when the app creates target files, you must ensure that the data is correct and complete. The emulator, for instance, will accept a target without coordinates, but will, of course, not respond to those targets. The Targets form is good for reviewing your data. You are looking to ensure that the description, coordinates and images are in place, and, importantly, that the targets are assigned to a target list and are ordered properly.
When your data is complete, click the Generate Files button to create all the directories and files for you, Zip them up and copy them to the datazips sub-directory.
One cool feature is the ability to import existing emulator target files. This will give you hundreds of targets to review and modify for use in your own files if you import them all.
...
http://www.thebeepgoeson.com/display.asp?page=EZEmulator
HH!
Beep
A new app was done to automate the creation of E-Trac and SE emulator target files...
~~~
11/15/2010
Creating emulator target files by hand requires the following steps:
1. Acquire target ID data including target description and E-Trac and/or SE target coordinates
2. Create text files for each target, all with the same name (infos.txt), listing the description and coordinates in machine-specific format
3. Acquire images for each target, resize them to 140x140 or less, and name them all the same name (image.gif)
4. Create a directory having the same name (for convenience) as the desired target file name
5. Create numbered sub-directories (starting at 0) for each target
6. Put the appropriate image and text file in the corresponding numbered sub-directory
7. Create a Zip file having the desired target file name and add the numbered sub-directories
8. Copy the resulting Zip file to datazips sub-directory and test
None of this is very difficult, but can be hard to manage. The main difficulties are the images and file and directory management, especially with a bunch of files all having the same name. Having worked with these files in the past and knowing that some might like to create emulator files, but not wanting to go through the hassle, I tried to create something that would remove the tedium and allow folks to concentrate on the data and target collections without the worry of logistics.
Basically, a user only needs to enter a target description and one set of coordinates. You can choose a default image to be used if you don't have appropriate images for your targets. In this case, a user will rely on the target description alone. It does remove a large roadblock by not requiring an image for your targets...we can't see the targets in the ground after all...it wouldn't be much different. Another image issue is resizing them all. It can take some time if you have a lot of targets. When you browse for a target image it will automaticaly copy the image and resize it appropriately.
The data for the application is in three XML files. You can edit them directly if you like. There is no rigorous referential integrity or keys linking the data. The only rule that is somewhat enforced is that every target needs a description. This means that when the app creates target files, you must ensure that the data is correct and complete. The emulator, for instance, will accept a target without coordinates, but will, of course, not respond to those targets. The Targets form is good for reviewing your data. You are looking to ensure that the description, coordinates and images are in place, and, importantly, that the targets are assigned to a target list and are ordered properly.
When your data is complete, click the Generate Files button to create all the directories and files for you, Zip them up and copy them to the datazips sub-directory.
One cool feature is the ability to import existing emulator target files. This will give you hundreds of targets to review and modify for use in your own files if you import them all.
...
http://www.thebeepgoeson.com/display.asp?page=EZEmulator
HH!
Beep