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!

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
TheDarkShark Posted - May 17 2004 : 12:56:30 PM
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
7   L A T E S T    R E P L I E S    (Newest First)
VBBR Posted - May 18 2004 : 10:43:08 AM
Well, some very old versions of Flash often come with PC magazines. (I got Flash 3 this way, some years ago)
EACam Posted - May 17 2004 : 7:45:05 PM
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).
VBBR Posted - May 17 2004 : 2:25:21 PM
I created the CAB here with VB6 and the error persisted...
Dan Posted - May 17 2004 : 2:16:01 PM
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...


VBBR Posted - May 17 2004 : 1:56:36 PM
Oh yeah nice guess...
And it's not a "black" square, it's a "blank" one...
TheDarkShark Posted - May 17 2004 : 1:22:49 PM
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...
VBBR Posted - May 17 2004 : 1:06:41 PM
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.

VBGamer © Go To Top Of Page
This page was generated in 0.09 seconds. Snitz Forums 2000

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