Web based Game
Hi Friends.
I want to design a web based game. There is a server and two clients. Each client is a player and the server will handle the collaboration between them. I am using Netbeans and jsp.
First client one will type the url of server and gets connected. Then it has to wait until second client connects. When second client also connects, then I should update the browser window contents of client one. How can I do this?
If you did not get the quesiton, please e-mail me at [email protected] I shall explain you more clearly. Please help me at your best.
Thanks.
A server cannot push to the client, but you can use AJAX to poll to the server.
Mailing is meaningless. If you feel you have more to explain, just post it here at the dicsussion forum. It's not a contact advertising forum.
Similar Messages
-
Hello everyone,
I am currently developing a web-based game website using
Coldfusion 8 and MS SQL.
Until recentely, things have been going well. But I am now
stuck on a small issue of using an in-game skill system.
The way it works (or will work) is that your in-game
character will have a large library of skills to choose from, all
of which are accessible throughout the entire game. By choosing a
skill, your character will begin learning it over a set amount of
time (the time required for that specific skill). Your character
will, over time, generate it's own library of learnt skills - each
benefiting him or her within the game.
I hope this is all clear so far :)
So my small (but actually quite large) issue is that I'm not
sure how to go about storing this list of learnt skills.
My first instinct was to create a column within the
"characters" table in which the learnt skills would be stored as a
list, and then drawn out when actually listed on a page. But I have
heard that using lists within database tables isn't such a good
idea, and I would generally prefer another way around the issue.
My next idea was to create a table listing all of the
available skills as columns (a kind of library of every in-game
skill), then the characters would have a single row in that table
in which they have a "yes" or "no" under each skill column. These
yes or no answers would then be used to generate the library of
skills that character has. But this idea is very messy and I don't
even know how I could use this table in an SQL query...
I'd really like a simple and powerful solution for this
issue/problem, and I would be highly appreciative of anyone that
could help me!
Thanks in advance,
Aiden"Thanks a lot for your reply anyway :) and I'm sorry it
wasn't of use
to me."
Actually Dan was guiding you down the correct database
normalization
path. What you have is a classic many-to-many join. You have
many
character records and many skill records and you want to join
them such
that a character can have 0-N skills (zero to infinity) and a
skill can
be used by 0-N players.
This is done with three tables. A character table with the
basic
details of a character and a skills table with the details of
the skills
and a joining table that connects the two. At a minimum the
join tables
simple consists of two fields, a foreign key field to the
characters
table and a foreign key field to the skills table. Thus for
each skill
a character has there will be one record connecting the two
id's
together. This joining table can easily be expanded to have
other data
about the character-skill join such as when it started, what
level the
character has reached in the skill, whatever else your system
needs.
An simple Example:
Character Table
ID Name
1 Joe
2 Sam
3 George
Skill Table
ID Name
1 Hunting
2 Cooking
3 Archery
Character_Skill Join Table
CharID SkillID
1 1
1 3
2 2
3 1
3 2
3 3
Thus with basic SQL join syntax we can synthesize the data
that Joe can
hunt and shoot arrows, Sam can cook and George can do it all.
HTH
Ian -
Unable to load many web based games after installing lion
After installing Lion, I am unable to launch several online games (Pogo e.g.). What compatibility issues are being addressed?
I didn't think reinstalling was gonna do me any good except for getting rid of every single thing I have ever installed since getting this MBP. I'm thinking it has to be something that is on my computer causing this, especially since it only affects my ability to get to this one site and I only started seeing this problem yesterday.
So, I went ahead and disabled all my Chrome extensions and I don't have any Safari extensions at all. That didn't fix my issue.
I've been trying to run Sophos on here, thinking that maybe I've got a Trojan or some kind of malware, but it never seems to finish a full scan of my hard drive. That "Plugin" that I mentioned above has me very suspicious, except that whatever that is, it's been on my computer since basically when I first got it. Maybe it's malicious, or maybe it's just a poorly named piece of software. In any case, it got updated last night around 11pm, about the same time I noticed my problem. After trying everything I have, it's hard for me to overlook that as coincidence.
But, where do I go to gain more information about what that could be? I should mention that this MBP is basically my first Apple computer. I've been a PC guy (still am mostly) forever, but I finally dove in and got a Mac to start iOS development. So I'm sure there are ways to get more information than I am currently aware of.
Also, apologies if I posted this in the wrong forum. -
Kids and iMac - OK to load web-based games? This wreaked havoc on our PC's
greetings:
What, if any, are the risks in allowing my sons - when they visit Nick.com or Cartoonnetwork.com, etc.. - to download and play their games?? Many of their games launch without any plug-ins, but others require that they first download and install some little plug-in needed to play the game. ..Will my iMac then go the way of every PC I've ever owned and start becoming unstable?? What if what they load isn't intended for Mac? Again, will this screw things up and render what has been flawlessly reliable a bit less so??
Thanks in advance for you replies.I'm a school teacher and the kids are always playing online games on my Macs. Nothing to worry about. You are talking about spyware that will not effect the Mac. Wreaks havok on Windows, as you say, but the Mac will be fine.
-
2 player web-based Flash game problem
I have a two player web-based Flash game. The Flash calls a
JavaScript function on the webpage to get and store the user's IP.
Then an XML file with user's game data is loaded and parsed. The IP
address is used to identify which player is player 1 and which is
player 2 according to the XML file. There is a Java applet to send
and receive messages between the players.
The first player loads everything just fine. All the first
player's messages regarding the progress in loading different parts
of the code sent by the game for debugging are displayed in the
Java applet's text box, but none of the second player's messages
sent by the game for debugging are displayed.
The problem is that the second player's ActionScript code
appears not to be executing except that I do get a message in the
game that the XML file attempted to load but was not successful.
The IP address call is not made and no messages can be sent to the
other player. The second player's Java applet displays only the
messages for debugging that came from the first player's game and
any chat messages sent by the first player.
This problem always happens to the second player, never to
the first player. Both player's are always using IE6 or IE7.
Does anyone have some idea(s) what could cause only the
second player's ActionScript code not to execute and/or not to load
an XML file correctly?
This is just a general question, so any general answers would
be appreciated. Code specific answers are hopefully not required.
Thank You in advance.Hi,
I am not very familiar with the multiplayer Game development. For multiplayer games, you'll need to set up a matchmaking server and have the clients connect to it. It can then pair them off and facilitate communications. If the clients have publicly available
network addresses then it can introduce them and they can talk directly to each other.There isn't anything built in for this so you'll need to either build your own or find a third party implementation. If you are using Unity3d then check out
http://docs.unity3d.com/Documentation/Components/net-MasterServer.html
Also, you can use Xbox services, and I find an article below:
https://msdn.microsoft.com/en-us/library/bb975801.aspx
For windows Azure problem, you should go to windows Azure forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a
href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey. -
Are all Applications in the Apps Store Web Based only
I havent't got an iphone (yet) but want to buy some games for my ipod touch but don't know if they will play only when connected to wifi.
All the games in the app store are not web based, so there is no need for wifi to play them. Just sync the games to your ipod and have fun !!
-
Online Chapter on using Web-based Services
Dear All,
I just added a new chapter to my ["Killer Game Programming in Java"|http://fivedots.coe.psu.ac.th/~ad/jg/] website. It's about programming techniques for writing standalone programs that employ Web-based service APIs for searching Google, Amazon, eBay, and Yahoo.
As a test-bed, I've implemented an application which sends a book title to a service, and gets back a PNG image of the book's cover. I've written five versions: one each for Google, Amazon, and eBay, and two aimed at Yahoo.
It's chapter 33 "Using Web Service APIs", located in the "Networking" section, about 2/3 of the way down the page.
Your comments are appreciated.
- Andrew
Edited by: AndrewDavison on Jun 30, 2009 2:39 AMrukbat wrote:
kajbj wrote:
Your comments are appreciated.Please don't post unsolicited announcements in these forums.
Kaj
Yes, I've seen that, but they are old, and I don't want to resurrect them. -
Hi!
Well, i'm really happy with the card overall but i have the same issue as priyajeet(he posted it in the crackle/pop thread.
Here's the thing, i can't play any directX based game. I do play OpenGL based games without any issue.
Tried few DX games so far, HL2 based games, BF 242 and Gunmetal, in all the same problem occurs, the screen goes black, system hangs, sounds in loop.
priyajeet was probably ignored cause he has nforce4 based board, that's not my case.
Pentium 4E 2.8GHz
Asus P4P800 SE Bios Version: 0 (latest non-Beta) (northbridge 865PE with Southbridge ICH5)
OCZ 2x52Mb DDR (Dual channel)
2x seagate 200GB SATA II in Hardware raid 0
PSU LC Power 550W
XFX 6600GT 28Mb DDR3
X-Fi Platinum (not in shared IRQ, it has IRQ 22 all for herself)
Some Ethernet PCI card based on a Realtek chipset
LG DVD Player
Philips CD recorder
I don't feel that the peripherals need to be posted with detail(Speakers, mouse, keyboard, printer, monitor)
It kinda seems that this is resources issue, since any openGl based game will work fine and DirectX based games work for few seconds till it crashes.
If anyone has any ideas or sugestions or questions about the current configuration of my computer, both hardware or software please answer, i really like this sound card and i would like to keep it, but i won't if the issues remain.
Best regards,
DanielMessage Edited by darthdan on 02-04-200704:7 PMHow embarrassing, I'd be lucky if my cpu was operating at 600Mhz. The computer is an all-in-one IBM handmedown from dad that was purchased in 200. He crashed the harddri've (at least it broke down) & left it to me to upgrade. Now running multiboot C:\98SE Vs D:\winXP on a 20Gb Samsung HDD with intergrated audio/usb.. The machine is a netvista 27952A & it's not clear at all what sort of soundblaster was put onboard b4 sale. I was checking through the bios yesterday & using a diagnostix app. on diskette downloaded from IBM/lenovo website which showed the sound card has no I/0 addresses at all! The system information IDs the sound card OK but says its not configured & F help goes on to say I need soundblaster pro or compatible sound card. OK so I came here, to creative labs, looking for low profile PCI cards and finally figure out it's really not the hardware that I need it's the software (ie: cd-rom or web-link). There is a possibility that new soundcard in the ethernet expansion slot would work v. well but I'd be messing up some particularly neat hardware. What do you think? If I hadn't found your reply here I was going to start a new thread "sound card with no I/0 address". I have put the qr6z07.exe audio file from IBM website in place + reboot & also have used the IBM nati've cd-rom recovery console to reinstall o/s. Have had rare patches of internal speaker system & cd-rom playback but the twin stereo speakers don't make a peep unless you switch the power off, 24 months or so now and v. frustrating:angry:. I'm running out of time to complete the machine b4 support dries up altogether... I was thinking I be able to?network it in combo with a dual core server to surf & be you know 'long board sentimental'.
-
NEW 3rd party apps - - - web based? More? Ideas?
Hi there,
Those kind people from apple and people from home who have made these applications, I was wondering if they are all web based??
ALSO, what else would we like....hmm, think......
Regardsthey are all web based
here is a new directory apple has made of these web apps at the link below
http://www.apple.com/webapps/
as you can see there is a few categories and alot of such apps especially games.what i suggest you do is go thru and find the ones you like and bookmark the web apps that you would use and then make a special folder for the ipod touch and then have it synced to your ipod touch for quick access. thats what i am doing.
GFF
Message was edited by: GFF
Message was edited by: GFF -
Browser-based game suddenly not working.
Hi,
I've been playing The West for almost a year now, and I've never had any issues. It's a browser-based game that doesn't require any download in order to play.
About a week ago, I noticed the initial load screen was taking a lot longer to load than it ever has. It would load, but would take like 10 times as long.
But now it's gotten to the point where it won't fully load at all; the green load bar in the center of the screen will load to a certain point, and then just stop and hang there, and won't move forward. I have to hit the "Hide" button in order to get into the game. Once in the game, I can't navigate the map (each new section of map you click on needs to load), and as it's trying to load it once again stops and hangs, and I have to click "Hide" again. This time-consuming process is messing up the game because it's now taking forever to be able to do anything in the game.
Once in the game, the lag has gotten a lot worse as well.
I already tried resetting Firefox to its default settings, and that didn't work. I went into Firefox on Safe Mode and that didn't work. BUT, when I use Google Chrome the game works without any problems. I don't like Chrome and want to keep using Firefox.
What should I do?
Thank you so much :)
troopI also want to add that all other components of Firefox are working just fine. I can surf the web without problems, it's just this game that's giving me trouble.
-
Browser is no longer recognized by a web-based database after migration to FF17
Hi,
When trying to access a web-based data base thta worked fine with FireFox 16, I now got message: "Your Browser is not supported" at the place where an image loaded via a plugin (ChemDraw plug-in 12.0.2.1076) should load. This worked perfectly with version 16 and the plugin is still in place and not declared incompatible by FireFox. How do I modify the way FireFox announces it-self to the web site so that it is not declared incompatible...Hi,
I tried and it works ! What I had to do was to downgrade to version 16, install the add-on, copy the configuration from there as a new User agent (which I called FireFox 16), then upgrade and then select the FireFox 16 user agent...
Amazingly enough, however, when checking the test (through the web site http://chrispederick.com/work/user-agent-switcher/features/test/ it says I have version 17 (Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/17.0 Firefox/17.0) aven though I selected my FireFox 16 (Mozilla/5.0 (Windows NT 5.1; rv:16.0) Gecko/20100101 Firefox/16.0).
I do not knwo exactly why the test does not work but the web site that needs FireFox 16 works ... -
How to migrate from forms to web based application
Hi,
I did a form for Oracle applications, but client need a web based form for this application how can i migrate this to web based form. If it is possible can u give me suggestion how migrate.
Kishore BNot sure if that's possible, as developing forms for Oracle Applications requires the use of TEMPLATE.fmb to start with, and the use of certain standards to adhere to the look and feel of the applications. Review the Oracle Applications Developer's guide for more details.
What You may do now is to upload the form to the Application Server and compile it to the adequate directory $PRODUCT_TOP/forms/[LANG], register the form, associate to a function and use it in a menu to see it trough Oracle Applications standard interface, but it may show a very different L&F and not all standard functionality may be available. With the Dev Guide's on hand, apply required changes and test Your form in the application. -
I wish to migrate to web-based application from forms 6i
Dear All,
Please inform me the technique / tools to convert my designed forms (using 6i) to web based forms, so any user can easily use an application through web browser instead of developer client.
I'll be grateful to you.
Mustansir Shehzad Khatri.See,
to read how we performed the upgrade and see some issues we ran into
http://www.oracle.com/technology/products/forms/index.html
http://www.oracle.com/technology/products/forms/htdocs/upgrade/index.html
http://www.oratransplant.nl/category/oracle/forms/6i-to-10g-upgrade/ -
Conversion of forms5.0 to web based application
dear folks,
i have an existing application which runs on forms 5.0. i want to
convert it to a web based application. i do not want to rewrite
the scripts.if some of you could tell me the details about how to
go about it.
nullI am not sure if there is any tool to do that.
You can delete WebSphere specific xml files from ear/jar and open it in Weblogic's builder tool. Weblogic Builder is a GUI tool. Helps you assign values for deployment parameters, Transaction attributes, JNDI names and so on. Then you can generate deployment descriptors. Subsequently you can modify the descriptors as and when you want. -
Migrate from GUI to web based application
what's the easy and the fast method to migrate java GUI application to a web based aplpication.
thanks in advance for informationThere is no simple or easy or fast way if the application were not properly designed.
Does it follow the Model-View-Controller pattern? If it does, your migration path is easier. If it is the typical app (the button listener method does it all), the migration path is not.
I guess that you will have to redesign the app and reuse only very specific parts of your code, like formulae calculations.
Code is cheap, analysis and testing are not.
Maybe you are looking for
-
How do I use Itunes from external drive as main sync for Iphone 4
I apologize if this is obvious but I have searched for quite awhile without finding result. I currently have my iTunes synced to my Macbook Pro. I purchased a Macbook Air for ease in travel. I would like to move sync of my material on iTunes to my Ai
-
Configuring postfix on Mountain Lion Server
I'm trying to upgrade from Snow Leopard Server to Mountain Lion Server and did an install of Mountain Lion Server on top of a working instance of Snow Leopard Server. The "crippled" GUI on Mountain Lion Server is forcing me into using terminal to co
-
Help needed In developing project in Java
Hi guys I am Developing a project in Java. This program test processor performance. Of system. Please tell me which packages to use and what will be basic logic required. basically Test, counter, and help will be used I think.
-
Installed Boot Camp w/o having Windows Disk, Installed Parallels, now what?
I installed Boot Camp not really knowing what was required, thinking that it was a download, not knowing it came with the computer. I then deleted it, thinking I could re-download it later since I didn't have a copy of the Windows OS, and now I still
-
How do I stop printing of a log prior to each document?
I have 2 HP printers installed on my pc. All in one 3150 and an All in one F4100. Ever since I downloaded the drivers for the F4100 (didn't have the cd), almost every document I print is preceded by a log of sorts giving the Filename, Directory, Tem