Menu

#5 Lauching game from AHclient and UNC drives

open
None
7
2005-04-18
2005-04-18
console_cc
No

Hiya,

After successfull download of a new turn AHclient
autolaunches stars.exe. When the stars.exe is on a
UNC drive Stars! gets loaded (start screen), however the
game itself (turn) does not load.

If you use AHclient on c:\ or similar it works as intendet.
It seems the game launch doesn't either generate a
correct URI for UNC paths or it's a limit in java.

There is no log entry of the launch URI, parameters. So
hard to debug.

Situtation:

\\M\stars\stars.exe
\\M\stars\ahclient\ahclient.jar
\\M\stars\games\gamename\gamename.h#
\\M\stars\games\gamename\gamename.m#
\\M\stars\games\gamename\gamename.x#
\\M\stars\games\gamename\gamename.xy
\\M\stars\games\gamename\gamename.status
\\M\stars\games\gamename\gamename.userprops

ahclient.props:
ayeti.GameDir=//M/games/stars/gamename/gamename
StarsExecutable=//M/games/stars/stars.exe

ahclient opened with:
target: javaw.exe -jar \\M\stars\ahclient\ahclient.jar
start in: \\M\games\stars\ahclient

download/upload works flawlessly (using the test-jar
from the other bigid 1154127), launching the game ends
at the stars! startscreen (new game, open game, ..).

now if I use a regular windows shortcut to run my game
(gamename) it works (stars itself works with UNC's):

target: \\M\games\stars\stars.exe -p PASS
\\M\games\stars\games\gamename\gamename.m#
start in: \\M\games\stars

best,
frame

Discussion

  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-04-18

    Logged In: YES
    user_id=396194

    Frame,

    Please try the attached jar file. It should log exactly
    what it's running when it runs the stars executable (both
    when launching a game and when generating P and F files). I
    don't have any UNC drives to play with, so I'm afraid I will
    have to rely on you to help me get this right.

    If you have any info on how to set up a UNC-type access, I'd
    be happy to listen - I have a Linux server at home I can use
    to test - I just don't know how to set it up :o(

    Jeff

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-04-18

    Jar file that logs when running the stars exe

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-04-18
    • priority: 5 --> 7
    • assigned_to: nobody --> jchoyt
     
  • console_cc

    console_cc - 2005-04-19

    Logged In: YES
    user_id=1230000

    Hi jchoyt

    np - I'm glad to be of any help for you.

    Tried the .jar and this is the log:
    Utils: Running: \\X5\games\stars\stars.exeayeti.m10-p[PASS]

    note: ayeti.m10 is ofcourse my turn.

    the initial command is correct, seems the parameter for the
    m10 doesn't respect the 'GameDir' prefix.
    also - there are no spaces, however I believe you trimmed
    them for the debug output.

    Maybe it's really this simple, hope stars.exe does save the
    game into the correct folder (we'll learn soon :)

    best,
    frame

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-04-19

    Jar file with fixed log and full path for turn name

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-04-19

    Logged In: YES
    user_id=396194

    Let me know. I tried putting in the full path with the
    filename, but then stars couldn't open my file. I set the
    working directory to be the directory the files are in, so
    it is supposed to pick it up. I wonder if there is
    something wrong with Java's ability to handle UNC paths as a
    working path....Is there a way to map the UNC path to a
    drive and see if that works?

    I have attached a version that uses something like:

    /home/jchoyt/bin/stars.sh /tmp/ahc.m1 -p PASS

    were /tmp is where my game files are. It doesn't work on my
    system, but I'm obviously not running Windows so no big
    deal. Let me know if it works on yours and maybe I can try
    to put in a check to see if it's a UNC path and do it
    differently.

    I am logging the supposed working path as well. This is in
    both the "Launch Game" button, and also after a turn file is
    downloaded, so please check both.

    Jeff

    PS - yeah - that was sloppy logging. Fixed that in this
    version, too.

     
  • console_cc

    console_cc - 2005-04-19

    Logged In: YES
    user_id=1230000

    Hiya,

    looks good now: logs and gamelaunch work as intended.
    when saving game or save_submit the correct file gets
    updated.

    I'll do a two confirmung tests (the 2nd stars launch after turn
    dl) over the next 2 days - one time from C:\ and 2nd time from
    \\UNC with complete upload/download.

    so far.. great work, thanks!

    ps: yes mapping a drive would solve it - that's how I used it
    before. still, having true unc support now is really nice.

    mapped drives can differ at machines (f: here, g: at another
    box..), which would make the GameDir setting in
    ahclient.props faulty.

    best,
    frame

     
  • console_cc

    console_cc - 2005-04-20

    Logged In: YES
    user_id=1230000

    Hi Jeff,

    Test failed because the new launcher-fixed jar doesn't contain
    the password-download fix.

    best,
    frame

     
  • console_cc

    console_cc - 2005-05-23

    Logged In: YES
    user_id=1230000

    Quick Bump :)

    The upload/download works at the 12:52 file,
    the launching from a UNC folder works at the 20:00 file.

    Couldn't test them together, but each versions work fine.

    Think you should release it :) As the current version still isn't
    working at all with starsautohost.org

    best,
    frame

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-05-23

    Logged In: YES
    user_id=396194

    Ya know. I say this to myself at least twice a day. Dammit.
    I'll push to get it out tonight. In the meantime, can you
    check a new build for me? See if this one does both for you....

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-05-23

    05 May 23 Final test before release

     
  • Jeffrey Hoyt

    Jeffrey Hoyt - 2005-05-23

    Logged In: YES
    user_id=396194

    Sorry - I attached a jar to this bug. It has today's date
    in the description

     
  • console_cc

    console_cc - 2005-05-25

    Logged In: YES
    user_id=1230000

    Hiya,

    After hitting 'download turn' I get the following error:

    "Couldn't complete download and report generation. See log
    tabs for details"

    [(2:18:11) debug] Utils: Going to http://starsautohost.org/cgi-
    bin/downloadturn.php?file=ayeti.m10
    [(2:18:11) debug] Utils: password = xxxxxxxxxx
    [(2:18:12) debug] Utils: Done - successfully retrieved
    ayeti.m10
    [(2:18:12) warning] Utils: Running: \\x5
    \games\stars\stars.exe -dpfm \\X5
    \games\stars\games\ayeti\ayeti.m10 -p xxxxxxxxx
    [(2:18:12) warning] Utils: from \\X5
    \games\stars\games\ayeti
    [(2:18:13) message] DownloadButton:
    java.io.FileNotFoundException: \\X5
    \games\stars\games\ayeti\ayeti.f10 (The system cannot find
    the file specified)
    [(2:18:13) message] DownloadButton: at
    java.io.FileInputStream.open(Native Method)
    [(2:18:13) message] DownloadButton: at
    java.io.FileInputStream.<init>(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    stars.ahc.Utils.fileCopy(Utils.java:324)
    [(2:18:13) message] DownloadButton: at
    stars.ahc.Utils.backupPxxFiles(Utils.java:362)
    [(2:18:13) message] DownloadButton: at
    stars.ahc.Utils.genPxxFiles(Utils.java:435)
    [(2:18:13) message] DownloadButton: at
    stars.ahcgui.DownloadButton.actionPerformed
    (GamePanel.java:494)
    [(2:18:13) message] DownloadButton: at
    javax.swing.AbstractButton.fireActionPerformed(Unknown
    Source)
    [(2:18:13) message] DownloadButton: at
    javax.swing.AbstractButton$Handler.actionPerformed
    (Unknown Source)
    [(2:18:13) message] DownloadButton: at
    javax.swing.DefaultButtonModel.fireActionPerformed
    (Unknown Source)
    [(2:18:13) message] DownloadButton: at
    javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    javax.swing.plaf.basic.BasicButtonListener.mouseReleased
    (Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Component.processMouseEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    javax.swing.JComponent.processMouseEvent(Unknown
    Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Component.processEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Container.processEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Component.dispatchEventImpl(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Container.dispatchEventImpl(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Component.dispatchEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.LightweightDispatcher.processMouseEvent(Unknown
    Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.LightweightDispatcher.dispatchEvent(Unknown
    Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Container.dispatchEventImpl(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Window.dispatchEventImpl(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.Component.dispatchEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventQueue.dispatchEvent(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventDispatchThread.pumpEventsForHierarchy
    (Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    [(2:18:13) message] DownloadButton: at
    java.awt.EventDispatchThread.run(Unknown Source)

    Same error also for the p10 file.

    Now, I did create them for a quick test with a texteditor (0
    bytes both) and the download works flawlessly (however
    game doesn't launch automatically (it's no new turn tho - have
    to wait until tomorrow to verify if the client loads up on a really
    new turn).

    Note: Turn upload and Launch Stars works flawlessly. Also
    the Turn get's downloaded, the F10/P10 file however isn't
    found/created? (I don't know what they are for tho).

    ps: no worries on the delay :) I know these situations too
    well, and I'm very glad you find some time to work on it.

    best,
    frame

     
  • console_cc

    console_cc - 2005-05-29

    Logged In: YES
    user_id=1230000

    Hiya,

    Affirmative, upload and download works perfect, game launch
    without hazzle. What did change is that the game doesn't
    launch however when there is a new turn (which I like a lot
    personally :)

    It's however required to create the F and P file manually.

    best,
    frame