Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, dr_panther, Quad), 935 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Need help with Steam Greenlight, steamworks integration #461212
07/29/16 02:14
07/29/16 02:14
Joined: Apr 2002
Posts: 1,246
ny
jumpman Offline OP
Serious User
jumpman  Offline OP
Serious User

Joined: Apr 2002
Posts: 1,246
ny
Hi everyone!

My game recently got greenlit on steam! But I am in a conundrum frown

My game was done in A6 gamestudio, and I dont know if anyone still knows/supports C-script anymore. I need help on trying to get steamworks integrated into my game, but I have absolutely no idea where to start. Do you or anyone else you know, know how to put the steamworks plugin into your game, as well as getting it to work in Cscript?

thank you for taking the time.

Re: Need help with Steam Greenlight, steamworks integration [Re: jumpman] #461219
07/29/16 11:30
07/29/16 11:30
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I think preacherX's project was also in C-Script and on Steam. Maybe PM him.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Need help with Steam Greenlight, steamworks integration [Re: alibaba] #461326
08/01/16 15:44
08/01/16 15:44
Joined: Apr 2002
Posts: 1,246
ny
jumpman Offline OP
Serious User
jumpman  Offline OP
Serious User

Joined: Apr 2002
Posts: 1,246
ny
thank you alibaba!

Re: Need help with Steam Greenlight, steamworks integration [Re: jumpman] #461328
08/01/16 18:00
08/01/16 18:00
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
No Problem laugh Hope you solved it and notify us when you have your project up!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Need help with Steam Greenlight, steamworks integration [Re: alibaba] #461332
08/01/16 21:24
08/01/16 21:24
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
There are many ways to hook your game, if you need some hints tell me.
I guess it can be compiled to a dll which can be loaded to your game.

Last edited by Ch40zzC0d3r; 08/01/16 21:27.
Re: Need help with Steam Greenlight, steamworks integration [Re: Ch40zzC0d3r] #461334
08/02/16 08:37
08/02/16 08:37
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
I'd be interested in how steamworks could be implemented aswell. I'm not using cscript, though.


POTATO-MAN saves the day! - Random
Re: Need help with Steam Greenlight, steamworks integration [Re: Kartoffel] #461337
08/02/16 10:32
08/02/16 10:32
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline
Serious User
Reconnoiter  Offline
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Me too, also no cscript. Perhaps we can sticky this thread or a new thread with the solution?

Re: Need help with Steam Greenlight, steamworks integration [Re: Reconnoiter] #461340
08/02/16 11:21
08/02/16 11:21
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Yeah. And I'm not asking for a full implementation ( unless there already is one grin )
The problem is that I have no idea how working with (and creating) a .dll file for something like that works.


POTATO-MAN saves the day! - Random
Re: Need help with Steam Greenlight, steamworks integration [Re: Kartoffel] #461341
08/02/16 11:38
08/02/16 11:38
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Using the SDK is pretty simple.
You download it here:

Steamworks SDK download: https://partner.steamgames.com
Login with your steam credentials and grab the newest SDK.

Now you extract it somewhere.
Create a new C++ project (I recommend Visual Studio)
Settings are Win32 Console Application.
Never click finish but click next.
On the next page you check the "Dynamic Linking Library" checkbox and if you want the "Empty" checkbox.
Dont forget to include the engine SDK if needed!

In the new project you have to include the SDK header:
Code:
#include "steamworks_sdk_137\sdk\public\steam\steam_api.h"



The next step is integrating the code from the API into the new DLL:
Code:
#pragma comment (lib, "steam_api.lib")


It is located at "sdk\redistributable_bin"

Now you can access all the functions from the SDK.
To initialize the Steam API you have to put this code into your DLL exported init function:

Code:
if (SteamAPI_RestartAppIfNecessary(k_uAppIdInvalid))
{
	// if Steam is not running or the game wasn't started through Steam, SteamAPI_RestartAppIfNecessary starts the 
	// local Steam client and also launches this game again.
	
	// Once you get a public Steam AppID assigned for this game, you need to replace k_uAppIdInvalid with it and
	// removed steam_appid.txt from the game depot.

	return 0;
}

// Init Steam CEG
Steamworks_InitCEGLibrary();

if(!SteamAPI_Init())
{
	MessageBoxA(0, "Steam API Error!", "Failed to initialize the Steam API!", MB_OK);
	return 0;
}

if(!SteamUser()->BLoggedOn())
{
	MessageBoxA(0, "Steam API Error!", "You are not running Steam or you are not logged in!", MB_OK);
	return 0;
}

// do a DRM self check
Steamworks_SelfCheck();

SteamController()->Init();

...

// Shutdown the SteamAPI
SteamAPI_Shutdown();

// Shutdown Steam CEG
Steamworks_TermCEGLibrary();



Look at the example project for more code.

Last edited by Ch40zzC0d3r; 08/02/16 11:44.
Re: Need help with Steam Greenlight, steamworks integration [Re: Ch40zzC0d3r] #461356
08/02/16 19:34
08/02/16 19:34
Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
Kartoffel Offline
Expert
Kartoffel  Offline
Expert

Joined: Jun 2009
Posts: 2,210
Bavaria, Germany
thanks for the explanation laugh


POTATO-MAN saves the day! - Random
Page 1 of 2 1 2

Moderated by  checkbutton, mk_1 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1