The Game Creators
The Game Creators Home Online Shop Click to Login
  Hot: Christmas CompetitionNovember NewsletterModel Pack 36DB Pro Pack 2009DGS BonanzaCharacter PackFPS Creator Bonanza;
The Game Creators
WIP / Goga's URL Downloader and HTTP Server Plugins!

Go to the first page of this board Return to the Forum Menu Post Message
43 Messages - Page   of 2   
Bookmark and Share Search the Forum Next 40

Author Message
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 2nd Jun 2007 07:17     Edited: 24th Jul 2008 02:24     | link | toggle

hey all! i've been working latly on 2 plugins:
Goga's URL Downloader:
- allows you to download files from any http via darkbasic pro WITHOUGHT FREEZING up the game-play!
- you also can see the file size, download speed, how much you downloade (in bytes) and download procentage.

the Goga's HTTP Server:
- this plugin will open an http server on your local pc! so people will be able to enter any of your home-made websites by inputing the ip of yours (E.g http://127.0.0.1)
- with this plugin you will be able to control any sending/resiving data from your pc to the user!

if you still didnt understood whats http server, here is a simple example:
do you know the website http://darkbasicpro.com ? imagine that people will enter to your own website hosted by your own computer!


both of the plugins you can find here:
http://goge.byethost13.com/viewtopic.php?f=5&t=2


by the way! the plugins are not free but once ill releace the next version, or ill release an update of any of my plugins, just email me that you want the update. attach the payment of the old plugin version info and the plugin will be sent you for free in 24 hours!

Get DBP stuff here! - (plugins/models/scripts and more!)
Back to top
Goga\'s WebPage (My Projects)
Download: g plugins.rar Size: 2539 bytesReport this message as abusive
Three Score

User


Joined: Fri Jun 18th 2004
Location: behind you
Posted: 6th Jun 2007 09:51           | link | toggle

This seems pretty neat. I don't completely understand your command list though..it's a little bit too brief in some spots..

also, does this support MIME types? or http headers?(like you being able to send them yourself?)

Open86 --My Emulator (now with it's first super alpha release
I'm addicted to placebo's...I would quit but it wouldn't mean anything! lol
Back to top
JouleOS and friends Send AIM user a message
Report this message as abusive
Bmad6

User


Joined: Thu Aug 25th 2005
Location: Virginia, United States
Posted: 6th Jun 2007 16:46           | link | toggle

Yea, the command list gives me a pretty good idea of how it works, but it would be nice if we could see some source code, even if only the code for that simple .exe demo or something.
Back to top
Send AIM user a message
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 7th Jun 2007 07:57           | link | toggle

here is the demo code of the http server plugin:

+ Code Snippet
Rem Project: Demo Source
Rem Created: 5/17/2007 10:18:13 PM

Rem ***** Main Source File *****

`Creates the server
sync rate 40
ok = GHS CreateServer()
if ok = 0
   print "was unable to create the http server."
   wait key
   end
endif
global LastPath as String

`Setting connectiosn to 10 MAXIMUM
GHS SetMaximumConnections 10
`Starting the server, setting local path and setting main page of the server.
GHS StartServer
GHS SetLocalPath "html"
`using that "GHS StartAutoServ" command, the user will use the html files that in your LOCAL path.
`using "GHS "StopAutoServ" command, u will be able to control all the data that sent to the user!
GHS StartAutoServ
set dir "html"
perform checklist for files
for a=1 to checklist quantity()
if left$(Checklist string$(a ),len("index")) = "index" then GHS SetMainPage Checklist String$(a)
next a

set dir "..\"
do
cls
print "FPS: "+str$(Screen fps())
print "Server is online."
print "enter to http://127.0.0.1/ to check-it-out!"
print "press SPACE to stop the server."

`Reading HTTP Msg

`Press SPACE to STOP the server.
if spacekey()=1 and a = 0
GHS StopServer
a = 1
endif
if a = 1 and spacekey()=0 then a = 0

loop
GHS StopServer

its really simple.
btw, maybe the http server wont be able to read php or asp. but with power of DBP over http server, you will be able to make it even metter than any php

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 7th Jun 2007 08:24           | link | toggle

Sergey,remember that some people are able to rip out plugins from .exe's,and there are allways a few unfair persons on the forums.So its not the best idea to post up a command list.
Back to top
DaMoose
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 7th Jun 2007 08:35     Edited: 7th Jun 2007 08:35     | link | toggle

dont ennoy me with the securety of my plugins.. thanks.

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Silvester

User


Joined: Wed Dec 7th 2005
Location: Netherlands
Posted: 7th Jun 2007 09:03           | link | toggle

Alright,was just telling you a little fact ,however...As a software/plugin creator you should know that already.
Back to top
DaMoose
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 7th Jun 2007 11:36           | link | toggle

here is another http server feature:

lets say u typing at the addressbar something like this:
http://127.0.0.1/Hello World
then in dbp, u can do:
if AddressBar()="Hello World" then <Send Image/Text/IP/Get Time$()> or any other dbp commands!

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Digital Awakening

User


Joined: Tue Aug 27th 2002
Location: Sweden
Posted: 24th Jun 2007 10:02           | link | toggle

Sounds great! I've bookmarked this thread for later, don't have time to check this out right now.

What will the price be?


Game development made simple!
Back to top
Digital Awakening
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 24th Jun 2007 13:06           | link | toggle
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Digital Awakening

User


Joined: Tue Aug 27th 2002
Location: Sweden
Posted: 25th Jun 2007 15:19           | link | toggle

Yeah, thats not much. I can't see why you shouldn't charge at least $10 for both of them, that would still be a low price.


Game development made simple!
Back to top
Digital Awakening
Report this message as abusive
Three Score

User


Joined: Fri Jun 18th 2004
Location: behind you
Posted: 1st Jul 2007 00:50           | link | toggle

meh...there is a very big gap between free and low price..

most kids don't have a credit card to buy anything, so they wouldn't be able to buy it...

probably from $5-$20 (usd) wouldn't matter much for price, aside from that gap with free..

Robot AI|My self coded blog|

She kills puppies.
Back to top
JouleOS and friends Send AIM user a message
Report this message as abusive
FXTC

User


Joined: Sat Jul 3rd 2004
Location: CzechRepublic
Posted: 20th Jul 2007 16:09           | link | toggle

works good nice plugin

AMD X2 3800+ dual core 1024MB RAM,2x200GB hdd,GforceFX5700GT128MB,IBM21"
Back to top
www.ydsoft.eu Find user on ICQ
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 11th Sep 2007 16:34           | link | toggle

Quote: "works good nice plugin"

wich one you mean? the the downloader or the http server?
i mean, i know that both works good, but wich one you meant this time?

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 12th Sep 2007 09:02     Edited: 12th Sep 2007 15:09     | link | toggle

well there are no bugs so far at those plugins.. mods, could you please move it to "Program Announcements" thread?

[edit] nvm.

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Eevil Weevil

User


Joined: Wed Aug 1st 2007
Location: Wherever you are, I wil follow
Posted: 29th Oct 2007 12:47           | link | toggle

Ooooh.
How do you make the computer turn into a server? Just asking in a step-by-step, how does it work?
Thanks in advance,
Eevil Weevil

Impossible? Anything is impossible. Of course it's impossible, you just have to believe in it.

Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 29th Oct 2007 13:30           | link | toggle

well, its kinda hard to learn all of those stuff if you dont know neither of those languages (CPP, Pascal, etc.)

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 11th Dec 2007 17:27     Edited: 11th Dec 2007 21:48     | link | toggle

Passing in the IP as a variable to GUD DownloadFile doesn't seem to work, but it works when entering the IP directly. Have you had any problems with this?

EDIT - I moved the GUD download out of the function was in and ran it as a subroutine instead and that fixed the problem. Not the slightest clue why.
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 11th Dec 2007 22:33           | link | toggle

no, i had no problems with the downloader till now..

could u give me the code that not works? ill try to fix that

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 12th Dec 2007 11:29     Edited: 12th Dec 2007 11:33     | link | toggle

This does not work

+ Code Snippet
REM Setup

server()

download("127.0.0.1")


REM Main

do

if last$ <> GHS NewMsgText()
last$ = GHS NewMsgText()
print GHS NewMsgText()
endif

loop


GHS StopServer
end

REM User functions

function download(IP$)

if file exist("temp.txt")=1 then delete file "temp.txt"
sent$ = "http://" + IP$
GUD DownloadFile sent$,"temp.txt"
IP$ = ""
Message$ = ""

endfunction

function server()

ok = GHS CreateServer()
global LastPath as String
GHS SetMaximumConnections 1000
GHS StartServer
GHS SetLocalPath "html"
GHS StartAutoServ
set dir "html"
perform checklist for files
for a=1 to checklist quantity()
if left$(Checklist string$(a ),len("index")) = "index" then GHS SetMainPage Checklist String$(a)
next a
set dir ".."

endfunction



This does

+ Code Snippet
REM Setup

server()

download("127.0.0.1")


REM Main

do

if last$ <> GHS NewMsgText()
last$ = GHS NewMsgText()
print GHS NewMsgText()
endif

loop


GHS StopServer
end

REM User functions

function download(IP$)

if file exist("temp.txt")=1 then delete file "temp.txt"
sent$ = "http://" + IP$
GUD DownloadFile "http://127.0.0.1","temp.txt"
IP$ = ""
Message$ = ""

endfunction

function server()

ok = GHS CreateServer()
global LastPath as String
GHS SetMaximumConnections 1000
GHS StartServer
GHS SetLocalPath "html"
GHS StartAutoServ
set dir "html"
perform checklist for files
for a=1 to checklist quantity()
if left$(Checklist string$(a ),len("index")) = "index" then GHS SetMainPage Checklist String$(a)
next a
set dir ".."

endfunction





When I pass the IP to GUD download as a variable inside a function, it doesn't work. Outside of a function, or when entering the IP directly, it does work. I worked around it by putting the download in a subroutine. Thanks for your time.
Back to top
Report this message as abusive
Google Ad
Back to top
 
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 16th Dec 2007 12:32           | link | toggle

humm.. funny.. it cant be a problem with my plugin.. it could be problem only with dbpro engine.. you should report it or something >_<

cuz its only a function that you can insert into it a parameter.. so if it cant send that parameter into the plugin, that means there is a problem with dbpro..

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 16th Dec 2007 12:44           | link | toggle

Good point, I'll post it in the bug reports forum. Thank you for your time.
Back to top
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 18th Dec 2007 11:02           | link | toggle

I hate to bug you again, but do you have an example for the servers set port command? Darkbasic keeps telling me it doesn't understand the command.


For example:
+ Code Snippet
server()
GHS setportnumber 4444

do
loop

GHS StopServer


function server()

ok = GHS CreateServer()
global LastPath as String
GHS SetMaximumConnections 1000
GHS StartServer
GHS SetLocalPath "html"
GHS StartAutoServ
set dir "html"
perform checklist for files
for a=1 to checklist quantity()
if left$(Checklist string$(a ),len("index")) = "index" then GHS SetMainPage Checklist String$(a)
next a
set dir "..\"

endfunction
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 21st Dec 2007 04:05           | link | toggle

Quote: "I hate to bug you again, but do you have an example for the servers set port command? Darkbasic keeps telling me it doesn't understand the command."

looks like it works fine for me.. no problems at all..

are you sure u copied GHS.dll plugin to a current folder? (the plugins-user at DarkBasic\Compiler\ folder)

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 21st Dec 2007 14:53           | link | toggle

Yep, because everything else is working. Once port fowarded it relays files and what not perfectly, it just won't compile if I call the change port command, and tells me that it doesn't understand the command.
Back to top
Report this message as abusive
blobby 101

User


Joined: Sat Jun 17th 2006
Location: England, UK
Posted: 23rd Dec 2007 16:42           | link | toggle

the links won't open for me. shame, i really wanted this plugin! lol


thanks to deathead for the sig! please Click on it!
Back to top
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 27th Dec 2007 18:40           | link | toggle

Dbpro is still telling me that the change port command is not recognized. Like i said in my last message, the dll is in the correct spot and everything else is working. Is there any way you could post an example of the port change commands usage so i can see if I'm doing something wrong?
Back to top
Report this message as abusive
Gask

User


Joined: Sat Sep 1st 2007
Location: Cyberspace
Posted: 28th Dec 2007 15:48           | link | toggle

hi , i test your url download plugin for a longtime now and here the bug i found :

on this command :

GUD SmartDownloadBytes()

when downloading a big files sometime ( not all the time ) it restart to count at the beginning , example :

I download 75% of the file ( 40 000 ko ) it says 30 000 of 40 000 ko downloaded , one second after it say 0 of 40 000 ko downloaded
and finish at 10 000ko.

so there is a little problem , but not very a constraint ( i just make myself a function to replace yours )

The only futur feature that can be usefull for your url plugin is a multiple download and a section download.

multiple download :

i launch 4 times your plugin and i can get 4 different id to manage all my download and the Fourth file can finish before the first and so on.

section download :

I want to download a file of 5 Mo , but i find it slow ( downloading at 50ko/sec )
So i parse the file and download 0 to 2.5 Mo and 2.5 Mo to 5 , and downloading now at ( 40 and 40 , so 80 ko ) method from all the download accelerator in order to get the maximum of bandwitch ( better chance to get in priority and kill web limitation by user )
So if you can divide the same file with 10 different download , it will be very fast.
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 4th Jan 2008 03:40           | link | toggle

Quote: "the links won't open for me. shame, i really wanted this plugin! lol"
send me to sergy100@netvision.net.il so i can send you the working links..

Quote: "Dbpro is still telling me that the change port command is not recognized. Like i said in my last message, the dll is in the correct spot and everything else is working. Is there any way you could post an example of the port change commands usage so i can see if I'm doing something wrong? "
here is a 5-minuts work http server i made.
the port command works here 2..

+ Code Snippet
sync rate 40
ok = GHS CreateServer()
if ok = 0
   print "was unable to create the http server."
   wait key
   end
endif
global LastMsg as String
GHS SetPortNumber 80
GHS SetMaximumConnections 10
GHS StartServer
ns as integer
do
cls
ns = GHS NewMsgExist()
print "FPS: "+str$(Screen fps())
print "Server is online."
print "enter to http://127.0.0.1/ to check-it-out!"
print "Last Cmd: "+LastMsg
print "New Msg? :"+str$(ns)
`Reading HTTP Msg
if ns=1
   GHS ClearHtmlMsg
   GHS AddHtmlMsg "<html> Hello World!!</html>"
   LastMsg = GHS NewMsgText()
   GHS SendInfo
endif

loop
GHS StopServer


@Gask:
ill check out that bug you talking me about, and ill fix it eventually.
about multiply threading, i will do it maybe on my next URL downloader version, and about the sections, i still dont know how to do that, althought ill try to figure it out

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 4th Jan 2008 13:16           | link | toggle

I tryed your example and got the same error. I'm using upgrade 6.6 if that makes a difference. I'll try reinstalling dark basic when i get home and see if the problem persists. Thanks for your help.
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 5th Jan 2008 10:38           | link | toggle

@Luminence: if re-installing wont work, just send me your plugin purchace letter that shows you bought the plugin, and ill send you the plugin again (maybe u need to upgrade the plugin...)

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Gask

User


Joined: Sat Sep 1st 2007
Location: Cyberspace
Posted: 6th Jan 2008 17:02           | link | toggle

good to know sergey
if i find anything else i will kept you in touch , but it works pretty well for now , i didn't regret buying your products

just a question , if you make a newer version with multiple download , we need to buy again your url plugin , or you give your upgraded version for free to all user who have bought your plugin before ?

( the price is low so the two can be possible ^^ )
Back to top
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 7th Jan 2008 15:16           | link | toggle

Fully reinstalled, same problem. Where should I send my confirmation email?
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 8th Jan 2008 12:50           | link | toggle

@Gask: free for all ppl who bought the plugin
@Luminence: sergy100@netvision.net.il with Subject "<DLL Name> Product"

Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 11th Jan 2008 04:41           | link | toggle

hey all! good news! i made a new website (forum) where you are able to buy the plugins and other stuff from there..
http://goge.byethost13.com

here is the thread:
http://goge.byethost13.com/viewtopic.php?f=5&t=2

Get DBP stuff here! - (plugins/models/scripts and more!)
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
blobby 101

User


Joined: Sat Jun 17th 2006
Location: England, UK
Posted: 11th Jan 2008 12:51           | link | toggle

cool, i just bought one just wondering - what happens now? do you send a email link or something?


thanks to deathead for the sig! please Click on it!
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 11th Jan 2008 13:07           | link | toggle

@blobby 101: got the email?

Get DBP stuff here! - (plugins/models/scripts and more!)
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive
blobby 101

User


Joined: Sat Jun 17th 2006
Location: England, UK
Posted: 11th Jan 2008 13:27     Edited: 11th Jan 2008 13:28     | link | toggle

yes, thanks. very fast. great plugin as well.


thanks to deathead for the sig! please Click on it!
Back to top
Report this message as abusive
Luminence

User


Joined: Sat Jul 31st 2004
Location: Cyberspace
Posted: 12th Jan 2008 13:59           | link | toggle

I sent the email with the plugin version on Jan 8. I still havn't gotten a reply, so I was just wondering if you got the email.
Back to top
Report this message as abusive
Sergey K

User


Joined: Sun Jan 4th 2004
Location: Cyberspace
Posted: 12th Jan 2008 14:33           | link | toggle

humm.. im checking the email everyday.. dont think i got anything >_<

you sending to sergy100@netvision.net.il ?

Get DBP stuff here! - (plugins/models/scripts and more!)
Back to top
Goga\'s WebPage (My Projects)
Report this message as abusive

Go to the first page of this board Return to the Forum Menu Post Message
43 Messages - Page   of 2   
Search the Forum Next 40

This is a multi-page thread older than 30 days.
Go to the last page to check if you can reply to it.

Forum Search

Enter a word or phrase to search our Forum for:

Thread Subject Search
Search Phrase:
Search Scope: Entire forum
Just this board
 
Google Forum Search
Search Phrase:
 
Apollo v2.02


Game Creator Store
Privacy Policy AUP Top of Page