6,220 11qazxc Comments

  • Sea-skimming Missile (Like the JASSM missile,I'm pretty sure) 6 months ago

    FCLongitude,FCAltitude,FCLatitude are coords of missile

    TD=sqrt( pow(Longitude-FCLongitude+TargetDistance*cos(TargetElevation)*sin(TargetHeading),2) + pow(Latitude-FCLatitude+TargetDistance*cos(TargetElevation)*cos(TargetHeading),2) )

    TAlt=Altitude+TargetDistance*sin(TargetElevation)

    h=5+195*(.5+.5*cos(clamp(0.1*TD+20,0,340)))+1800*(.5+.5*cos(clamp(.01*(TD-45000),0,180)))

    __D is dampener, __P is gain
    PCi=(lerp(TAlt,h,pow(TD/200,2))-FCAltitude+rate(lerp(TAlt,h,pow(TD/200,2))-FCAltitude)*__D)*__P

    40 here is some distance after which missile surely can't damage airplane
    Missile's pitch angle=smooth((abs(Longitude-FCLongitude)+abs(Latitude-FCLatitude))<40|(PCi!=PCi)?0:sign(PCi)*90,(PCi!=PCi)?0:abs(PCi))

    Be carefull, SP forum might not display full expressions

    +1
  • New guy questions from an old player. 7 months ago

    So, does anybody have any pointers about getting started?

    Tutorial section of forums and videos, and perhaps some geometry.

    What am i looking for with my centers of mass, thrust, and lift?

    Thruster must face towards center of mass (if you don't want to use it to rotate craft), so for forward-facing engines usually center of thrust is directly behind center of mass.
    Center of lift is where wing's forces are applied, it moves while you fly.
    Usually wing pulls airplane up, so in cruise CoL is near CoM, but such airplane won't decrease pitchrate naturally.
    At high AoA both lift and drag are higher, so if CoL is in front of CoM it'll pull airplane's nose back and upwards, increasing AoA even further, which will eventually lead to stall or uncontrollable spin.
    If CoL is behind CoM, it will pull tail away from direction of flight, so airplane will be pretty stable, but if CoL will be too far from CoM you won't be able to control it.
    In real life getting center of lift is not that easy, so usually it's recommended to get center of mass around quarter-chord behind midpoint of leading edge.

    How do i make a slick or at least cohesive fuselage? I see some incredible stuff on here and want to leave my own work on the table.

    I can't really say much about it. Fuselage is 28-sided (circular ones are 24-sided), in newer versions you can "slice" specific part from it with four planes. Greater ones are using hollow fuselages as plating (e.g. screenshot from this post), but it will require either a lot of time or geometry knowledge and calculator to align them properly.

    Also, what the heck do upvotes do? And do i spend points to give them?

    They do nothing but they're used in rating, both for crafts and users. You don't need anything to give one.

    +1
  • important PSA: Images hosted on Discord may disappear at the end of the year 7 months ago

    Well, it sucks.

    timestamp, timestamp, HMAC

    Knowing two of three inputs and HMAC, can we try to guess hash function and key they're using?

    +1
  • Help me to improve avionics 7 months ago

    smooth(sign((input-current)+rate(input-current)*D),
    P*abs((input-current)+rate(input-current)*D))

    SP forum doesn't displays full line, so it's split with linefeed.
    It's a form of PID, P is gain, D is dampener
    It's always clamped between -1 and 1, and will perhaps be 1 at the level start.
    It's generally not proportional to input and it's not suitable for rockets|TVC, but it works fine with control surfaces.
    For high-speed airplanes, don't forget that airplane's behaviour changes with airspeed.

    +1
  • 1-part custom images: easier, larger, lighter 8 months ago

    @Skykid028 I do not have android device.
    About colors, i got one more similar message recently and i noticed that result from different user is slightly different, but at the moment i don't know why is it different and how to fix it.
    For your specific case i can suggest to increase number of bits per color if possible, although i doubt it is the problem.

    +1
  • [PROJECT ICARUS] Training an A.I to do Funky Trees coding 9 months ago

    Epic fail.
    Try to ask in FTLab, they had a channel for pre-made codes.

    +1
  • 1-part custom images: easier, larger, lighter 11 months ago

    @piglincheerful To clarify, are you a bot?
    What's up with that link you attached to the end of your comment?

    +1
  • mobile unfriendly F-15C Oregon Air National Guard 11 months ago

    There's always a way to ruin tech, but can you make the tech better?

    +1
  • That big discord one year ago

    Autocorrect preferring collar over collab? Hey, that's pretty interesting!
    How did you even teach it?

    +1
  • I need some code 1.1 years ago

    min(90,max(10+atan(TAS/(2*pi*PROP_RADIUS*0.5*PROP_RPM*60)),0))/90 will perhaps work
    PROP_RADIUS is in meters, not blocks.
    So, you calculate velocity at the middle of blade, add velocity of airplane relative to air, calculate angle between result and propeller plane, and add 10 degrees.

    +1
  • update 1.1 years ago

    You can try to use button with interactionType=Toggle and some activation group for actual weapons.

    +1
  • I’m gonna keep this suggestion simple not complex. 1.2 years ago

    You can use control bases to make specific parts bend in specific places, and i bet actual soft-body part will lag five times more than entire build without it.

    +1
  • I’m gonna keep this suggestion simple not complex. 1.2 years ago

    @TheFlightGuySP AFAIK bending wings and rotators is a bug of game engine, not feature of a game.

    +1
  • Fly-by-Funky-Trees help 1.2 years ago

    You don't really need to make airplane unstable to make it maneuverable.
    High AoA won't increase maximum GForce (in general situation with dumb AI it will rather decrease it) and won't help you to evade gunfire, it can only help you to point your guns faster (to some extent, and with aerodynamic control only it will rather be dash than continuous increase in turnrate) at the cost of speed (which is life) and glide ratio (which is what wing built for).
    So if you need to increase GForce i recommend to increase wing area and then move CoM so that angle of attack during turn will be just a bit below stall (13deg for symmetric wing, 16deg for semi-symmetric, 28deg for flat-bottom).

    +1
  • Damage activated buttons/lights 1.2 years ago

    For "part" in general you can make light work always and attach sort of shutter to part you're interested in.
    So if part will be destroyed shutter will fall off and reveal light.

    +1
  • Goodbye. 1.2 years ago

    R.I.P.

    +1
  • Another Valentine's day. 1.2 years ago

    F22 is forever? Doesn't wastes savings? Perhaps you don't know how hard is fighter jet maintenance, but hey, you must at least remember that F22's "cosmetics" is tons of stealth coating?

    +1
  • YKP-05 "Youmu Konpaku" 1.3 years ago

    I think she needs a 10-15m-long drone.

    +1
  • Automatic gift delivery 1.3 years ago

    @DatRoadTrainGuy19 311x15=4665 performance cost, but with 15 AI scripts, 15 variable sets etc..

    +1
  • How to put a picture on the label? 1.3 years ago

    @HololiveFan2009 There's a site and plane634 said already about apps.

    +1
  • FT tech idea: Simulated bomb/missile camera for manual remote guidance 1.3 years ago

    @PlanariaLab add cockpit coords and subtract missile coords before transformation? Still looks like a work for search-and-replace tool tbh.

    +1
  • PQ-14 1.3 years ago

    @Kendog84
    1) There's /10 in the middle of first AP_h_ac variable setter, it's proportion between altitude difference and flight path angle. Replace 10 with higher value toget lower vertical velocity.
    2) It's what i wrote before, <10 in the end of activator of wpSystem_ctgt_id. You can use DebugExpression sqrt(pow(wpSystem_d_x,2)+pow(wpSystem_d_y,2)+pow(wpSystem_d_z,2)) in dev console to get current distance to waypoint.

    AI "piloted" plane and player "piloted" one take different routes (at least initially) for some reason, even if I spawn them at the same location.

    I know about it. wpSystem_ctgt_id variable setter must be zero if Time is less than 0.1s, but Time is global so it only works for player's airplane, and those who was spawned later will perhaps start from 1 or 2 (i.e. second or third point). Try to replace Time with sum(1) in wpSystem_ctgt_id and it's activator.

    You're more likely to successfully pass the waypoint if you only change one type of coords with every ID.

    IDK why it works such way. It only uses coords to get angle to waypoint, and then uses that angle to turn.

    Related to above, if the plane has to turn a lot to reach the next WP, you should make it travel a long distance (so the plane can turn gradually). Again, less likely to miss WP this way.

    Not a surprise. Airplane needs time (and thus distance) to turn, and if AP doesn't makes airplane fly chaotically it will become more and more accurate (to some limit) until a change in heading or altitude occurs.

    +1
  • PQ-14 1.3 years ago

    @Olliebowen replace AP_out_ail,AP_out_ele,AP_out_rudder,AP_out_throttle variables setters with inputs you need.
    Or replace AP_in_head variable setter with sum(Roll)*20 and AP_in_alt with smooth(Altitude,Time&lt;.1)+sum(Pitch*20) if you wish to keep arcade controls.

    +1
  • Christmas Challenge (Closed) 1.4 years ago

    My entry. FT-only, truck itself isn't my build.

    +1
  • PQ-14 1.4 years ago

    @Kendog84
    It's in the end of activator of wpSystem_ctgt_id

    +1
  • Rolling speeds up my aircraft uncontrollably. 1.4 years ago

    An example is auto-rotating heli, it gets energy from airflow and uses it to produce thrust. Perhaps your craft works same way, but thrust in this case is more than drag.

    +1
  • PQ-14 1.4 years ago

    @Kendog84 Setting target to your current position seems like an odd idea.
    A slider is limited, it may work for default map but it won't work for other maps, and it's accuracy depends on it's range.
    A keyboard maybe?
    For preset coords i can make a selector or menu.

    +1
  • Funky Trees! 1.4 years ago

    @DenizLion You can't use state of real hardware and you can't change user's inputs with FT.
    max(0,rate(Throttle)) or rate(Throttle)?1:0 will work while Throttle's rising.
    Throttle=1?1:0 will work if Throttle's 100%

    +1
  • How do i use activation groups as an input for rotators 1.4 years ago

    Activate1?input-if-active:input-if-inactive
    Angle of rotator is it's input multiplied by it's range.
    WNP's post
    Snow's guide in case you can't understand WNP's post

    +1
  • AG-2 LOCKLESS 1.4 years ago

    Is it (the code) your own development?

    +1
  • Autopilot with Predetermined Course/destination? (AI bomber, concept) 1.4 years ago

    Here it is. I don't really know how it'll work, but it's actually coded.
    @PlaneFlightX
    @rexzion (perhaps you noticed already)
    Kendog, you will know about this comment without mention since it's your post...

    +1
  • Users of Simpleplanes... 1.4 years ago

    Here. Some white parts were cropped so you need to use white background.
    "fun" fact: it uses ~7.28 symbols per pixel. Andrew image used 16 symbols per pixel so tech's better than it was, but PNG files can use less than one byte per pixel...

    +1
  • Need some decals made using the Labels. 1.4 years ago

    swedish flag
    red bull logo with text
    red bull logo without text
    spotify
    Use Military font if you see thick white stripes between pixels.

    +1
  • My Honest Opinion of Cuttable Fuselages in SP... (Plus news for Jundroo) 1.5 years ago

    ̶2̶4 28 Sides of fuselage... Building with calculator and notepad... But it works correctly, right?
    What doesn't works correctly is slicing of hollow fuselages and a lot of underlines in combination with full stops.
    I'm not sure if it's just for me and how exactly it works, so i can't send bug report at the moment, but it's a post for complaining, right?

    +1
  • 1-part custom images: easier, larger, lighter 1.5 years ago

    @ollielebananiaCFSP I agree that it's results are still too laggy and too large, but you're comparing wrong app.
    With fuselage you can get a lot of different shapes and your brain can understand what's edge and what's plane, but this app can only work with what a label can display and uses array of pixels.
    But i have different function: it takes two python functions as edges and fills area between them with solid color using underlines. I didn't noticed any fps decrease in level using three 1560-line cats made with that function and i could edit them in designer with minor lags. I think it's the result for you to compare.

    +1
  • 1-part custom images: easier, larger, lighter 1.5 years ago

    @WNP78
    I will try it if i will find suitable squares.
    For now i found out that it will only be effective if large square is 17 or more pixels wide, and both full stop and unicode square aren't suitable because full stop is round-ish and square isn't actually square.
    image

    +1
  • Bonelab+Simpleplanes VR? 1.6 years ago

    Little update since i saw spiderman avatar mod for it: it's unity and i don't understand how it stores 3d model, so i can't do anything with it.
    I wish good luck for others.

    +1
  • [CLOSED] Challenge of the Air Forces of the Primary School 1.6 years ago

    @FlyingPatriot #comment-4113027
    1. use markdown! [text](address) this one should work
    2. your link is not readable because of stars or underscores (markdown)
    3. don't use redirects, it sucks to get to four different domains just because you need one japanese site.

    +1
  • some XML suggestions to reduce pain 1.6 years ago

    @ReinMcDeer targetingStyle ( ContinuousLock or StandardLock , though i'm still not sure if it can be changed)

    +1
  • Report post box 1.6 years ago

    It's a shame you can't make it work.

    +1
  • Made by IA Image Importer 1.7 years ago

    Some recommendations: <#RRGGBBAA> and <#RGBA> works too, so it isn't necessary to write "color";
    sort of run-length encoding will significantly decrease performance cost (especially if you will ignore some of least significant bits);
    you don't need to write pixels with zero alpha, you can use whitespace or <space=Xem> tag instead (i'm using tag if there's more than 15 transparent pixels and whitespaces otherwise, but it's just because of length and i don't really know how it affects performance);
    if you're using left alignment you can throw away transparent pixels in front of linefeed.

    +1
  • Doom Contest (CASH PRIZE!) (not a meme post) 1.7 years ago

    Don't you think last line of description makes challenge nonsensical?
    You will literally need to call most of humans who can do it to get five of them here, and even so, five months feels like a bit too little time to do it (but it may be just lazy me).

    +1
  • Doom Contest (CASH PRIZE!) (not a meme post) 1.7 years ago

    /reminder for myself to be a bit less lazy

    +1
  • Some suggestions for the site and game 1.7 years ago

    For designer, it's mostly fine (because i don't really use it's menus), but two changes i'd like to see is possibility to use Tab/Shift+Tab and spacebar to choose and control input fields/buttons/checkboxes and possibility to switch off screen updates as long as nothing changed. In my opinion it's just stupid to load 80% of GPU while anything stays same.

    +1
  • revolutionary discovery: the linear actuator! 1.7 years ago

    @WormWithLegs
    ... or replace RotationAxis tag in xml with PositionAxis.
    it's properties here are
    &lt;positionaxis axis=&quot;0,1,0&quot; input=&quot;Trim&quot; scale=&quot;0.2&quot; min=&quot;-0.45&quot; max=&quot;1.5&quot;>/positionaxis>
    (nvm all-lowercase letters, it's broken by browser html parser)
    axis is a vector (it may not be normalized), it's offset of moving end in meters when input is 1/scale.

    +1
  • ArtiElf Type I 1.8 years ago

    Gun firing and recoil animation was not synchronized for me for some reason.
    I did not expect such good and highly-appreciated build to be drone with fixed animation.
    Not sure if i can call it revolutionary.
    Her legs are beautiful though.

    +1
  • Drone MD-22 1.8 years ago

    I just understood why code must have comments.
    What's the difference between chasing and following?
    Is there significant reasons why you use RateH >= -0.05 &amp; RateH &lt;= 0.05 instead of abs(RateH) &lt;= 0.05 ?
    What's the difference betwween TrueH and Heading?
    Was it originallly writen in FT or was it copied from other program?

    +1
  • Bug thread for v1.12.128 (current version) 2.1 years ago

    SP v1.12.125:
    mark tag of one label obscures text of other labels located nearby.
    gif, uploaded craft

    +1
  • Simpleplanes No jet ingine series 2.1 years ago

    Old props (partType Prop-1 and Prop-2) will look like propeller engines but work like jet engines.

    +1
  • War Of The Future Challenge (Closed) 2.1 years ago

    Can it be someone other's build with modifications?
    If no, can i use parts of someone other's builds?

    +1