Raised This Month: $51 Target: $400
 12% 

[ANY] Store by Zephyrus [1.1 - 03.01.2016]


Post New Thread Reply   
 
Thread Tools Display Modes
Trans_Am_00
Senior Member
Join Date: Jul 2013
Location: 127.0.0.1
Old 08-26-2017 , 05:10   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1251

I have a few issues for my csgo server:


1)
<FAILED> file "store_sm.ext.so": csgo/csgo/addons/sourcemod/extensions/store_sm.ext.so: cannot open shared object file: No such file or directory

How do i fix this?

2)
I have upload everything except materials & Models but how come i cannot equip name colour, name tag & message colour?

thanks in advance
__________________
-= Trans-Am =-
Quote:
Where pink owns everything
Trans_Am_00 is offline
KoltaiArmy
AlliedModders Donor
Join Date: Feb 2015
Location: Hungary
Old 08-29-2017 , 14:32   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1252

Hi guys!
Do you know how to add the spellbook magazine (tf2) to the store?
Thank you for your help,
Army
KoltaiArmy is offline
Cruze
Veteran Member
Join Date: May 2017
Old 08-29-2017 , 14:59   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1253

Do any one here knows how to add "Expiration Time"?
If yes, please share

PHP Code:
"Title Expiration"
    
{
        
"#format" "{1:d},{2:d}"
        "en" "Expires in {1}d {2}h"
    

__________________
Taking paid private requests! Contact me

Last edited by Cruze; 08-29-2017 at 15:00.
Cruze is offline
Snack Patrol
Member
Join Date: Jan 2012
Location: Earth
Old 08-31-2017 , 05:27   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1254

I am having a problem where paints and unusual effects are applying only to certain hats, like the Mann Co. Cap but not for instance my Vintage Fancy Fedora, which is most definitely paintable. Both of them are already painted too so this rules out the store's paint ability only working on hats not already painted. The unusual effects only work on certain hats too. Any idea why this is happening?

Please help!!

Last edited by Snack Patrol; 08-31-2017 at 05:27.
Snack Patrol is offline
oplkill
Member
Join Date: Aug 2015
Old 09-03-2017 , 11:46   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1255

Quote:
Originally Posted by Cruze View Post
Do any one here knows how to add "Expiration Time"?
If yes, please share

PHP Code:
"Title Expiration"
    
{
        
"#format" "{1:d},{2:d}"
        "en" "Expires in {1}d {2}h"
    

use "Plans"

Code:
"Blue"
{
	"color" "0 0 125"
	"price" "120"
	"type" "tracer"
	"Plans"
	{
		"10 days"
		{
			"price" "1"
			"time"	"1000000"
		}
		"100 days"
		{
			"price" "0"
			"time"	"10000000000"
		}
	}
}

Last edited by oplkill; 09-03-2017 at 11:46.
oplkill is offline
oplkill
Member
Join Date: Aug 2015
Old 09-04-2017 , 08:07   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1256

I making division on Grenade trails for TF2, for different classes, but its nor working and equiped items in this category dont saving, what i do wrong?

Items.txt
Code:
...
"Grenade Trails"
	{
		"Medic projectiles"
		{
			"Thin Beam[medic]"
			{
				"material" "materials/sprites/combineball_trail_black_1.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"1"
			}
			
			"Squiggly Beam[medic]"
			{
				"material" "materials/sprites/hydragutbeam.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"1"
			}
			
			"Medium Beam[medic]"
			{
				"material" "materials/sprites/orangelight1.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"1"
			}
			
			"Large Beam[medic]"
			{
				"material" "materials/sprites/spotlight.vmt"
				"price" "120"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"1"
			}
			
			"Red Laserbeam[medic]"
			{
				"material" "materials/sprites/laserbeam.vmt"
				"price" "120"
				"type" "grenadetrail"
				"color" "255 0 0 255"
				"unique_id" "grenadetrail_laserbeam_red_medic"
				"slot"	"1"
			}
			
			"Blue Laserbeam[medic]"
			{
				"material" "materials/sprites/laserbeam.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "0 0 255 255"
				"unique_id" "grenadetrail_laserbeam_blue_medic"
				"slot"	"1"
			}
		}
		"Soldier projectiles"
		{
			"RocketBeam[soldier]"
			{
				"material" "materials/sprites/spotlight.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"unique_id" "grenadetrail_laserbeam_red_sold"
				"slot"	"0"
			}
		}
		"Engineer projectiles"
		{
			"RocketBeam[engineer]"
			{
				"material" "materials/sprites/spotlight.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"unique_id" "grenadetrail_laserbeam_red_engineer"
				"slot"	"2"
			}
		}
		"Pyro projectiles"
		{
			"RocketBeam[pyro]"
			{
				"material" "materials/sprites/spotlight.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"unique_id" "grenadetrail_laserbeam_red_pyro"
				"slot"	"4"
			}
		}
		"Demoman projectiles"
		{
			"Thin Beam[demoman]"
			{
				"material" "materials/sprites/combineball_trail_black_1.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"3"
			}
			
			"Medium Beam[demoman]"
			{
				"material" "materials/sprites/orangelight1.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"3"
			}
			
			"Large Beam[demoman]"
			{
				"material" "materials/sprites/spotlight.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 255 255"
				"slot"	"3"
			}
			
			"Red Laserbeam[demoman]"
			{
				"material" "materials/sprites/laserbeam.vmt"
				"price" "1"
				"type" "grenadetrail"
				"color" "255 0 0 255"
				"unique_id" "grenadetrail_laserbeam_red_demo"
				"slot"	"3"
			}
			
			"Blue Laserbeam[demoman]"
			{
				"material" "materials/sprites/laserbeam.vmt"
				"price" "120"
				"type" "grenadetrail"
				"color" "0 0 255 255"
				"unique_id" "grenadetrail_laserbeam_blue_demo"
				"slot"	"3"
			}
		}
	}
Modified grentrails.sp
Code:
#if defined STANDALONE_BUILD
#include <sourcemod>
#include <sdktools>

#include <store>
#include <zephstocks>

#include <sdkhooks>
#endif

enum GrenadeTrail
{
	String:szMaterial[PLATFORM_MAX_PATH],
	String:szWidth[16],
	String:szColor[16],
	Float:fWidth,
	iColor[4],
	iSlot,
	iCacheID
}

new g_eGrenadeTrails[STORE_MAX_ITEMS][GrenadeTrail];

new g_iGrenadeTrails = 0;

#if defined STANDALONE_BUILD
public OnPluginStart()
#else
public GrenadeTrails_OnPluginStart()
#endif
{
#if !defined STANDALONE_BUILD
	// This is not a standalone build, we don't want grenade trails to kill the whole plugin for us	
	if(GetExtensionFileStatus("sdkhooks.ext")!=1)
	{
		LogError("SDKHooks isn't installed or failed to load. Grenade Trails will be disabled. Please install SDKHooks. (https://forums.alliedmods.net/showthread.php?t=106748)");
		return;
	}
#endif
	
	Store_RegisterHandler("grenadetrail", "material", GrenadeTrails_OnMapStart, GrenadeTrails_Reset, GrenadeTrails_Config, GrenadeTrails_Equip, GrenadeTrails_Remove, true);
}

public GrenadeTrails_OnMapStart()
{
	for(new i=0;i<g_iGrenadeTrails;++i)
	{
		g_eGrenadeTrails[i][iCacheID] = PrecacheModel2(g_eGrenadeTrails[i][szMaterial], true);
		Downloader_AddFileToDownloadsTable(g_eGrenadeTrails[i][szMaterial]);
	}
}

public GrenadeTrails_Reset()
{
	g_iGrenadeTrails = 0;
}

public GrenadeTrails_Config(&Handle:kv, itemid)
{
	Store_SetDataIndex(itemid, g_iGrenadeTrails);
	KvGetString(kv, "material", g_eGrenadeTrails[g_iGrenadeTrails][szMaterial], PLATFORM_MAX_PATH);
	KvGetString(kv, "width", g_eGrenadeTrails[g_iGrenadeTrails][szWidth], 16, "10.0");
	g_eGrenadeTrails[g_iGrenadeTrails][fWidth] = KvGetFloat(kv, "width", 10.0);
	KvGetString(kv, "color", g_eGrenadeTrails[g_iGrenadeTrails][szColor], 16, "255 255 255 255");
	KvGetColor(kv, "color", g_eGrenadeTrails[g_iGrenadeTrails][iColor][0], g_eGrenadeTrails[g_iGrenadeTrails][iColor][1], g_eGrenadeTrails[g_iGrenadeTrails][iColor][2], g_eGrenadeTrails[g_iGrenadeTrails][iColor][3]);
	g_eGrenadeTrails[g_iGrenadeTrails][iSlot] = KvGetNum(kv, "slot");
	
	PrintToServer("+grenade trail");
	if(FileExists(g_eGrenadeTrails[g_iGrenadeTrails][szMaterial], true))
	{
		++g_iGrenadeTrails;
		return true;
	}
	
	return false;
}

public GrenadeTrails_Equip(client, id)
{
	return 0;
}

public GrenadeTrails_Remove(client, id)
{
	return 0;
}

#if defined STANDALONE_BUILD
public OnEntityCreated(entity, const String:classname[])
#else
public GrenadeTrails_OnEntityCreated(entity, const String:classname[])
#endif
{
	if(g_iGrenadeTrails == 0)
		return;
	if(StrContains(classname, "_projectile")>0)
		SDKHook(entity, SDKHook_SpawnPost, GrenadeTrails_OnEntitySpawnedPost);		
}

public GrenadeTrails_OnEntitySpawnedPost(entity)
{
	new client = GetEntPropEnt(entity, Prop_Send, "m_hOwnerEntity");
	
	if(!(0<client<=MaxClients))
		return;
	
	new slot = 0;
	switch(TF2_GetPlayerClass(client))
	{
		case TFClass_Soldier:
			slot = 0;
			
		case TFClass_Medic:
			slot = 1;
			
		case TFClass_Engineer:
			slot = 2;
			
		case TFClass_DemoMan:
			slot = 3;
			
		case TFClass_Pyro:
			slot = 4;
	}
	
	new m_iEquipped = Store_GetEquippedItem(client, "grenadetrail", slot);
	PrintToChat(client, "item = %d", m_iEquipped);
	PrintToChat(client, "slot = %d", slot);
	if(m_iEquipped < 0)
		return;
		
	new m_iData = Store_GetDataIndex(m_iEquipped);

	// Ugh...
	decl m_iColor[4];
	PrintToChatAll("shooting");
	m_iColor[0] = g_eGrenadeTrails[m_iData][iColor][0];
	m_iColor[1] = g_eGrenadeTrails[m_iData][iColor][1];
	m_iColor[2] = g_eGrenadeTrails[m_iData][iColor][2];
	m_iColor[3] = g_eGrenadeTrails[m_iData][iColor][3];
	TE_SetupBeamFollow(entity, g_eGrenadeTrails[m_iData][iCacheID], 0, 2.0, g_eGrenadeTrails[m_iData][fWidth], g_eGrenadeTrails[m_iData][fWidth], 10, m_iColor);
	TE_SendToAll();
}
Attached Files
File Type: sp Get Plugin or Get Source (grentrails.sp - 176 views - 3.7 KB)

Last edited by oplkill; 09-04-2017 at 08:07.
oplkill is offline
die_man
Senior Member
Join Date: Jul 2017
Old 09-04-2017 , 16:28   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1257

Quote:
Originally Posted by oplkill View Post
use "Plans"

Code:
"Blue"
{
	"color" "0 0 125"
	"price" "120"
	"type" "tracer"
	"Plans"
	{
		"10 days"
		{
			"price" "1"
			"time"	"1000000"
		}
		"100 days"
		{
			"price" "0"
			"time"	"10000000000"
		}
	}
}
Time in sec or min?

I config, but always appears Expiration time: 0d 0min
die_man is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 09-05-2017 , 16:04   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1258

Quote:
Originally Posted by die_man View Post
Time in sec or min?
Seconds.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
Cruze
Veteran Member
Join Date: May 2017
Old 09-06-2017 , 14:02   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1259

Quote:
Originally Posted by die_man View Post
Time in sec or min?

I config, but always appears Expiration time: 0d 0min
60 = 1 minute
60*60 = 1 hour
60*60*24= 1 day
__________________
Taking paid private requests! Contact me
Cruze is offline
mlov420
Senior Member
Join Date: May 2013
Old 09-08-2017 , 17:34   Re: [ANY] Store by Zephyrus [1.1 - 03.01.2016]
Reply With Quote #1260

I have been having problems running this plugin for months now and I can't figure out why. It used to work fine no problem, then after one update it constantly crashes any server I put it on. I am installing the latest version. MM and SM are fully up to date with stable versions. Server starts up with the store plugin but crashes as soon as anyone tries to join.

There are no error logs at all. There are no standard logs at all. The console log shows absolutely nothing, just cuts off when someone attempts to join the server. This is happening on existing servers I have (5v5, surf) and completely new servers with only MM, SM, and necessary store dependencies (which in my case is only SCP).

Server(s) run fine with SCP but no Store. Server(s) runs fine with no Store gamedata (because the plugin essentially doesn't load). Tried removing store-trade, still crashes. No one else I have talked to nor anyone here seems to be experiencing this problem. I have tried as many things as I can think of. This is on Windows.

If anyone can think of anything that might help, I would appreciate some input. I wish there was some kind of logging I could provide but none of the 3 logs available (sm logs, sm error logs, and server console logs) show anything unusual. Again, was working completely fine and then just stopped working one day. I don't know if maybe I have a fucked up gamedata, I have downloaded the newest and gotten one from a friend with a working server, neither seem to work. Thanks for any help.

Last edited by mlov420; 09-08-2017 at 17:34.
mlov420 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:54.


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