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

Online Map


Post New Thread Reply   
 
Thread Tools Display Modes
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-06-2013 , 07:57   Re: Online Map
Reply With Quote #11

you have to upload the unzipped folder to your webspace. if you want to add overviews you just have to convert them into JPEG and put it with the associated overview txt-file in the overviews folder.

e.g.

the maps name is de_example.bsp

then it has to look like this

<webspace root>/onlinemap/overviews/de_example.jpg
<webspace root>/onlinemap/overviews/de_example.txt

I will write an how to for it as soon as I find the time to do so
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
Daddy-K
Junior Member
Join Date: Jun 2010
Location: Romania/Mangalia
Old 03-06-2013 , 08:28   Re: Online Map
Reply With Quote #12

There are other settings that need to be made​​, that does not work.
I look only:
Quote:
An error occured please try again in a few seconds.
If you keep on having this problem the server could be offline.
Daddy-K is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-06-2013 , 08:32   Re: Online Map
Reply With Quote #13

I've made a little how-to in the first post be sure to follow the instructions. If you need more help you can send me a pm.
__________________
404 - Signature not found.
silkker is offline
Send a message via ICQ to silkker
hLiaS
Senior Member
Join Date: Aug 2011
Location: In My Holly Dreams
Old 03-06-2013 , 09:42   Re: Online Map
Reply With Quote #14

Can anyone create this _i386.so for windows .dll ??????
http://forums.alliedmods.net/showthread.php?t=60026

I find it sorry http://forums.alliedmods.net/showpos...8&postcount=15

Last edited by hLiaS; 03-06-2013 at 09:43.
hLiaS is offline
Send a message via Skype™ to hLiaS
Daddy-K
Junior Member
Join Date: Jun 2010
Location: Romania/Mangalia
Old 03-06-2013 , 14:46   Re: Online Map
Reply With Quote #15

Since I put this plugin always gives me the console:


Quote:
User 82.146.57.125:59748 Will Be Banned for rcon hacking
Bad Rcon from 82.146.57.125:59748:
rcon 1525305438 "Jack" stats
L 03/06/2013 - 21:40:10: Bad Rcon: "rcon 1525305438" Jack "stats" from "82.146.57.125:59748"
Bad rcon_password.
If you stop not show anything. How do you start and gives me these messages in the console.
Why?
Daddy-K is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-06-2013 , 15:02   Re: Online Map
Reply With Quote #16

This plugin has nothing to do with rcon. It looks like user Jack tries to "brutforce" your password. I just want to make clear two things. Is it your server? What does the server console say on server start up? Perhaps I can help you if you give me this informations.
__________________
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-06-2013 , 15:18   Re: Online Map
Reply With Quote #17

When I was saying static ; you could have kept the var inside the function. static is like a global variable but in the scope of the function. Using static out of function would mean in the scope of the plugin, but I would guess it doesn't matter really new/static here.

There are things you can do : for example, map name is not going to change, that's something you should retrieve one time. You could also put the string in a static const variable too. And instead of hardcoding the size - 1, there is a define charsmax() which does that, so if you change buffer, you don't have to changes where it's used.
Btw, why don't you concatenate all strings, and sending one socket_send(), at the end ?

Edit: Can you explain the part with the regex, not sure to understand why on the received data, you retrieve something and you send it again, can you give an example also ?
__________________

Last edited by Arkshine; 03-06-2013 at 15:38.
Arkshine is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-07-2013 , 06:12   Re: Online Map
Reply With Quote #18

Quote:
Originally Posted by Arkshine View Post
Edit: Can you explain the part with the regex, not sure to understand why on the received data, you retrieve something and you send it again, can you give an example also ?
Yup. It's because of the jQuery. jQuery sends some GET informations and they have to be sent back. For example if the request looks like:
HTML Code:
http://localhost:1107/?jsonp=jQuery191021287121100443662_1362654468020&_=1362654468081
The response has to look like:

HTML Code:
jQuery191021287121100443662_1362654468020({
     "bombpos": [ "-1372", "2736", "27", "0" ],
     ...
If you wouldn't do that jquery would act like you try to get data that's not from your source.
It's all because of the same domain policie.
__________________
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-07-2013 , 07:30   Re: Online Map
Reply With Quote #19

Ok. If it can help you, here more how I would do things, about I said above. I'm not telling you to use that (I don't even know if it works ), just you give some ideas without the redundant code and bit more efficient.


Spoiler
__________________
Arkshine is offline
silkker
Member
Join Date: May 2009
Location: Germany
Old 03-07-2013 , 08:29   Re: Online Map
Reply With Quote #20

WOW - just thank you. It seems like there are some errors but I think I can get that done Does the donate button in your signature lead to your pocket? ;)

[EDIT] sorry not some errors, one error i can open the stream via telnet but the browser can't handle it. But as I said I think I will get that done
__________________
404 - Signature not found.

Last edited by silkker; 03-07-2013 at 08:38.
silkker is offline
Send a message via ICQ to silkker
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:24.


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