yay :)
Posted: Sat Nov 22, 2008 5:58 pm
Hey guys !
Even though I'm not active almost at all, I'm visiting forum from time to time, reading posts, comments, tricks ... Looking at your projects and I'm amazed how things are becoming better, and better ...
Finally the thing I've been waiting for ... Possibility to write to file ...
Only thing I think ZGE is missing that is very important, is some kind of network thingy, so we can make multiplayer games, but I'll satisfy with this also ...
One thing I did with friend few years ago in school in mighty PASCAL, was making multiplayer Snake game using files !
Using very stupid (but somewhat working) way, we managed to get really good real-time synchronization ...
I want to try that in ZGE also, but I need a little new feature ...
Let me explain how we did it ...
It is totally unpractical but its fun ...
We put file.txt file for example in C:\folder\ on both of the computers and share that folder ... game writes snakes coordinates and direction in C:\folder\file.txt , and reads opponents coordinates and direction from \\PC2 (or PC1)\folder\file.txt (or something like that) ...
And it works !
Small problem was, that when one client is writing in the file and other one tries to read it in the same time, the program would crash, but we just put that in some kind of "try-catch" so if that happens we would just skip reading for that iteration ...
I tried that in ZGE on single file, and it works pretty nice !
I have attached the examples ... You start rwtest and client, and when you click somewhere in rwtest with your mouse, you write X and Y coordinates in test file so the client can read it ... AND IT WORKS !
But the problem is that I can't set file path to something like C:\blah\ or \\PC2\ or something ... I can only use current EXE path or \folder\file (i hope you understand me at least something)...
If the exe is for example in D:\ZGE\project\ , I can only access files in that folder or folders located there ... I cant access file on C disk if the exe is on D:\ ... So, can ZGE accept absolute path (i hope its the name for it ) ?
Dunno if its too rude from my side to ask for a new feature since I'm totally inactive here, but you decide ...
Even though I'm not active almost at all, I'm visiting forum from time to time, reading posts, comments, tricks ... Looking at your projects and I'm amazed how things are becoming better, and better ...
Finally the thing I've been waiting for ... Possibility to write to file ...
Only thing I think ZGE is missing that is very important, is some kind of network thingy, so we can make multiplayer games, but I'll satisfy with this also ...
One thing I did with friend few years ago in school in mighty PASCAL, was making multiplayer Snake game using files !
Using very stupid (but somewhat working) way, we managed to get really good real-time synchronization ...
I want to try that in ZGE also, but I need a little new feature ...
Let me explain how we did it ...
It is totally unpractical but its fun ...
We put file.txt file for example in C:\folder\ on both of the computers and share that folder ... game writes snakes coordinates and direction in C:\folder\file.txt , and reads opponents coordinates and direction from \\PC2 (or PC1)\folder\file.txt (or something like that) ...
And it works !
Small problem was, that when one client is writing in the file and other one tries to read it in the same time, the program would crash, but we just put that in some kind of "try-catch" so if that happens we would just skip reading for that iteration ...
I tried that in ZGE on single file, and it works pretty nice !
I have attached the examples ... You start rwtest and client, and when you click somewhere in rwtest with your mouse, you write X and Y coordinates in test file so the client can read it ... AND IT WORKS !
But the problem is that I can't set file path to something like C:\blah\ or \\PC2\ or something ... I can only use current EXE path or \folder\file (i hope you understand me at least something)...
If the exe is for example in D:\ZGE\project\ , I can only access files in that folder or folders located there ... I cant access file on C disk if the exe is on D:\ ... So, can ZGE accept absolute path (i hope its the name for it ) ?
Dunno if its too rude from my side to ask for a new feature since I'm totally inactive here, but you decide ...