Online snake game, help needed!
TheDarkSharkHi 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. [img]http://2z.users.whitehat.dk/screenshot.JPG[/img] 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: [url]http://2z.users.whitehat.dk/[/url] Help would be great appriciated, thanks -DarkShark
VBBRWhy 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.
TheDarkSharkI 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...
VBBROh yeah nice guess... And it's not a "black" square, it's a "blank" one...
DanYou 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...
VBBRI created the CAB here with VB6 and the error persisted...
EACamUm...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).
VBBRWell, some very old versions of Flash often come with PC magazines. (I got Flash 3 this way, some years ago)