Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » CostCalculator (New tool for stars)
CostCalculator Sat, 11 August 2018 08:59 Go to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
I want to bring to your attention a new utility - Cost Calculator.
This program allows you to find out the exact cost of a ship at a given level of technology.
You can find out how the price will change with changing technologies and how much the ship will cost with minimum and maximum (all 26) technologies.

The program is under development, therefore, not all the planned functions have been implemented yet.
About errors, inaccuracies, report here or antey007(dog)list.ru.
Proposals, corrections and other comments are welcome.

https://yadi.sk/d/Z3O0Lw6O3a8cPe

If you are friends with Qt, I can send the source code.

https://preview.ibb.co/m807t9/Cost_Calculator1.png


[Updated on: Sat, 11 August 2018 12:00]

Report message to a moderator

Re: CostCalculator Tue, 14 August 2018 10:54 Go to previous messageGo to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
A new version is available. Now you can read designs directly from mX and hX files.



Download link:
https://drive.google.com/file/d/1r6J1acgcJRwCpSxEqzosmuHMMCa M5CEY/view?usp=sharing

Report message to a moderator

Re: CostCalculator Wed, 15 August 2018 17:36 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
Hmmmm, no source code? Confused


So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: CostCalculator Thu, 16 August 2018 15:06 Go to previous messageGo to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
The interface of the cost calculator has changed from a design-oriented to a fleet-oriented.

Source code: https://yadi.sk/d/TAzbPSAk3aJCgx
Executable x86 file for Windows: https://yadi.sk/d/5pnhLIqd3aJJ6a
80 kilobytes of source code turned into 18 megabytes of executable. This is QT!

Report message to a moderator

Re: CostCalculator Sun, 19 August 2018 02:45 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
antey007 wrote on Thu, 16 August 2018 21:06
80 kilobytes of source code turned into 18 megabytes of executable. This is QT!

There should be laws against executables bigger than Stars! itself. Twisted Evil


[Updated on: Sun, 19 August 2018 02:45]




So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: CostCalculator Thu, 23 August 2018 16:08 Go to previous messageGo to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
A new version is available.
The main window of the program. Initially, it is empty. You need to create a new design, read a previously saved design from a file, or import designs from Stars2! mX or hX files.


Dialog of creating a new design.
You do not have to hit the small "+" and "-" icons with the mouse, you can use the mouse scroll.


When importing from the mX or hX file, you can choose which designs to import.


After importing any design can be opened with a double click and if desired, edited.

Report message to a moderator

Re: CostCalculator Thu, 23 August 2018 16:09 Go to previous messageGo to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
You can save the design to a file. I can not insert the default file name, but I can put it on the clipboard. Try clicking on Ctrl + V after opening the file save dialog.
Imported designs can be sorted. There are 5 types of sorting, each in ascending and descending order. I accept the wishes for the introduction of other types of sorting.


You can "assemble" your fleet to find out its total cost in resources and minerals.
Again, you do not have to hit the small "+" and "-" icons with the mouse, you can use the mouse scroll.
It is possible to find out how miniaturization affects the value of an individual ship or an entire fleet cost.
Also you can count the amount of minerals in the salvage after the battle.

The CostDynamics button opens a window for a detailed analysis of the cost of one design, depending on the technology. The first of the loaded designs that has a non-zero value in the "Count" column is analyzed.
Some designs can be processed for a long time. I have some designs processed up to 2 minutes.

This window shows the dependence of the cost of the ship (in any minerals or resources) from the total resources invested in research.
You can click on any point and in the table on the right to see the technology and the price of the ship (point A). In addition, it will be shown (points B, C, etc.) how the ship's cost will change with the next increases in research.
For example, the picture below shows that with the En6 / W14 / P8 / C13 technology, the price of the Hood is 718/205/270 minerals and 605 resources (point A). You can investigate +2 levels of Prop, then the costs of Iron will drop to 714, and resources - to 597, bor and germ will not change (point B).


As always, I'm waiting for suggestions on improving the program or introducing new features, fixing bugs and other comments and remarks.

Download exe: https://yadi.sk/d/YdhPBzPC3aWNqi
Download source code: https://yadi.sk/d/7x7wtJD03aWNtf

Report message to a moderator

Re: CostCalculator Thu, 23 August 2018 21:23 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
antey007 wrote on Thu, 23 August 2018 22:09
You can save the design to a file.

Sweet! Very Happy Does that include known enemy Designs?

Will it be possible to later load a 'library' of saved Designs? Teleport



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: CostCalculator Wed, 26 September 2018 09:12 Go to previous messageGo to next message
antey007 is currently offline antey007

 
Crewman 2nd Class

Messages: 15
Registered: August 2015
Sources added to github: https://github.com/antey007/StarsCostCalc
Screenshots available at https://ibb.co/album/himJ0a

Due to lack of time, the development is frozen. I hope I can continue this work later, in 1-2 months.

Report message to a moderator

Re: CostCalculator Tue, 16 October 2018 17:15 Go to previous messageGo to next message
talkingbologna is currently offline talkingbologna

 
Senior Chief Petty Officer

Messages: 86
Registered: November 2016
Location: 1947
Thanks for your work so far, Antey, very useful program.

[Updated on: Tue, 16 October 2018 17:16]

Report message to a moderator

Re: CostCalculator Thu, 18 October 2018 14:59 Go to previous message
Altruist is currently offline Altruist

 
Commander

Messages: 1068
Registered: August 2005
Location: Berlin

Cool. Thanks.

antey007 wrote on Wed, 26 September 2018 15:12
Due to lack of time, the development is frozen. I hope I can continue this work later, in 1-2 months.


Most likely: next game.

Report message to a moderator

Previous Topic: New Stars!AI Player
Next Topic: GalaxyViewer / GalaxyAnimator
Goto Forum:
  


Current Time: Thu Mar 28 15:24:04 EDT 2024