S-Series
15 posts • Page 1 of 1
S-Series
I have decided to publish my new S-Series of Thymed stuff here.
Not Working:
Working:
As the title of the top section says, the S-Wire ans S-Wing do not work properly. The code appears to be correct, but it does not work.
Mainly, the purpose of this topic is to dray attention to those two things.
And if that S-Wing can be forced to work properly, I think it would represent the most technologically advanced density engine in the history of Algodoo/Phun. Correct me if I am wrong.
So... anyone able to fix my code? I am completely ready and willing to give an explanation.
Edit- Updated the wing.
Edit- Added S-Thruster v1 Phunlet.
Edit- Updated the S-Wire. Now the colors change as I want them to. And they pass on textureMatrix as I want them to. But, the non-circles are far too unreliable. Note that you can make long chains with the circles, and even fork these chains, but only if you add a small polygon on heteroCollide so all the scripted circles are overlapping an even number of other geoms.
Edit- Added S-Shield and S-Thruster 2.
Edit- Added third S-Unit.
Not Working:
Working:
As the title of the top section says, the S-Wire ans S-Wing do not work properly. The code appears to be correct, but it does not work.
Mainly, the purpose of this topic is to dray attention to those two things.
And if that S-Wing can be forced to work properly, I think it would represent the most technologically advanced density engine in the history of Algodoo/Phun. Correct me if I am wrong.
So... anyone able to fix my code? I am completely ready and willing to give an explanation.
Edit- Updated the wing.
Edit- Added S-Thruster v1 Phunlet.
Edit- Updated the S-Wire. Now the colors change as I want them to. And they pass on textureMatrix as I want them to. But, the non-circles are far too unreliable. Note that you can make long chains with the circles, and even fork these chains, but only if you add a small polygon on heteroCollide so all the scripted circles are overlapping an even number of other geoms.
Edit- Added S-Shield and S-Thruster 2.
Edit- Added third S-Unit.
Last edited by Someone Else on Sun Apr 17, 2011 7:25 am, edited 4 times in total.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
I have now updated the wing. It still does not work, but... It appears to measure something velocity-like now.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
sorry to ask but what is this?
I won't be on the forums much for a while. But maybe once in a while.
-

HavingPhun - Posts: 178
- Joined: Sun Feb 06, 2011 10:42 pm
Re: S-Series
What is... what? The S-Wing? It measures (or tries to, anyway) its own velocity parallel to its length, then adjusts the power thrust of the wing based on that. But, when fixated to the background, the velocities are not 0. So, I suggest using Kilinich's C-Wing instead. The S-Units use fast-spinning blades to try to balance whatever it is fixated to. They work. The S-Wire transmits a signal to something far-off like a real wire does, but it also does not work.
The forum topic that you are looking at right now draws attention to the stuff in the hope that someone will help me with the Thyme.
The forum topic that you are looking at right now draws attention to the stuff in the hope that someone will help me with the Thyme.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
Now... have you tried combining that thruster you added to the RPG game with your S-unit? 
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: S-Series
No... Why? I don't see how that would help. Why do you want a thruster that always to point in one direction?
And I will go ahead and upload that thruster now.
And I will go ahead and upload that thruster now.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
Oh... I thought that the thruster could produce rotational velocity. So it can't power the S-Unit... And I might want a thruster that always points vertically for a helicopter/submarine or something like that. 
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: S-Series
Here's the thruster phunlet:
Wow, that sounded far too much like Kutis...
Wow, that sounded far too much like Kutis...
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
Partial S-Wire fix. Look at the description.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
I looked at the wing.
Working code for velocity is:
Note that code first calculates velocity using last stored position, and then saves new position into texturematrix.
Lift code on the left doesn't work. Probably math.acos encouters bad value. Try to avoid such functions if possible.
Density engine doesn't seem to be very stable, especially because different balls have different masses due to continously changing lift force. But that might be a phun-only issue.
Working code for velocity is:
- Code: Select all
texturematrix=[e.pos(0)-texturematrix(2),e.pos(1)-texturematrix(3),e.pos(0),e.pos(1),(texturematrix(0)^2+texturematrix(1)^2)^0.5,0,0,0];
Note that code first calculates velocity using last stored position, and then saves new position into texturematrix.
Lift code on the left doesn't work. Probably math.acos encouters bad value. Try to avoid such functions if possible.
Density engine doesn't seem to be very stable, especially because different balls have different masses due to continously changing lift force. But that might be a phun-only issue.
Phundamentalist
-

davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
Re: S-Series
I've pretty well decided to just give up on the wing altogether, as I've found this:
Much better than I could ever do. (though for some odd reason I've never saved it as a phunlet yet...)
I think part of why the density engine there is so unstable is that the mass of the circles becomes far, far too big. With previous versions (of the engine itself, no complicated velocity and math code), I never saw the hinges on the red circles stretch that much. And when I tried it, the amount of stretch seemed to stay pretty constant, if increasing over time.
I'm currently working on a self-renewing shield for a spaceship. It spawns scripted circles with scripted lasers at some distance and a preset velocity. These circles are held in linear/negative-quadratic attraction. You'll see. It's inspired by some non-modular spaceship collab. I think PlanckBlanck's, if I spelled it right.
Much better than I could ever do. (though for some odd reason I've never saved it as a phunlet yet...)
I think part of why the density engine there is so unstable is that the mass of the circles becomes far, far too big. With previous versions (of the engine itself, no complicated velocity and math code), I never saw the hinges on the red circles stretch that much. And when I tried it, the amount of stretch seemed to stay pretty constant, if increasing over time.
I'm currently working on a self-renewing shield for a spaceship. It spawns scripted circles with scripted lasers at some distance and a preset velocity. These circles are held in linear/negative-quadratic attraction. You'll see. It's inspired by some non-modular spaceship collab. I think PlanckBlanck's, if I spelled it right.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
-

davidz40 - Posts: 438
- Joined: Sun Sep 06, 2009 10:30 am
Re: S-Series
Oh, wow. I suppose I'm making my own version then. And does yours replenish itself like mine does, reset the density of the circles after a couple blips and kill the circles after some time like mine will as soon as I fix a small code flaw?
It's supposed to spawn circles at some distance with a laser attached that turn to infinite density IF e.other.textureMatrix != tectureMatrix onCollide. That much works. But, the laser is also supposed to increment e.geom.controllerAcc (the script is all in the circle) with each blip, and this does not work. This means simultaneously that the circles will stay around forever (as circle deletion with collideSet = 0; density = NaN (Would you mind seeing if that works in Phun?)is triggered by controllerAcc >= 1000) and the circles stay +inf density forever, for density reset is also triggered by increasing controllerAcc.
I think I will abandon the controllerAcc timer entirely and just use sim.time.
It's supposed to spawn circles at some distance with a laser attached that turn to infinite density IF e.other.textureMatrix != tectureMatrix onCollide. That much works. But, the laser is also supposed to increment e.geom.controllerAcc (the script is all in the circle) with each blip, and this does not work. This means simultaneously that the circles will stay around forever (as circle deletion with collideSet = 0; density = NaN (Would you mind seeing if that works in Phun?)is triggered by controllerAcc >= 1000) and the circles stay +inf density forever, for density reset is also triggered by increasing controllerAcc.
I think I will abandon the controllerAcc timer entirely and just use sim.time.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
Okay, I went back to incrementing controllerAcc. It should work in Phun, for circle deletion is caused by immortal = false; spawn dual killers. It's also entirely Phun-safe. Deletion is triggered after 70 collisions- this lags a bit for me.
And it certainly works in 1.8.5.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
Re: S-Series
Here it is!
Laser-based, but allows continuously variable thrust.
Edit-
Not as stable as the others, but should work without air.
Matthias Wandel is epic, in my humble opinion.
I love my brain...
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
I love my brain...
TC42 wrote:Also, your sig is too big, please change it.
ARE YA HAPPY NOW?????
Thymechanic/Phundamentalist
Recently, I discovered something a lot of you probably already knew: Minecraft is awesome.
Due to this, I may not be as active as usual for a while.
-

Someone Else - Posts: 1147
- Joined: Sun Nov 21, 2010 10:53 pm
- Location: The Milky Way Galaxy
15 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 9 guests





