GPWiki.org
GPWiki.org
It is currently Mon May 20, 2013 12:49 am

All times are UTC




Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Sun Nov 09, 2008 1:47 am 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Hello, im not exactly sure what category this falls into so I put it into off-topic. Feel free to change it, if its necessary.

To start things off, I've already got a website domain & server that does allow frontpage extensions.

I've also got a VB .NET game I want to play browser based on my website. I see .NET has a publishing tool, but when I give .NET my domain name and web page name and click publish it doesn't do anything. So what exactly am I doing wrong? Can someone help me get this .NET game played on my web browser, please?

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 3:01 am 
Double Guru
User avatar

Joined: Fri Aug 12, 2005 8:58 am
Posts: 2009
Location: LA, CA
.Net does not mean you can embed it into web pages, for that you will want silverlight. As for publishing things to the web you don't want to give it your webaddress as it will try to read it like a folder. You will want to publish it for the web and save that to the disk then move those folders to your site via ftp or whatever method your host offers.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 3:16 am 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Seoushi wrote:
.Net does not mean you can embed it into web pages


I know. :)

Seoushi wrote:
you will want silverlight.


Will this require me to learn more things? Or is this like .NET?

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 8:40 am 
P2k
User avatar

Joined: Tue Aug 23, 2005 5:11 am
Posts: 2145
Silverlight is like Flash, except it is .NET-based (but you will probably still have to learn more).

The "publish" in .NET is for making ClickOnce apps (which are really not browser based, they just launch from a browser).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 4:50 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Is there a way to import a .Net application into silverlight? For example say I built a(n) application in VB 6. And I wanted to import it into VB .NET all I would need to do is open the file in VB. NET and it would upgrade it to a newer version of VB.

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 5:06 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
It's unlikely to work. They might have the same name but they're not meant to be compatible languages. (VB6 vs. VB.NET)

There are programs which can convert for you, but they are (afaik) commercial and/or heavily restricted shareware.

What you can do... and I've done it myself, is to compile your VB6 code as an activex object (.ocx) and this can run in a browser, as an embedded object in a webpage, but only IE.

There are some restrictions on what it can do though. But from what I see of Elemental Allah, I think it could be made to work, but without sounds... Unless you embed the sounds also, but I've never tried embedding sounds into an activex control. :)


Last edited by Jasmine on Sun Nov 09, 2008 5:40 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 5:28 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Jasmine wrote:
It's unlikely to work. They might have the same name but they're not meant to be compatible languages. (VB6 vs. VB.NET)

There are programs which can convert for you, but they are (afaik) commercial and/or heavily restricted shareware.

What you can do... and I've done it myself, is to compile your VB6 code as an activex object (.ocx) and this can run in a browser, as an embedded object in a webpage, but only IE.

There are some restrictions on what it can do though. But from what I see of Elemental Allah, I think it could be made to work, but without sounds... Unless you embed the sounds also, but I've never tried embedding sounds into an activex control. :)


That sounds cool, but im using VB .NET can I still make it activex? And how do I compile this activex from .NET? and how do I embed this into my webpage? I got many questions, sorry. :lol

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 5:40 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
Madgamer101 wrote:
That sounds cool, but im using VB .NET can I still make it activex? And how do I compile this activex from .NET?


I dont know sorry. I don't use the platform. But in vb6, you delete all your application forms after transfering all content into an activex control. This is available alongside the "create new project" option. Activex forms look just the same as regular forms, but without a title-bar, and the projects compile to ocx instead of exe.

Quote:
and how do I embed this into my webpage? I got many questions, sorry. :lol


That's ok :)

You upload the .ocx to your webspace and then place a reference to it in your html code, wherever you want the game to appear.

clicky




If you want to send me the source code for your game, I'll be happy to look through it and give you a better opinion.

By the way, the download link on your site is mistyped 'http://http://blahblahblah'


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 8:12 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Quote:
I dont know sorry. I don't use the platform. But in vb6, you delete all your application forms after transfering all content into an activex control. This is available alongside the "create new project" option. Activex forms look just the same as regular forms, but without a title-bar, and the projects compile to ocx instead of exe.


I see, VB 6 has a activex application. But in .NET I dont see that, all I see is a standard application, class library, WPF Application, WPF Browser Application, and a console application. So I dont exactly know what to do. Other people are saying silverlight will solve my problem, so im not sure where to go at this point.

Quote:
If you want to send me the source code for your game, I'll be happy to look through it and give you a better opinion.


What do you mean?

Quote:
By the way, the download link on your site is mistyped 'http://http://blahblahblah'


:lol yeah your right, I need to change that.

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 8:23 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
Madgamer101 wrote:
I see, VB 6 has a activex application. But in .NET I dont see that


Then I don't know. Activex is being phased out, so it may not be supported in .net Try looking in the help for vb.net and search for "activex" and see what it says. However, I doubt that activex support will be taken out of IE for a few years yet, so it is usable.

Quote:
Other people are saying silverlight will solve my problem, so im not sure where to go at this point.


That will work, but it isn't popular, (and I can't see it getting much more popular any time soon.) So not very many visitors to your site will be able to play your games online.

Quote:
Quote:
If you want to send me the source code for your game, I'll be happy to look through it and give you a better opinion.


What do you mean?


If you want to convert your game into vb6, and compile it as an activex component, then I can look through your program for you to see if it will be easy /possible... if you want me to. But for that I will need your source code. ie, the vb files which you edit, which are uncompiled.

:)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 8:43 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Quote:
If you want to convert your game into vb6, and compile it as an activex component, then I can look through your program for you to see if it will be easy /possible... if you want me to. But for that I will need your source code. ie, the vb files which you edit, which are uncompiled.

:)


How do you downgrade .NET to VB 6? :lol

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 8:50 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
Madgamer101 wrote:
How do you downgrade .NET to VB 6? :lol


By manual conversion of source. There are enough similarities to make it straight forward, but it all depends on how you made your game. Which is what I was going to check out for you. :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 9:10 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Jasmine wrote:
Madgamer101 wrote:
How do you downgrade .NET to VB 6? :lol


By manual conversion of source. There are enough similarities to make it straight forward, but it all depends on how you made your game. Which is what I was going to check out for you. :)


Your not gonna want to go through 13k+ of code. :rofl

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 9:13 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
Madgamer101 wrote:
Your not gonna want to go through 13k+ of code. :rofl


So don't send me it then :D But 13k+ isn't that much to scan through.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 9:36 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Jasmine wrote:
Madgamer101 wrote:
Your not gonna want to go through 13k+ of code. :rofl


So don't send me it then :D But 13k+ isn't that much to scan through.


14,193 lines of code to be exact. :D So you want me to send you the code? Any website you prefer me to put it on?

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 10:24 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
yeah go on. :) Stick it on here, or on your own web page.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 10:31 pm 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Jasmine wrote:
yeah go on. :) Stick it on here, or on your own web page.


I am going to private message you this. Dont want anyone to steal it.

Dont get alarmed there is alot of gooby gaga code ... :lol

Im still a beginner programmer and still need alot of work to be better.

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 09, 2008 11:58 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
Madgamer101 wrote:
Dont get alarmed there is alot of gooby gaga code ... :lol

Im still a beginner programmer and still need alot of work to be better.


Ok. I've looked through your program code. :) I think it would be fairly straight forward to port to vb6, because you've used all standard language.

However:
- All forms will need drawing out as vb6 forms.
- Sounds will need embedding.
- Graphics will need embedding.

Also if you want to compile into an activex component, you'll only have 1 form, so... frames :)



Also, you really need to learn to use functions as your next learning step. You've got some enormous lists of If.. EndIf statements in there that could easily be compressed. The stars and xp variables you're defining there could easily be defined with a function with 100 return values, rather than 100 separate conditional tests. :) You've got that going on in three or four places I see.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2008 1:50 am 
411 Operator
User avatar

Joined: Sat Dec 09, 2006 4:00 am
Posts: 475
Location: Here At The Moment.
Jasmine wrote:
Madgamer101 wrote:
Dont get alarmed there is alot of gooby gaga code ... :lol

Im still a beginner programmer and still need alot of work to be better.


Ok. I've looked through your program code. :) I think it would be fairly straight forward to port to vb6, because you've used all standard language.

However:
- All forms will need drawing out as vb6 forms.
- Sounds will need embedding.
- Graphics will need embedding.

Also if you want to compile into an activex component, you'll only have 1 form, so... frames :)



Also, you really need to learn to use functions as your next learning step. You've got some enormous lists of If.. EndIf statements in there that could easily be compressed. The stars and xp variables you're defining there could easily be defined with a function with 100 return values, rather than 100 separate conditional tests. :) You've got that going on in three or four places I see.


Yeah I know I could compress alot of stuff (probably save me 10k lines of code! :rofl ) I need to learn functions. So what would be my next step to get this thing browser based?

_________________
"They don't make bugs like Bunny anymore." â€â€


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 10, 2008 12:08 pm 
Corpse Bride
User avatar

Joined: Tue Jul 01, 2008 11:44 pm
Posts: 2216
Location: England
One thing I forgot to say is that activex controls need registering on a computer before they will run. It is easy to do this on your own computer, for testing, but to do the registering process through html (for visitors to your website) it is more difficult.

There is a step by step tutorial here


If that scares you off, then download and install silverlight , and stick with .net ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 29 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group