Jump to content

Mangomania

Members
  • Posts

    4
  • Joined

  • Last visited

Mangomania's Achievements

0

Reputation

  1. I have to tweak a lot. The reason that there was no armor replaces is simply, that I forgot there is actually ogonite armor. The script simply doesn't allow ogonite as armor which is an error on my side. Will fix that asap. And thanks for the feedback! Mango
  2. Scaling something to a desired size can be tricky, as the cubic expansion is bigger than often thought :D To the armor problem: What material did you choose to be the new armor? Mango
  3. That's where the "Quick and Dirty" Programming kicks in :D I have just multiplied the "currentDurability" and "maxDurability" with the cubic scale to address the relation between volume and durability. This works fine, as long as all blocks stay the same. TLDR: Only volume affects scaling and falloff affects all blocks in different ways depending on distance to the root block of the tree. To come back to your question, the durability falloff depends on the distance to the root block in the tree structure. I need to take a few more looks, but it seems, that there is a limit at how many blocks receive the falloff. After I placed a few blocks of the same type, material and size in line, the falloff stopped. The lowest durability for an iron block with the size 2X2X2 was 32. This is also the amount of the falloff for each subsequent block. For a 4X4X4 Block, the min. durability was 256. After this min. durability is reached, all blocks above this (in the tree) increase their durability by the min. durability. Example 1: I got 4 blocks of 4X4X4 in a row, the durability is as follows (nearest to farthest): 1024, 768. 512, 256. Example 2: I got 9 blocks of 4X4X4 in a row, the durability is as follows (nearest to farthest): 2304, 1792, 1536, 1280, 1024, 768, 512, 256. Result: The durability has a min. amount. The falloff also affects already placed blocks but instead increases their durability. For the process of scaling only the volume is of interest. At some point, the blocks direct to the root block seem to get even more than the min. durability per block. Greets, Mango
  4. Hey guys, I wrote myself a little script in JavaScript to rescale my Ships and decided to share it with you. I'm pretty sure there is an easier way, but this is how I solved it for me. You can find it here: www.seven-parsec.net/index.php?site=avorionscaler It is completely on your end, no data is transmitted. How to: [*]Click on "choose file" and select the savefile of your ship. Your ships savefiles are located at "%appdata%/Avorion/ships". You can paste that address into the address bar of the explorer that opens up. [*]Insert your desired scale. [*]Click on "Scale". [*]Click now on "Save File" and it should download a file. [*]Paste the downloaded file into the savefile folder. If your file selection doesn't work:
×
×
  • Create New...