Anisoptera Games
https://www.anisopteragames.com/forum/

Adding New Block Shapes
https://www.anisopteragames.com/forum/viewtopic.php?f=9&t=2249
Page 2 of 2

Author:  Ha11uc1n0g3n [ Wed Jun 15, 2016 6:39 am ]
Post subject:  Re: Adding New Block Shapes

Thanks for your reply bokke1010

However, I continue to receive the same error even after copying and pasting your code directly into what I believe are the appropriate files. Below are the locations of the files I have assumed to be correct (up to this point...)


C:\Users\UserName\Saved Games\Reassembly\Data\Shapes.Lua

C:\Users\UserName\Saved Games\Reassembly\Mods\MyMod\Blocks.Lua

Time and again I've checked and rechecked the code syntax and everything seems to be in order. I've also tried uninstalling and reinstalling the game and at this point I'm entirely out of ideas on what could possibly be going wrong here. Any further help would be appreciated.

Author:  Ha11uc1n0g3n [ Sun Jun 19, 2016 4:57 pm ]
Post subject:  Re: Adding New Block Shapes

So I started a completely new mod and copy and pasted your code into the Shapes.Lua and the mod Blocks.Lua

Same error. All that's left to do is literally delete everything on my PC that's associated with Reassembly and reinstall from scratch...But I can't imagine wtf could be causing a conflict and by now I'm more than just a little frustrated since everyone else seems to be having an easy time of it.



bokke1010 wrote:
I've succesfully made my own mod shapes, and my mod will go online later this week, but i can post some code here:
shapes.lua
Code:
{
  {102,
    {
      {
        verts={
          {-4.619, -2.5},
          {-4.619, 2.5},
          {4.619, 3.161},
          {4.619, -3.161}
        },
        ports={
          {0, 0.5},
          {1, 0.5},
          {3, 0.5},
          {2, 0.5, WEAPON_IN}
        }
      }
    }
  }
}

blocks.lua
Code:
{
   {
      1,
      group=20,
      name="middle part",
      shape=102,
      fillColor=0x4b3d47,
      durability=1.3,
      growRate=7.5,
   },
}

possible port modifiers: WEAPON_IN, WEAPON_OUT, THRUSTER_IN, THRUSTER_OUT, NONE, LAUNCHER, MISSILE
tell me if i missed any

Author:  Marxon [ Wed Dec 28, 2016 1:29 pm ]
Post subject:  Re: Adding New Block Shapes

Might need to ensure there are no spaces between like brackets because that might be causing parsing errors.

Author:  arthur [ Sat Apr 29, 2017 9:43 pm ]
Post subject:  Re: Adding New Block Shapes

I just realized that I never put my shape mod example up...

http://steamcommunity.com/sharedfiles/f ... =916026798

I've been getting some emails questions about using mirror_of to allow mirroring non-rotationally-symmetric blocks. There is also a launcher_radial keyword which can change the direction of attached missiles/drones/etc. Hopefully this should clear it up.

Page 2 of 2 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/