Sign in to follow this  
Mythics

Unity [.net] Web Based ActiveX Controls in VB.Net / C#

Recommended Posts

This is another thread in the web development section I created based on the same subject. The reason I'm posting this in this section is because I'd like to ask if anyone has used ActiveX controls in VB.Net or C# for their browser based game development. If so, how limiting is using an ActiveX Control for data management, graphics manipulation, networking, etc? How browser specific is it? Perhaps OS limitations? I'd rather not have to learn any new languages if possible, so if an ActiveX Control could do most of the work for me.. I'd tend to lean towards it depending on just how bad the headaches are that come from it. javascript and PHP may be wonderful tools, but they're definitely not my number one choice.

Share this post


Link to post
Share on other sites
You don't want to be using ActiveX controls for browser games. ActiveX controls are generally a steaming pile of crap: they're insecure (many users disable untrusted ones by default, because they can do nasty things to an end user's computer), they're slow (I don't even know if you can P/Invoke to use BitBlt on them, and GDI is pretty horrible). The only browser that will reliably be able to view them is IE on Windows. Alternate OSes and browsers generally cannot view ActiveX controls. There is no good reason to use ActiveX outside of a limited-scope environment where you know everyone is going to be using IE on Windows.

Silverlight 2.0 (which will use a limited version of the .NET framework) is looking to be pretty nice, but its market share is currently not good at all and I would advise not relying upon it for anything quite yet. It's also currently limited to Windows and a somewhat-working Mac port; the Mono Moonlight implementation is still very sketchy last I heard (which was a bit ago so I may be out of date).

Flash is still the best choice and is not hard to learn if you want to be making browser games. It's essentially a flavor of javascript and I believe Adobe has a free Flash toolkit out there now.

Share this post


Link to post
Share on other sites
If you write the code to. Flash supports sockets; thus client/server programming is feasible. Database manipulation is the same thing. I'm sure there are libraries somewhere to facilitate it. Collision detection is just geometry, and should be the same to implement in any language.

Share this post


Link to post
Share on other sites
Quote:
Original post by EdR
If you write the code to. Flash supports sockets; thus client/server programming is feasible. Database manipulation is the same thing. I'm sure there are libraries somewhere to facilitate it. Collision detection is just geometry, and should be the same to implement in any language.


I was more or less worried about it's speed capabilities with handling all these different features. Not to mention that I'm hoping to do a rather limited number of users per area, and then having everyone pass their data to all other users rather than to a server.

Why do you suggest flash over javascript?

Share this post


Link to post
Share on other sites
Quote:
I was more or less worried about it's speed capabilities with handling all these different features.
I would bet real money that nothing you are doing is more complex or difficult than what others have done in Flash.

Quote:
Not to mention that I'm hoping to do a rather limited number of users per area, and then having everyone pass their data to all other users rather than to a server.
Web applications are almost always client/server. I think you don't quite know what you're trying to deal with here, and I think you need to do more research. I do not think a web app is what you want to be making.

Quote:
Why do you suggest flash over javascript?
Why do I suggest a hammer over a length of rubber hose when you have a nail to drive into the wall?

javascript isn't made for games. It's not portable--every browser core, be it IE or WebKit or Gecko does javascript differently. It's slow--try to make anything more complex than a very simple game (the most complex I've ever seen was Tetris) and javascript will start drooling. It is simply not javascript's "thing."

Share this post


Link to post
Share on other sites
Quote:
Original post by EdR
I would bet real money that nothing you are doing is more complex or difficult than what others have done in Flash.

You're probably right, but the only thing I've ever seen similar to what our project is going to consist of (that's been done in flash) was something like Dofus. We're going to be doing something on par with http://www.gaiaonline.com/ combined with Dofus, but the game aspect will need to be peer to peer.

Quote:
Original post by EdR
Web applications are almost always client/server. I think you don't quite know what you're trying to deal with here, and I think you need to do more research. I do not think a web app is what you want to be making.

The idea is for a browser based game, where your profile has features similar to gaiaonline or myspace profiles. The catch is that the server we'll have access to will only be for web space and the database.

To offload the resources consumed through the game part of the site, we're intending to have the server simply hold the game data and lists of all the instances of the game with which users are in each instance and their respective IP's. Then, once the user has downloaded the client, logged in, and is ready to play.. their coordinates/chat messages are passed directly to the other users within that specific instance rather than being coordinated through a server.

Quote:
Original post by EdR
Why do I suggest a hammer over a length of rubber hose when you have a nail to drive into the wall?

javascript isn't made for games. It's not portable--every browser core, be it IE or WebKit or Gecko does javascript differently. It's slow--try to make anything more complex than a very simple game (the most complex I've ever seen was Tetris) and javascript will start drooling. It is simply not javascript's "thing."


I knew nearly none of that. That's why I'm asking the questions I am. It would make sense for some of the users we'll have to not even be interested in playing the game, and rather instead simply have a profile and collect items. In that case, I can't help but think HTML/PHP would be my better choice (again, I don't know.. just assuming here).

So the game itself might be best done in flash, but would it be worth it for me to do the entire site through flash? I haven't a clue. That's assuming flash is the only decent choice for what I'm going for, which was supposed to be how my question was meant to be taken regarding javascript (but I didn't know just how bad javascript could end up being for this kind of project).

Edit/PS:
I really appreciate your help, it's a difficult subject for me to just simply Google without needing to research every term I've ever heard of regarding web programming.

Share this post


Link to post
Share on other sites
Quote:
I knew nearly none of that. That's why I'm asking the questions I am. It would make sense for some of the users we'll have to not even be interested in playing the game, and rather instead simply have a profile and collect items. In that case, I can't help but think HTML/PHP would be my better choice (again, I don't know.. just assuming here).
This is probably correct, yes. Although distributed games bring with them a host of problems you probably aren't equipped to really deal with, for the website at least a simple scripting language on the site makes more sense than Flash or anything else, because you have no need of it there.

If you insist on a distributed model for the game (which is a bad idea; client/server makes more sense in most situations where there is a persistent world or persistent records, for some pretty glaring reasons), you might as well write it as an offline application. Web apps are client/server; doing a distributed model within a system designed for client/server is difficult at best.

Quote:
Edit/PS:
I really appreciate your help, it's a difficult subject for me to just simply Google without needing to research every term I've ever heard of regarding web programming.
You're welcome. Regarding the difficulty of the subject--Googling is probably a very good place to start. Google a LOT of this stuff. Read the Wikipedia pages on the various concepts and tools you're talking about. You'll be much better equipped to discuss this topic when you know what the various aspects of it are.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Announcements

  • Forum Statistics

    • Total Topics
      628300
    • Total Posts
      2981894
  • Similar Content

    • By CpawsMusic
      Hey there! My name is Cpaws and I compose music, sound effects and overall sound design for video games and film. I'm looking to work on a horror game mainly for fun and as an addition to my portfolio. I've used Unity & Wwise before for audio implementation.
      If you're interested in working together, don't hesitate to contact me at cpawsmusic@gmail.com
      Here's a few demo reels of my past projects: 
      Here's some snippets of some quick game music I've composed: https://soundcloud.com/cpawsmusic/sets/cpaws-video-game-film-music
      Here's my portfolio/website: https://CpawsMusic.com/
      E-mail: cpawsmusic@gmail.com
    • By muhamad rabee
      My first mobile game made by unity

      iphone: https://itunes.apple.com/us/app/aa-countdown/id1314223584?ls=1&mt=8

      android: https://play.google.com/store/apps/details?id=com.mr.AACountDown

      I appreciate every suggestion
    • By Simplepg
      https://play.google.com/store/apps/details?id=simple.gplay.GamesInABox
    • By Simplepg
      https://play.google.com/store/apps/details?id=simple.gplay.GamesInABox
    • By ForgedInteractive


      Who We Are
      We are Forged Interactive, a small team of like-minded game developers with the sole purpose of making games we love! We're a team of artists, animators, programmers, level designers, writers, composers, producers, and other creative minds. We want to make games that you, the modern gamer want to play! We hope to build a community that enjoys our games as much as we love creating them. With your feedback and support we will be able to achieve that.

      About the Game
      GAME NAME is a fun, action-packed army builder with unique characters, challenges and engaging levels. Set forth on an adventure to protect friends, family and countrymen from new adversaries. Once defeated your enemies turn coat and join you in your adventures. Players can enjoy a range of troops and abilities based on their gameplay style which become more important as maps introduce more challenging terrain, enemies and bosses. Strong orc knights, dangerous shamans, and even a dragon are out on the prowl. Knowing when to fight and when to run, and how to manage your army is essential. Your actions alone decide the fate of this world.

      Previous Work by Team
      Although we are working towards our first game as a team, our team members themselves have past experience in the industry.
      This includes members who have worked on titles including:
      Final Fantasy Kingsglaive, FIFA, Xcom 2 and Civilization.

      Who are we looking for? 3D Modellers Concept Artists Marketing Specialists Level Designer

      What do we expect? Reference work or portfolio. Examples what have you already done and what projects you have worked on academic or otherwise. The ability to commit to the project on a regular basis. If you are going on a two-week trip, we don't mind, but it would be good if you could commit 10+ hours to the project each week. Willingness to work with a royalty based compensation model, you will be paid when the game launches. Openness to learning new tools and techniques
      What can we offer? Continuous support and availability from our side. You have the ability to give design input, and creative say in the development of the game. Shown in credits on websites, in-game and more. Insight and contacts from within the Industry.
      Contact
      If you are interested in knowing more or joining. Please email or PM us on Skype. Myself or Colin will reply to you within 48 hours.

      E-mail: Recruitment@ForgedInteractive.com
      Skype: ForgedInteractive

      Regards,
      David and Colin

      Follow us on:

      Facebook: https://www.facebook.com/ForgedInteractive/
      Twitter: @ForgedInteract
      Youtube: https://www.youtube.com/channel/UCpK..._as=subscriber
      Reddit: https://www.reddit.com/user/Forged_Interactive/
  • Popular Now