rjs23 Posted September 9, 2010 Share Posted September 9, 2010 Which file in 0A.D folder reveals the network source code? Can i open it with notpad?Which port does 0AD uses to allow users to play multiplayers online?I'm trying to connect users from webpage into the 0ad to setup a game using loopback communication (so a browser can communicate to 0a.d via localhost)I'm little new to C but i'm trying to learn. Link to comment Share on other sites More sharing options...
Ykkrosh Posted September 9, 2010 Share Posted September 9, 2010 The networking source code is in source/network/. Currently it uses UDP port 20595 for client/server communication. Link to comment Share on other sites More sharing options...
rjs23 Posted September 9, 2010 Author Share Posted September 9, 2010 I'm not finding a network folder that u're mentioning, perhaps is this because im using alpha 1 installed by autoinstaller (setup.exe)?I do see network.js but that does not seem to be it Link to comment Share on other sites More sharing options...
Ykkrosh Posted September 9, 2010 Share Posted September 9, 2010 You probably need to select the "install source code" option when running the installer, then it should put all those files in the install directory. Link to comment Share on other sites More sharing options...
rjs23 Posted September 9, 2010 Author Share Posted September 9, 2010 (edited) Ah, I c. I am going to reinstall with that.I will let you know how things goes.Thanks for the fast reply Ykkrosh. Edited September 9, 2010 by rjs23 Link to comment Share on other sites More sharing options...
rjs23 Posted September 9, 2010 Author Share Posted September 9, 2010 Hm, those .cpp and .h files are somewhat new to me. Will takes time to know them all.Will the source files be updated to the game automatically If i make a change on it using notepad or do I need to use a program that applies updates to the game?Right now, I'm trying to communicate to the 0A.D via loopback now. How do I make 0.A.D respond back if a connection to 0.A.D from a browser using http://localhost:20595/Right now, it is not acknowledging that 0A.D has receives the communication from the browser. Link to comment Share on other sites More sharing options...
Ykkrosh Posted September 9, 2010 Share Posted September 9, 2010 See the build instructions - you need a C++ compiler, and probably a reasonable level of C++ experience . Currently there's no way you can communicate with the game from a browser, since they use completely different network protocols. Link to comment Share on other sites More sharing options...
rjs23 Posted September 9, 2010 Author Share Posted September 9, 2010 (edited) Gotcha, I dont really need to be good in C but I just need to be able to find information about 0AD and how to make browser and 0ad communicate to each other. If 0AD game does not handle HTTP then what other protocol does 0AD game handle?Edit: I've trying to create something similar the way teamspeak uses like.If it has it's own protocol handler then I could use it instead of using HTTP? I'm not sure what other protocol to use that could communicate itself to 0AD Edited September 9, 2010 by rjs23 Link to comment Share on other sites More sharing options...
Lion.Kanzen Posted January 4, 2014 Share Posted January 4, 2014 · Hidden by leper, January 4, 2014 - Doesn't really fit here Hidden by leper, January 4, 2014 - Doesn't really fit here I can't host , but I have open my unup router and you know. The port udp I haven't forward yet. But what means enable Upnp and upd port 20595? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now