GSim 0.30.01

What did you draw?
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

GSim 0.30.01

Post by testtubegames »

Grab this version from Humble, since I got rid of the auto-updater. Too much of a headache for my taste. I spent more time trying to get it to work than I did in *making* stuff for it to update! So: gone.

GSim 0.30.01

New:
-General Relativity (basic version) added in, force laws are correct, objects accelerate properly (to stay below c), and black holes have event horizons
-Set the potential energy function, if you’d rather
-A more involved tutorial
-UPDATER REMOVED!
-Herobrine also removed
-Transverse Forces
-And for those of you who never got 0.29.03, this stuff will be new, too

To Do:
-The next set of priorities!
A Random Player
Posts: 523
Joined: Mon Jun 03, 2013 4:54 pm

Re: GSim 0.30.01

Post by A Random Player »

Trying out the relativity, it appears that the UI has a few bugs; the flinging not disappearing after flinging an asteroid, all the buttons breaking sometimes (noticed this when trying to fling a black hole, but it has happened elsewhere IIRC)
Edit: Also the freezing happens in Lagrange tracking; also why can't you fling asteroids in Lagrange?

Edit:

Code: Select all

Gravity Fun at TestTubeGames: [ForceG: -2,Qual: 1,Zoom: 1,xSet: 0,ySet: 0], [x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 1,m: 1000], [x0: 100.0,y0: 0.0,vx: 0.818457684354,vy: 3.05452566185,t0: 0.0,who: 3,m: 0], [x0: 91.3545457643,y0: 40.6736643076,vx: -0.494689214077,vy: 3.12334477467,t0: 13.2461176877,who: 3,m: 0], [x0: 66.9130606359,y0: 74.3144825477,vx: -1.72229985328,vy: 2.65210920125,t0: 26.4922353755,who: 3,m: 0], [x0: 30.9016994375,y0: 95.1056516295,vx: -2.65210920125,vy: 1.72229985328,t0: 39.7383530632,who: 3,m: 0], [x0: -10.4528463268,y0: 99.4521895368,vx: -3.12334477467,vy: 0.494689214077,t0: 52.9844707509,who: 3,m: 0], [x0: -50.0,y0: 86.6025403784,vx: -3.05452566185,vy: -0.818457684354,t0: 66.2305884386,who: 3,m: 0], [x0: -80.9016994375,y0: 58.7785252292,vx: -2.45755131261,vy: -1.99008581371,t0: 79.4767061264,who: 3,m: 0], [x0: -97.8147600734,y0: 20.7911690818,vx: -1.43564401526,vy: -2.81761002651,t0: 92.7228238141,who: 3,m: 0], [x0: -97.8147600734,y0: -20.7911690818,vx: -0.165500825251,vy: -3.15794386854,t0: 105.968941502,who: 3,m: 0], [x0: -80.9016994375,y0: -58.7785252292,vx: 1.13325896097,vy: -2.95224052668,t0: 119.21505919,who: 3,m: 0], [x0: -50.0,y0: -86.6025403784,vx: 2.2360679775,vy: -2.2360679775,t0: 132.461176877,who: 3,m: 0], [x0: -10.4528463268,y0: -99.4521895368,vx: 2.95224052668,vy: -1.13325896097,t0: 145.707294565,who: 3,m: 0], [x0: 30.9016994375,y0: -95.1056516295,vx: 3.15794386854,vy: 0.165500825251,t0: 158.953412253,who: 3,m: 0], [x0: 66.9130606359,y0: -74.3144825477,vx: 2.81761002651,vy: 1.43564401526,t0: 172.19952994,who: 3,m: 0], [x0: 91.3545457643,y0: -40.6736643076,vx: 1.99008581371,vy: 2.45755131261,t0: 185.445647628,who: 3,m: 0], [x0: 100,y0: 0,vx: 0,vy: 3.16227766017,t0: 0,who: 3,m: 0,c: 4]
http://codepad.org/MbZM0RKO
Modification of Cruithne, LTrack the star and colored asteroid
$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: GSim 0.30.01

Post by testtubegames »

Aw crud, you're right. One tiny change I made must be breaking the UI -- I'll try and track it down.
exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: GSim 0.30.01

Post by exfret »

I'll post my thoughts here later, but for now, I just have to say that, Andy, you did a heck of a lot of posting after finishing that GSim version. The forums were turned to waves of red. (Which is good, I finally have more stuff to reply too!)
Nobody ever notices my signature. ):
exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: GSim 0.30.01

Post by exfret »

Post of thoughts (likely a bunch of little things):
-Clearing the screen shouldn't reset the zoom
-"Shift" + "-" to zoom out quickly. "Shift" + "+" to zoom in quickly. "Control" + "-" to zoom all the way out. "Control" + "+" to zoom all the way in.
-Custom time intervals
-Right now, higher time intervals get sucky fast sometimes, but my computer still runs perfectly, and the problem isn't that the sim is inaccurate, but rather that it doesn't draw enough lines. Maybe you should make it draw more lines for things going at higher speeds/if the computer's handling stuff well (or more so if it doesn't already do that) (I have no idea if this is even relevant to GSim, but there's no pain in not putting it here, so what the heck: http://bl.ocks.org/mbostock/3795544).
-Double-clicking on planet/sun/asteroid/dust selection to open the edit box (right now the extra cursor distance is just a bit annoying, especially since the edit button's at the edge of the screen).
-The home button always confuses me for an up arrow. Door needed.
-Moving sliders in settings changes the format of the text (as in, where it is on the screen), which is kind of buggy.
-Tangential force shouldn't be separated by a line from gravitational force but not from dimensions of space. I'd like it next to gravitational force, but that might confuse new users. Maybe you should just have an "advanced" button that leads to a screen where all the physics settings are mushed together so that it's easier to use for advanced users, but beginner users don't have to get the impression that they have to know what tangential force is to make gravitational force laws.
-Sound effects for pressing buttons (just a small appealling click)
-Wait, is relativity on by default? I found it on. Or, does it just save your settings?
-Dimensions of space should include 1 and 0
-Again, I stress collision boundaries
-The black hole sometimes has a little bit of yellow on its boundaries. (When the outline drawn isn't bigger than it's star, and when you select the black hole).
-Implementing the advanced collision stuff?
-Particles disappear before the event boundary with black holes.
-It would be cool to see what happens when stuff goes inside the black hole.
-For some reason, there's a bug where you can't change the color of black holes; they're always black! I would be okay with this if the colors of the trails didn't obey what the black hole's color truely should be...
-Line predictions sometimes predict things to travel away from the black hole for no particular reason
-Is there any way to go back to a 'regular' frame of reference without adding in fixed stars?
-Zooming in/out shouldn't delete paths (or did you just give up on that?)
-You should save paths when people are cycling through none and finite (what if they still wanted the path but just didn't want to see it for a while?)
-Planetary/accretion disks
-When I crash a planet into something I have selected, I have to re-select that thing to update its stats (ie it won't give me the new mass, speed, etc)
-Dust doesn't merge (broke!). At least with the settings I had. I don't know if that changes anything. (I did have merge on, so I'm not just messing with you). (It's kind of cool though, to have dust not merge but other things merge, if you get around to fixing this bug a "merge dust" thing would be good)
-Dust just completely breaks with black holes.
-Sometimes, stars and the like are represented at resolutions that could be better (like what is clearly a square or an octagon)
-Stuff glitches out in high gravity too much (you should probably have more checks/sec for things in high gravity)
-When 7 was the number of dimensions, it said 1*r^(-4) was the force law. That doesn't make sense.
-When using number of dimensions, it turned the gravity off. I have no idea why. I'll just leave my review of that feature as "buggy." It's not quite needed anyways. It's cute, but if you know what it means, then you probably know the simple actions you can take to achieve the same, less-buggy result anyways.
-Are the potato-shaped asteroids new? I like them. You should probably initialize them with random rotations though, just to make it more believable, because even with different images, it was still kind of obvious when too asteroids looked the exact same, and it strongly detracted from the coolness of the effect. It would also be cool if they rotated, even if their rotation wasn't accurate.
Nobody ever notices my signature. ):
A Random Player
Posts: 523
Joined: Mon Jun 03, 2013 4:54 pm

Re: GSim 0.30.01

Post by A Random Player »

Here's some tidally locked asteroids. Since you can't save rotation in the code, set them all to 5 (degrees/sec). Aren't I nice?
Edit: Turns out you can set them in the code. But they're still all 5 :D

Perfectly circular:

Code: Select all

Gravity Fun at TestTubeGames.com: [ForceGr: r^(-2),Qual: 1,Zoom: 1,xSet: 0,ySet: 0],
[x0: 50.82785145824516027584952,y0: 0,vx: 0,vy: 4.435566798304895969752025,t0: 0,who: 3,m: 0,c: 0,w: 5],
[x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 4,m: 1000,c: 1]
Slightly eccentric:

Code: Select all

Gravity Fun at TestTubeGames.com: [ForceGr: r^(-2),Qual: 1,Zoom: 1,xSet: 0,ySet: 0],
[x0: 50.82785145824516027584952,y0: 0,vx: 0.7702280914455859874706624,vy: 4.368180571974198471669108,t0: 0,who: 3,m: 0,c: 0,w: 5],
[x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 4,m: 1000,c: 1]
More eccentric:

Code: Select all

Gravity Fun at TestTubeGames.com: [ForceGr: r^(-2),Qual: 1,Zoom: 1,xSet: 0,ySet: 0],
[x0: 50.82785145824516027584952,y0: 0,vx: 2.217783399152447984876013,vy: 3.841313527514847265969966,t0: 0,who: 3,m: 0,c: 0,w: 5],
[x0: 0,y0: 0,vx: 0,vy: 0,t0: 0,who: 4,m: 1000,c: 1]
Living on this planet would be weird.
$1 = 100¢ = (10¢)^2 = ($0.10)^2 = $0.01 = 1¢ [1]
Always check your units or you will have no money!
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: GSim 0.30.01

Post by testtubegames »

A Random Player wrote:Trying out the relativity, it appears that the UI has a few bugs
Okay, I updated the game. You can grab the un-broken (less broken?) version from Humble now.

In addition to fixing that asteroid-lines-stick-around-weird bug, I did some other quick fixes:

-Added in some sfx (a basic first-pass)
-Made the planets and such less pixelated... so they'll look like better circles
-Gave the potato-shaped asteroids and dust random orientations
-'Clear' no longer resets zoom
NealCruco
Posts: 197
Joined: Thu Mar 27, 2014 8:26 pm

Re: GSim 0.30.01

Post by NealCruco »

How do you reset zoom now? That's a feature I really, really need. I saw nothing wrong with having "Clear" reset zoom. Why did you change it, and how do I reset zoom now?

Oh, and there's something else. When stars collapse into black holes, they...um...still give off light. Which sort of makes them not black holes. See what I'm saying?
I think you'll need to make black holes their own object, instead of just sufficiently-massive stars. That said, I understand the basic in "General Relativity (basic version)", so I know you're not done with it.

And exfret, zooming in or out doesn't delete orbital paths. Not for me. I just tried it.
User avatar
testtubegames
Site Admin
Posts: 1148
Joined: Mon Nov 19, 2012 7:54 pm

Re: GSim 0.30.01

Post by testtubegames »

NealCruco wrote:How do you reset zoom now? That's a feature I really, really need.
When stars collapse into black holes, they...um...still give off light.
Ah, whoops -- sorry about the zoom-reset, then! When I saw exfret's comment above, I realized that 'clear' and 'zoom' didn't need to be connected at all. Maybe I want to work at a large scale for a while... it would be annoying to have to zoom back out every time I cleared the screen. Didn't realize how important it might be for some users.

I'll try to think of a way to zero-the-zoom in the next version. For now, if you *really* need to have zoom=1, you can always:
a) pick any example, since they all have zoom=1
b) start the tutorial over, then skip it... since that sets zoom to 1

As for the light -- yeah, I need to make the black holes 'fit' over the stars better. I can really just shut the star image off entirely once it turns into a black hole. Easy fix, and how I should have done it from the get-go anyway.
exfret
Posts: 585
Joined: Sun Jul 28, 2013 8:40 pm

Re: GSim 0.30.01

Post by exfret »

That is, in fact, why I wanted clear to not reset zoom. Why can't you zoom though? It seems like one extra "Reset" button that also sets zoom to its default, possibly in a drop down when you hover over clear, could be an easy fix.
Nobody ever notices my signature. ):
Post Reply