Raised This Month: $ Target: $400
 0% 

TF2Items - Items with custom attributes.


Post New Thread Closed Thread   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-27-2010 , 15:47   Re: TF2Items - Items with custom attributes.
#361

I recently-ish found out that you can, the method and/or whether it can be added to TF2Items or not is currently unknown to me.

Maybe when I get back to Thailand I'll be able to look into it.
__________________
asherkin is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-27-2010 , 18:12   Re: TF2Items - Items with custom attributes.
#362

Quote:
Originally Posted by asherkin View Post
I recently-ish found out that you can, the method and/or whether it can be added to TF2Items or not is currently unknown to me.

Maybe when I get back to Thailand I'll be able to look into it.
Custom weapon names? Seriously? (OMG)
noodleboy347 is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 07-28-2010 , 04:11   Re: TF2Items - Items with custom attributes.
#363

I wish this mod didn't crash my server, it's so awesome! /sigh

Maybe It's another mod conflicting with it...
__________________
alinayg is offline
noodleboy347
AlliedModders Donor
Join Date: Mar 2009
Old 07-28-2010 , 12:45   Re: TF2Items - Items with custom attributes.
#364

Quote:
Originally Posted by alinayg View Post
I wish this mod didn't crash my server, it's so awesome! /sigh

Maybe It's another mod conflicting with it...
It works on my servers, what version of sm are you using?
noodleboy347 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-28-2010 , 13:50   Re: TF2Items - Items with custom attributes.
#365

Quote:
Originally Posted by noodleboy347 View Post
It works on my servers, what version of sm are you using?
We wen't through all that on page 34. I'll take a deeper look into the memdumps provided in 3-4 weeks when I get back to Thailand, but I don't think a minidump will contain enough info, ideally a full memory dump from a linux server with breakpad disabled is best for debugging.

Edit: That reminds me, alinayg, you're running on linux iirc? Can you try this snapshot of the extension please. This will spam your server log to hell, I only advise running it long enough to see if the crash is fixed.
__________________

Last edited by asherkin; 07-28-2010 at 13:54.
asherkin is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 07-30-2010 , 14:03   Re: TF2Items - Items with custom attributes.
#366

Tested out the new snapshot, ran it for about an hour and nothing was wrong. And Yeah I did notice it spamming the logs. But It seems to be ok now! Can't wait till the official release.
__________________
alinayg is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-30-2010 , 18:52   Re: TF2Items - Items with custom attributes.
#367

Glad it works for you.

I've decided to do a little bit of a beta of 1.4 first.
You can download it from http://hg.limetech.org/projects/tf2i...30157977c8.zip.

Significant changes in this version:
  • Less hacky method of attribute changes, now using Valve's actually CUtlVector class with a little hack to get it to not kill the server.
  • Added the ability to preserve the existing weapon attributes in tf2items.weapons.txt

This lets you do stuff like the following:

Code:
"custom_weapons_v3"
{
	"*"
	{
		"*"
		{
			"admin-flags"	"z"
			"preserve_attributes"	"1"
			
			"1"	"134 ; 4"
		}
	}
}
This would add the sparkles particle to all root admin's weapons without breaking the unlock weapon's attributes.
This is pretty experimental, so let me know if there are any issues (and if it's working ).

And yes, that should be using a hyphen not an underscore, but I've already compiled everything, I'll fix it before full release.

Overusing my new catface smiley:
__________________

Last edited by asherkin; 07-30-2010 at 20:57.
asherkin is offline
alinayg
Senior Member
Join Date: Apr 2009
Location: USA, RI
Old 07-30-2010 , 20:55   Re: TF2Items - Items with custom attributes.
#368

Quote:
Originally Posted by asherkin View Post
Stuff
Awesome, I'll test it out later to day, I wish that you added "preserve_attributes" from the beginning lol. Would have saved me a lot of time. Glad you did tho!
__________________
alinayg is offline
GoldRenamon
Guest
Old 07-31-2010 , 02:42   Re: TF2Items - Items with custom attributes.
#369

Quote:
Originally Posted by noodleboy347 View Post
Custom weapon names? Seriously? (OMG)

I'm excited for this.

asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-31-2010 , 06:16   Re: TF2Items - Items with custom attributes.
#370

Quote:
Originally Posted by GoldRenamon View Post
I'm excited for this.
I'm gonna have to stop you all here then
Although the items system has the ability for custom item names (and it works), it seems at the moment it's actually read in the client code straight from the backend, instead of going through the server. This means that TF2Items can't touch it .
__________________
asherkin is offline
Closed Thread



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 07:26.


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