Hey guys,
I can see that the interface is the same for multiplayer on the iphone vs. multiplayer on the desktop, but is there anything stopping the two from communicating with each other and sharing a multiplayer game?
Cheers!
Jeff.
Hey guys,
I can see that the interface is the same for multiplayer on the iphone vs. multiplayer on the desktop, but is there anything stopping the two from communicating with each other and sharing a multiplayer game?
Cheers!
Jeff.
No. I was just showing this off today. ![]()
Someone might have some caveats to add but it seems to work fine. I think Unity 3 iPhone drops UDP support or something.
THATS cool to know ![]()
Thanks, man!
Jeff.
There is one caveat actually and that is that mobile users on 3G pretty surely NEVER can host the game as phone providers don’t allow you to do so and their firewall etc are not NAT punchtroughable commonly.
but on the other hand, for 3G networking you potentially won’t use unity networking as it must be turn based then, 3G has latency from 100ms to 2s, which makes it totally inacceptable for anything that requires “low latency fast paced networking”
Annnnd so ended my little scheme! Boooo.
Thanks again, Dreamora. You don’t know how much trouble you just saved me with that little post! ![]()
Jeff.
I hope it didn’t lead to missunderstanding ![]()
Cause if you do your game with the target of Wifi on the iDevices, you can go full out to a large degree (not as full out as on the desktop cause you need to keep the cpu load a low as possible normally but still much further than on 3G based networking) and thats what you likely will want to do.
in that case its also open to the user or the area where he gets his Wifi access (home, work, mcdonalds or other public wifi) if he will be able to host a game.
Dremora, so you’re saying the only way to do real-time, action-based multiplayer on iPhone is through Wifi and Bluetooth?
You can’t roam and play multiplayer because the lag is too great? Or AT&T restricts the bandwidth too much?
Archetype – the iPhone FPS – works of 3G, with varying degrees of lag. What’s you’re opinion on that?
Well, I thought the same about the FPS ‘Eliminate’ … turns out it’s actually REALLY tough to get networking over 3G - so tough that ngMoco licensed a version of the Quake 3 engine for it.
It turns out that 3G is quite lame for action games - here’s what ngMoco said about building Eliminate iPhone News - TUAW
Unity just isn’t as optimized on the networking as Quake 3, which is totally understandable since to be good at one particular type of game may mean that you can’t apply it to another.
Ho well …
Raknet is not explicitely bad and you can get far actually if you have some background knowledge especially with the bitstreams of autosync.
for example if you know that your world is not really large but more in a ± 100 range, why waste 4 bytes for it if you can reduce the prediction of floats to 2 bytes and get it in there through some intelligent bitshift level lossy compression?
Problem is just that nowadays, the amount of programmers with the corresponding knowledge in computational science, numerics etc to pull off these tricks is kind of degrading at an alarming rate as the hardware gets that f**ing fast and “more than you need” on cpu, gpu, ram and network speed that you just don’t need to waste time on such lowest level trickery anymore, you can now invest the time on higher level trickery or math magic for visuals.
keep in mind, quake etc started out in days where 14k and 28k modems were standard, where 1-2kb/s up+down was normal and it played already back then in latencies that are not that much worse than crappy cable connections are today stunningly.
People of the old shooter group know tribes and tribes 2 based on the V12 engine (later known as TGE after a dozen iterations or so), which was in 56k days able to host 256player massive high paced FPS massakers from dedicated hosts, something no shooter ever after pulled off in the same intense way from what I recall (not even tribes vengence which was tribes 3) and that although we have no hundreds to thousand times that bandwidth!
Battlefield starts to lag and stutter like hell if you go beyond 64 players for example which shows the difference in expertise between the programmers 10-15 years ago and the so called gurus today. Carmack himself is showing that off every now and then when he creates new iphone stuff that lets chillingos top stuff look like some bachelor comp science student projects performance wise and visually and that although those teams that do this under chillingo are by far no noobs on the mobile programming field
So… without getting all nerdy on me, is basic multiplayer via 3G possible on iPhone? I’m not looking for Quake, thinking more along the lines of pong or super mario bros with 2 players.
Will 3G handle that, assuming I’m using SmartFox server?
3G is heavily dependent on the phone provider and if it allows NAT Punchthrough through your masterserver.
Tendency here is a clear no
and if it works, don’t expect latency as you are used them from wifi or broadband, having 200-300ms is already very good there
normally you would use a central game server to which the players connects and that hosts the game, but htat means iphone pro / advanced as you need sockets
also for local multiplayer you would use GameKit for adhoc → xcode and objc, not unity networking