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.


Messages - Argha

Pages: [1]
1
General / Re: How to setup a game server in the best way?
« on: August 12, 2015, 01:39:47 pm »
Alright, I will still save it in a DB here and there in case the application crashes or something. I will make more researches and also keep your example in mind, thanks for that :)

2
General / Re: How to setup a game server in the best way?
« on: August 12, 2015, 12:45:18 am »
Makes sense, but just in general: Do they save the position into a database or is there something else they use?

3
General / Re: How to setup a game server in the best way?
« on: August 11, 2015, 11:58:38 pm »
Trust me, I don't even want an MMO :D
My pong game works just fine with UDP between to clients, but I try to get my mind on a server<->clients system. The pong game syncs positions as long as both are connected, but does not save the position where they left in any kind of persisten way. That's what I wanted to know how to do. I always think of databases being slow.

Of course you can write it when they click leave, but they could also disconnect etc


Do you have any resources for that? Like having 3 people connected to a server which saves where they logged of, how much points they had etc?

I mean even if you save the color of the pong player, that would be need to be loaded from the DB, written there anytime he changes it, broadcast to any player when he changes it, ...

4
General / Re: How to setup a game server in the best way?
« on: August 11, 2015, 09:20:46 pm »
I would appreciate if someone has books, documentations or something with a solid approche/idea.

I just can't see so far how I shall be able to have the position of every object (e.g. player) saved in a world.

Say player A logs of at X: 07 Y: 132. Time goes, he logs in again and has to be spawned at said coordinates. Meaning it has to be saved somewhere. A database? Wouldn't that take ages for every object?


5
General / How to setup a game server in the best way?
« on: August 11, 2015, 07:13:57 pm »
See Subject.
Do you run a vserver where udp packages are send to and unlocked equipment is saved into a database which will be loaded in the appropriate moment?

Server with NodeJS or also a version with SFML handling the udp packages?

6
General / Re: procedure entry point could not be located
« on: July 18, 2015, 10:30:00 am »
There are enough CMake resources on the web. You can also look at existing CMake files (e.g. from projects of mine on GitHub or so) to see how to work with it. Best you also read the FindSFML.cmake to understand how you link against SFML with CMake.

Out of interest I tried your CMakeLists.txt file and just changed the path to SFML and had to remove the string CACHE STRING so he didn't ignore the if-statements).

Anyways, now it throws tons of these issues:
D:/Libraries/SFML-2.3.1-gcc/lib/libsfml-window-s.a(GlContext.cpp.obj):GlContext.cpp:(.text+0x1d4): undefined reference to `_imp__glGetIntegerv@8'
D:/Libraries/SFML-2.3.1-gcc/lib/libsfml-window-s.a(GlContext.cpp.obj):GlContext.cpp:(.text+0x20b): undefined reference to `_imp__glGetError@0'
D:/Libraries/SFML-2.3.1-gcc/lib/libsfml-window-s.a(GlContext.cpp.obj):GlContext.cpp:(.text+0x242): undefined reference to `_imp__glEnable@4'
D:/Libraries/SFML-2.3.1-gcc/lib/libsfml-window-s.a(GlContext.cpp.obj):GlContext.cpp:(.text+0x2c9): undefined reference to `_imp__glGetString@4'

I'll really stay with just adding them :D

7
General / Re: procedure entry point could not be located
« on: July 14, 2015, 04:24:31 pm »
Yeah, I realized there isn't a real problem with it and that's why I wrote I gonne ship them now :)
Anyways, thanks for all the input and arguments for it. Will use it to convince my team member (he wants everythin static :P)

Thank you all again !

8
General / Re: procedure entry point could not be located
« on: July 13, 2015, 10:11:55 pm »
Hm, I guess I am just going to include the 14 DLL's when distributing it

9
General / Re: procedure entry point could not be located
« on: July 13, 2015, 08:31:32 pm »
Damn, I am such a smart guy :D
Works like a charm. Any idea for my second question if you are already there?

If I do not include the mingw\bin folder in the system path I need to ship tons of DLL's (libwinpthread-1.dll, ...). Any way to link them statically with cmake?

Again, thanks for solving the first and important issue :D

10
General / procedure entry point could not be located
« on: July 13, 2015, 07:50:21 pm »
Okay, so the following error is what I get: http://i.gyazo.com/8f28bc05ae7cf64aff99d4b3955bf06e.png

Translated should be:
The procedure entry point XXX could not be located in the dynamic link lXXX.dll

My mingw version is "gcc version 4.8.1 (GCC)", on the SFML website is "GCC 4.9.2 MinGW (DW2)". Is that an issue? I couldnt find a newer version, I used the one linked on the mingw website.


And issues 2: Is there a way to statically link the runtime libs?

set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
set(SFML_USE_STATIC_STD_LIBS TRUE)

Doesn't work (CMakeLists), I need to have them in the folder or path variable atm


11
General / Problems for everything but VS
« on: July 12, 2015, 01:11:12 pm »
So I try to get SFML work outside of VS (tried eclipse and netbeans with mingw), but I am too dumb.
I, at least I assume so, set up everything and still get tons of issues.

E.g. my settings for netbeans:

C++ Compiler
Include: D:\Libraries\SFML-2.3.1-mingw\include
Preproc. Def.: SFML_STATIC

Linker
Additional Lib Directories: D:\Libraries\SFML-2.3.1-mingw\lib
Libs: the libs

What I get:

g++     -o dist/Debug/MinGW-Windows/cppapplication_1 build/Debug/MinGW-Windows/main.o -L/D\Libraries\SFML-2.3.1-mingw\lib -lsfml-graphics-s-d -lsfml-window-s-d -lsfml-system-s-d -lsfml-network-s-d

d:/Libraries/SFML-2.3.1-mingw/lib/libsfml-graphics-s-d.a(RenderWindow.cpp.obj): In function `ZNK2sf12RenderWindow7captureEv':
D:/sfml-release/_Sources/SFML/src/SFML/Graphics/RenderWindow.cpp:92: undefined reference to `glReadPixels@28'
and tons of other similar issues.


I would really prefer a way without VS, any help? :(

Pages: [1]