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 / How to turn your DBP game into a web game!

Author
Message
SCP
16
Years of Service
User Offline
Joined: 17th May 2010
Location:
Posted: 21st Jul 2010 08:23
Now I'm not sure if someone made a post on this already, but hey, thought I might as well. Using a nice tool called Web Game Builder, you can use the DBP exe you create and put it right on your HTML site.

Note: Keep in mind the memory your game holds. I have only tested this with a small 2D game made with DBP.

Tools:
Dark Basic Pro
Web Game Builder

Here is a direct download to Web Game Builder- http://www.promotionsoft.com/web-game-builder/webgamebuilder.exe

Save it and install the program.

Run the program.

You should now see this screen:

Press Next.

Now you should see this screen:

When you press Browse, you are browsing for your game's file directory. If many of you have installed mmo's, you realize when you install the directory, you are installing a folder that consists the games:
Music
Graphics
EXE
etc

With DBP, the EXE holds the game's coding. It does not take the graphics or music with it. This is an example of what I have in the browsed folder:


The EXE and graphics files are basically what is needed for a 2D game. If your game involves sounds or music, they should be in there too.
(I have yet to research and see how this works on 3D games)

Once you've selected the game's file directory, press next:

Next you want to browse for the game's EXE, (AKA: compiled code to run)

Press Browse, and go into the game's file directory you selected earlier. Then select the game's EXE.
You can fill out the other 3 boxes, but they're optional.
Then press Next:

The next screen is just an edit of the loading screen. Because the player isn't directly downloading the game, the loading bar shows how much the game is loaded to play on the site.

On the next screen press Build:

And wait for it to compile....


Now don't rush to the first button you think is right. Press Output:

A new window will open. This is the output folder of the new builded html site with your game in it.

Double click to open the Run html site.

Now here's the thing. As you can see, Google Chrome is my default Internet Browser. But even as I'm writing this, I'm using Internet Explorer (the version of IE I'm using is not that high, and I will never update). This is what happens when I run it using Google Chrome:
http://i530.photobucket.com/albums/dd345/yiee85/wbgpic11.png
It won't play =[ Missing a plug-in for Google Chrome.
This is what happens when I use Internet Explorer:

Works like a charm. Now I'm not exactly sure what plug-in I have in IE that I don't have in Google Chrome that's making it work, but if you know, please state it.

Now if it's working with you right now, so far so good. However, before you start messaging all you friends and linking them to your Program Files, you have to understand that the html you created, will only work on your computer unless you make your friend download it. And this is what we are trying to avoid. Whether it's more effective or not.

You have to view the source of the created HTML file, and copy paste it to whatever site you're using.
NOTE: YOU HAVE TO MAKE SURE EVERY(!!!!!!!!!!) SINGLE FILE IN THE FOLDER IS IN THE SAME FOLDER AS THE HTML FILE!!!
So that means when your creating the html on your site, the rest of the zips such as SCPong1, vzl_img, and loadgame_et should be in the same directory!

Once you're done, now you can go tell your friends the new html site you created (with the game in it)

I tested it with 5 people.
1 using Mozilla Firefox and didn't work, but then used IE and it worked.
3 used IE immediatly and it worked.
Last one told me it didn't work at all, IE or not. I did not know why.
If you'd like to test the game, I editted Daygamer's Improved Pong source. I added Graphics and Upgrades and stuff.
I should probably make a Credits button to credit him, but I'm not done with it yet. It's in a pretty nice stage though.
Anyway here is the link:
http://shadecyberplatinum.webs.com/SCPong/run.html

Now once again, I don't know if someone posted something like this, exactly, or better. But I didn't see anything like this for miles and I had nothing to code, so I told myself might as well.

Now this may not be as effective as someone actually downloading all the files but, it keeps them from touching the graphics and editting them, and it's much less of a bother.

Leave Goto alone! You're lucky it'll even store for you -system error-
Why is it when I offset a sprite, it keeps fighting back! Just stay put already!!!
baxslash
Valued Member
Bronze Codemaster
19
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 21st Jul 2010 12:00
Interesting, I'll have a look into this!

Diggsey
20
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 21st Jul 2010 13:04 Edited at: 21st Jul 2010 13:04
You need ActiveX to play it, which only IE supports. (Although it may be possible to get an ActiveX plugin for other browsers)

[b]
SCP
16
Years of Service
User Offline
Joined: 17th May 2010
Location:
Posted: 21st Jul 2010 17:08
Ah thanks. I've been wondering but never realized it was ActiveX.

Leave Goto alone! You're lucky it'll even store for you -system error-
Why is it when I offset a sprite, it keeps fighting back! Just stay put already!!!
Dark Dragon
19
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 23rd Jul 2010 19:43
This would be cool if I could get something on my bro's webpage. Thanks For postin' !

Programmer2000
16
Years of Service
User Offline
Joined: 19th May 2010
Playing:
Posted: 3rd Aug 2010 11:20
This is cool.

Does this work with DBC games? My friend could get some use out of this.
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 3rd Aug 2010 22:18 Edited at: 3rd Aug 2010 22:22
I tried this quite awhile ago. I could get db stuff to run, but nearly always in a normal window. It never seemed to embed unless it was extremley simple. If you have sorted a way that would be useful to know. I couldn't see what was wrong at the time.
@ programmer 2000, I should think so, FPS creator games too and more I would imagine.

http://s6.bitefight.org/c.php?uid=103081
OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 3rd Aug 2010 22:44 Edited at: 3rd Aug 2010 22:47
I tried. received only the standard BPD is not a browser-window. and even after installation on me that something had happened to the 3G modem, it says missing some dll but it worked. antivirus did not notice anything and did not say that something happened. and it was an interesting phenomenon to me. I compiled the code for the browser, put it to the internet and wanted to check. using Explorer, I went to the site and then diverted back the application still being downloaded because its size was 27 MB, I stopped the download and I needed to turn off the computer. I did it. Later when I turned, somehow he is joined explorer and asked to connect to the network of interest and I said to work autonomously. He turned around and run the application that I did not you hit ~% 60. interesting as it found full .exe file on my computer if I do not you hit.

missing DLL name is NDISAPI.dll
I just reinstalled WINDOWS and now everything is normal.

.....already beside..... for all
OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 4th Aug 2010 18:57
Yesterday after reinstalling WINDOWS I had the courage to repeat the same operation and received exactly the same result. when downloading an application from me care more information than I did. again reported missing this DLL but in fact it is for 3G modem is not needed. I had to again reinstall WINDOWS. That's it.

.....already beside..... for all
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 5th Aug 2010 22:30
I am not quite sure what you are saying RUSSIA, but if you are using a 56k modem I would suggest forgetting online games. I have not had any problem using the program other than it running the game in a seperate window rather than in the actual browser. I have had it work in the browser, but only with basic stuff such as moving a small x around the screen, dieing if it hits a 0 that was displayed. Even a basic 3d model spinning and animating however pushed it into a seperate window. There is another program called OSA kit which does a similar thing, but again I had similar issues with that.

http://s6.bitefight.org/c.php?uid=103081
OldPMan
TGC Store Seller
17
Years of Service
User Offline
Joined: 10th Aug 2008
Location:
Posted: 5th Aug 2010 22:50 Edited at: 5th Aug 2010 23:39
you do not understand me correctly. my 3G modem gives the rate of 3.6 MB per second. I look at it on YOUTUBE video in better quality. that's not the speed. the fact is that when you first start the application requests EXPLORER install ACTIVEX component after installation from which it takes me more information than comes to me. In this case, my modem is desperately trying to find NDISAPI.DLL although this dll it is absolutely not needed than ever. and only after you install ACTIVEX component, it requires this DLL. Though not find works well with this. but any click on any button in the Control Panel modem pops Message "can not find NDISAPI.DLL" click OK and continue to work on. really makes no difference to me in any window open in browser-based program or separately. simply confused by the appearance here after message after you install ACTIVEX component. I have already reset twice WINDOWS and more do not want to. I do not trust this software - with something not clean. By the way, I learned what is needed this dll - its purpose is to track and monitor any network flows.



if you can find in their own folder WINDOWS \ SYSTEM32 \ this DLL and try to postpone it from that folder, or delete and you do not get why the system tells you "can not be removed because fi is used" or "remove write protection " KNOW your network flows are tracked

.....already beside..... for all
DVader
22
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 6th Aug 2010 00:36
If your computer has the file ‘ndisapi.dll’ on it, your pc may be infected with a variant of the bagz.b worm. I have no such problems on my system after using the program, and I checked believe me lol! Perhaps OSA Kit would be better for you. Obviously with active x controls the game still needs to be downloaded to your sytem, that is it's main flaw. Still a lot of people use it, despite firefox dropping support on newer versions of its browser.

http://s6.bitefight.org/c.php?uid=103081
GIDustin
18
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 21st Sep 2010 07:07
Quote: "I tried this quite awhile ago. I could get db stuff to run, but nearly always in a normal window. It never seemed to embed unless it was extremley simple."


Having the same problem. I wonder what commands cause it to pop into a new window?

Login to post a reply

Server time is: 2026-07-22 12:41:33
Your offset time is: 2026-07-22 12:41:33