SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 17/04/2015, 11:51 AM   #11
azzerking
Gangsta
 
azzerking's Avatar
 
Join Date: Dec 2009
Location: England, Leicestershire
Posts: 492
Reputation: 70
Default Re: SATTP - SA:MP Embedded Web server

There is only one problem with this.

If the server was to crash, the website would go offline. This really is not worth it. Its also not a great idea to host the website on the same server as the sa-mp server. I know that it would be good for speed, but in a real life situation all one person needs to do to cripple your community is attack one server.

Use at your own risk, but if you can't afford a good host or are unable to buy a dedicated server, then I would say this might be a good idea for you. But I wouldn't advise using this if you plan on your community to expand in the future.

Just be smart about how you decide to build your community.

I would like to thank the creator for this plugin, as it is nice to see people go the extra mile to create something that most people wouldn't bother doing. As this may still be useful for some people.

I do hope to see this plugin, go further in development.
__________________


Web Skill: PHP, HTML, CSS, JS, RUBY, NODE.js.

Programing Skill: Objective C, C#, C++, D#, Python, Java, MySQL.

OS Skill: Windows (95 - 10), Ubuntu/Debian, Raspbian, Kali, Arch, Unix, Mac (E-MACs - Current)

Scripting Skill: LUA, Pawn, C38*
azzerking is offline   Reply With Quote
Old 17/04/2015, 01:19 PM   #12
GWMPT
High-roller
 
Join Date: Nov 2012
Location: Portugal.
Posts: 1,020
Reputation: 287
Default Re: SATTP - SA:MP Embedded Web server

The main idea of this plugin, for me, was to stream musics ingame, simple as that.
Sometimes streaming the musics from third-party services is a pain in the ass, because the service can go offline, or the Player does not have access to the same(Example: Player ISP blocked the website on ISP DNS's...; The anti-virus is dropping the connections for that website, because it can be malicious; ...)
So, for me, it's preferable to stream audio ingame directly from your sa:mp server.
At least you're aware that while the SA:MP Server is running, you can stream audio ingame.

I've tested this plugin with 5 other players online(6 with me), and the embedded Web server(mongoose, thanks cesanta!) supported well the audio streaming.

Of course there are other things We can do with this plugin... Some good, some bad.
However, I'll leave those things for the server developers imagination.
GWMPT is offline   Reply With Quote
Old 17/04/2015, 09:09 PM   #13
Abagail
High-roller
 
Join Date: Dec 2013
Location: GetPlayerPos(playerid, pos); Scripter/Mapper.
Posts: 3,524
Reputation: 437
Default Re: SATTP - SA:MP Embedded Web server

Is there a documentation for the features offered by this plugin?
Abagail is offline   Reply With Quote
Old 17/04/2015, 09:14 PM   #14
GWMPT
High-roller
 
Join Date: Nov 2012
Location: Portugal.
Posts: 1,020
Reputation: 287
Default Re: SATTP - SA:MP Embedded Web server

Quote:
Originally Posted by Abagail View Post
Is there a documentation for the features offered by this plugin?

I think I've stated what this plugin can do in the first post.
It's just an plugin which offers the possibility of hosting online content using an web server.
It's like the minimal version of apache.
GWMPT is offline   Reply With Quote
Old 02/05/2015, 12:38 PM   #15
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 69
Reputation: 2
Default Re: SATTP - SA:MP Embedded Web server

How to fix?
Quote:
500 Server Error: /bin/php-cgi /home/user2-3/server/185.25.151.44_7777/samp/Webserver/*.php: No such file or directory
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 02/05/2015, 03:05 PM   #16
GWMPT
High-roller
 
Join Date: Nov 2012
Location: Portugal.
Posts: 1,020
Reputation: 287
Default Re: SATTP - SA:MP Embedded Web server

Does the folder "WebServer" exists, as well the files you want to access?
GWMPT is offline   Reply With Quote
Old 02/05/2015, 04:29 PM   #17
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 69
Reputation: 2
Default Re: SATTP - SA:MP Embedded Web server

Yes. Index.html displays normally http://185.25.151.44:7777/
PHP file no longer works.
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 02/05/2015, 04:45 PM   #18
GWMPT
High-roller
 
Join Date: Nov 2012
Location: Portugal.
Posts: 1,020
Reputation: 287
Default Re: SATTP - SA:MP Embedded Web server

Quote:
Originally Posted by RCON1 View Post
Yes. Index.html displays normally http://185.25.151.44:7777/
PHP file no longer works.
Well, the issue with the PHP file can be caused most likely because your host/server don't have php-cgi installed.
Besides that, most likely I failed something when building the linux version, however, it worked perfectly when I tested it.

I might release a new version later today or tomorrow, which offers the possibility to set the document_root and the cgi_interpreter location, most likely solve some issues people might get.
GWMPT is offline   Reply With Quote
Old 02/05/2015, 05:34 PM   #19
RCON1
Big Clucker
 
RCON1's Avatar
 
Join Date: May 2012
Posts: 69
Reputation: 2
Default Re: SATTP - SA:MP Embedded Web server

DELETE
__________________


Kiedyś usłyszałem jedną bardzo mądrą rzecz ,że na świecie nie ma ludzi normalnych i nienormalnych ,
tylko są Ci pozamykani w zakładach i Ci którzy nie zostali przebadani .(hahahaha) ~Słoń

http://www.youtube.com/watch?v=sE1udtGN1oo
RCON1 is offline   Reply With Quote
Old 27/06/2015, 03:02 PM   #20
ShooteR1990
Little Clucker
 
ShooteR1990's Avatar
 
Join Date: Aug 2012
Location: Russia
Posts: 42
Reputation: 0
Default Re: SATTP - SA:MP Embedded Web server

I get sampgdk warnings when using this plugin.Here is the server.log data
Code:
SA-MP Dedicated Server
----------------------
v0.3.7, (C)2005-2015 SA-MP Team

[18:05:00] filterscripts = ""  (string)
[27/06/2015 18:05:00] 
[27/06/2015 18:05:00] Server Plugins
[27/06/2015 18:05:00] --------------
[27/06/2015 18:05:00]  Loading plugin: streamer
[27/06/2015 18:05:00] 

*** Streamer Plugin v2.7.7 by Incognito loaded ***

[27/06/2015 18:05:00]   Loaded.
[27/06/2015 18:05:00]  Loading plugin: SATTP
[27/06/2015 18:05:00]   |------------------------------------------|
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]   |         SATTP - SA:MP WEB SERVER         |
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]   |                    BY                    |
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]  **** WEB SERVER INITIALIZED IN THE AUXILIAR THREAD ****
[27/06/2015 18:05:00]   |         CARLOS "GWMPT" RODRIGUES         |
[27/06/2015 18:05:00]  **** LISTENING FOR CONNECTIONS ON PORT: 80 ****
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]   |      ------------------------------      |
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]   |    RELEASE DATE: Apr  7 2015 22:33:41    |
[27/06/2015 18:05:00]   |                                          |
[27/06/2015 18:05:00]   |------------------------------------------|
[27/06/2015 18:05:00]   Loaded.
[27/06/2015 18:05:00]  Loaded 2 plugins.

[27/06/2015 18:05:00] 
[27/06/2015 18:05:00] Ban list
[27/06/2015 18:05:00] --------
[27/06/2015 18:05:00]  Loaded: samp.ban
[27/06/2015 18:05:00] 
[27/06/2015 18:05:00] 
[27/06/2015 18:05:00] Filterscripts
[27/06/2015 18:05:00] ---------------
[27/06/2015 18:05:00]   Loaded 0 filterscripts.

[27/06/2015 18:05:00] 
----------------------------------
[27/06/2015 18:05:00]   Running LVDM ~MoneyGrub

[27/06/2015 18:05:00]          Coded By
[27/06/2015 18:05:00]             Jax
[27/06/2015 18:05:00] ----------------------------------

[27/06/2015 18:05:00] Number of vehicle models: 48
[27/06/2015 18:05:10] [connection] 127.0.0.1:62245 requests connection cookie.
[27/06/2015 18:05:11] Incoming connection: 127.0.0.1:62245 id: 0
[27/06/2015 18:05:11] [sampgdk:warning] Index mismatch for OnIncomingConnection (-10007 != -10006)
[27/06/2015 18:05:11] [join] Kevin_Nash has joined the server (0:127.0.0.1)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerStateChange (-10037 != -10035)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerInteriorChange (-10026 != -10024)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerStateChange (-10037 != -10035)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerInteriorChange (-10026 != -10024)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:19] [sampgdk:warning] Index mismatch for OnUnoccupiedVehicleUpdate (-10047 != -10045)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamOut (-10056 != -10053)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamOut (-10056 != -10053)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamOut (-10056 != -10053)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamIn (-10055 != -10052)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnVehicleStreamOut (-10056 != -10053)
[27/06/2015 18:05:20] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:21] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:22] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:23] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:24] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:25] [sampgdk:warning] Index mismatch for OnPlayerUpdate (-10042 != -10040)
[27/06/2015 18:05:25] [part] Kevin_Nash has left the server (0:1)
UPD: No warnings without streamer plugin.
__________________
Best wishes, ShooteR1990
Play in SA:MP since 2009 / Pawn scripting since 2010
Do not pm me.
ShooteR1990 is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] SATTP - SA:MP Web Server GWMPT Lançamentos/Releases 21 09/04/2015 06:57 PM
[Projeto] SATTP - HTTP PLUGIN GWMPT Português/Portuguese 36 05/04/2015 09:09 PM
Embedded Colours! Chrillzen Scripting Help 3 07/11/2013 07:02 PM
Embedded colours Luis- Scripting Help 5 08/08/2012 05:13 PM
Embedded color healp Unknown123 Help Archive 3 23/04/2011 10:23 PM


All times are GMT. The time now is 05:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.