Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » m and h files merger tool
m and h files merger tool Fri, 24 June 2011 11:17 Go to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
What happened with the (in)famous "turn merge" tool? Will we be able to test it soon at SAH? Deal

Perhaps the user interface and permissions matrix needed to turn it into a web-based tool are a bit more complex than we thought? Sherlock



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: m and h files merger tool Sun, 26 June 2011 09:16 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

So far it wasn't relesed to public, but special edition (supposed to simplify its' usage on SAH) was released to Ron. So, it's up to Ron whether he think it's usefull to implement in on SAH. 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: m and h files merger tool Sun, 26 June 2011 09:44 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
Great! Smile

Any chance of ever publishing a compendium of all known structures and data, so other tools can be at least conceived? Deal



So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: m and h files merger tool Sun, 26 June 2011 11:37 Go to previous messageGo to next message
BlueTurbit

 
Lt. Commander

RIP
BlueTurbit died Oct. 20, 2011

Messages: 835
Registered: October 2002
Location: Heart of Texas
Yep, it's been on his to-do list for some time.
http://starsautohost.org/sahforum/index.php? t=msg&goto=49205&rid=3&S=7c5a8e03c040020c5af7693 13c7be75f

I'm guessing Ron is getting older, seventies? And he takes more naps than he used to. Laughing





BlueTurbit Country/Rock

Report message to a moderator

Re: m and h files merger tool Sun, 26 June 2011 19:23 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
BlueTurbit wrote on Sun, 26 June 2011 11:37

Yep, it's been on his to-do list for some time.
http://starsautohost.org/sahforum/index.php? t=msg&goto=49205&rid=3&S=7c5a8e03c040020c5af7693 13c7be75f

I'm guessing Ron is getting older, seventies? And he takes more naps than he used to. Laughing





zzz... snort.. huh? what?... what??!!! <nasal voice>Now look here you youngins, you just behave yourselves, or I'll bust you down to crewman.</nasal voice>

Yes, I know.... stuff happens, it is on the list to do, sorry I haven't gotten to it yet. And no, I'm not even 41 yet.



Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Mon, 13 February 2012 06:10 Go to previous messageGo to next message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

I always remember this when my new games start... Ron, any chance you'll release it?

Just curious if the hold up is on account of it taking a lot of time to implement or if there are some security issues?
Any rough idea, how long would it take if you can take out dedicated time to do it?



I know my minefields.. but I'm a chaff sweeper.
I used to curse when I got stuck in traffic... till I realised I AM traffic.

Report message to a moderator

Re: m and h files merger tool Thu, 08 March 2012 23:40 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
nmid wrote on Mon, 13 February 2012 06:10

I always remember this when my new games start... Ron, any chance you'll release it?

Just curious if the hold up is on account of it taking a lot of time to implement or if there are some security issues?
Any rough idea, how long would it take if you can take out dedicated time to do it?

If I had the dedicated time to do it, it would probably only take a couple of hours.



Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Fri, 09 March 2012 08:06 Go to previous messageGo to next message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

So, how much do I need to pay for a nice, large hearted, expert and a generous site owner for 4-5 hours of his time?

I'm expecting a discount off ur regular earnings, of course Wink.



I know my minefields.. but I'm a chaff sweeper.
I used to curse when I got stuck in traffic... till I realised I AM traffic.

Report message to a moderator

Re: m and h files merger tool Sun, 11 March 2012 07:41 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
nmid wrote on Fri, 09 March 2012 08:06

So, how much do I need to pay for a nice, large hearted, expert and a generous site owner for 4-5 hours of his time?

I'm expecting a discount off ur regular earnings, of course Wink.

Laughing Hmm, well, would need a babysitter/entertainer for 2 boys for that length of time and someone to help my wife with whatever housework she needed done.




Ron Miller
Stars! AutoHost

Report message to a moderator

icon4.gif  Re: m and h files merger tool Sun, 25 March 2012 18:52 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
Progress! Shocked

The Host Utility interface is done for the turn merge utility. (just hidden at the moment)

It lets the host pick which player is on what team, then writes that info to an .ini file that the utility uses when it runs.

The code to actually call the utility is complete and I've tested it.

Currently, the utility gives a non-zero run level error when a team member did not submit an .x file before the turn gen. This currently 'crashes' Stars! AutoHost. I have emailed XyliGUN about this and offered several suggestions about how to handle it and other issues.


[Updated on: Sun, 25 March 2012 21:29]




Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Mon, 26 March 2012 06:00 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 update: I've got emails from Ron, hope to address them within a week.


"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: m and h files merger tool Wed, 28 March 2012 12:03 Go to previous messageGo to next message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

/drool.

And this despite the fact that it will actually be used more against me, than by me.

Report message to a moderator

Re: m and h files merger tool Sun, 01 April 2012 01:20 Go to previous messageGo to next message
Ashlyn is currently offline Ashlyn

 
Lt. Commander

Messages: 833
Registered: November 2002
Location: Pueblo CO USA

Bounce

Report message to a moderator

Re: m and h files merger tool Thu, 19 April 2012 21:03 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
XyliGUN wrote on Mon, 26 March 2012 06:00

Status update: I've got emails from Ron, hope to address them within a week.

I'm still waiting on a new version of the tool from XyliGUN.



Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Mon, 13 May 2013 08:44 Go to previous messageGo to next message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

Yearly bump... slightly late Smile

Any other known/reliable coders who could possibly help out, in the roll out of this tool?



I know my minefields.. but I'm a chaff sweeper.
I used to curse when I got stuck in traffic... till I realised I AM traffic.

Report message to a moderator

Re: m and h files merger tool Mon, 13 May 2013 09:04 Go to previous messageGo to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
I would happily look at.
Can't guarantee a timescale yet, bit not sure that's a problem...

Can guarantee discretion Smile

Report message to a moderator

Re: m and h files merger tool Thu, 30 May 2013 10:37 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
nmid wrote on Mon, 13 May 2013 08:44
Yearly bump... slightly late Smile

Any other known/reliable coders who could possibly help out, in the roll out of this tool?

I've never heard back from XyliGUN (that I know of) addressing my concerns about a way it could crash AutoHost.

See the quote below:
Ron wrote on Sun, 25 March 2012 21:29
The Host Utility interface is done for the turn merge utility. (just hidden at the moment)

It lets the host pick which player is on what team, then writes that info to an .ini file that the utility uses when it runs.

The code to actually call the utility is complete and I've tested it.

Currently, the utility gives a non-zero run level error when a team member did not submit an .x file before the turn gen. This currently 'crashes' Stars! AutoHost. I have emailed XyliGUN about this and offered several suggestions about how to handle it and other issues.


In fact, XyliGUN has not logged into this forum since April 13, 2012. If he is no longer around, then the only thing I can do is check that all .x files are present before turn merge. If not all .x files present, then cannot do turn merge.



Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Thu, 30 May 2013 10:50 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
Actually, the turn merge tool gives a non-zero run level error for other problems besides missing .x file(s). When this happens, as I recall, it actually crashes Wine itself. If any of you are familiar with Linux and Wine and want to help me with this, please contact me.

The code I'm using to handle this in PERL is:
@command = ("cd /stars/games/$game_name; /usr/bin/wine \"/stars/prog/sahturnmerger.exe\" $game_name-turn-merge.ini >> /stars/games/$game_name/turn-merge-error.log 2>&1");
&handle_sys;

#
# Function: handle_sys
#
# Purpose:  Handle system calls, and their error messages.
#
#

sub handle_sys {
    $e_flag = 0;
AGAIN:
    $rc = 0xffff & system @command;
    if ($rc == 0) {
       $error_flag = 0;
#       print "handle_sys: exit 0\n";
    }
    elsif ($rc == 0xff00) {
#       print STDOUT "handle_sys: exit 0xff00\n";
        printf "system(%s) returned %#04x: ", "@command", $rc;
        print "command failed: $!\n";

        if ($error_flag == 1) {
           if ($e_flag == 0) {
              print "Trying again after 20 seconds.\n";
              sleep(20);
              $e_flag = 1;
              goto AGAIN;
           }
#          print STDOUT "handle_sys: error_flag == 1...exiting\n";
           exit;
        }
#       print STDOUT "handle_sys: error_flag != 1... exiting\n";
        exit;
    }
    elsif ($rc > 0x80) {
#       print STDOUT "handle_sys: exit 80\n";
        printf "system(%s) returned %#04x: ", "@command", $rc;
        print "ran with non-zero exit status $rc\n";
#       print STDOUT "handle_sys: exiting\n";
        exit;
    }
    else {
        printf "system(%s) returned %#04x: ", "@command", $rc;
        print "ran with ";
        if ($rc & 0x80) {
           $rc &= ~0x80;
           print "coredump from ";
        }
        print "signal $rc\n";
#       print STDOUT "handle_sys: exiting\n";
        exit;
    }
}


I'm willing to work on this again. It's 99% complete, but I can't have it crashing the whole system if it has a non-zero run-level error.

nmid
, send me a small test game, 4 players, 2 teams. In the email, specify which player is on which team. We'll test this out.


[Updated on: Thu, 30 May 2013 10:55]




Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Thu, 30 May 2013 12:50 Go to previous messageGo to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
I'll have a look later tonight.

Might have a couple of wine related questions (like how you get it to work without an X server available - assuming you do of course)

Bob

PS - An AutoHost mirror VM (which I could provide) might not be a bad idea for testing if you are willing to share that much (or access to that much at any rate)

Report message to a moderator

Re: m and h files merger tool Sun, 30 June 2013 08:42 Go to previous messageGo to next message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

Ron wrote on Thu, 30 May 2013 20:20

I'm willing to work on this again. It's 99% complete, but I can't have it crashing the whole system if it has a non-zero run-level error.

nmid
, send me a small test game, 4 players, 2 teams. In the email, specify which player is on which team. We'll test this out.


Apologies.. I didn't notice this reply till just right now.
I minimized the sub-forum! Mad

Sending over the test game.



I know my minefields.. but I'm a chaff sweeper.
I used to curse when I got stuck in traffic... till I realised I AM traffic.

Report message to a moderator

Re: m and h files merger tool Fri, 05 July 2013 19:01 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
Test game made, 4 players, nmid is testing various things with the merger utility.

I'm coding stuff in Host Utility and SAH scripts to handle merging, and I can turn on the ability for hosts to use merging now. By default, merging is turned off, and hosts can request that it be turned on.

Still to do:

  1. Add code to ensure all .x files in place when merging active. (If not all present, then the merge utility will crash SAH.)
  2. Add option to gen turn but turn off merging for that turn if now all .x files present.
  3. Code merger notification on game page and turn gen emails, so players will be aware of what other players are on their team and sharing data. Players on a team will not be told who are on other teams.



[Updated on: Fri, 05 July 2013 19:01]




Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Thu, 11 July 2013 17:50 Go to previous messageGo to next message
ManicLurch is currently offline ManicLurch

 
Lt. Junior Grade

Messages: 462
Registered: May 2009
Is there a good chance that this will be ready in a few weeks? Just thinking it might be nice to use in the team game DD5.

Report message to a moderator

Re: m and h files merger tool Tue, 23 July 2013 23:33 Go to previous messageGo to next message
Ron is currently offline Ron

 
Commander
Forum Administrator
Stars! AutoHost Administrator

Messages: 1232
Registered: October 2002
Location: Collegedale, TN
XyliGUN has returned and says he's working on the current bugs. The main bug is that the utility cannot handle multi-year generations at the moment, and crashes the whole system if someone forgets to upload their .x file.


Ron Miller
Stars! AutoHost

Report message to a moderator

Re: m and h files merger tool Wed, 24 July 2013 14: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

Fixed version of SAH turn merger was sent to Ron.
* error level is always 0, and error message can be found in output
* m files with multiple turns supported
* optional minefields merge works
* optional packets merge works
* optional wormhole merge works

Things not yet implemented:
* optional fleets merge

Offtopic:
I'm apologise for being away and not replying for so long time. But a real life pressure was too high for the last year. Including such things like a new job, new home, some health problems, etc, etc, etc. But, after all, it's more or less back to normal now. So, let keep going!
Sorry

PS: I found 5000 messages related to Stars! in my mailbox after not cheking it within a year. Shocked



"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: m and h files merger tool Fri, 26 July 2013 04:47 Go to previous messageGo to previous message
nmid

 
Commander

Messages: 1608
Registered: January 2011
Location: GMT +5.5

Xyligun!! Nice.. welcome back.

Out of those 5000 messages, 3 must be mine Very Happy

Good to see you back and awesome!! to see the merger tool with features that can be optionally turned on/off.
Really want that fleet option to be on, but that's the one that some players have to get ok with.




I know my minefields.. but I'm a chaff sweeper.
I used to curse when I got stuck in traffic... till I realised I AM traffic.

Report message to a moderator

Previous Topic: Planet mover (remapping tool)
Next Topic: My wheels are turning
Goto Forum:
  


Current Time: Wed Feb 01 08:41:05 EST 2023