Very interesting. My landing gear code all uses the same smooth() timer, although it's more linear, with simple code (no ternary operators) to do things like open the gear doors in the first 1 second, and retract the gear for the next 8 seconds, followed by gear doors closing for the last second.
If you have the game on a computer, you can use the "3D Print/Export" button in the designer menu to export the loaded craft to a .obj file. From there you can convert it to STL and prepare it for printing.
@SARACONIKaviationIndustry Hello, I am happy to share it with you, although it relies on several aircraft variables which in turn use other variables. What I can do is give you the raw label code and some of the essential variables; hopefully you can understand how it works with that. It will likely be a while before I can send it to you; I have some irl stuff to do.
Update, just looked at my code and in the earlier example I sent, I define variables and then set different ones. This new comment fixes that. I also made all the characters show up correctly (for example this:
"<"
doesn't turn into this: "<"
)
Right after the behavior class start:
Jundroo.SimplePlanes.ModTools.Parts.IInputController[] inputs = new Jundroo.SimplePlanes.ModTools.Parts.IInputController[3]; private float _scaleX = 0; private float _scaleY = 0; private float _scaleZ = 0;
In the start void:
inputs = this.GetComponentsInChildren<Jundroo.SimplePlanes.ModTools.Parts.IInputController>();
In the update void, wherever you please: this._scaleX = inputs[0].Value; this._scaleY = inputs[1].Value; this._scaleZ = inputs[2].Value;
And obviously you can take the basic syntax structure and change it as you need. This code is for three input controllers.
Also, if you're wondering what stuff like private is, they are keywords in C# but they don't seem to be required for the purpose of scripting part behavior. Some of my variables have them, some don't. My code is also a mix of random stuff I got from other mods and the internet, but it works.
I actually had the exact same issue as you!
Example code:
Right after the behavior class start: // Array of input controllers.
Jundroo.SimplePlanes.ModTools.Parts.IInputController[] inputs = new Jundroo.SimplePlanes.ModTools.Parts.IInputController[3];
float input_scaleX;
float input_scaleY;
float input_scaleZ;
In the start void: inputs = this.GetComponentsInChildren<Jundroo.SimplePlanes.ModTools.Parts.IInputController>();
And then just do this._scaleX = inputs[0].Value;
Hopefully you can understand how it works and can apply it to your own code.
It is a change made by the developers to promote newer aircraft, although you can still manually search for older crafts by adding ?d=0 to the address in the URL.
@hpgbproductions I guess I don't really mind for when I'm just placing stuff somewhere; I use the increments of 0.0001, 0.0002... 0.0064, 0.0128, etc). idk it's just what I do, I guess. Obviously for fuselages I'll let them align themselves, but everything else is pretty much nudge it until it's seamless (down to 0.0001, although sometimes I type in more precise numbers)
@hpgbproductions What do you mean by coordinates in this context? I would think when building the numbers don't matter; it's the position of the part relative to other parts that matters.
@Graingy This was my actual building skill 3 years ago lol
How far I've come...
Also if you check the changelog in the description I've made lots of improvements to this plane over time.
@Graingy Label stuff is hard to explain. I use a text editor (notepad++) for that reason, which does things like show me bracket pairs.
What specifically do you mean by "issue" with displaying a value?
@Graingy You can only display two strings or two values in a label, not one of each. To display values or strings, put it in curly brackets. {Activate1 ? "True" : "False"} {Activate1 ? 50 : 20}
@FlyOnTheWall I think the mod itself has to be specifically exported for android, as when I attempted it many years ago I got a lot of warnings about missing build support for Android, etc.
@V I guess I also participate in control base abuse. My iPad in my cockpit has full 6dof capability, where it can both snap to four positions and also function as a normal pickup object for VR users (buttons to change modes). The main landing gear also uses control bases for the main strut, tilt/tilt suspension, and the lock link.
@OverlordPrime NASA computer, although any mid range computer with a decent GPU can run the entire fuselage and interior with playable FPS.
The cockpit is another story, as I get 30FPS with my main rig and 6FPS with my mid range gaming laptop.
@fleia262 With me, coding in the variables window is impossible due to the complexity of my code (in fact, 1000 variables is after I simplified and improved the code from 2000!). Some variables contain giant paragraphs of code, which is beyond impossible to deal with in the window. In fact, I don't just use one notepad window; I used over four monitors of code and diagrams when I was developing the FMC.
With the latest SP update the terrain texture is all white, I'm pretty sure I already know the answer, but if you could fix the texture that would be great.
@RGaming00 Hello, forgot about this until now, but the FMC is insanely complicated, so much so that even I rely on my own notes to make modifications to it. What I can do is ask you to watch the five videos linked on this post for a general overview. Here is some of the actual documentation and notes from when I made it, and you can download the FMC itself here. The best way to explain it is there are three main components, those being the label (to display the information), the entry, storage, and retrieval system, and the system to change pages. If you take the time to view the linked resources (in particular the linked documentation), I can explain any confusing parts. I highly recommend you thoroughly explore the FMC itself and the notes, as it's a lot easier than me trying to explain everything over text.
@32 You need both normal SP and SPVR, but mods do in fact work almost perfectly. I should note that a select few only render to one eye for some reason, but the majority and anything I make are perfectly fine.
@YarisSedan well he actually did make another and spammed f bombs for an hour, but I dm'd FFF in discord and he said they are working on an IP ban. As of now the new new new new alt account is banned and comments are purged.
@Cuboidable Nah it'll be free to download (in fact I think it's against the ToS to lock it behind a paywall).
@Solent Thanks!
Use the videos page.
Very interesting. My landing gear code all uses the same smooth() timer, although it's more linear, with simple code (no ternary operators) to do things like open the gear doors in the first 1 second, and retract the gear for the next 8 seconds, followed by gear doors closing for the last second.
If you have the game on a computer, you can use the "3D Print/Export" button in the designer menu to export the loaded craft to a .obj file. From there you can convert it to STL and prepare it for printing.
@LowQualityRepublic It is
It's insanely complex and took me many months though
@MalaySmoker ohh I see now. I'll test and add that when I get a chance.
@MalaySmoker Isn't it ignitionDelay?
did you put each <voffset>tag on a new line?
@SemedianIndustries Possibly, although it will be a few days.
You need to copy the direct image link, such as
https://e3.365dm.com/21/07/2048x1152/skynews-boeing-737-plane_5435020.jpg
@HungrySu34 20 thousand
@SARACONIKaviationIndustry I have uploaded a demo version here.
@SARACONIKaviationIndustry Hello, I am happy to share it with you, although it relies on several aircraft variables which in turn use other variables. What I can do is give you the raw label code and some of the essential variables; hopefully you can understand how it works with that. It will likely be a while before I can send it to you; I have some irl stuff to do.
@ArmouredTrashCan good to hear
Update, just looked at my code and in the earlier example I sent, I define variables and then set different ones. This new comment fixes that. I also made all the characters show up correctly (for example this:
"<"
doesn't turn into this:
"<"
)
Right after the behavior class start:
Jundroo.SimplePlanes.ModTools.Parts.IInputController[] inputs = new Jundroo.SimplePlanes.ModTools.Parts.IInputController[3];
private float _scaleX = 0;
private float _scaleY = 0;
private float _scaleZ = 0;
In the start void:
inputs = this.GetComponentsInChildren<Jundroo.SimplePlanes.ModTools.Parts.IInputController>();
In the update void, wherever you please:
this._scaleX = inputs[0].Value;
this._scaleY = inputs[1].Value;
this._scaleZ = inputs[2].Value;
And obviously you can take the basic syntax structure and change it as you need. This code is for three input controllers.
Also, if you're wondering what stuff like
private
is, they are keywords in C# but they don't seem to be required for the purpose of scripting part behavior. Some of my variables have them, some don't. My code is also a mix of random stuff I got from other mods and the internet, but it works.@ArmouredTrashCan oh, < is <, same with > and >
It's just how code blocks format it.
I actually had the exact same issue as you!
Example code:
Right after the behavior class start:
// Array of input controllers.
Jundroo.SimplePlanes.ModTools.Parts.IInputController[] inputs = new Jundroo.SimplePlanes.ModTools.Parts.IInputController[3];
float input_scaleX;
float input_scaleY;
float input_scaleZ;
In the start void:
inputs = this.GetComponentsInChildren<Jundroo.SimplePlanes.ModTools.Parts.IInputController>();
And then just do
this._scaleX = inputs[0].Value;
Hopefully you can understand how it works and can apply it to your own code.
@MIGFOXHOUND31BSM26 They actually removed it entirely at one point, and I asked them to add back d=0
It is a change made by the developers to promote newer aircraft, although you can still manually search for older crafts by adding ?d=0 to the address in the URL.
@hpgbproductions I guess I don't really mind for when I'm just placing stuff somewhere; I use the increments of 0.0001, 0.0002... 0.0064, 0.0128, etc). idk it's just what I do, I guess. Obviously for fuselages I'll let them align themselves, but everything else is pretty much nudge it until it's seamless (down to 0.0001, although sometimes I type in more precise numbers)
SimpleCheats
Speed is meters per second, although I don't seem to have the unit for forward thrust.
@hpgbproductions What do you mean by coordinates in this context? I would think when building the numbers don't matter; it's the position of the part relative to other parts that matters.
I used to be an iPad player (6 years ago) and I will never go back
@Graingy What document are you referring to?
@Graingy @keiyronelleavgeek566 Edit post
If you mean in-game, press space to see all three measurements (CoG, CoL, CoT). If it's something else, then I have no idea, sorry.
@Graingy This was my actual building skill 3 years ago lol
How far I've come...
Also if you check the changelog in the description I've made lots of improvements to this plane over time.
@Graingy Label stuff is hard to explain. I use a text editor (notepad++) for that reason, which does things like show me bracket pairs.
What specifically do you mean by "issue" with displaying a value?
@Graingy About your response to Monarchii, did you know you can tap the edit icon to open a large window to type stuff into labels?
@Graingy You can only display two strings or two values in a label, not one of each. To display values or strings, put it in curly brackets.
{Activate1 ? "True" : "False"}
{Activate1 ? 50 : 20}
@Graingy
Boolean ? stuff if true : stuff if false
It's as simple as that.
And like all other stuff in FT, they can be stacked.
@Jsoeidm2 Possibly, although I don't know.
@griges Ah, notepad++ is just a text editor. It's like the normal notepad built in to Windows but with a few more helpful features.
@FlyOnTheWall I think the mod itself has to be specifically exported for android, as when I attempted it many years ago I got a lot of warnings about missing build support for Android, etc.
@V I guess I also participate in control base abuse. My iPad in my cockpit has full 6dof capability, where it can both snap to four positions and also function as a normal pickup object for VR users (buttons to change modes). The main landing gear also uses control bases for the main strut, tilt/tilt suspension, and the lock link.
@RobertsAeronautics Thanks!
@MobileBuilder21 Do you know you can click the arrow to show the other options? I thought that was common knowledge
@MrSilverWolf Thanks!
@OverlordPrime NASA computer, although any mid range computer with a decent GPU can run the entire fuselage and interior with playable FPS.
The cockpit is another story, as I get 30FPS with my main rig and 6FPS with my mid range gaming laptop.
@fleia262 With me, coding in the variables window is impossible due to the complexity of my code (in fact, 1000 variables is after I simplified and improved the code from 2000!). Some variables contain giant paragraphs of code, which is beyond impossible to deal with in the window. In fact, I don't just use one notepad window; I used over four monitors of code and diagrams when I was developing the FMC.
With the latest SP update the terrain texture is all white, I'm pretty sure I already know the answer, but if you could fix the texture that would be great.
@RGaming00 Hello, forgot about this until now, but the FMC is insanely complicated, so much so that even I rely on my own notes to make modifications to it. What I can do is ask you to watch the five videos linked on this post for a general overview. Here is some of the actual documentation and notes from when I made it, and you can download the FMC itself here. The best way to explain it is there are three main components, those being the label (to display the information), the entry, storage, and retrieval system, and the system to change pages. If you take the time to view the linked resources (in particular the linked documentation), I can explain any confusing parts. I highly recommend you thoroughly explore the FMC itself and the notes, as it's a lot easier than me trying to explain everything over text.
@rimiha It works a lot better now, although scrolling is still very buggy. One single notch on my scroll wheel jumps from min zoom to max zoom.
@ShinyGemsBro I have the same issue
I remember flying this on my iPad many years ago
@32 You need both normal SP and SPVR, but mods do in fact work almost perfectly. I should note that a select few only render to one eye for some reason, but the majority and anything I make are perfectly fine.
@YarisSedan same
@YarisSedan well he actually did make another and spammed f bombs for an hour, but I dm'd FFF in discord and he said they are working on an IP ban. As of now the new new new new alt account is banned and comments are purged.
@YarisSedan looks like he just got cleaned up as I get sent to the homepage now when I try to refresh his comments
His forum posts are gone as well