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 - Sebox

Pages: [1] 2
1
SFML projects / HeedJet
« on: March 18, 2017, 12:32:34 pm »
Hello everybody!




Intro


The main idea of the project it was a make multiplayer(client-server) 2d shooter game and put emphasis on the main core of engine. It must operate but the graphics is on the middle distance. It took me about 6 months. I’ve been working on the game after hours. With this project i introduce the multiplayer section.

In game we can create account and login, next we connect to the server and we can gain points killing the enemy. We have to make kills as many as possible. The one part of game is 15 minutes next client shows results for 15 seconds and next server respawn all players and we can play again 15 minutes. Relevant things that is we don't can jump only we have jetpack. If i decide to push the game forward i can add a lot of diversifying.
For example:
- spells,
- more weapon,
- changing weather,
- after kill, small point will be flying to player who killed somebody,
- obviously better graphics,
- protection anti-hacking system,
- grenade which will be use physics(bouncing off the wall and players),
- Now the main server have only 1 server which supports players, but i can try make server which will be make new „small server” when the first server will be full. For example: 60 people want to play, one „small server” can support 16 players.  So server distribute 4 „small servers” which will be operated by one big server.

But i really dont know if i want devote more time for this project. Time alone will tell.
One thing i know that is the project really educate me in multiplayer thing, generally in programming and in very small question also in hardware things.



General Implemented Functions


- During the create account client check if email have sign „@” otherwise get error. Similarly with password.
- I added loading bar to game using the thread.
- Server receive the information from client, for example: if password is incorrect, server send information to client and the user get error.
- Bullets are checked by server which simulated flight of bullet and if detect collision with enemy, then supply information in server and send information for all players for decline health.
- We also can write to each other in the chat.

I think that the more nice swell things you will see in video which i will do soon. Now i will show you the
photos.



Photos

















Let me know what you think!

2
General / Re: Static linking problem
« on: March 15, 2017, 08:38:21 pm »
As i wrote all is good but what i have to do if can build static libraries of Visual Studio like "msvcrt140d.dll" ??
When i change runtime library to Multi-Threaded Debug i get error type: LNK2038   mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MTd_StaticDebug' in animation.obj client

3
General / Re: Static linking problem
« on: March 14, 2017, 05:51:08 pm »
I turned on debugging and i get error in mutex, so i find in google that sf::RenderWindow can no't be a global variables, i get this in the main() and all is good. Thank you very much for help i think i would do this with super documentation but my main problem is english thats why the lucid tutorial dont help me much. :) :) :)

Intrestingly why its work in dynamic libraries and it makes problem in static hmm :)

4
General / Re: Static linking problem
« on: March 14, 2017, 04:53:33 pm »
I did what u spoken and i have same problem "...Application stopped working..."

5
General / Re: Static linking problem
« on: March 14, 2017, 12:47:15 pm »
I unmarked BUILD_SHARED_LIBS and marked SFML_USE_STATIC_STD_LIBS, so i have lib with -s suffix. When i only marked BUILD_SHARED_LIBS i have dynamically libs so without -s. So how i can add this to visual studio ?

6
General / Re: Static linking problem
« on: March 13, 2017, 06:52:30 pm »
Are you sure? If i dont marked this i dont have lib with suffix -s so i can't static link.  :(

7
General / Re: Static linking problem
« on: March 13, 2017, 05:45:04 pm »
Ok now certainly i have good compiled and installed SFML but when i try to compile my own program, i get error: LNK2038   mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease' in animation.obj   client

When i changed Runtime Library in Debug to Multi-threaded Debug i dont have this error but when i try to open the compiled exe i get error system "Application stopped working"

8
General / Re: Static linking problem
« on: March 12, 2017, 08:34:16 pm »
When i build INSTALL in visual studio i get error:

MSB3073 The command "setlocal
C:\Users\Sebastian\Desktop\cmake-3.8.0-rc2-win32-x86\bin\cmake.exe -DBUILD_TYPE=Debug -P cmake_install.cmake
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone
if %errorlevel% neq 0 goto :VCEnd
:VCEnd"
exited with code 1.     INSTALL

9
General / Re: Static linking problem
« on: March 12, 2017, 07:35:58 pm »
I downloaded SFML source next i open this in CMake, next i choose when the CMake have to build the binaries and where is the source code, next i marked the SFML_USE_STATIC_STD_LIBS and i click Configure and Generate, next open the compiled of CMake in Visual Studio and click Build Solution in Debug and in Release.

After build solution i have this folder:


And i copy the libs from this folder /\ and include from SFML source to one folder. Next i set the path in visual studio to libs and include. But i dont have freetype.lib, only lib type "sfml-window-s.lib"

10
General / Re: Static linking problem
« on: March 11, 2017, 08:23:42 pm »
In compilator, when i try to compile program

11
General / Re: Static linking problem
« on: March 11, 2017, 02:14:33 pm »
Now i have error: "cannot open file freetype.lib"


12
General / Re: Static linking problem
« on: March 11, 2017, 12:47:17 pm »
I use CMake. I have 3 folders:


I use path to install:

include and lib. But in lib i only have:

so where can i should find files with suffix -s ??

13
General / Re: Static linking problem
« on: March 11, 2017, 10:59:38 am »
Thank you for your answer, i add path for compile my own SFML(libs and include) and when i try co compile i get error
"LNK1104 cannot open file 'sfml-window-s-d.lib' client"

14
General / Static linking problem
« on: March 11, 2017, 10:23:59 am »
Hello

I try to static link my game and i get error.
I add SFML_STATIC to preprocessor.
In Release:
(click to show/hide)
In Debug:
(click to show/hide)

And when i run compile all is good but when i try to open my game i get error: "Program game.exe stopped working" when i use debug i get error in line when code is:
 RenderWindow window(VideoMode::getDesktopMode(), "Game", Style::Default, sett);
And the error is "Unhandled exception at the Location 0x77A2FF33 (Ntdll.dll)"
I use Visual Studio 2017, and i download package Visual C++ 14 (2015) - 32-bit
I really dont know where are problem.

15
SFML projects / Re: Last of the Ambaras
« on: November 29, 2015, 12:32:59 pm »
It look very good but maybe you should go towards graphics of izometric projection? You know like 2.5D maybe the result would be even better. Look to game Warcraft 3 or 2 i know its in 3D engine but  for such an outcome I mean. Anyway the game promises to be very well. Good luck ;)

Pages: [1] 2