Is it just me or is networking one of the biggest pains in programming? (especially game programming)
Maybe it's because I don't have the best experience with it.
But it's pretty tedious doing client prediction, making sure the server doesn't lag, what happens if the server does lag, client disconnecting, new players coming in, client crashing, client lagging, ect.
Ugh. Hopefully the more experience I get with networking, these things will just become another simple, daily routine in my programming. :P
[b]edit:[/b]
Apparently the guy above me makes these things his bitch. :v:
[QUOTE=DevBug;28201140]Who can make a smaller ini parser?
[/QUOTE]
Apparently sections or comments don't matter in ini files :effort:
Here's a proper one.
[lua]
local data, f, l, sect = {}, io.open "test.ini"
l = f:read '*l'
while l do
sect = l:match "^%s*%[([^%[%]]+)%]" or sect
if sect then
data[sect] = data[sect] or {}
local k, v = l:match "^%s*([^;=]-)%s*=%s*\"?([^=\"]+)\"?%s*"
data[sect][k or ""] = v
end
l = f:read '*l'
end[/lua]
Or if you insist, same as yours.
[lua]local data, f, l = {}, io.open "test.ini"
l = f:read '*l'
while l do
local k, v = l:match "(.+)=(.+)"
data[k or ""] = v
l = f:read '*l'
end[/lua]
Hm anyone know why on a few machines "Win32_BaseBoard" is throwing an exception?
[csharp]static string GetHW(string name, string value)
{
var mc = new ManagementClass(name);
ManagementObjectCollection moc = mc.GetInstances();
foreach (ManagementObject mo in moc)
return (string)mo[value];
return null;
}
GetHW("Win32_BaseBoard", "SerialNumber");[/csharp]
This throws an exception on a few out of a thousand machines. I have no idea what the exception though. As the person that this is erroring for is ignoring me :\.
[QUOTE=xAustechx;28202239]Is it just me or is networking one of the biggest pains in programming? (especially game programming)
Maybe it's because I don't have the best experience with it.
But it's pretty tedious doing client prediction, making sure the server doesn't lag, what happens if the server does lag, client disconnecting, new players coming in, client crashing, client lagging, ect.
Ugh. Hopefully the more experience I get with networking, these things will just become another simple, daily routine in my programming. :P
[b]edit:[/b]
Apparently the guy above me makes these things his bitch. :v:[/QUOTE]
Networking isn't that hard, as long as you design your system carefully.
[QUOTE=DevBug;28202433]Networking isn't that hard, as long as you design your system carefully.[/QUOTE]
So in other words, networking (by proxy of design) is hard.
[img]http://img842.imageshack.us/img842/7582/mazem.png[/img]
The mazes can now hold 1-125 starting points. The regions are currently connected from every point where they meet, which creates the jagged lines (and causes loops). The above maze has 7 starting points. I think it could be used for creating mazes that contain an entrance and multiple objectives. All paths inside a region lead to the starting point of that region.
[QUOTE=Catdaemon;28202237]obligatory lens flare
[img_thumb]http://img.meteornet.net/uploads/unk839hhv/ss.PNG[/img_thumb][/QUOTE]
That looks really nice apart from your buttons' text trying to break out.
EDIT: Also it may just be getting late but the shadow on the X is starting to seem out of place.
[QUOTE=DevBug;28202433]Networking isn't that hard, as long as you design your system carefully.[/QUOTE]
I guess. I feel like I'm making my game twice though.
It's kind of hard to explain. It's like, the server is stepping a game, but obviously not rendering it. But the clients are also stepping the game too, and rendering it.
But something in the back of my head says that's wrong.
Does that second paragraph sound correct?
[QUOTE=xAustechx;28202894]I guess. I feel like I'm making my game twice though.
It's kind of hard to explain. It's like, the server is stepping a game, but obviously not rendering it. But the clients are also stepping the game too, and rendering it.
But something in the back of my head says that's wrong.
Does that second paragraph sound correct?[/QUOTE]
I have both the server and client running the exact same code. It just ignores the rendering portion.
[editline]22nd February 2011[/editline]
[QUOTE=Irtimid;28202782]That looks really nice apart from your buttons' text trying to break out.
EDIT: Also it may just be getting late but the shadow on the X is starting to seem out of place.[/QUOTE]
Yeah the skin is just temporary programmer art :v:
[QUOTE=Catdaemon;28202904]I have both the server and client running the exact same code. It just ignores the rendering portion.[/QUOTE]
Oh. That's what I'm doing right now. :o
How should i handle entities in JAGMARLG?
I'm trying to use inherited class, but it's not working to well.
should i post v16 now?
[QUOTE=haushippo;28203409]should i post v16 now?[/QUOTE]
Nope, 6 posts left
Is something wrong when my proposed class diagram takes 3 and 1/2 pages in 10px font.
[QUOTE=Vbits;28203521]Is something wrong when my proposed class diagram takes 3 and 1/2 pages in 10px font.[/QUOTE]
10 pixel font? :raise: