Raised This Month: $ Target: $400
 0% 

[ANY] Server Redirect - A full featured server listing/hoper (v0.2.6, 24/01/2016)


Post New Thread Reply   
 
Thread Tools Display Modes
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-10-2015 , 02:23   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #241

He's right, I escaped it but using an escape char for sourcepawn. Long story short, this was not escaped at all as simplified by compiler.

Here is the fixed version.
Attached Files
File Type: zip Redirect.zip (85.1 KB, 126 views)
h3bus is offline
MrMartha
Junior Member
Join Date: Sep 2015
Location: Dallas area
Old 09-10-2015 , 17:03   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #242

Quote:
Originally Posted by h3bus View Post
He's right, I escaped it but using an escape char for sourcepawn. Long story short, this was not escaped at all as simplified by compiler.

Here is the fixed version.
That was the fix we needed!

Looks good, servers are showing up correctly and my console log isn't full of SQL Syntax errors.
MrMartha is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 09-18-2015 , 15:27   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #243

Not sure if it has to do with the new update since I installed this after but I get the follow error messages:

Quote:
L 09/18/2015 - 15:24:14: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/18/2015 - 15:24:14: [SM] Native "Format" reported: Language phrase "Choose a server" not found
L 09/18/2015 - 15:24:14: [SM] Displaying call stack trace for plugin "redirect.smx":
L 09/18/2015 - 15:24:14: [SM] [0] Line 578, redirect.sp::OnGetServerListCallBack()
L 09/18/2015 - 15:24:16: [SM] Plugin encountered error 4: Invalid parameter or parameter type
L 09/18/2015 - 15:24:16: [SM] Native "PrintToChat" reported: Language phrase "No one to follow" not found
L 09/18/2015 - 15:24:16: [SM] Displaying call stack trace for plugin "redirect.smx":
L 09/18/2015 - 15:24:16: [SM] [0] Line 748, redirect.sp::OnFollowListCallBack()
Thanks for helping out.
__________________

Last edited by SOBgaming; 09-18-2015 at 15:27.
SOBgaming is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 09-18-2015 , 17:59   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #244

Alright I got it working, is there a way I could get my hands on the source file so I can edit the messages? Or is it already in the files? If it is do you use multicolors? And what plugin should I edit to change the text and the colors?

Much appreciated!
__________________

Last edited by SOBgaming; 09-18-2015 at 18:28.
SOBgaming is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-19-2015 , 04:57   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #245

To change texts, edit translations/redirect.phrases.txt.
You can change colors if you know how they work with an advanced editor (like notepad++ or sublime text). I only know how colors work in CSGO, for other games you might find info on this forum or alliedmods wiki.
h3bus is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 09-19-2015 , 07:06   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #246

Quote:
Originally Posted by h3bus View Post
To change texts, edit translations/redirect.phrases.txt.
You can change colors if you know how they work with an advanced editor (like notepad++ or sublime text). I only know how colors work in CSGO, for other games you might find info on this forum or alliedmods wiki.
I never used this type of color codes, all I'm familiar with is hard coded multicolors. Any thread I should read to get started?

Thanks.
__________________

Last edited by SOBgaming; 09-19-2015 at 07:10.
SOBgaming is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-19-2015 , 07:29   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #247

Well this is actually the same as hardcoded colors, except that char are not parsed and replaced by a compiler.
Thus when you want a dark red message instead of writting \x02, you'll have to actually insert the ASCII char that represent the value 2 (which is STX). In Notepad++ these chars are accessible through Edit->Char Panel.

Also note that in CSGO you have to insert " \x01\x0B" at the begining of the string then the color you want. For a message in dark red you'll start with chars <space><SOH><VT><STX>.

I hope this is clear enough

Last edited by h3bus; 09-19-2015 at 07:34.
h3bus is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 09-19-2015 , 09:37   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #248

Quote:
Originally Posted by h3bus View Post
Well this is actually the same as hardcoded colors, except that char are not parsed and replaced by a compiler.
Thus when you want a dark red message instead of writting \x02, you'll have to actually insert the ASCII char that represent the value 2 (which is STX). In Notepad++ these chars are accessible through Edit->Char Panel.

Also note that in CSGO you have to insert " \x01\x0B" at the begining of the string then the color you want. For a message in dark red you'll start with chars <space><SOH><VT><STX>.

I hope this is clear enough
I believe I understand.

I'll let you know if there's anything, thanks for your support.
Hopefully valve allows askconnect some time soon
__________________

Last edited by SOBgaming; 09-19-2015 at 09:38.
SOBgaming is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 09-19-2015 , 09:40   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #249

Quote:
Originally Posted by SOBgaming View Post
Hopefully valve allows askconnect some time soon
Miracles may happen, but I don't beleive in any god ;)
h3bus is offline
SOBgaming
Senior Member
Join Date: Jul 2015
Old 09-19-2015 , 10:19   Re: [ANY] Server Redirect - A full featured server listing/hoper (v0.1.2, 29/01/2015)
Reply With Quote #250

Ok so this is a separate question, I've been testing putting ASCII in the server list (changed the IP.cfg file from ANSI to Unicode) which created and issue. Now I just put it back to normal yet it says "PRIVATE" in front of minigames server name and the max player is messed up.

Screen of the database: https://gyazo.com/c5365bf231645edbe9aabc5a8463a886

As you can see the "PRIVATE" isn't seen there.
I did exactly the same with another server, reverted it back and everything worked fine so I'm not sure what is the problem there.
__________________

Last edited by SOBgaming; 09-19-2015 at 10:25.
SOBgaming 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 06:14.


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