Search found 33 matches

by ewardd
Wed Nov 16, 2016 7:14 pm
Forum: Game Programming
Topic: LAN Broadcasting and IP
Replies: 5
Views: 5480

Re: LAN Broadcasting and IP

Keya, UDP is connectionless protocol, right, but you still can get the local IP of the host. I run that "fake connection" code on server. Server creates connection to itself using Hostname() instead of IP, and then, using GetClientIP() server gets the local IP address of himself, instead of Hostname ...
by ewardd
Tue Nov 15, 2016 11:28 pm
Forum: Game Programming
Topic: LAN Broadcasting and IP
Replies: 5
Views: 5480

LAN Broadcasting and IP

Hello guys!

I've done LAN Broadcasting, so my client program can find my server program in LAN.
The idea is - client is broadcasting, server answer and says his own ip address (192.168.79.2)

Server is getting his own local ip by connecting to himself thru UDP and receiving IP Address from it ...
by ewardd
Thu Aug 04, 2016 12:28 pm
Forum: Coding Questions
Topic: Pointer doesnt work properly with specific name
Replies: 5
Views: 1778

Re: Pointer doesnt work properly with specific name

Thanks, nco2k. Somewhy didnt even think about it :wink:
by ewardd
Thu Aug 04, 2016 12:10 pm
Forum: Coding Questions
Topic: Pointer doesnt work properly with specific name
Replies: 5
Views: 1778

Re: Pointer doesnt work properly with specific name

nco2k, thanks for corrections. I'd apply them anyway a bit later, just was playing with pointer just as I done this function on fast hand and didnt watch at timer results, so missed that .q type, alright.

Joris, Im using QueryPerformanceCounter_ because its about ns not ms. ElapsedMilliseconds ...
by ewardd
Thu Aug 04, 2016 10:07 am
Forum: Coding Questions
Topic: Pointer doesnt work properly with specific name
Replies: 5
Views: 1778

Pointer doesnt work properly with specific name

Hello everyone

I got a really strange situation, but most of times its just me not seeing something obvious.
I have wrote a procedure, that splits text by arguments
Example: "echo hello world" -> echo, hello, world
Example: "echo "hello world" alotofspaces" -> echo, hello world, alotofspaces ...
by ewardd
Tue Mar 17, 2015 4:51 pm
Forum: Coding Questions
Topic: Console WinAPI - Problem with passing a structure
Replies: 4
Views: 1937

Re: Console WinAPI - Problem with passing a structure

Thanks you, luis, for explaining everything and you, guys, for attention
by ewardd
Tue Mar 17, 2015 8:31 am
Forum: Coding Questions
Topic: Console WinAPI - Problem with passing a structure
Replies: 4
Views: 1937

Console WinAPI - Problem with passing a structure

Hey guys. I got a weird problem. Cant get "coord" structure working in WinAPI functions.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682663(v=vs.85).aspx

MSDN quote:
BOOL WINAPI FillConsoleOutputCharacter(
_In_ HANDLE hConsoleOutput,
_In_ TCHAR cCharacter,
_In_ DWORD nLength ...
by ewardd
Mon Jul 14, 2014 6:43 pm
Forum: Coding Questions
Topic: OpenWindowedScreen freezes
Replies: 4
Views: 1690

Re: OpenWindowedScreen freezes

Exactly! You was right <3. Thanks you a lot.
by ewardd
Mon Jul 14, 2014 6:11 pm
Forum: Coding Questions
Topic: OpenWindowedScreen freezes
Replies: 4
Views: 1690

Re: OpenWindowedScreen freezes

Thanks for fast answern. About rotation: i just tried it once again with one sprite and it was sucessful, thanks. Tho i thought i tried it before and it failed... strange. Probably i just did smth wrong that time.

Thats how im creating screen:


If isWindowed = 0
If OpenScreen(WINDOW_WIDTH ...
by ewardd
Mon Jul 14, 2014 5:39 pm
Forum: Coding Questions
Topic: OpenWindowedScreen freezes
Replies: 4
Views: 1690

OpenWindowedScreen freezes

Hello guys.

My problem is about OpenWindowedScreen. When i run my game at full screen mode, everything works just fine, but when i run it at Windowed Screen it starts as it must. 'NPC's' moving as they made to and etc.

But when i create a 'tower's' (not single one, like after 78 towers created ...
by ewardd
Sun Dec 22, 2013 3:35 pm
Forum: Game Programming
Topic: Interesting problem with 2d online game
Replies: 5
Views: 4294

Re: Interesting problem with 2d online game

Uh. Soloved problem. I just created an new list and when server sends command for deleting bullet it writes bullet id in this new list. In game loop, at end, it uses this list to delete bullets.
by ewardd
Sat Dec 21, 2013 9:56 pm
Forum: Game Programming
Topic: Interesting problem with 2d online game
Replies: 5
Views: 4294

Re: Interesting problem with 2d online game

Bullet()\ID is used just for searching this bullet latter for any things... on example deleting it.
by ewardd
Sat Dec 21, 2013 6:33 pm
Forum: Game Programming
Topic: Interesting problem with 2d online game
Replies: 5
Views: 4294

Re: Interesting problem with 2d online game

Simplest game - moving ur own space ship using WASD and shot using mouse button. Server sends things like position of every player, their mouse position and sends command for deleting bullet if needs. Everything works good but sometimes game crashing with error on moving bullet. Bullet()\X+Bullet ...
by ewardd
Sat Dec 21, 2013 12:41 pm
Forum: Game Programming
Topic: Interesting problem with 2d online game
Replies: 5
Views: 4294

Interesting problem with 2d online game

Hello everyone.

I have interesting problem with online game. Just simple 2d game. Everything works fine, but sometimes client getting error on bullet moving. As i think this happens because it wants to move bullet, but bullet, in this time, was deleted (I have Thread which accept server commands ...
by ewardd
Sun Dec 15, 2013 3:06 pm
Forum: Coding Questions
Topic: Hooking GetProcAddress function
Replies: 2
Views: 1086

Re: Hooking GetProcAddress function

Guys, any ideas?