Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: New static.actors.tool  (Read 454 times)

0 Members and 1 Guest are viewing this topic.

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 125
New static.actors.tool
« on: June 23, 2019, 11:59:42 AM »



V1.5
Serious bug fixed, that causes the wrong placing of some objects when creating an actors from a fresh created inBuildings.txt.

V.1.4
A GUI update only. To avoid unwillingly read or write operations when clicking on one of the lists i added a menu item "Select actors to read/write." Also the size of the write and the log window is changed a little bit.

V.1.3
The log window scolls down automatecally now.
Some typos fixed.
map_t.tga reading folder for the true bridges y values is changed to the tools map subfolder. 
Attention: If you add the map_t.tga to that folder to get the true y values of the bridges (not needed), read and expand the actors again to avoid inconsistencies with that bridges y-value, which may cause a map to crash.

V.1.2
Function objectlist fixed, i forgot to update this in V.1.1

V.1.1
The extracted in files are stored now separatly in a own folder for each map. This is a subfolder of the tools folder.
Copy function fixed.
Several log flaws fixed.


This tool i wrote simply because i wanted to know how the actors.static file works. The tool reads and writes actors.static files and so has the same functionality as the act.jar. The tool also was a consol program originally, but i added a gui now. So it's a little bit more comfortable than the act jar. It reads and writes actors from and to defined and stored pathes, so no copying is needed and also a mapsize.txt is not needed. It also creates a list with the number of the differend objects types used and how often they are used. Reading an actors is about 10 times faster than with the act.jar and writing abount 20 times. Nevertheless the tool may be unresponsive for a few seconds with a really big actors after clicking to read or write.

Usage:
Define the pathes to read an actors with "Edit actors pathes/Save path to read actors" and using the file requester then first. This usually will be the actors, you saved after editing a map within the fmb, so the path mostly would be like "(game)\maps\(mapname)\actors.static". Of course yo can also select a file like "mwactors.static".

Do the same with the pathes to write the actors. This usually will be the actors within the maps mapfolder you are working on, for example something like "(game)\Bat\#sas\mapmopds\(mapname)\actors.static".

To delete a wrong or obsolete entry click "Edit actors pathes/Delete .." and than click onto the path to delete in the read or the write actors part of the window.

To expand an actors just click onto one of the defined pathes within the "Select actors to read" part of the window. The log shows what happens and how many bridges, runways and airport ways and objects are found. The expanded txt files are written into the tools folder. Also a copy of the actors is stored there with the maps name and date of reading.

To write an actors just click onto a path shown in the "Select actors to write" windows part.

The tool uses in files only. Exept for the inBuildings.txt i changed the files format and names a little bit to be more comfortable. Only the inBuildings.txt has the known name and format for compability reasons, as there may be a lot of tools reading and writing this file, especially the populating tools. I also don't think that anyone changes the bridges or taxi ways manually. The only exeption may be when shifting a whole actors when changing a maps size, but for this the act.jar and the actors.cs may be used.

To convert the y position of the bridges i use the constant "0". So the y positions in the bridges file are wrong. They are related to the upper left map edge instead the lower left. But this doesn't matter when reconverting the bridge file with the same constant. If you want to know the real y values, just throw the map_t.tga of your map into the tools folder. The tool than will read the maps height and compute the y value correctly with y = height(pixel x 200)-y and reverse.

To clear the log click "Log/Clear".

To create a sorted list with the number of different object types used within the inBuildings.txt and how often every single object is used, click "Objectlist/"Select a map path from one of the lists" and then click to one of the map pathes. If nothing happens, the inBuildingsfile why ever does not exist. Read the actors again then.

You may download the tool here:

https://www.mediafire.com/file/z31o5cp4b1gykgp/ActorsTool.7z/file

If you notice any flaws, please report.

Nowekat

Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 125
Re: New static.actors.tool
« Reply #1 on: June 24, 2019, 09:51:58 AM »

I updated the ActorsTool to version V1.1

Changes:
The extracted actors in files are stored now separatly in a own folder for each map. This is a subfolder of the tools folder which is created automatically.
Actors save function fixed
Several log flaws fixed

The link in the first post remains the same.

Novekat
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 125
Re: New static.actors.tool
« Reply #2 on: June 24, 2019, 12:31:04 PM »

To bad. When updating to V.1.1 i forgot to update the objectlist function, so the tool does not find the inBuildings.txt. This is fixed in Version 1.2. The link still remains the same.

Novekat
Logged

SAS~Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 7280
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: New static.actors.tool
« Reply #3 on: June 24, 2019, 12:43:27 PM »

Thank you very much !
But I'm not going to have time to test it for several days!  :-X
Logged
A bove ante, ab asino retro, a stulto undique caveto.

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 125
Re: New static.actors.tool
« Reply #4 on: June 30, 2019, 03:36:10 AM »

I updated to Version 1.3 with some minor changes:

The log window scolls down automatecally now.
Some typos fixed.
map_t.tga reading folder for the true bridges y value is changed to the tools map subfolder. 
Attention: If you add the map_t.tga to that folder to get the true y values of the bridges (not needed), read and expand the actors again to avoid inconsistencies with that bridges y-value, which may cause a map to crash.

This may be the final version of the tool if i do not notice a critical flaw.

The link in the first post remains the same.

Nowekat
Logged

Nowekat

  • Modder
  • member
  • Offline Offline
  • Posts: 125
Re: New static.actors.tool
« Reply #5 on: July 12, 2019, 09:26:49 AM »

I'm sorry to say, that i noticed a serious bug with the ActorsTool. This appears only when writing an actors from a new created inBuildings.txt. The bug causes the wrong placing of some objects then. I did not notice this earlier, as i mostly tested the tool with allready existing actors.static files.

I fixed that bug and updated the download in the first post. You should use the new version if you want to use the tool creating actors from a new created inBuildings.txt. The link remains the same.

Nowekat
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 25 queries.