AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SteamTools (https://forums.alliedmods.net/forumdisplay.php?f=147)
-   -   SteamTools not loading on Synergy (SM 1.6.3) (https://forums.alliedmods.net/showthread.php?t=252631)

asherkin 12-07-2014 15:38

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
There is no such thing as Source 2009 any more, the 4 games that used it got split into distinct engine branches (TF2, HL2:DM, CS:S, and DoD:S), and then a SDK was forked off of as well to become SDK 2013 (which is what Synergy uses as of a recent update). All those branches have continued development separately and SteamTools only follows TF2, thus Synergy is indeed not supported. That said, based on the thread you linked and the fact it loads with 1.6.2, your error is almost certainly down to a SourceMod issue and nothing to do with SteamTools. I also suggest not calling people idiots when you're incorrect (or ever, really).

Sarabveer 12-07-2014 16:41

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Quote:

Originally Posted by asherkin (Post 2232279)
There is no such thing as Source 2009 any more, the 4 games that used it got split into distinct engine branches (TF2, HL2:DM, CS:S, and DoD:S), and then a SDK was forked off of as well to become SDK 2013 (which is what Synergy uses as of a recent update). All those branches have continued development separately and SteamTools only follows TF2, thus Synergy is indeed not supported. That said, based on the thread you linked and the fact it loads with 1.6.2, your error is almost certainly down to a SourceMod issue and nothing to do with SteamTools. I also suggest not calling people idiots when you're incorrect (or ever, really).

So is there any way to use [ANY] SteamTools Game Description Override without SteamTools, like use the SteamWorks extension instead?

bl4nk 12-07-2014 17:16

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Code:
native bool:SteamWorks_SetGameDescription(String:sDesc[]);

Sarabveer 12-07-2014 18:46

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Quote:

Originally Posted by bl4nk (Post 2232308)
Code:
native bool:SteamWorks_SetGameDescription(String:sDesc[]);

Nice, Ill try this!

Sarabveer 12-07-2014 19:04

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Ok, I did this:

PHP Code:

#pragma semicolon 1

#include <sourcemod>
#include <SteamWorks>

#define PLUGIN_VERSION "1.1.4"

new Handle:descriptionCvar INVALID_HANDLE;

public 
Plugin:myinfo = {
    
name        "[Any] SteamTools Game Description Override",
    
author      "Dr. McKay, Sarabveer(VEER™)",
    
description "Overrides the default game description (i.e. \"Team Fortress\") in the server browser using SteamTools",
    
version     PLUGIN_VERSION,
    
url         "https://forums.alliedmods.net/showthread.php?p=1583349"
};

public 
OnPluginStart() {
    
descriptionCvar CreateConVar("st_gamedesc_override""""What to override your game description to");
    
CreateConVar("st_gamedesc_override_version"PLUGIN_VERSION"SteamTools Game Description Override Version"FCVAR_DONTRECORD|FCVAR_NOTIFY);
    
decl String:description[128];
    
GetConVarString(descriptionCvardescriptionsizeof(description));
    
HookConVarChange(descriptionCvarCvarChanged);
    
native bool:SteamWorks_SetGameDescription(String:description[]);
}

public 
CvarChanged(Handle:cvar, const String:oldVal[], const String:newVal[]) {
    
decl String:description[128];
    
GetConVarString(descriptionCvardescriptionsizeof(description));
    
native bool:SteamWorks_SetGameDescription(String:description[]);
}

public 
Callback_VersionConVarChanged(Handle:convar, const String:oldValue[], const String:newValue[]) {
    
ResetConVar(convar);


But I get these errors when Compiling:
Code:

SourcePawn Compiler 1.6.3
Copyright (c) 1997-2006, ITB CompuPhase, (C)2004-2008 AlliedModders, LLC

sw_gamedesc_override.sp(24) : error 029: invalid expression, assumed zero
sw_gamedesc_override.sp(24) : warning 221: label name "bool" shadows tag name
sw_gamedesc_override.sp(24) : error 029: invalid expression, assumed zero
sw_gamedesc_override.sp(24) : warning 203: symbol is never used: "bool"
sw_gamedesc_override.sp(30) : error 029: invalid expression, assumed zero
sw_gamedesc_override.sp(30) : warning 221: label name "bool" shadows tag name
sw_gamedesc_override.sp(30) : error 029: invalid expression, assumed zero
sw_gamedesc_override.sp(30) : warning 203: symbol is never used: "bool"

4 Errors.


bl4nk 12-07-2014 19:44

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
You would just do the following, not copy the whole function declaration:
Code:
SteamWorks_SetGameDescription(description);

Sarabveer 12-07-2014 20:07

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
3 Attachment(s)
Here we go!

CVAR: sw_gamedesc_override

Sarabveer 12-07-2014 21:48

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Here the thread for the plugin on top

https://forums.alliedmods.net/showthread.php?t=252712

Ninetailz 12-25-2014 14:28

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Worked fine for me:
Quote:

sm exts load steamtools
[STEAMTOOLS] Initial loading stage complete...
[STEAMTOOLS] Trying method 1 ...
[STEAMTOOLS] Method 1 worked!
[STEAMTOOLS] Loading complete.
[SM] Loaded extension steamtools.ext.so successfully.
sm exts list
[SM] Displaying 10 extensions:
[01] Automatic Updater (1.6.3): Updates SourceMod gamedata files
[02] Webternet (1.6.3): Extension for interacting with URLs
[03] TF2 Tools (1.6.3): TF2 extended functionality
[04] BinTools (1.6.3): Low-level C/C++ Calling API
[05] SDK Hooks (1.6.3): Source SDK Hooks
[06] SDK Tools (1.6.3): Source SDK Tools
[07] Client Preferences (1.6.3): Saves client preference settings
[08] SQLite (1.6.3): SQLite Driver
[09] Top Menus (1.6.3): Creates sorted nested menus
[10] SteamTools (0.9.0+d5d0838): SteamWorks for SourceMod.

Sarabveer 12-25-2014 15:24

Re: SteamTools not loading on Synergy (SM 1.6.3)
 
Quote:

Originally Posted by Ninetailz (Post 2239932)
Worked fine for me:

For Synergy, not TF2 man.


All times are GMT -4. The time now is 08:29.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.