|
Post by tessfield on Nov 25, 2016 3:09:43 GMT
[Website] - [Repo]Okay so, it's midnight so I'll continue working on this later, not finished, but I want to give you guys a sneak peak of something I'm working on. It's a basic implementation of Chart.js using a bubble graph to plot the game's base engines (greyish) and my own (more colorful). The Y axis is logarithmic, and represents thrust power of the engine in question. The X axis is linear (sadly, the library is failing to make both axis logarithmic at the same time) and represents the thrust to weight ratio. The bubble size represents volume (cylindrical) of the engine (bigger = bigger). The bubble's line thickness represents the price of the engine (larger = more expensive). Anyway, the idea is to add functionality to download engines/opening a screenshot of one by clicking on each of the bubbles, to allow more easy sharing/organization of engines. Since this is hosted on Github, people will be able to submit PRs or host their own version of the chart on github to add the designs to the list or share their own. Should be as simple as tweaking a JSON file. What are your thoughts? Any web devs that could help to make this better? EDIT: Added functionality to open link in new tab on click for engines, sharing enabled! (Aalllll so painfully basic so far but it workkkkkssssss!) Changelog/edits: 2016-11-25 --> Fix TWR calculation 2016-11-25 --> Separate graphs in three, for big, small, and tiny engines 2016-11-26 --> Add basic ability to open engine/link in new tab on click
|
|
|
Post by deskjetser on Nov 25, 2016 9:12:01 GMT
This is great work, I love it! One question though; I tired adding an engine to the engines.js, and the thrust to weight ratio wouldn't display correctly unless I added another power of 10, making 143kg mass written as 1430. I'm probably doing something wrong, any ideas? For reference the engine stats are; 5.19MN thrust 30kc cost 5 degrees gimbal 143kg weight 2.44m diameter 4.96m height
|
|
|
Post by tessfield on Nov 25, 2016 17:10:19 GMT
Hiya deskjetser! What do you mean it wouldn't display correctly? I'd input 5190000 for thrust and 143 for weight, myself. That'd give you a total of 36 kg0 of thrust to weight ratio. The issue is rather that I limited the max TWR to 4 kg0 / 4000 g0, which probably meant your engine wasn't shown in the graph at all. D: (or rather, be shown 9 screens to the right )
|
|
|
Post by deskjetser on Nov 25, 2016 18:10:28 GMT
Well thing is, the game shows my TWR as ~3.7kg0; and as you rightly said, your graph wants to show it as 36kg0. I just didn't know where I was going wrong.
|
|
|
Post by tessfield on Nov 25, 2016 19:46:47 GMT
deskjetser Ahhhhhhhhhhhhhhhhhhh I'm not calculating TWR it seems, my bad! I was just doing Thrust / Mass. The correct way to calculate TWR is: Thrust / ( mass * gravity ) This would mean your engine would be: 5,190 kN / ( 143 kg * 9.807 m/s^2 ) = 3700.8 g0 Thanks for pointing this out to me! I'll fix this soon
|
|
|
Post by deskjetser on Nov 25, 2016 20:17:03 GMT
tessfield Glad I could be of help! *Edit* The fact you have to multiply the mass by the gravitational constant, which is very close to 10, explains why I could roughly correct it by adding another power of 10 to the mass.
|
|
|
Post by tessfield on Nov 25, 2016 20:58:06 GMT
deskjetser Thanks again! Updated the plot/graphs a little bit, made them more readable now. Any idea how to make the thread "Update" when I edit the OP?
|
|
|
Post by deskjetser on Nov 25, 2016 21:46:51 GMT
tessfield I don't think you can; best thing is to just edit the OP and make a new post each time saying something like ' Updated OP click to goto'. You can use either http://childrenofadeadearth.boards.net/post/6382 or http://childrenofadeadearth.boards.net/post/6382/thread to link people back to the OP.
|
|
|
Post by newageofpower on Nov 25, 2016 23:41:41 GMT
How does one get the engine design specifications from your utility?
Been clicking on the bubbles, no screenshots.
|
|
|
Post by tessfield on Nov 26, 2016 18:34:11 GMT
Hi newageofpower! It's not complete yet, been working on making it usable (one graph isn't) and how to display engines accurately. I'll update the Thread's title from Engine Plot to Engine Plot & Sharing Tool once sharing is officially avialable! Also, fyi, my engines are s***, they're just the ones I had available to use for testing.
|
|
|
Post by tessfield on Nov 26, 2016 20:22:03 GMT
Bump; updated to be able to link to designs!
|
|
|
Post by spacechicken on Nov 26, 2016 20:58:47 GMT
I don't suppose you'd make one of these for reactors, radiators, etc... This is a nice way to compare things.
|
|
|
Post by tessfield on Nov 28, 2016 19:33:50 GMT
I don't suppose you'd make one of these for reactors, radiators, etc... This is a nice way to compare things. Hell yeah, that's a good idea, just need to get some time to do it I was planning to add more features to this one, such as showing the gimbal angle in the bubble as a pie-portion of the circle in another color, and different colors for different fuels, first, though. If anyone feels like helping planning to make other similar utilities, a list of x, y radius, etc. of what variables would affect what things in the bubble graph would help.
|
|