Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - kazyamof

Pages: [1]
1
DotNet / Install TGUI.NET
« on: July 11, 2017, 09:46:52 pm »
I'm following the instructions to install TGUI.NET on my project. These are the instrctions from the 'readme.txt':

"The dlls from the "dotnet" folder have to be added as References in your project.
The dlls from the "c" folder have to be placed next to your executable."

I'm referencing tguinet-0.8.dll on References
and pasting ctgui-0.8.dll and tgui.dll side by side my .exe.

When I try to instantiate a new Gui as here https://tgui.eu/bindings/dotnet/, I got the error:

System.DllNotFoundException: 'Could not load DLL 'ctgui-0.8.dll': Não foi possível encontrar o módulo especificado. (Exceção de HRESULT: 0x8007007E)'

Help! Wind 10 x 64, Visual Studio 2017, .NET 4.7

2
I'm doing my first game with network implementation using C#.
Here is my pseudocode:

CLIENT
Start a Game Client
Instantiate the client_socket
Connect the client_socket with server
Instantiate objects (player, enemy, etc..)
Instantiate a new Thread for send/receive over TCP
Inside this new thread, a infinite loop runs. Inside this loop:
  1.1 get the player position as string, convert to byte[] and then send async through client_socket (client_socket.BeginSend) - OK
  1.2 initiate a receive async (client_socket.BeginReceive) to print what Server said to client (NOT OK, receive the same count of bytes but all '\0')
Start the new thread
Enter on gameloop and update objects and render sprites...


SERVER

Instantiate a list of client Socket
Bind the IPEndPoint to client connect
Start a new thread to listen connections
On the new thread, iterates a Infinite loop
  1.1 accept new client
  1.2 start a new thread for the new client, dedicated to receive/send data SYNC
  On this new thread,
  2.1 another infinite loop receiving data and printing on console (OK, prints the player position)
  2.2 sending back a response (OK, send a message)

Is this right? There's a real world example of a simple game, receiving and sending data continuously inside a gameloop?  I see a lot of chats, but doesn't looks like a real world exampe to be used in game...
A chat waits for a event to send... but if I'm running at 60fps, I should send and receive data every frame? The multithread approach is really necessary? Why I got the response on client side with same number of bytes that server sends, but the message is all filled with \0?

Thanks

3
Audio / Spatialization doubt
« on: October 18, 2016, 01:13:39 pm »
Well, as always, spatialization audio is driving me crazy.
I can't found a good tutorial where this really works! I read a lot of answers on the forum, but I'm missing a step-by-step guide where some clear and simple information is presented. So I expected someone can answer me as simple as possible.

My cenario is:

Screen is 800x600.
My player moves on X screen. He spawns at Vector2(100, 500).
I wanna put a sound at Vector2(300, 500).

1 - What Position shoud I set to Sound? Vector3(300, 0, 500)?

2 - What Direction and Position I should set on Listener to make him hear the sound on right speaker while Player.Position.X < Sound.Position.X, and then on the left speaker when Player.Position.X > Sound.Position.X?

4
DotNet / SFML.NET 2.2 for .NET 4.6.1
« on: October 03, 2016, 04:07:32 pm »
I've tried to create a new project using .net 4.6.1, but I figured out that the max .net version suported by sml.net is .net 4.

Then I downloaded the sourcecode of sfml.net, I made a update on the project to run with the newest version of .net 4.6.1.

Then I reimported the .dlls references (sfmlnet-graphcis-2, sfmlnet-system-2, sfmlnet-audio-2, sfmlnet-window-2) on my original game, I set the version to .net 4.6.1 and is running nice! Now I can use some new features from .net, like
myObject?.Update();

But I want to know about the "SFML.Net-2.2\extlibs" that should be imported on the project and need to be present on the .exe path, specially the csfml- ones.

They need to be updated too?

Pages: [1]