View unanswered posts | View active topics It is currently Tue Jun 25, 2019 1:13 pm



Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Adding New Block Shapes 
Author Message

Joined: Mon May 04, 2015 10:08 am
Posts: 97
Reply with quote
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.


Wed Jun 15, 2016 6:39 am
Profile

Joined: Mon May 04, 2015 10:08 am
Posts: 97
Reply with quote
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


Sun Jun 19, 2016 4:57 pm
Profile

Joined: Mon Aug 10, 2015 10:26 pm
Posts: 14
Reply with quote
Might need to ensure there are no spaces between like brackets because that might be causing parsing errors.


Wed Dec 28, 2016 1:29 pm
Profile
Site Admin
User avatar

Joined: Thu Jan 16, 2014 2:45 pm
Posts: 561
Location: Los Angeles
Reply with quote
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.


Sat Apr 29, 2017 9:43 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 14 posts ]  Go to page Previous  1, 2

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software