Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! 2.6/7 » The Bar » Micromanagement Tools (was Fledgling Admirals 2: EoG Comments)
Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Sun, 18 July 2010 21:12 Go to previous messageGo to next message
Captain Maim is currently offline Captain Maim

 
Lt. Junior Grade

Messages: 492
Registered: March 2003
Location: USA, Mesa, Arizona

Wow! That's awesome! I wonder what they mean? I don't care if I'm wrong about my original statement. Smile The possibility existed but unless some of those blocks are marked that way because of damage, it would be interesting to know what they contain since I guess they aren't as obsolete as they seemed.


Rule 1: "Pillage, THEN burn!"

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 04:04 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
Captain Maim wrote on Mon, 19 July 2010 03:12

Wow! That's awesome! I wonder what they mean? I don't care if I'm wrong about my original statement. Smile The possibility existed but unless some of those blocks are marked that way because of damage, it would be interesting to know what they contain since I guess they aren't as obsolete as they seemed.

Maybe the blocks are not marked that way because they are damaged, but the .x file is corrupt because those blocks are there? Wink

mch

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 05:10 Go to previous messageGo to next message
Captain Maim is currently offline Captain Maim

 
Lt. Junior Grade

Messages: 492
Registered: March 2003
Location: USA, Mesa, Arizona

Another plausibility.


Rule 1: "Pillage, THEN burn!"

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 07:02 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

Micha wrote on Mon, 19 July 2010 04:18

... I've got +400MB of (battle) testbed files and +1GB in my ended games folder ...

Gb+ Stars! archive ... that's impressive!

Micha wrote on Mon, 19 July 2010 04:18

I found 5 of your bogeys. Wink

Interesting. Can I look on these files/turns? Non-AI turns containing these blocks and corrupted files are the most interesting things to look at.


[Updated on: Mon, 19 July 2010 13:58]




"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: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 07:25 Go to previous messageGo to next message
Captain Maim is currently offline Captain Maim

 
Lt. Junior Grade

Messages: 492
Registered: March 2003
Location: USA, Mesa, Arizona

The fact alone that you find corrupted files interesting to look at, is in and of itself. Interesting.


Rule 1: "Pillage, THEN burn!"

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 16:48 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 July 2010 00:58

XyliGUN wrote on Sat, 17 July 2010 12:53

What I'm really like to do is StarsPlayerAPI, which, I hope, would allow others to make cool things (starting from "notebook", which will read data directly from xy/m/h/x files, mm automation tools, like managing your pop and minerals, and probably somebody can bring up a better client).

And, necessarily, a submitted-x-file checker/sanitizer, to keep any bugs/cheats from taking over the game. Whip

Sure thing. I'll have to do it anyway, when I'll load x file data I'll need to verify any command which it contains, just because x file can be "broken" (or "hacked" Sad ). So, I guess cheat checker will be available the same day as my API will be ready to read x file. Rolling Eyes



"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: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Mon, 19 July 2010 19:54 Go to previous messageGo to next message
Captain Maim is currently offline Captain Maim

 
Lt. Junior Grade

Messages: 492
Registered: March 2003
Location: USA, Mesa, Arizona

The Cheat checker will be a separate thing? That's cool. I like that.


Rule 1: "Pillage, THEN burn!"

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Wed, 21 July 2010 18:13 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
XyliGUN wrote on Mon, 19 July 2010 13:02

Micha wrote on Mon, 19 July 2010 04:18

... I've got +400MB of (battle) testbed files and +1GB in my ended games folder ...

Gb+ Stars! archive ... that's impressive!

I save all .x .m and .h file all years for all games ...
The result.txt was 16MB. Wink

Quote:

Micha wrote on Mon, 19 July 2010 04:18

I found 5 of your bogeys. Wink

Interesting. Can I look on these files/turns? Non-AI turns containing these blocks and corrupted files are the most interesting things to look at.

Sending you a link.

mch

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Thu, 22 July 2010 05:12 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

Micha, thanks for the files. I'll look at them ... hopefully a bit later today.

As for rings1.x8 - are you sure it's corrupted? Does Stars! refuses to open it? I cannot verify it with Stars! since there is only x file from that game, but I was able to read and extract all data from that file completely with no errors. There is also no unknown blocks in that file.

I cannot say at the momement if all values inside the blocks are valid (this can be verified only after x file checker will be ready), but its' structure looks correct and as far as I can see there is nothing unusual in their values. The only strange thing about that file is its' "save & submit", which is usually 2 bytes long, but sometimes (I saw it before in my game files) it appears to have 12 bytes, and it's also 12 bytes in rings1.x8. I don't know if that's only a problem, but if there is no other errors it could be fixed pretty easily by removing that block (it's not neccessary, and only created when several save 7 submit was done while doing a turn).

PS: The rest of the rings1 turn files (and password) will be nice to have to verify it completely.
PS2: And BTW, I'd like to know a passwords from the games you sent me, just to be able to open them in Stars!. Wink


[Updated on: Thu, 22 July 2010 11:13]




"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: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Thu, 22 July 2010 07:49 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
XyliGUN wrote on Thu, 22 July 2010 11:12

Micha, thanks for the files. I'll look at them ... hopefully a bit later today.

As for rings1.x8 - are you sure it's corrupted? Does Stars! refuses to open it? I cannot verify it with Stars! since there is only x file from that game, but I was able to read and extract all data from that file completely with no errors. There is also no unknown blocks in that file.


Hum, oops, wrong file. It was past midnight and I already colletected 25+ other errors and corresponding files. Smile
Anyway, should have been rings1.x1 and other files should have been there like with the rest of the games I sent. That rings.x1 file has a block 11, 22 and 41 and *is* corrupt (won't open). Sending it to you in a short while.

As for "penta 2449", that's the turn for which I don't have an .m file ... should be in one of my old mail archives, will take a while to dig out and I'll be leaving on vacation tomorrow so don't expect it for at least a week. Wink

Quote:

PS: The rest of the rings1 turn files (and password) will be nice to have to verify it completely.
PS2: And BTW, I'd like to know a passwords from the games you sent me, just to be able to open them in Stars!. Wink

As soon as you have signed the non-disclosure document that was attached to the mail you'll get the passwords. As m.a is used to say: Deal

Laughing Wink

mch


[Updated on: Thu, 22 July 2010 07:55]

Report message to a moderator

icon14.gif  Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Thu, 22 July 2010 09:44 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

OK, Thanks to Micha Thumbsup 2 block #25 (we should call it "Micha Block" or "Block by Micha") is now decoded. Block #25 is actually manual load/unload task, but for amounts larger than 32000 (that's why it was so rear), in case of penta.x8 file it was fuel load/unload beetwen two large fleets. 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: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Thu, 22 July 2010 10:30 Go to previous messageGo to next message
Micha

 

Messages: 2342
Registered: November 2002
Location: Belgium GMT +1
XyliGUN wrote on Thu, 22 July 2010 15:44

OK, Thanks to Micha Thumbsup 2 block #25 (we should call it "Micha Block" or "Block by Micha") is now decoded. Block #25 is actually manual load/unload task, but for amounts larger than 32000 (that's why it was so rear), in case of penta.x8 file it was fuel load/unload beetwen two large fleets. Smile

Hah! Great. Let's call it penta block. Wink Kinda fits with 25 as well. Smile

mch

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Thu, 22 July 2010 11:33 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

After looking thru your files Micha, I only found blocks ##25 and ##41. Penta Block is decoded and I'd skip block #41 for a while, since it's not seems ever found in the non-AI turns.

The rest of the files with unknown blocks seems to be corrupted as well as one that you don't send m file for. I guess it's impossible to fix them, since it's not a real x file it's a mess of data (for example block 7 can never been in the files others than xy, since it's a game definition, but it is in penta.x10, and that is just one example).

But anyway thanks a LOT for finding penta block! Wink

So, blocks ##11, 15, 18 and 22 still not found. If somebody met them plz let me know. Cool


[Updated on: Thu, 22 July 2010 11:33]




"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: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Tue, 27 July 2010 17: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

XyliGUN wrote on Sat, 10 July 2010 23:08

2. Copy Protection - this one is tricky. As you know x file contains serial hash (4 bytes) and hw id (11 bytes), so to fill it in correctly I'll need to somehow take it from stars.ini (it looks like it stored in GlobalSettings key). Does anybody know how to convert GlobalSettings value to serial hash? Looks like it's not the same encoding as one used for ship names and player messages, at least it doesn't match for my serial and actual hash.

PS: I'm also can fill this block with some default values (for example it could be specially aquired for API key), but this will break copy protection. And I don't like to go this way.

Just a small update on that: I'm still cannot decode GlobalSettings, but it seems that I found how does Stars! calculates hash from serial, which is stored in x file, so I hope this at least will gives a possibility to write x file without breaking Copy Protection.



"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

icon5.gif  Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Wed, 03 November 2010 06:30 Go to previous messageGo to next message
Core34 is currently offline Core34

 
Crewman 3rd Class

Messages: 9
Registered: November 2010
Location: Düsseldorf
Hi there!

I wonder if there's still activity in this project? I've browsed the complete (interesting) thread and noticed the last post was 3 months ago, so ...

Cheers,
fab

Report message to a moderator

Re: Micromanagement Tools (was Fledgling Admirals 2: EoG Comments) Wed, 03 November 2010 14:54 Go to previous message
XyliGUN is currently offline XyliGUN

 
Ensign
Stars! V.I.P


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

Well, I have some progress (can read almost everything from m, h, x, and access data using COM object properties, but cannot write yet), but for the last couple of month I have pretty busy schedule with my current project, hope to continue within next couple of weeks. Wall Bash


"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

Previous Topic: Not about stars , maybe some help
Next Topic: Need help upgrading from Win 95 to Win 7 (I5 core)
Goto Forum:
  


Current Time: Sat Apr 27 06:57:26 EDT 2024