Flier Match

Started by Melssj5, January 18, 2006, 04:07:06 PM

Previous topic - Next topic

Jonas

Quote from: fireside on August 24, 2008, 12:33:24 AM
I guess it's ok to talk to the applets from the host where the applets got downloaded, but applets can't talk to each other.

I think signed applets do allow other connections..but not a 100% sure.
Simple things should be simple, complex things should be possible - Alan Kay

EgonOlsen

Yes, they do. Plus, IIRC, there is a RFE that says that applets should be able to talk to other IPs than the one of its server without being signed, because it's an unneeded restriction. Things don't get more unsafe by enabling it. 

fireside

OK, I'll try to look at things from that angle, then.  If the applets could talk to each other there might be some way I could do it on my site.  I'm not sure how hard signed applets are or anything.  I like unsigned because it keeps everything simple.
click here->Fireside 7 Games<-

raft

signed applets can connect anywhere but the problem is most computers wont allow incoming connections due to firewalls etc

fireside

There's this other way, not sure if it would work out for me or not, but they do an http message and a cgi script.  It's supposed to work through a firewall.  I just want to do turn based games so I don't need much speed.
click here->Fireside 7 Games<-

Melssj5

Well, signing applets is easy, you just have to find a tutorial and follow the steps, there is nothing from the other world to do. The problem will be that each clietn will have the same applet and then the server code will be running on all clients and you have to code a way in which only one acts as a server or something. Applets are downloaded and runs from each client machine.

Maybe if you put your server code on a servlet on you hosting.  :-\ :o
Nada por ahora

fireside

#81
QuoteMaybe if you put your server code on a servlet on you hosting.

I don't think they would like that, but I don't really know.  Usually there don't like it when you use sockets.  I can upload a jar, so if I could start it from a page it might work.  I think the http thing might work.  I might experiment with it.  It's not like I need to constantly update.  I just need turn information.  Three floats for a simple vector would give position information.
click here->Fireside 7 Games<-

Melssj5

Yes but I mean using the servlet to give the attention. And you can also keep running a program that has the server logic. The problem is that they usually dont like when you use a large amount of processor too. So the best solution is to have a dedicated server. How much expensive is that???
Nada por ahora

fireside

QuoteHow much expensive is that???

I just have a phone modem right now.  There is a possibility I can get high speed for almost the same price if I quit using my phone and use internet phone instead. 
click here->Fireside 7 Games<-

raft

Quote from: fireside on August 25, 2008, 12:40:19 AM
There's this other way, not sure if it would work out for me or not, but they do an http message and a cgi script.  It's supposed to work through a firewall.  I just want to do turn based games so I don't need much speed.

that's true for outgoing connections. for direct applet to applet communication (without routing data over server) you will need to accept incoming connections. firewalls will prevent that. furhermore most of the time you wont get real IP but an local area IP. if you want your game work over internet only reliable solution is to route data over server IMHO. but of course as you said that requires server side components.

i can suggest http://jsp-servlet.net/ as a java hosting company. karga is hosted there. minimum package costs $13.95 a month.

http://www.myjavaserver.com/ provides free java hosting but it does not accept new accounts at the moment. and it's down most of the time :/

Melssj5

I was reading the policies from http://jsp-servlet.net/  and I guess is not an option for hosting game servers. Look at this:

Restriction:
"Programs that consume an excessive amount of CPU run time or Random Access Memory (RAM) are not permitted. Excessive use can have an adverse effect on the performance of the web server. Each user may get 5MB of RAM, the "right" to use 10% of the processor for 3 seconds maximum every minute."

a game server of course must use more than 5 MB of ram and of course more than 10% for 3 seconds each minute.
Nada por ahora

raft

well that policy may be out of date or something. karga is hosted there till the very beginning. the lowest bronze package was limited to 16m jvm and it was quite enough for me. this 16m contains both tomcat and karga server. now they raised it to 64m and it's more then enough if you do NOT do heavy 3d calculations on server side

Melssj5

Well, maybe they dont know what are you doing with your hosting. I will denounce you rigth now.  8)
Nada por ahora

raft


Melssj5

The most basic dedicated server I found is:

AMD Sempron 2400
1 GB RAM
2 x 80 GB (7200 rpm)
Internet - 100 Mbit Full Duplex
CentOS 5

is at 250 USD each month.
Nada por ahora