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

Psychostats Interface Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Fragenstein
Member
Join Date: Mar 2005
Old 04-06-2009 , 00:13   Re: Psychostats Interface Plugin
Reply With Quote #191

I had this working on Fistful of Frags (orangebox) but the menus don't appear. The only phrase that works is rank, and it's just displayed as a text message. Any ideas?
__________________
Fragenstein is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-06-2009 , 12:17   Re: Psychostats Interface Plugin
Reply With Quote #192

Quote:
Originally Posted by Fragenstein View Post
I had this working on Fistful of Frags (orangebox) but the menus don't appear. The only phrase that works is rank, and it's just displayed as a text message. Any ideas?
You probably need to add a custom gamedata file to tell sourcemod that FOF supports ShowMenu (which it does).
psychonic is offline
Fragenstein
Member
Join Date: Mar 2005
Old 04-07-2009 , 01:17   Re: Psychostats Interface Plugin
Reply With Quote #193

Quote:
Originally Posted by psychonic View Post
You probably need to add a custom gamedata file to tell sourcemod that FOF supports ShowMenu (which it does).
Where can I obtain a custom gamedata file?
__________________
Fragenstein is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-07-2009 , 08:21   Re: Psychostats Interface Plugin
Reply With Quote #194

Quote:
Originally Posted by Fragenstein View Post
Where can I obtain a custom gamedata file?
This is assuming you are running sm 1.2.0

Put the attached file in:
addons\sourcemod\gamedata\core.games\custom\

(you may have to create the "custom" directory)

Then, restart the game server.
Attached Files
File Type: txt fofmenus.txt (84 Bytes, 125 views)

Last edited by psychonic; 04-07-2009 at 08:23.
psychonic is offline
narutoramen
Junior Member
Join Date: Jan 2009
Location: UK
Old 04-07-2009 , 12:18   Re: Psychostats Interface Plugin
Reply With Quote #195

Quote:
Originally Posted by Packhead View Post
Okay, yep all it needed was a translation entry.

I'm going to skip version .7 (which I'm running on my box), and release .8... see changelog for whats new in .8

Changelog

Version .8 (.7 was used internally on my server and is not being released)
New CVAR: psychstats_details
- CVAR determines how much detail is given if you have "chat" enabled for when a user says "rank". 1 = Summary only (current rank and skill). 2 = what we displayed before (rank, skill, kills, deaths, K/D ratio and online time).

- Change to how URL works -- if you don't change the CVAR from default (null), it will not print a message at all.



The code for this plugin is rather messy, imo. I'm not sure how much more I can hack this thing to make it do what I want. What I really want this thing to do is handle a rank of 0 (when PsychoStats hasn't assigned a rank yet).. If anyone has the ability to do that I'd greatly appreciate it! I tried converting plrank into a string from the integer, but ran into some problems... converting types is always troublesome for me..

Either way, attached is version .8. Don't forget to use the cvar above if you want something useful there. NEXT DOES WORK IN THIS VERSION, MAKE SURE TO DOWNLOAD BOTH THE TRANSLATION AND PLUGIN!
I'm currently using this version, i'm interested is there a way to make it show something like... "you are ranked 10 out of xxx" - where xxx shows the total amount of players from PsychoStats?
__________________
narutoramen is offline
Fragenstein
Member
Join Date: Mar 2005
Old 04-07-2009 , 17:00   Re: Psychostats Interface Plugin
Reply With Quote #196

Quote:
Originally Posted by psychonic View Post
This is assuming you are running sm 1.2.0

Put the attached file in:
addons\sourcemod\gamedata\core.games\custom\

(you may have to create the "custom" directory)

Then, restart the game server.
Thanks very much psychonic. I'll try it and post back...
__________________
Fragenstein is offline
Fragenstein
Member
Join Date: Mar 2005
Old 04-07-2009 , 21:24   Re: Psychostats Interface Plugin
Reply With Quote #197

Works a treat, but the only problem is the menu is not coming out uniform (see attached).
Attached Thumbnails
Click image for larger version

Name:	fof_loothill0000.jpg
Views:	183
Size:	86.7 KB
ID:	40227  
__________________
Fragenstein is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-07-2009 , 22:03   Re: Psychostats Interface Plugin
Reply With Quote #198

Quote:
Originally Posted by Fragenstein View Post
Works a treat, but the only problem is the menu is not coming out uniform (see attached).
Looks like that just has to do with the font the game uses. The 1's are so much skinnier than the 0's causing the 01. and 10. spots to be offset from the other numbers.
psychonic is offline
Fragenstein
Member
Join Date: Mar 2005
Old 04-07-2009 , 22:23   Re: Psychostats Interface Plugin
Reply With Quote #199

Quote:
Originally Posted by psychonic View Post
Looks like that just has to do with the font the game uses. The 1's are so much skinnier than the 0's causing the 01. and 10. spots to be offset from the other numbers.
Any workaround for that?
__________________
Fragenstein is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-07-2009 , 22:31   Re: Psychostats Interface Plugin
Reply With Quote #200

Quote:
Originally Posted by Fragenstein View Post
Any workaround for that?
Not really.

You could manually edit the plugin to put an extra couple spaces in to go between the numbers and points, but then you still have to deal with between the points and the player names. If you really wants, you could counts the number of 1's in the points and adjust accordingly each time, but I think that would be more work than worth and a waste of resources.
psychonic 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 03:20.


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