Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Online snake game, help needed!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

TheDarkShark
Neophyte

Denmark
2 Posts

Posted - May 17 2004 :  12:56:30 PM  Show Profile  Click to see TheDarkShark's MSN Messenger address  Reply with Quote
Hi I'm currently programming a online game, but I'm running into some troubles. The game is a classic snake clone, and it's the first real game I've programmed in Visual Basic. It's still missing some features, but I'm starting to like it.



The Project is made with a ActiveX Control and a UserControl instead of a Standard EXE and a form. The game works fine when i run it from Visual Basics compliler, but when I try to make a .cab file with the package and deployment wizzard, and load the UserControl from a HTML file nothing happens... This is odd, because it worked earlier and I can't figure out whats wrong.

You can download the project here: http://2z.users.whitehat.dk/

Help would be great appriciated, thanks -DarkShark

VBBR
Moderator

Brazil
617 Posts

Posted - May 17 2004 :  1:06:41 PM  Show Profile  Reply with Quote
Why would you develop a game using an ActiveX control instead of an EXE?

Anyway...

I have deployed the OCX to a local folder and the problem happened... a blank square meaning "not possible to load". Maybe the file needs some type of licensing?

Developing games in an OCX is kinda odd. If you want users to play the game inside a web page, as the game must be simple enough to fit this purpose, you could try making it with Flash or Director.
Also remember that ActiveX controls only work with Internet Explorer.


Whatever. Who knows...

Edited by - VBBR on May 17 2004 1:19:45 PM
Go to Top of Page

TheDarkShark
Neophyte

Denmark
2 Posts

Posted - May 17 2004 :  1:22:49 PM  Show Profile  Click to see TheDarkShark's MSN Messenger address  Reply with Quote
I know that an ActiveX controls only work with Internet Explorer. I thought about making the game in flash but i have no expirience.

I didn't get a black square, the control simply didn't load :( I've now added the frx file to the zip, does it work now?

Maby it has something to do with my browser security options...

Edited by - TheDarkShark on May 17 2004 1:36:32 PM
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 17 2004 :  1:56:36 PM  Show Profile  Reply with Quote
Oh yeah nice guess...
And it's not a "black" square, it's a "blank" one...

Whatever. Who knows...
Go to Top of Page

Dan
Squire

United Kingdom
29 Posts

Posted - May 17 2004 :  2:16:01 PM  Show Profile  Visit Dan's Homepage  Reply with Quote
You didn't say which version of VB you are using. If you are using version 5 then there is a known problem with the package and deployment wizard that requires you to manually change the generated cab file for it to function correctly. Details of the changes required can be found here : http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q176/8/10.asp&NoWebContent=1

I don't know if you are aware, you can use winzip to browse cab files.

If your security settings are preventing the control from loading IE normally informs you that controls were not loaded.

You might be able to glean some more information from the following MSDN article : http://msdn.microsoft.com/library/default.asp?url=/workshop/components/activex/packaging.asp

As long as you have the cab file correctly set up , the object tag correctly stated in the HTML and sufficient security rights to allow activex controls to run there should not be a problem...




Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 17 2004 :  2:25:21 PM  Show Profile  Reply with Quote
I created the CAB here with VB6 and the error persisted...

Whatever. Who knows...
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 17 2004 :  7:45:05 PM  Show Profile  Reply with Quote
Um...flash costs a bunch (if you get it from Macromedia, that is) and director is extraordinarily expensive (1000+) so I don't blame him for not using it (although CoffeeCup has a flash editor, but from what I've seen, it's not that great).

Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 18 2004 :  10:43:08 AM  Show Profile  Reply with Quote
Well, some very old versions of Flash often come with PC magazines. (I got Flash 3 this way, some years ago)

Whatever. Who knows...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.41 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.