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

Pages: [1] 2
1
Graphics / Re: Manually adjust view sizing ?
« on: April 13, 2015, 12:30:51 am »
I fixed it with this.

m_view.setViewport(sf::FloatRect(0,0,1920.f / mNativeVideoMode.width, 1080.f / mNativeVideoMode.height));

Not sure if this is bad or not, but it worked.

2
Graphics / Re: Manually adjust view sizing ?
« on: April 13, 2015, 12:22:29 am »
I don't resize the window. The window stays the same i just want it to display the 1920 x 1080p properly the size of the window is always 1280 x 800. I just want to shrink the image properly to fit the 1280 x 800 screen. I added this :
m_view.setViewport(sf::FloatRect(0,0,1,1));
But i still get the same results.

3
Graphics / Manually adjust view sizing ?
« on: April 12, 2015, 11:44:32 pm »
So i have created a view:

m_view (sf::Vector2f(1920 * 0.5f, 1080 * 0.5f),sf::Vector2f(1920.f, 1080.f))
m_nativeVideoMode = sf::VideoMode::getDesktopMode();   
m_window.create(m_nativeVideoMode, "Neon",sf::Style::None,settings);
m_window.setView(m_view);
 

The screen the game is running on has the resolution of 1280 X 800. When something is drawn it isn't modified properly to fit the screen. I submitted a screen shot the white part I highlighted to show the screen size. As you can see it doesn't take advantage of the full space. Is there any way i can over ride this and make it fit properly ?

4
Graphics / Deferred Shading
« on: April 11, 2015, 06:39:56 pm »
How do i pass subroutines to the SFML shader ?

5
Network / Re: Sending Time Over the Network
« on: April 09, 2015, 10:44:14 pm »
Oh i'm using 2.0, should probably update.

6
Network / Sending Time Over the Network
« on: April 09, 2015, 12:57:18 am »
When i send a packet the last think i put into the packet is the local time that it was sent. For this i am using chrono, but the problem is that it returns a INT64 which isn't supported. If I cast the data into a different type it just isn't precise enough! I cant use sf clock as I need to use the local time so i can measure the Round Trip time of the packet. So has any one had this problem and how did they get around it ?

7
Network / Re: Optimizing Networking
« on: April 03, 2015, 07:48:55 pm »
The connection is laggy on the client side, when a certain amount of NPCS spawn due to the traffic building up i'm assuming. I should probably start with only sending data about my entities a set number of times, and i also need to find a way of only updating the NPC to the most recent packet that contains information about that NPC. I just don't know how and i'm sure their is some clever ways of doing this. All i want is a name of a book or relevant resources that i can read to help me with the problems.

8
Network / Optimizing Networking
« on: April 03, 2015, 07:22:52 pm »
Hey!

So i have made a game with networking. It has gotten to the point where i need to start optimizing my networking code, but i don't really know how! Does any one have any good sources of information for optimizing ?

Thanks.

9
Window / Re: Shrinking SFML coordinate system
« on: August 11, 2014, 07:55:51 pm »
Sorry I didn't see that!

10
Window / Shrinking SFML coordinate system
« on: August 11, 2014, 05:40:48 pm »
So the coordinate system is the same as the size of the window , for example you will have a window that is 800,800 and the top left corner is 0,0 and the bottom right corner is 800,800! Can you shrink the coordinate system inside the window ?

For example you will have a window at 800,800 , top left is 0,0 but the bottom right is 1600,1600 ? But the window still only takes up the 800,800 pixels ?

Thankyou :)

11
General / Re: SFML installation errors visual studio 2012
« on: August 06, 2013, 07:45:53 pm »
On linker input ,configuration release i have put : sfml-graphics.lib;sfml-window.lib;sfml-system.lib
and on the same page but configuration debug(not active(debug)) i put :
sfml-graphics-d.lib;sfml-window-d.lib;sfml-system-d.lib;

i haven't put SFML-STATIC in the c/c++ pre-processor , i tried it didnt fix the problem , i have out the dll's in the debug folders doesn't make any difference either

12
General / Re: SFML installation errors visual studio 2012
« on: August 06, 2013, 07:29:14 pm »
I get
1>------ Build started: Project: Game, Configuration: Debug Win32 ------
1>  main.cpp
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function "void __cdecl `dynamic initializer for 'Window''(void)" (??__EWindow@@YAXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ) referenced in function "void __cdecl `dynamic initializer for 'Window''(void)" (??__EWindow@@YAXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ) referenced in function "private: void __thiscall game::Process_Events(void)" (?Process_Events@game@@AAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ) referenced in function "public: void __thiscall game::Run(void)" (?Run@game@@QAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function "private: void __thiscall game::Process_Events(void)" (?Process_Events@game@@AAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ) referenced in function "private: void __thiscall game::Render(void)" (?Render@game@@AAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function "private: void __thiscall game::Render(void)" (?Render@game@@AAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) referenced in function "private: void __thiscall game::Render(void)" (?Render@game@@AAEXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z) referenced in function "void __cdecl `dynamic initializer for 'Window''(void)" (??__EWindow@@YAXXZ)
1>Game.obj : error LNK2019: unresolved external symbol "private: void __thiscall game::Update(void)" (?Update@game@@AAEXXZ) referenced in function "public: void __thiscall game::Run(void)" (?Run@game@@QAEXXZ)
1>Game.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (__imp_??0CircleShape@sf@@QAE@MI@Z) referenced in function "public: __thiscall game::game(void)" (??0game@@QAE@XZ)
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (__imp_??1CircleShape@sf@@UAE@XZ) referenced in function "public: __thiscall game::~game(void)" (??1game@@QAE@XZ)
1>C:\Users\alex\Desktop\Sfml-Stuff\Game\Debug\Game.exe : fatal error LNK1120: 13 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

now! been trying for days to get this to work

13
General / Re: SFML installation errors visual studio 2012
« on: August 06, 2013, 07:15:24 pm »
I re-installed it all now i am getting missing "sfml-system-d-2.dll missing from your computer" when I try to run anything !Any help ??

14
General / SFML installation errors visual studio 2012
« on: August 06, 2013, 03:10:23 am »
I have done it step by step 3 times and done it right and I get this:
1>------ Build started: Project: game, Configuration: Debug Win32 ------
1>  Main.cpp
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::String::String(char const *,class std::locale const &)" (??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (??0VideoMode@sf@@QAE@III@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::close(void)" (?close@Window@sf@@QAEXXZ) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::isOpen(void)const " (?isOpen@Window@sf@@QBE_NXZ) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Window::display(void)" (?display@Window@sf@@QAEXXZ) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall sf::Shape::~Shape(void)" (??1Shape@sf@@UAE@XZ) referenced in function "public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (??1CircleShape@sf@@UAE@XZ)
1>Main.obj : error LNK2019: unresolved external symbol "public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function _main
1>Main.obj : error LNK2019: unresolved external symbol "public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (??0CircleShape@sf@@QAE@MI@Z) referenced in function _main
1>Main.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
1>Main.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>C:\Users\alex\Desktop\game\Debug\game.exe : fatal error LNK1120: 16 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
what do it do ??

15
General / sfml OOP
« on: August 05, 2013, 05:36:08 pm »
I do games programming at university and part of it is that we have to learn oop with sfml. Well i am having massive difficulty doing this! I just can't work out how to lay my programmes out , or even how to begin planning and designing the objects can i have some help on how i would start planning/designing them ! thanks

Pages: [1] 2