Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » "message pane" scraper
Re: "message pane" scraper Sat, 10 August 2013 17:15 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
XyliGUN wrote on Sat, 10 August 2013 22:53
Hope that helps.

Sounds easy enough for a 2nd tier tool to interpret and flesh out. Cool



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Sat, 10 August 2013 17:24 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
XyliGUN wrote on Sat, 10 August 2013 23:08
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,

Well, nobody has a clear idea of all the things that can go wrong. This is quite new territory. Sherlock

Luckily you don't need to do all the work yourself. You can release beta tools (or even source code) and let volunteer testers have some of the fun. Hit Computer


Quote:
then some sort of verifier will be required.

Yes indeed. Nod Hopefully filtering out the most egregious problems won't be too hard. Whip

As for ppl shooting themselves in their foot... happens every day, I wouldn't worry too much about it. Hit over head



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Mon, 12 August 2013 17:05 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

XAPBob
The fleet report is a bit weak in terms of telling you exactly what is in each fleet - I presume the information is available to have a count of each ship design ID (and associated name?) and percentage damage to each type, for each fleet ID (e.g. 32 integers per fleet ID)?
That, combined with the "normal" f report would actually provide a good view of what ships are where.

OK, have a look at the exports of the fleets and waypoints (location + orders). Will that works for you? Smile



"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 Love

Report message to a moderator

Re: "message pane" scraper Mon, 12 August 2013 17:13 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

Fleets can have several waypoints starting from the WP0.
There is obviously no waypoints for the foreign fleets.



"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 Love

Report message to a moderator

Re: "message pane" scraper Mon, 12 August 2013 17:24 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

Task ids (see Task column in the waypoints.csv):

  • 0 - (no task here)
  • 1 - Transport (this task can have up to 10 args):

    • Arg0 = IroniumAction (0-9 see bottom combobox in the Waypoint Task area of Stars! client)
    • Arg1 = IroniumAmount
    • Arg2 = BoraniumAction
    • Arg3 = BoraniumAmount
    • Arg4 = GermaniumAction
    • Arg5 = GermaniumAmount
    • Arg6 = ColonistsAction
    • Arg7 = ColonistsAmount
    • Arg8 = FuelAction
    • Arg9 = FuelAmount

  • 2 - Colonise
  • 3 - Remote Mine
  • 4 - Merge With Fleet
  • 5 - Scrap Fleet
  • 6 - Lay Mine Field:

    • Arg0 = Years (6 means "indefinitely")

  • 7 - Patrol. Intercept within Years l.y., warp factor = Warp.:

    • Arg0 = Years (600 means "any enemy")
    • Arg1 = Warp (0 means "automatic")

  • 8 - Route
  • 9 - Transfer Fleet to Player:

    • Arg0 = PlayerId




"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 Love

Report message to a moderator

Re: "message pane" scraper Mon, 12 August 2013 17:32 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

XAPBob
Automation of economic mm is a good start, and relatively easy to do (although IT needs special rules...

That would be great to have something that can do a minerals/pop balancing instead of me! Cool



"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 Love

Report message to a moderator

Re: "message pane" scraper Mon, 12 August 2013 19:55 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
XyliGUN wrote on Mon, 12 August 2013 23:05
OK, have a look at the exports of the fleets and waypoints (location + orders). Will that works for you? Smile

Interesting! Lurking

A couple things, tho:
* In the Waypoints report, what's "ObjectId" supposed to mean? Sherlock
* In the Fleets report, why don't player1's fleets have Mass, Direction, or Speed? Confused
* I guess "LocationId" is a Planet ID? Rolling Eyes
* "DesignDamage" seems to be an integer, and not a percent. Perhaps it's the whole Damage Points? Whip
* Fleets #12 and #16 (player 0) show DesignDamage = "1" but no corresponding "DesignCount". Shocked
* In case a fleet is assigned to "shadow" another fleet at its same location, how does it show in the report?
* Also, if a fleet is targeting another fleet, how does it show? Pirate



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 06:35 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

m.a@stars
* In the Waypoints report, what's "ObjectId" supposed to mean? Sherlock

PlanetId (and probably, needs to be verified, other FleetId, MinefieldId, etc.)

m.a@stars
* I guess "LocationId" is a Planet ID? Rolling Eyes

The same as ObjectId, and to avoid confusion LocationId will be renamed to ObjectId.

m.a@stars
* In the Fleets report, why don't player1's fleets have Mass, Direction, or Speed? Confused

This is by design, for foreign fleet these values are present, for own fleets they are calculated by Stars! (for example, you know actual destination of your own fleets, since you can see fleets current target, while in case of foreign fleet you can only see last year target).

m.a@stars
* "DesignDamage" seems to be an integer, and not a percent. Perhaps it's the whole Damage Points? Whip

Needs to investigate, from my notes this must be a percent, but in fact it is 2 bytes value...

m.a@stars
* Fleets #12 and #16 (player 0) show DesignDamage = "1" but no corresponding "DesignCount". Shocked

Fixed.

m.a@stars
* In case a fleet is assigned to "shadow" another fleet at its same location, how does it show in the report?

There will be two fleets (i.e. 2 lines in CSV) at the same location.

m.a@stars
* Also, if a fleet is targeting another fleet, how does it show?

In the waypoints.csv ObjectId will point to that fleet.

PS: I'll upload fixed report shortly.



"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 Love

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 07:48 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
XyliGUN wrote on Tue, 13 August 2013 12:35
This is by design, for foreign fleet these values are present, for own fleets they are calculated by Stars! (for example, you know actual destination of your own fleets, since you can see fleets current target, while in case of foreign fleet you can only see last year target).

Sounds good, but if the aim of these "expanded reports" is to help create out-of-game tools, then all the possible info on one's own fleets will also be useful/needed. Teleport

Tools that don't act on one's own fleets can always ignore their info. Rolling Eyes


Quote:
There will be two fleets (i.e. 2 lines in CSV) at the same location.

Of course, but will one of them somehow have orders to "follow" the other? Pirate

Last but not least, I'm seeing no mention of any waypoints beyond the 1st. Are they not to be found in the m-file, or the problem is displaying that much info? Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 08:08 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

m.a@stars
Sounds good, but if the aim of these "expanded reports" is to help create out-of-game tools, then all the possible info on one's own fleets will also be useful/needed.

Yeah, but there is no fleet mass, direction and speed of the one's own fleets in the m (or any other) file. This info of your own fleet are only present as part of the waypoint data, which is exported to waypoints.csv.

m.a@stars
Of course, but will one of them somehow have orders to "follow" the other?

There will be waypoint for one fleet to follow another (ObjectId in the waypoint record will points to another fleet).

m.a@stars
Last but not least, I'm seeing no mention of any waypoints beyond the 1st. Are they not to be found in the m-file, or the problem is displaying that much info?

They are here (see fleet #8 have 3 waypoints for ecxample), it's just a sample turn I'm using isn't big enough. I'm sure you will make a very good and fat export once I'll publish the tool. Very Happy



"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 Love

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 10:50 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
XyliGUN wrote on Tue, 13 August 2013 14:08
Yeah, but there is no fleet mass, direction and speed of the one's own fleets in the m (or any other) file. This info of your own fleet are only present as part of the waypoint data, which is exported to waypoints.csv.

Ouch! So tools that work with one's own fleets will need to work a bit differently. It still makes more sense than what Stars! currently exports. Wall Bash Hit Computer

m.a@stars
There will be waypoint for one fleet to follow another (ObjectId in the waypoint record will points to another fleet).

I was guessing something like that. Whip


m.a@stars
They are here (see fleet #8 have 3 waypoints for ecxample)

Great! Now these "repeated" lines make a lot of sense! Cool

Which reminds me, why is fleet #4 (player 4) repeated in the fleets report? Confused


Quote:
you will make a very good and fat export once I'll publish the tool. Very Happy

Well, obviously tools can be useful for even smallish games, but where they'll make real differences is in really big games. Twisted Evil



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 15:47 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

m.a@stars
Which reminds me, why is fleet #4 (player 4) repeated in the fleets report? Confused

Oups, there was two ideas: to have one line per fleet and another one to have one line per design of the fleet - and as result they were mixed together in unintentional way. This is what happened when you are trying to write code past midnight... Very Happy
OK, it's now fixed.

Updated exports can be found here.




"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 Love

Report message to a moderator

Re: "message pane" scraper Tue, 13 August 2013 17:07 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
XyliGUN wrote on Tue, 13 August 2013 21:47
they were mixed together in unintentional way. This is what happened when you are trying to write code past midnight...

Understandable. Laughing

The one-lines look ugly, but will do the work. I wonder how Stars! organizes things internally in the m-file? Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Sat, 17 August 2013 07:39 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

And one more update... now the designs included.


"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 Love

Report message to a moderator

Re: "message pane" scraper Sat, 17 August 2013 15:25 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

It's more or less ready to beta testing, so I've send several invitations.
If somebody have a time to perform some testing let me know. Cool



"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 Love

Report message to a moderator

Re: "message pane" scraper Sun, 18 August 2013 16: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
XyliGUN wrote on Sat, 17 August 2013 13:39
And one more update... now the designs included.

Sweet! Particularly those "BuiltCount" and "RemainingCount" stats! Very Happy

Perhaps even a bit too sweet. As I notice there's also "BuiltCount" and "RemainingCount" on foreign fleets and these don't seem to have a reason to be there, unless they actually are "seenCount" and "seenCount-destroyedCount" or some similar guesstimate. Confused

Also, what are the "Category" columns supposed to be? Perhaps the "Category" of the item present in the corresponding Slot #? Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Mon, 19 August 2013 09:31 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

m.a@stars wrote on Mon, 19 August 2013 00:36
XyliGUN wrote on Sat, 17 August 2013 13:39
And one more update... now the designs included.

Sweet! Particularly those "BuiltCount" and "RemainingCount" stats! Very Happy

Perhaps even a bit too sweet. As I notice there's also "BuiltCount" and "RemainingCount" on foreign fleets and these don't seem to have a reason to be there, unless they actually are "seenCount" and "seenCount-destroyedCount" or some similar guesstimate. Confused

Also, what are the "Category" columns supposed to be? Perhaps the "Category" of the item present in the corresponding Slot #? Sherlock

To be fair I don't have an exact answer here, but based on my tests:
* for the own designs these values are always exactly build count and remains count
* for the foreign fleets this is more like "estimated" build count and an "estimated" remains count

For the foreign designs these values can be much lower than actual as well as much higher than actual, and probably these numbers mean nothing in that case at all. So, in general you cannot trust these values, Also, perhaps they should be removed from the export for the foreign fleets to avoid confusion. Comments, suggestions?


[Updated on: Mon, 19 August 2013 09:35]




"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 Love

Report message to a moderator

Re: "message pane" scraper Mon, 19 August 2013 10:32 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
XyliGUN wrote on Mon, 19 August 2013 15:31
* for the foreign fleets this is more like "estimated" build count and an "estimated" remains count

For the foreign designs these values can be much lower than actual as well as much higher than actual, and probably these numbers mean nothing in that case at all. So, in general you cannot trust these values, Also, perhaps they should be removed from the export for the foreign fleets to avoid confusion. Comments, suggestions?

Well, as long as they work almost like the foreign pop reports, or the fleet reports that miss cloaked fleets, I'd say they can stay. Lurking



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 08:39 Go to previous messageGo to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
XyliGUN wrote on Mon, 19 August 2013 14:31
m.a@stars wrote on Mon, 19 August 2013 00:36
XyliGUN wrote on Sat, 17 August 2013 13:39
And one more update... now the designs included.

Sweet! Particularly those "BuiltCount" and "RemainingCount" stats! Very Happy

Perhaps even a bit too sweet. As I notice there's also "BuiltCount" and "RemainingCount" on foreign fleets and these don't seem to have a reason to be there, unless they actually are "seenCount" and "seenCount-destroyedCount" or some similar guesstimate. Confused

Also, what are the "Category" columns supposed to be? Perhaps the "Category" of the item present in the corresponding Slot #? Sherlock

To be fair I don't have an exact answer here, but based on my tests:
* for the own designs these values are always exactly build count and remains count
* for the foreign fleets this is more like "estimated" build count and an "estimated" remains count

For the foreign designs these values can be much lower than actual as well as much higher than actual, and probably these numbers mean nothing in that case at all. So, in general you cannot trust these values, Also, perhaps they should be removed from the export for the foreign fleets to avoid confusion. Comments, suggestions?


I'm not entirely convinced by those numbers at all... Details sent...

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 11:22 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

XAPBob wrote on Fri, 23 August 2013 16:39
XyliGUN wrote on Mon, 19 August 2013 14:31
m.a@stars wrote on Mon, 19 August 2013 00:36
XyliGUN wrote on Sat, 17 August 2013 13:39
And one more update... now the designs included.

Sweet! Particularly those "BuiltCount" and "RemainingCount" stats! Very Happy

Perhaps even a bit too sweet. As I notice there's also "BuiltCount" and "RemainingCount" on foreign fleets and these don't seem to have a reason to be there, unless they actually are "seenCount" and "seenCount-destroyedCount" or some similar guesstimate. Confused

Also, what are the "Category" columns supposed to be? Perhaps the "Category" of the item present in the corresponding Slot #? Sherlock

To be fair I don't have an exact answer here, but based on my tests:
* for the own designs these values are always exactly build count and remains count
* for the foreign fleets this is more like "estimated" build count and an "estimated" remains count

For the foreign designs these values can be much lower than actual as well as much higher than actual, and probably these numbers mean nothing in that case at all. So, in general you cannot trust these values, Also, perhaps they should be removed from the export for the foreign fleets to avoid confusion. Comments, suggestions?


I'm not entirely convinced by those numbers at all... Details sent...

Probably these counts mean nothing in case of foreign fleets, so it could be better to just make them blank for the foreign fleets.
XAPBob I cannot find any details, did I miss something?



"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 Love

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 11:47 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
XyliGUN wrote on Fri, 23 August 2013 17:22
Probably these counts mean nothing in case of foreign fleets, so it could be better to just make them blank for the foreign fleets.

Don't squash them yet. Perhaps they have a different meaning, or need to be extricated from some other thing. Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 13:21 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

Player relation columns were added to players.csv.
They are per player, and their meaning are:

  • 0 - "Neutral"
  • 1 - "Friend"
  • 2 - "Enemy"



"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 Love

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 13:30 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

Updated sample can be downloaded here as usual.

Another addition is a basic game settings and battle plans.
Primary/Secondary target values:

  • 0 - "None/Disengage"
  • 1 - "Any"
  • 2 - "Starbase"
  • 3 - "Armed Ships"
  • 4 - "Bombers Freighters"
  • 5 - "Unarmed Ships"
  • 6 - "Fuel Transports"
  • 7 - "Freighters"


Tactic values:

  • 0 - "Disengage"
  • 1 - "Disengage if challenged"
  • 2 - "Minimize damage to self"
  • 3 - "Maximize net damage"
  • 4 - "Maximize damage ratio"
  • 5 - "Maximize damage"


Attack values:

  • 0 - "Nobody"
  • 1 - "Enemies"
  • 2 - "Neutrals & Enemies"
  • 3 - "Everyone"
  • 4-19 - Player #0 - Player #15



"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 Love

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 13:54 Go to previous messageGo to next message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


Messages: 325
Registered: July 2004
Location: Russia, St.Petersburg

Status: I'm going to stop here for a while, wait until ppl doing some beta testing, then publish the tool.
Then if it will be useful, depending on specific requests I'll expand it if someone will need to.
PS: As usual if you have a time to make some beta testing let me know.


[Updated on: Fri, 23 August 2013 14:05]




"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 Love

Report message to a moderator

Re: "message pane" scraper Fri, 23 August 2013 14:59 Go to previous messageGo to previous message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
XyliGUN wrote on Fri, 23 August 2013 19:21
Player relation columns were added to players.csv.
They are per player, and their meaning are:

  • 0 - "Neutral"
  • 1 - "Friend"
  • 2 - "Enemy"

Well, as long as you can only output the relations for one player per m file, why not put them all in one single column? It would look much cleaner. Lurking



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Previous Topic: My wheels are turning
Next Topic: Should Stars! files structures be publically available?
Goto Forum:
  


Current Time: Sun Aug 07 22:14:16 EDT 2022