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

Online Map


Post New Thread Reply   
 
Thread Tools Display Modes
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-15-2013 , 13:36   Re: Online Map
Reply With Quote #41

Quote:
Originally Posted by Arkshine View Post
static requestData[ 8192 ];

There is no point to use such size, since socket_send() use the AMXX buffer and the max size of the buffer is 3072.
Maybe I'm wrong but I think I bypassed it by using #pragma dynamic.
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-15-2013 , 13:49   Re: Online Map
Reply With Quote #42

It's unrelated.

From socket_sent : char* data = MF_GetAmxString( amx , params[ 2 ] , 0 , &len );

When you use MF_GetAmxString, it copies data in a buffer. The size of this buffer is 3072. It's harcoded, it's unrelated to allocating more memory.
__________________
Arkshine is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-15-2013 , 14:07   Re: Online Map
Reply With Quote #43

strange...

if I use static requestData[3072] the response looks like:
(look at the last line)

Spoiler


if I use requestData[8192] it's the complete JSON
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-15-2013 , 14:27   Re: Online Map
Reply With Quote #44

You get this output how ?
__________________
Arkshine is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-15-2013 , 14:29   Re: Online Map
Reply With Quote #45

via telnet or browser. http://85.131.227.229:8898 <-- try this.
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
doondook
Member
Join Date: Dec 2010
Old 03-16-2013 , 15:34   Re: Online Map
Reply With Quote #46

Nice plugin. Watching your demo I've found a bug. If a player puts the C4 at the end of the round it's still shown at new round.
doondook is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-16-2013 , 17:31   Re: Online Map
Reply With Quote #47

Quote:
Originally Posted by doondook View Post
Nice plugin. Watching your demo I've found a bug. If a player puts the C4 at the end of the round it's still shown at new round.
Thank you fixed it.
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-17-2013 , 10:07   Re: Online Map
Reply With Quote #48

would it be allowed to do a loop for the OnSocketReply function so that more users can connect without lagging the online view? for example:

Code:
public doMoreOften() {
	for(new i = 0; i < 16; i++ ) {
		OnSocketReply();
	}
}
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
internel
Member
Join Date: Nov 2012
Old 03-17-2013 , 10:23   Re: Online Map
Reply With Quote #49

oh wow, this is an excellent job

I'll totally recommend this to my friends and of course, I'll use it for my server, thank you
internel is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-17-2013 , 10:26   Re: Online Map
Reply With Quote #50

thank you. but best keep an eye on this thread because the plugin is still in development. there are still a few changes to be made.
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
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 08:43.


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