Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: [1] 2

Author Topic: Placing weapons.  (Read 8387 times)

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Placing weapons.
« on: June 19, 2011, 08:23:32 AM »

Hello!

I'm new to this game but I do have a habit of modding just about anything moddable. I have already made a small ship and it works just fine.
I little thing I need some advise on: is there a easy way to place hardpoints i.e weapons, finding out where they will go on the vector:
      
            "locations": [
                -27,  <------- This
                78    <--------
            ],

I have used trial and error but after some 20 restart of the game and still can't get it just right.

So, how do you do it?
Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Placing weapons.
« Reply #1 on: June 19, 2011, 08:47:49 AM »

Rotate the ship graphic 90 degrees clockwise.

Then, choose a "Center" relative to what would now be the top left of the image. When you enter this data into the ship hull data, transpose the X and Y values.

Lastly, choose a position for your weapon mount. This X,Y data is not transposed as the center was, but it instead is relative to the Center position in the rotated orientation. Also keep in mind that the positive Y direction is upward.

To illustrate:
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #2 on: June 19, 2011, 09:26:37 AM »

Eerr... Like such?



The middle being the chosen "center"?

Oh and thanks for the speedy response!
Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Placing weapons.
« Reply #3 on: June 19, 2011, 09:48:37 AM »

Yeah, like that.
That'll be the coordinate system you use to define the bounding polygon, engine positions and weapon mounts.

The center point itself is the only strange one.
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #4 on: June 19, 2011, 10:00:30 AM »

Hmm.. But why do you have to flip it to the side? Dose the game do that to, "behind the scen", to calculate where the hardpoints will be?
Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Placing weapons.
« Reply #5 on: June 19, 2011, 10:06:37 AM »

I think it's a convention of the physics system. "Zero degrees," in math, is often taken to be "East," with positive rotation of 90 degrees being "North." As to why the points are not calculated beforehand, that'd be a question for Alex.

I'm guessing after the ship editor is released, it won't even matter anymore.
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #6 on: June 19, 2011, 10:10:42 AM »

Oh, there's a editor comming? That's nice, Ah well I'll have a crack at this now and see how much I can screw things up.

Thanks for the help!

I'll post my results later ;)
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #7 on: June 19, 2011, 12:27:40 PM »

Results!

Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Placing weapons.
« Reply #8 on: June 19, 2011, 02:36:36 PM »

Good work, that looks amazing!
Logged

tinsoldier

  • Commander
  • ***
  • Posts: 144
    • View Profile
Re: Placing weapons.
« Reply #9 on: June 19, 2011, 05:33:05 PM »

Looks sweet, now we need a basic mission to take it on a test-drive!!
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #10 on: June 20, 2011, 01:52:01 AM »

Looks sweet, now we need a basic mission to take it on a test-drive!!

I have that already, I am currently figuring out armaments for it, It dose have two new weapons now (a massive slowmowing, front beam weapon and a few PD small antimatter weapons), and I am balansing them right now. It also have some dual flaks and PD lasers.

I'll make a fighter squad too, and then I'll probably release it, like.. Why not.
Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #11 on: June 20, 2011, 01:54:09 AM »

Good work, that looks amazing!

Why, thank you!

But I have encountred a new problem, the ship is so long that the very back of it won't take damage.
   I guess that  "bounds" is the problem?
Logged

RedClaws

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: Placing weapons.
« Reply #12 on: June 21, 2011, 08:45:53 AM »

Hello,

Is there also a way for the guns to not be on the top of the ship?

For example a gun of which the barrel only sticks out a bit to the side of the ship?

Logged

Dibuk

  • Lieutenant
  • **
  • Posts: 71
    • View Profile
Re: Placing weapons.
« Reply #13 on: June 21, 2011, 08:56:19 AM »

Hello,

Is there also a way for the guns to not be on the top of the ship?

For example a gun of which the barrel only sticks out a bit to the side of the ship?



Not as far as I know, you can hide them totaly, though like fighters have.
« Last Edit: June 21, 2011, 12:36:19 PM by Dibuk »
Logged

Trylobot

  • Global Moderator
  • Admiral
  • *****
  • Posts: 1170
    • View Profile
    • Github profile
Re: Placing weapons.
« Reply #14 on: June 21, 2011, 11:27:07 AM »

the ship is so long that the very back of it won't take damage.
   I guess that  "bounds" is the problem?

I actually ran into this once as well. You need to enlarge your "Collision Radius."
Logged
Pages: [1] 2