README.txt
changeset 15 4018ba1b0e14
parent 12 d9821f628cc6
child 16 5b3ccd27fdd3
equal deleted inserted replaced
14:41c39433d874 15:4018ba1b0e14
     1 What is this?
     1 What is this?
     2 
     2 
     3 This is a small piece of code, written in C++, that acts as a bridge between
     3 - This is a small piece of code, written in C++, that acts as a bridge between
     4 a child process and the Steamworks SDK. The child process links against a
     4 a child process and the Steamworks SDK. The child process links against a
     5 small piece of code, written in C, to facilitate communication with the
     5 small piece of code, written in C, to facilitate communication with the
     6 bridge.
     6 bridge.
     7 
     7 
     8 What would I ever need this for?
     8 What would I ever need this for?
    19 language can link to C-callable code, you can use this to wire up to
    19 language can link to C-callable code, you can use this to wire up to
    20 Steamworks.
    20 Steamworks.
    21 
    21 
    22 
    22 
    23 How does it work?
    23 How does it work?
       
    24 
       
    25 - You get a copy of the Steamworks SDK, and link steamshim_parent.cpp against
       
    26 it. You ship that program and the steam_api.dll (or whatever) with your game.
    24 
    27 
    25 - The parent process (the C++ code) gets launched as if it were your game. It
    28 - The parent process (the C++ code) gets launched as if it were your game. It
    26 initializes Steamworks, creates some pipes and launches your actual game, then
    29 initializes Steamworks, creates some pipes and launches your actual game, then
    27 waits on your game to talk to it over those pipes.
    30 waits on your game to talk to it over those pipes.
    28 
    31 
    47 
    50 
    48 - No! It's actually just enough to deal with stats and achievements right now,
    51 - No! It's actually just enough to deal with stats and achievements right now,
    49 but it can definitely be extended to offer more things. Take a look at
    52 but it can definitely be extended to offer more things. Take a look at
    50 
    53 
    51 
    54 
       
    55 How do I get the Steamworks SDK?
       
    56 
       
    57 - Go to https://partner.steamgames.com/ and login with your Steam account. You
       
    58 can agree to some terms and then download the SDK.
       
    59 
       
    60 
    52 Is there an example?
    61 Is there an example?
    53 
    62 
    54 That would be testapp.c. This example expects you to own Postal 1 on Steam and
    63 - That would be testapp.c. This example expects you to own Postal 1 on Steam and
    55 will RESET ALL YOUR ACHIEVEMENTS, so be careful running it. But hey, if you
    64 will RESET ALL YOUR ACHIEVEMENTS, so be careful running it. But hey, if you
    56 lose your work, it's a good exercise in SteamShim usage to put them back
    65 lose your work, it's a good exercise in SteamShim usage to put them back
    57 again.  :)
    66 again.  :)
    58 
    67 
    59 Questions? Ask me.
    68 Questions? Ask me.