XML files for Multiplayer Games
in
Programming Questions
•
3 years ago
Hello people.
Im a second semester Game Design student and this semester we have another informatics project.
I decided to do a little multiplayer game in processing. I think i will use XML files since i tried out the server and client thing and realized that it might become a bit too complex or too complicated for me to understand and to program with that.
I already managed to write an XML creating program and wrote and read information out of it. Offline though.
Now i was curious if it is possible to put a XML file on my webspace for the game to use. So all users/players (up to 4 maybe) can read and write all the information out of it simultanuously. If other users are online, their positions etc.
Now i dont know and didnt find after quite a while of searching if it is possible to access such a file and change things in it while its on the server and accessed by all of the other players. We had a bit of introduction concerning multiplayer but not enough to fully understand the limitations, possibilities and the way things have to be arranged to work for such a project.
I just want to know if this is basically possible to use an xml file on a webspace and read and rewrite it while its online and maybe if one of you has an idea how it could be done.
Otherwise thanks alot for your attention.
Greetings
Im a second semester Game Design student and this semester we have another informatics project.
I decided to do a little multiplayer game in processing. I think i will use XML files since i tried out the server and client thing and realized that it might become a bit too complex or too complicated for me to understand and to program with that.
I already managed to write an XML creating program and wrote and read information out of it. Offline though.
Now i was curious if it is possible to put a XML file on my webspace for the game to use. So all users/players (up to 4 maybe) can read and write all the information out of it simultanuously. If other users are online, their positions etc.
Now i dont know and didnt find after quite a while of searching if it is possible to access such a file and change things in it while its on the server and accessed by all of the other players. We had a bit of introduction concerning multiplayer but not enough to fully understand the limitations, possibilities and the way things have to be arranged to work for such a project.
I just want to know if this is basically possible to use an xml file on a webspace and read and rewrite it while its online and maybe if one of you has an idea how it could be done.
Otherwise thanks alot for your attention.
Greetings
1
