Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
Arkantos

Avatar / Picture

Registered:
Posts: 481
Reply with quote  #1 
I originally posted this in the "Help" section and was told that this section might be more useful. I'm looking over the specs of the various ships in vesselData.xml. Most of it makes sense, but I have a couple of questions about beam ports. For example, here are the two <beam_port> nodes for the Kralien cruiser:
<beam_port x=" 84" y="-3" z="286" damage="1.0" arcwidth="0.3" cycletime="6.0" range="1000"/>
<beam_port x="-84" y="-3" z="286" damage="1.0" arcwidth="0.3" cycletime="6.0" range="1000"/>

  1. How do you tell what bearing a beam faces? There doesn't seem to be a value for that. My best guess is that it's calculated from the port's Cartesian coordinates, but I don't know for sure.
  2. Is the arcwidth attribute an angle? If so, what are the units? My guess is the angle is the given value * 2 * pi radians, but again, I'm not certain.
Arkantos

Avatar / Picture

Registered:
Posts: 481
Reply with quote  #2 
Okay, I've answered question #2 for myself: Arc width is the percentage of the full circle covered by the arc, expressed as a value between 0 (no coverage) and 1 (full coverage). To convert the arc width to radians, multiply it by 2 * pi. So an arc width of 0.3 is 0.3 * 2 * pi = 1.885 radians = 108 degrees.

I haven't yet figured out how to determine a beam's bearing, but I think it must computed from the Cartesian coordinates of the beam port. Perhaps its the bearing of that point from the origin, not sure yet.
DupeOfURL

Registered:
Posts: 379
Reply with quote  #3 
Arkantos - almost hate to say it, but have you checked into specs of a ship with a rear beam (e.g. DreadNought) to see how that is configured?
__________________
on TeamSpeak as GrayBeard 

Vorus

Avatar / Picture

Registered:
Posts: 27
Reply with quote  #4 
To fully understand beam facings, you need the Ship Editor, available here: http://www.artemis.eochu.com/download/ArtemisShipEditorTool_1_50.zip

You load up a ship model, (.dxs file) and then you can click anywhere on the model and you'll see the coordinates of that point. As you will see, beams face an angle equal the that between the center of the ship mesh, and the beam port coordinates. So, to have a beam shoot dead ahead, you have to place it on a point directly forward of the ship mesh's centerpoint. To have a beam fire aft, the beam port needs to be directly behind the mesh's centerpoint. Does that make sense? I'm not sure I'm explaining it well. 

One caveat about the ship editor; Last I knew, it had a bug where you can't click directly on a point aft of the centerline. You have to click on the forward half of the mesh, and then use the "w" or "s" keys to slide the point around the mesh to the back half. You'll see what I mean when you fire up the program. 

Anyway, get that, and play around with it, you'll figure it all out.
russjudge

Avatar / Picture

Registered:
Posts: 234
Reply with quote  #5 
To get a good visual for the beam facings, load the vesselData file in Artemis Mod Loader (link below)--under "Mod development".  The arcs are drawn, so you can easily see the beam ports.
__________________
Russ
https://russjudge.com
Author of:
Artemis Manager
Artemis Mod Loader.
The Big Red Button of Death!
ArtemisSBS-Protocol Sharp
DMX Commander
(and all are free)

Visit my Patreon page and buy me coffee.
Arkantos

Avatar / Picture

Registered:
Posts: 481
Reply with quote  #6 
I figured it was something like this. Is there an easy way to get the coordinates of the center of the ship mesh? Just looking at the numbers in vesselData.xml, it doesn't seem to be 0,0,0.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.