Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Playing A Game Inside a Web Browser

Author
Message
the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 26th Nov 2005 03:57
Hi,

I was wondering if anybody here knows if it is possible to write a program that would allow people to play a DBPro game inside an internet browser, such as Internet Explorer, without ever having to download the executable?

It would act just like those Flash games at [href]www.miniclip.com[/href], where people get to play free games without the hassle of downloading potential spyware or adware programs.

I've been looking into VB.NET or Java 2 as a platform for developing something like this, but I have little knowledge of either of those two programs. I have looked inside the DBPro manual and help tutorials but there aren't any solutions to this kind of idea with the DBPro commands.

I was hoping someone here might know if this is possible with a DBPro executable.

Thanks.



www.fishbrosentertainment.com
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 26th Nov 2005 04:23
no


Impreza
22
Years of Service
User Offline
Joined: 7th Nov 2002
Location:
Posted: 26th Nov 2005 04:27
actually..

yes there was one released a while ago on the real game tools forum and it was made in vb.net.. unfortunately I do not have a clue as to where it is.

set mipmap mode 1: set matrix texture 1,1,1: set spot light 1,0,90: set normalization on: sync rate 0: statistic(1): flush video memory
autocam off: always active on: hide mouse: set window on
Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 26th Nov 2005 05:43
@the Last Programmer - It can be done, obviously, but not with DBP. DBP makes large, fast running EXEs. Look into Java for web applets, or VB .net - they make tokenized applets that require a web plugin to run. It's free, so you've got nothing to lose but time.

Shadow Light
21
Years of Service
User Offline
Joined: 13th Sep 2003
Location: W. Ks USA
Posted: 26th Nov 2005 08:24
Just a little something that you might find interesting.

http://forum.thegamecreators.com/?m=forum_view&t=55400&b=5&p=0

To Fragg or Not To Fragg....
Yea right. Let's FRAGG EM ALL!!!!
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 26th Nov 2005 09:04
well the thing is dbp compiles exe`s and inside an exe you can pack it full of crap that destroys your pc, and plus making an exe run inside a web browser would be kinda impossible, a more feasable option would be the exe gets ran on your pc and is displayed inside the browser window so you dont have to extract it/run it and everyhing but that could make a whole new breed of viruses..


the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 26th Nov 2005 09:09 Edited at: 26th Nov 2005 09:11
@shadow light:

Yes, that is another way to implement my idea. I can create a "web-browser" using DBPro that dynamically links to my own website. Then have the user click on a video game inside that web browser window to start downloading my latest video game.

That is similar to what "Wild Tangent" does. It's clever but only if I have several hundred video games to offer the player. Maybe when I get that far I'll develop something like it.


@Cash curtis:
I'll look into Java 2, I'm certain it can create my idea. I've been searching that damn microsoft site looking for a free download of VB. NET, but no luck. I'll give it another try in the morning.

thanks.



www.fishbrosentertainment.com
Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 26th Nov 2005 09:40
Those flash games are actually downloads. How else do you think the data gets to your computer? Magic?

Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 26th Nov 2005 09:43
@Tapewormz - nobody ever said it wasn't a download. It's automatic, and starts automatically. DBP games must be downloaded and run, and they're huge.

Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 26th Nov 2005 12:37
i think u can open dbp games from browser using activex


this window will ask u if u want to install that game on the computer to play it, thats the only way u dont need to "download" the game manualy to play it..


BlueLightOnline Coming Soon. (95%)
zircher
22
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 26th Nov 2005 17:25
If you're looking for a free version of VB.NET. Go to the VB.NET Express page at...

http://msdn.microsoft.com/vstudio/express/vb/default.aspx

For me, the choice between VB.NET and Java really depends on the availablity of servers. Check with your ISP and see if they support .NET before you make a major time investment.
--
TAZ

"Do you think it is wise to provoke him?" "It's what I do." -- Stargate SG-1
Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 27th Nov 2005 00:26 Edited at: 27th Nov 2005 00:30
@Cash Curtis II
Quote: "without ever having to download the executable"


It's not automatic and it doesn't start automatically. You have to install the control, and give it permission to be used in IE. Then and only then will it automatcially start streaming data, and after it's finnished play the game. If you've ever used flash, you'll know all about making loaders which are smaller programs that run while the big program is downloading.

Right now the only popups that make it through SP2(via IE) for windows xp are the ones generated by flash via ads, and sneaky layered ads. Also, flash is an easy way to have spyware installed on your pc. If you've allowed flash in IE, some adds will auto install software that will spy on you.

You can have DarkBASIC games start this way too, if you have a control plugged into IE that allows it.

I've seen alot of sketchy stuff done with flash. I've experienced that sneaky sketchy stuff get past my browser security too, and had to alert the sites that they had advertisers that were using unsavory methods of installing spyware.

the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 29th Nov 2005 07:27
Hi,

Thanks everybody for all your input. I've picked up Visual Basic and javascript and I'll see if I can do this in either of those languages. I have a better feeling about the former, however, than the latter.

I used to make flash mx games before switching to DBPro, so I definitely do know that they load, but they load inside the browser, which is my aim for a DBPro executable.

I was really hoping that a moderator would jump in here and tell me how my idea could be implemented, or even if it has been done before.

Maybe they will soon...



www.fishbrosentertainment.com
CJB
Valued Member
21
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 30th Nov 2005 23:05
@The Last Programmer

I think an alternative would be to create some kind of plug-in for the browser that would either contain or link to your db-pro code, which would have to esentially be some kind of interpreter. Once that is installed on the client machine, your 'game' would then be a bespoke script containing all the required media and a 'program' telling the plug-in what to do with it.

I think it's a great idea. It wouldn't be as fast as a true db-pro executable, but it would still be a lot faster than a lot of the stuff I have seen for browser plug-ins.

...OR, maybe if we could have a complete DB-Pro interpreter and a way of 'compiling' the program and media into a single compressed file for delivery over the net! (maybe DB-Classic is going to make a big come-back!!!)

......OR, maybe there could be a way of compiling the code 'on the fly' once it reaches the client machine!?!?

I'm sure there is something that could be done.

Tapewormz
22
Years of Service
User Offline
Joined: 15th Sep 2002
Location: Winnipeg, Mantoba, Canada
Posted: 1st Dec 2005 13:27
If you wrote some kind of active x control for IE, then you could make it work in this way. However, DBP games tend to be quite large even when compiling a few lines of code. It's not really intended for that kind of an application. : /

Attila
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 17th Aug 2004
Location:
Posted: 3rd Dec 2005 00:26
You can run the game on the server and use terminal-server and/or citrix to put the output and the control-input on a webside
the Last Programmer
19
Years of Service
User Offline
Joined: 14th Jul 2005
Location: Abilene, TX
Posted: 12th Jan 2006 06:07
Hi,

I just found a way to get a dbpro executable to play inside a web browser. The solution is found at http://www.igloader.com. It is expensive but at least it proves it can be done.

Thanks for all those who believed.

Death to those who didn't! jk


www.fishbrosentertainment.com
Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 12th Jan 2006 06:18 Edited at: 12th Jan 2006 06:28
Quote: "The control downloads the files necessary to run the application, then when the files are downloaded it will launch the application. The control does not need to download the files every time you wish to use the application, it will only download the files again if you clear the browser cache or a newer version of the application is available"



The whole site read like an ad for diet pills - they work, to some extent, but they don't really tell you how. There is nothing technical on the entire web site about the operation of their software.

Quote: "Yes, the control software is safe. The control is digitally signed and secure and it does not record or send any information, except to request the application files from our servers."

That's sounds weird...

In order for a DBP program to work, it would have to download everything at least once. That's at least 10 mb, once. I've been waiting for 5 full minutes to play the demo game, and I'm about to click X.

I don't doubt that it works, it just doesn't seem like a good method to me. Java and .net are what you should look into for real browser based applications. Java is not hard - it's just like C++. Take a class, you'll be set.

Oh, and for browser based games, 2D is ideal. 3D just takes a lot of space and is more complicated, which is why 2D is prevelant in browser games.

[edit]*** It worked. Kind of flaky. Sometimes it works, sometimes it doesn't. Either it won't attach to the browser window or there's a license error. Here's something to note - the games are small, and make in 2D. DBP makes big fat fast DLLs. Even if you used it, I don't think DBP would be idea.

Maybe they've downloading megabytes of spyware to my computer. I think I'll run Norton now...

re faze
20
Years of Service
User Offline
Joined: 24th Sep 2004
Location: The shores of hell.
Posted: 12th Jan 2006 09:00
Quote: "@the Last Programmer - It can be done, obviously, but not with DBP. DBP makes large, fast running EXEs. Look into Java for web applets, or VB .net - they make tokenized applets that require a web plugin to run. It's free, so you've got nothing to lose but time.
"


large yes, fast welll

Cash Curtis II
20
Years of Service
User Offline
Joined: 8th Apr 2005
Location: Corpus Christi Texas
Posted: 12th Jan 2006 16:44
Quote: "large yes, fast welll "


Certainly fast enough to be useful. Part of the reason the EXEs are so big is to make it faster. Now, being Basic, there is going to be a damper on the speed. The program has to make tons of decisions on its own you'd specify in C++. And, I suspect the compiler isn't exactly a Microsoft C++ compiler and probably wastes a ton of space, but 1. It's cheap, and 2. It does a good job of packaging games into ready to run packages. In the end, we can all create playable games

Fido Gesiwuj
20
Years of Service
User Offline
Joined: 22nd Dec 2004
Location: Never Land........ ............ ........
Posted: 12th Jan 2006 21:59
If you want to make a web-based game, I would suggest learning Java, Flash or Shockwave. I'm not slagging off DB - it's amazing, but it makes EXEs which wont be able to be put in web browsers easily, I'm afraid.
Sergey K
21
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 14th Jan 2006 00:37
flash program around 20KBs
dbp program, around 10MB..
getting the differents and Now u know why u cant play dbp's games in web browsers?

Just. ...Leave me alone =/
hackinc 2000
20
Years of Service
User Offline
Joined: 2nd Dec 2004
Location: Puerto Rico
Posted: 14th Jan 2006 01:50
the las Programer i post the same like one week ago! Some one found an app made in B**tz, called grasshopper that basically do the same as igloader, but for free, Anyway I start recoding the app in DarkBasic. Chek the post http://forum.thegamecreators.com/?m=forum_view&t=68975&b=1

Login to post a reply

Server time is: 2025-06-12 11:00:27
Your offset time is: 2025-06-12 11:00:27