Raised This Month: $32 Target: $400
 8% 

Release Titles (1.1-alpha)


Post New Thread Reply   
 
Thread Tools Display Modes
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-02-2013 , 16:04   Re: Titles (1.1-alpha)
Reply With Quote #21

Quote:
Originally Posted by vodka00 View Post
Yes, there seems to be a limit of 64 characters.

line 10
PHP Code:
enum Title
{
    
String:TitleName[STORE_MAX_NAME_LENGTH],
    
String:TitleText[64]

line 128
PHP Code:
if (IsSource2009())
    {
        
json_object_get_string(json"colorful_text"g_titles[g_titleCount][TitleText], 64);
        
MoreColors_CReplaceColorCodes(g_titles[g_titleCount][TitleText]);
    }
    else
    {
        
json_object_get_string(json"text"g_titles[g_titleCount][TitleText], 64);
        
CFormat(g_titles[g_titleCount][TitleText], 64);
    } 
I would try to increase 64 to a larger number since your tag is about 160 characters. Then compile it and try to reload it, maybe it will work. Maybe better to make a back up.

OK, I have done what you suggested but I cannot compile the plugin?
I have all of the inc files included in the include folder, I have downloaded the latest 1.5 build of sourcemod but it won't compile. (I have never been able to compile an SP to and SMX before, I have tried and followed all of the tutorials.advice and info but for some reason it just wont work on my home computer, web compiler is fine but theres no inc files.)

So I dont know what to do about this.
ApexPredator is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 05-02-2013 , 18:47   Re: Titles (1.1-alpha)
Reply With Quote #22

Quote:
Originally Posted by ApexPredator View Post
OK, I have done what you suggested but I cannot compile the plugin?
I have all of the inc files included in the include folder, I have downloaded the latest 1.5 build of sourcemod but it won't compile. (I have never been able to compile an SP to and SMX before, I have tried and followed all of the tutorials.advice and info but for some reason it just wont work on my home computer, web compiler is fine but theres no inc files.)

So I dont know what to do about this.
Why can't you compile it? What happens when you try to compile it? Do you drag and drop the .sp file onto the .exe files? Either compile.exe (will compile it to compiled folder) or spcompile.exe (will compile to same folder where the .sp file is)
__________________
cw main:

cw speedruns:
vodka00 is offline
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-02-2013 , 21:33   Re: Titles (1.1-alpha)
Reply With Quote #23

when I drop it onto spcompile.exe its flashes on my screen then nothing, when I drop it onto compile.exe i get this message

//// store-titles.sp
// Internal error.

Press enter to exit ...
ApexPredator is offline
vodka00
Veteran Member
Join Date: Jun 2012
Location: Los Angeles
Old 05-03-2013 , 00:09   Re: Titles (1.1-alpha)
Reply With Quote #24

I have compiled the plugin and increased the limit to 200 characters. If you want to give it a go and let me know if that worked for you.
Attached Files
File Type: sp Get Plugin or Get Source (store-titles.sp - 118 views - 4.5 KB)
File Type: smx store-titles.smx (19.7 KB, 142 views)
__________________
cw main:

cw speedruns:
vodka00 is offline
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-04-2013 , 06:00   Re: Titles (1.1-alpha)
Reply With Quote #25

Quote:
Originally Posted by vodka00 View Post
I have compiled the plugin and increased the limit to 200 characters. If you want to give it a go and let me know if that worked for you.

Firstly I must say, thankyou very much for taking the time to compile this.

Unfortunately it did not change the titles.

i got this is error logs.

Spoiler


I don't expect anyone to fix this. but I do appreciate the attempt
I'm happy to just use it as it comes out of the box.
(UNLESS someone has it working with many colors in 1 title and wouldn't mind sharing the .smx)
ApexPredator is offline
Arrow768
Veteran Member
Join Date: Nov 2011
Location: Austria
Old 05-08-2013 , 18:12   Re: Titles (1.1-alpha)
Reply With Quote #26

I dont know if you still have this problem, but it looks like you dont have a correct json syntax in the attrs field
__________________
Arrow768 is offline
ApexPredator
SourceMod Donor
Join Date: Apr 2013
Old 05-09-2013 , 20:19   Re: Titles (1.1-alpha)
Reply With Quote #27

Quote:
Originally Posted by Arrow768 View Post
I dont know if you still have this problem, but it looks like you dont have a correct json syntax in the attrs field
You are correct. I had an an extra } at the end of a title.

When using Vodka00's plugin, there are now no error logs.
When I use a title with too many characters it seems to cut the name off in chat.
example:equip "[rainbow warrior]" while have=ing my name as apex predator.
type a "hi" in chat it appears as "[rainbo" : hi
It completely cuts off my name.
So I guess there's a limit for a reason.

Thank you both for helping.

This is a great addition to the !store.
ApexPredator is offline
SlackersUnited
Junior Member
Join Date: Jun 2013
Old 06-06-2013 , 14:21   Re: Titles (1.1-alpha)
Reply With Quote #28

Cant compile this plugin it says error 17:undefined symbol "SOURCE_SDK_CSS"
SlackersUnited is offline
Stevejobs
New Member
Join Date: Aug 2013
Old 08-04-2013 , 02:48   Re: Titles (1.1-alpha)
Reply With Quote #29

i can not seem to find the error, but everything is implemented correctly, including on the web panel. I buy a title, EG: Sir, and equip it. Nothing seems to happen, there is no "sir" title next to my name.
Stevejobs is offline
foo bar
AlliedModders Donor
Join Date: Dec 2012
Location: Canada
Old 09-25-2013 , 03:56   Re: Titles (1.1-alpha)
Reply With Quote #30

Is there a more recent version of store-titles? Compiling against 1.2-beta yields:

Quote:
store-titles.sp(76) : error 017: undefined symbol "Store_GetClientAccountID"
Checked https://github.com/alongubkin/store-...tore-titles.sp but it still uses Store_GetClientAccountID too.
__________________
[foo] bar
foo-games.com Game Mods, Plugins and Tools for Game Masters | My Github
foo bar 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 22:56.


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