Home » Stars! Clones, Extensions, Modding » Stars! Extensions » "message pane" scraper
| | | | | | | |
Re: "message pane" scraper |
Fri, 09 August 2013 12:53 |
|
XyliGUN | | | Messages: 325
Registered: July 2004 Location: Russia, St.Petersburg |
|
|
XAPBobSo I start up my turn and it's already done that years mineral/colonist shipping etc. Then I can concentrate on strategy and planning.
Obviously the algorithms for deciding on what to write to the x file is going to be fun...
Makes sense.
Here is a quick stat on x files (which are the player action log) of my games collection:
Block Count %
- WaypointAddBlock 23776 24,97%
- WaypointChangeTaskBlock 21512 22,59%
- ProductionQueueChangeBlock 10626 11,15%
- FleetChangeBlock 10300 10,81%
- FleetSplitBlock 10001 10,50%
- ManualMediumLoadUnloadTaskBlock 3695 3,88%
- DesignChangeBlock 3451 3,62%
- FleetsMergeBlock 2804 2,94%
- WaypointDeleteBlock 2757 2,89%
- ManualSmallLoadUnloadTaskBlock 1504 1,57%
- SaveAndSubmitBlock 1286 1,35%
- WaypointRepeatOrdersBlock 912 0,95%
- PlanetChangeBlock 765 0,80%
- ResearchChangeBlock 666 0,69%
- SetFleetBattlePlanBlock 490 0,51%
- RenameFleetBlock 453 0,47%
- MessageBlock 128 0,13%
- BattlePlanBlock 54 0,05%
- PlayersRelationChangeBlock 38 0,03%
As you can see about 50% (Waypoint add + change + delete) are waypoint manipulations.
Another 25% (Fleet merge, change, split) is a fleet manipulations.
And 11% is a production queue manipulation.
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
Robert A. Heinlein, Time Enough For LoveReport message to a moderator
|
|
| | | | | | | | | |
Re: "message pane" scraper |
Sat, 10 August 2013 04:52 |
|
m.a@stars | | Commander | Messages: 2765
Registered: October 2004 Location: Third star to the left | |
|
XAPBob wrote on Sat, 10 August 2013 08:46I'm sure that I could put a "testbed" AI together which would achieve 25k, but it wouldn't built warships etc,
Well, that'd be the turf of the "danger analyzer", the AutoBuildShip Queues, the Auto Router, and probably an "opportunity analyzer".
After all, it doesn't need to actually play well, or even win, just being better than the other AIs should be plenty enough.
So many Stars, so few Missiles!
In space no one can hear you scheme! Report message to a moderator
|
|
| | | | |
Re: "message pane" scraper |
Sat, 10 August 2013 16:53 |
|
XyliGUN | | | Messages: 325
Registered: July 2004 Location: Russia, St.Petersburg |
|
|
m.a@starsI'm also guessing the isHW bits aren't present for non-scanned worlds, right?
Must be a bug... I'll check.
m.a@starsThey look a bit cryptic, tho. I hope they won't be hard to interpret.
It's not that hard. Here is my research notes:
BuiltIn: 0 - ship or starbase, 1 - planetary (mines, factories, terraforming, etc.)
ItemId (I don't have a full list, but it's pretty easy to fill it in):
- 0 = "Mines Up to " ItemCount
- 1 = "Factories Up to " ItemCount
- 2 = "Defences Up to " ItemCount
- 3 = "Alchemy As Needed"
- 4 = "Min Terraform Up to " ItemCount%
- 5 = "Max Terraform Up to " ItemCount%
- 6 = "Mineral Packets Up to " ItemCount
- 7 = "Factory " ItemCount
- 8 = "Mine " ItemCount
- 9 = "Defenses " ItemCount
- 10 = ???
- 11 = "Mineral Alchemy " ItemCount
- 12 = "Terraform Environment " ItemCount%;
- 13 = ???
- 14 = "Ironium Mineral Packet " ItemCount
- 15 = "Boranium Mineral Packet " ItemCount
- 16 = "Germanium Mineral Packet " ItemCount
- 17 = "Mixed Mineral Packet " ItemCount
- ... ???
- 27 = "Planetary Scanner"
If BuiltIn = 0, then ItemId:
0-15 = "Ships of Design Id = <ItemId> " x " <ItemCount>
16-25 = "Starbase of Design Id = " <ItemId - 16> " x " <ItemCount>
Hope that helps.
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
Robert A. Heinlein, Time Enough For LoveReport message to a moderator
|
|
|
Re: "message pane" scraper |
Sat, 10 August 2013 17:08 |
|
XyliGUN | | | Messages: 325
Registered: July 2004 Location: Russia, St.Petersburg |
|
|
m.a@starsXyliGUNAs you can see about 50% (Waypoint add + change + delete) are waypoint manipulations.
Another 25% (Fleet merge, change, split) is a fleet manipulations.
And 11% is a production queue manipulation.
Have you per any chance tested if it's easy enough to "manipulate" these blocks without causing Stars! trouble?
x file blocks manipulation is pretty easy thing if you know an encryption (especially comparing to hst and m files manipulation) and I had done several tests, which works well, but being able to just write x file blocks isn't the biggest problem here.
Imho, it's not a good idea to just give ppl a possibility to add any block to the x file, since first of all I have to research how will Stars! react on any of possible unintentionally wrong/added by mistake blocks ("free pop hack" is one example here, and giving order to the foreign fleet will be another one), and if Stars! will react badly, then some sort of verifier will be required. Also I have to ensure that such a "tools" will only give a possibility to perform a valid order and prevent from "shooting yourself in the foot", which makes things much more complex then just x file blocks manipulation. Hope that makes sense.
XAPBobOne thing at a time...
This is stated perfectly.
"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
Robert A. Heinlein, Time Enough For LoveReport message to a moderator
|
|
|
Goto Forum:
Current Time: Fri Mar 29 02:43:26 EDT 2024
|