Author Topic: Flier Match  (Read 99712 times)

Offline Jonas

  • byte
  • *
  • Posts: 41
    • View Profile
Re: Flier Match
« Reply #75 on: August 24, 2008, 09:51:43 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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Flier Match
« Reply #76 on: August 24, 2008, 12:22:15 pm »
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. 

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Flier Match
« Reply #77 on: August 24, 2008, 04:24:37 pm »
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<-

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Flier Match
« Reply #78 on: August 24, 2008, 05:35:55 pm »
signed applets can connect anywhere but the problem is most computers wont allow incoming connections due to firewalls etc

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Flier Match
« Reply #79 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.
click here->Fireside 7 Games<-

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Flier Match
« Reply #80 on: August 25, 2008, 04:03:22 pm »
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

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Flier Match
« Reply #81 on: August 25, 2008, 04:29:22 pm »
Quote
Maybe 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.
« Last Edit: August 25, 2008, 04:35:33 pm by fireside »
click here->Fireside 7 Games<-

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Flier Match
« Reply #82 on: August 25, 2008, 04:34:30 pm »
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

Offline fireside

  • double
  • *****
  • Posts: 607
    • View Profile
Re: Flier Match
« Reply #83 on: August 25, 2008, 04:37:21 pm »
Quote
How 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<-

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Flier Match
« Reply #84 on: August 25, 2008, 04:40:31 pm »
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 :/

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Flier Match
« Reply #85 on: August 25, 2008, 04:47:22 pm »
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

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Flier Match
« Reply #86 on: August 25, 2008, 04:54:18 pm »
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

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Flier Match
« Reply #87 on: August 25, 2008, 04:58:21 pm »
Well, maybe they dont know what are you doing with your hosting. I will denounce you rigth now.  8)
Nada por ahora

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: Flier Match
« Reply #88 on: August 25, 2008, 05:08:09 pm »
 :o ;D

Offline Melssj5

  • double
  • *****
  • Posts: 724
    • View Profile
Re: Flier Match
« Reply #89 on: August 25, 2008, 09:27:48 pm »
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