Page 1 of 1

rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Sun Nov 10, 2024 9:03 pm
by cellularmitosis
Hey!

I wrote a little tool which calculates the rocket launches required to build a space platform.

Check it out! https://rocketcal.cc

Let me know what you think, or if you encounter any bugs.

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Mon Nov 11, 2024 9:27 am
by DOSorDIE
Works great! ... it will be nice if we can have constant combinator with that what we need for the launches.
Dont know if you remove the 110 platform you have from the starter paket (100 set and 10 in storage) from the blueprint.
Or you have 110 to much in space (thats at least 2 rockets)
EDIT: I see you do calculate it correct!!!
I love it!

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Tue Nov 12, 2024 1:55 am
by cellularmitosis
DOSorDIE wrote: Mon Nov 11, 2024 9:27 am Works great! ... it will be nice if we can have constant combinator with that what we need for the launches.
Hey I was thinking the same thing! Thanks for the suggestion.
https://www.reddit.com/r/factorio/comme ... t/lwj2xnq/

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Sun Nov 17, 2024 10:41 pm
by DOSorDIE
I found a bug
(1) nuclear-reactor (1.0 kg)
it has 1000kg not 1

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Mon Nov 18, 2024 12:47 am
by cellularmitosis
DOSorDIE wrote: Sun Nov 17, 2024 10:41 pm I found a bug
(1) nuclear-reactor (1.0 kg)
it has 1000kg not 1
Oh thanks so much! I'll take a look

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Mon Nov 18, 2024 3:37 am
by cellularmitosis
DOSorDIE wrote: Sun Nov 17, 2024 10:41 pm I found a bug
(1) nuclear-reactor (1.0 kg)
it has 1000kg not 1
Thanks again, I found and fixed the bug. I've credited you in the changelog!

I had a bug in how I parse the item weight values from the game files data/base/prototypes/item.lua and data/space-age/prototypes/item.lua.

The items which affected spaceship blueprints were probably just nuclear-reactor and fussion-reactor, but in total there were 12 incorrectly parsed weight values, here's the complete diff:

Code: Select all

$ diff /tmp/1.txt /tmp/2.txt
18c18
< 'atomic-bomb': 1.5,
---
> 'atomic-bomb': 1500.0,
20c20
< 'barrel': 1.0,
---
> 'barrel': 5.0,
50c50
< 'cargo-landing-pad': 1.0,
---
> 'cargo-landing-pad': 1000.0,
111c111
< 'fission-reactor-equipment': 0.25,
---
> 'fission-reactor-equipment': 250.0,
121,122c121,122
< 'fusion-reactor': 1.0,
< 'fusion-reactor-equipment': 1.0,
---
> 'fusion-reactor': 1000.0,
> 'fusion-reactor-equipment': 1000.0,
175c175
< 'nuclear-reactor': 1.0,
---
> 'nuclear-reactor': 1000.0,
192c192
< 'plastic-bar': 500.0,
---
> 'plastic-bar': 0.5,
215c215
< 'raw-fish': 1.0,
---
> 'raw-fish': 3.3333333333333335,
226c226
< 'rocket-silo': 10.0,
---
> 'rocket-silo': 10000.0,
228c228
< 'satellite': 1.0,
---
> 'satellite': 1000.0,
249c249
< 'spidertron': 1.0,
---
> 'spidertron': 1000.0,
This affected 33 out of the 159 blueprints which have been uploaded so far.

All of the cached rocket manifests have been regenerated (i.e. corrected).

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Mon Nov 18, 2024 8:44 pm
by DOSorDIE
Thx for all your hard work!

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Tue Nov 19, 2024 6:23 am
by cellularmitosis
I added support for quality

Example: https://rocketcal.cc/485fe34973e4ce72cd38c29aa70a190c

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Fri Nov 22, 2024 1:24 am
by DOSorDIE
The moduls for the assembler & Co are missing ...

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Sat Nov 23, 2024 5:22 am
by cellularmitosis
DOSorDIE wrote: Fri Nov 22, 2024 1:24 am The moduls for the assembler & Co are missing ...
Fixed! Thanks again for the bug report!

Re: rocketcal.cc: calculate the rocket launches needed to build a space platform blueprint!

Posted: Sat Nov 23, 2024 6:36 am
by cellularmitosis
Also added "2x" icons for Retina/HiDPI displays.