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

Motd Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 12-06-2017 , 23:46   Motd Help
Reply With Quote #1

Hey guys, so i almost finished my Deathrun Timer plugin, but one of the things that still has to be done i showing players the motd with the records. My records are kept in nVault.

First i wanted to make motd file on my server ( from what i get from the nvault ) and show that to the player, but then i read that there is a limit of 1563 chars ( if im not mistaken ) in a motd for cs. I think i need a bit more than that, especially with some decent css, we are not barbarians.

So what are my options here?
And i heard people mentioning external web servers and if so how would i get my data there so i can make a motd and show it, im kinda confused.
Any suggestions are welcome, allowing me to show a motd with records to a player.

And of course i know its possible because it exists on countless servers, but how are people achieving it.

Thanks in advance.

Last edited by maqi; 12-06-2017 at 23:50.
maqi is offline
E1_531G
Senior Member
Join Date: Dec 2017
Old 12-07-2017 , 15:21   Re: Motd Help
Reply With Quote #2

Yes, this is limit about ~1500 chars.
Look in War3FT Mod.
You can have external CSS file. (with any size?)
In motd (html code) you only link the css file.
But, i don't know if chars from external css file are counted in final motd message. Test it.
E1_531G is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 12-07-2017 , 21:31   Re: Motd Help
Reply With Quote #3

I dont think cs motd works that way. But even with that i still need more than 1.5k chars for the html only the biggest problem are table tags, those take up 1000 chars ok their own...

I couls always write some minimalist code but thats not the point.

Last edited by maqi; 12-08-2017 at 01:01.
maqi is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-08-2017 , 07:41   Re: Motd Help
Reply With Quote #4

The limit is 1536 characters. This can probably be done by using an external database, aka saving the stats via sql or some other method and hosting the MOTD on a website.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 12-08-2017 , 11:24   Re: Motd Help
Reply With Quote #5

Ill try downloading the records with php file from ftp, and linking to that page via motd.
maqi is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 12-08-2017 , 19:58   Re: Motd Help
Reply With Quote #6

There is a plugin somwere that let's you display HTML from a webpage
Hectik17 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-08-2017 , 20:00   Re: Motd Help
Reply With Quote #7

Quote:
Originally Posted by Hectik17 View Post
There is a plugin somwere that let's you display HTML from a webpage
That's the simple part. The tougher part is transfering data between the game and web servers.
klippy is offline
maqi
Senior Member
Join Date: Apr 2017
Location: Serbia
Old 12-09-2017 , 00:54   Re: Motd Help
Reply With Quote #8

Quote:
Originally Posted by KliPPy View Post
That's the simple part. The tougher part is transfering data between the game and web servers.


I found it ;)
maqi is offline
Reply


Thread Tools
Display Modes

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 21:00.


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