Jump to content

  • Log In with Google      Sign In   
  • Create Account

BitMaster

Member Since 08 Aug 2000
Offline Last Active Aug 17 2016 04:05 AM

#5306114 Is it pathetic to never get actually helpful answers here?

Posted by on 16 August 2016 - 03:10 AM

You know what? It is to the point where I don't want to be neutral anymore. I asked several times in my previous question to ask the answerers to clarify what they meant, and they didn't reply.


While I can understand a certain amount of frustration with Kylotan in particular there will always be people who are unhelpful and/or distracting.

That said, Hodgman pretty much answered your question in the very first reply of that thread. After that there was only the option of silence or talking about the usefulness of the question. Granted, Kylotan started talking about something completely unwarranted and mixed that in with some valid points but, as I said, that's the way he is and one just needs to learn to deal with that.


#5306110 Disable Ubuntu shortcuts

Posted by on 16 August 2016 - 02:14 AM

It seems strange to prevent an application from responding to arbitrary parts of an input device.

By setting a global shortcut, I explicitly define that I want to dedicate that key-combination for that particular function. What makes an application believe it can ignore my choice? How do I reach that particular function if it overrides the one connection I have?


From what I understand one of the key issues here is not that this is not about me setting but an obnoxious preconfiguration. If this was something you had to explicitly opt in for this whole discussion would be moot, but it is instead something the average user will encounter, not even understanding why the game does not work as intended.

Setting that aside, it is very much not uncommon for games to knowingly circumvent some platform behaviors. That is always a thin line to walk but considering games are typically used very differently from normal desktop applications this can be justified.


#5305751 Pre-emptive Solution for 'The application was unable to start correctly (...

Posted by on 14 August 2016 - 09:12 AM

I thought if you compile a Visual-studio 2013 Win32 project using `/MT` Code Generation->Runtime library then it will automatically package all dependency dll's - including 3rd party dll's - into the executable?


That is absolutely not the case. The /MT switch links the static C++ runtime. If you use any 3rd party dependencies you will have to ensure you compile them to static libraries and link to those. Note that getting some libraries to compile in this way can take some knowledge and work since a lot of projects are not intended to be used that way. There are also potentially problematic license issues unless you originally picked your libraries with an eye towards that.


#5305606 Different Versions of VS C++.

Posted by on 13 August 2016 - 02:50 AM

Personally I would much rather use something like CMake or Premake to generate my project files. Not only does that eliminate the potential headache when switching to a different version of MSVC I also get additional build environments for several platforms and compilers for free. I haven't had to deal explicitly with an MSVC project file at work for years and it made me a happier person.


#5305443 Estimating development time

Posted by on 12 August 2016 - 02:40 AM

How to estimate development time more accurately:

  • Get several years of experience.
  • Plan carefully and comprehensively.
  • Estimate the length of each task listed in your plan, using your own experience and any available industry data.
  • Add together the task times to get a reasonable total time.
  • Multiply by 10.

I do not agree with your point 5. The heuristic I have been exposed to suggests to change to the next higher unit of time (day to week, week to month, ...) and multiply by pi, then round as reasonable.


#5305279 Managing opengl contexts for more than one window

Posted by on 11 August 2016 - 05:58 AM

That's not an area I have much experience in, but if you do not create a texture to render on but a renderbuffer (which you can render to in an FBO but not use as a texture) you can blit extremely fast between renderbuffers (including the implicit renderbuffer of your window). Thta's pretty much what OpenGL already has to do anyway, but hidden from you. A monitor cannot display multiple samples per pixel. They must be collapsed into a single sample before display anyway.

I would have a look at the OpenGL wiki regarding multisampling, I remember reading it a while back and it cleared up a lot of misconceptions.

As far as I know, no one really does multisampling outside of FBOs anymore.


#5305090 How To Fix This Ugly Code Here?

Posted by on 10 August 2016 - 06:17 AM

std::map<int, bool> keyState;

bool isPressed(int key)
{
   auto it = keyState.find(key);
   if (it != keyState.end())
      return *it;
   else
      return false;
}

void setKeyState(int key, bool pressed)
{
   keyState[key] = pressed;
}

void clearState()
{
   keyState.clear();
}
Not the ideal solution but I'm in no mood to check the range of key values SDL can deliver and just about everything is better than the mess you currently have.


#5305056 How To Compress Model Texture Into One

Posted by on 10 August 2016 - 04:01 AM

There are many rectangle packers with different advantages and disadvantages. This paper makes an effort to explain and evaluate several of them.


#5305038 Very Simple Parser A Bit Similar To Bbcodes

Posted by on 10 August 2016 - 01:52 AM

Is there a simple and fast tokenizer that suits my needs? Or just should I rather write one?


If you already depend on Boost, Spirit might be a relatively simple way to get a decent tokenizer. I'm not a big fan of writing one by hand unless you know your whole language from the start, know it's simple and never needs to be extended afterwards.


#5305027 Sfml - Missing Dlls, One Of Them : Msvcr100D.dll

Posted by on 10 August 2016 - 12:22 AM

Then you are not linking with your new SFML, haven't replaced all of the DLLs from the previous version, linking to something else which pulls in the MSVC 2010 runtime or SFML has not been built correctly and something in its dependencies pulls in the old runtime.

I usually do not even bother with precompiled libraries. I once ran into a precompiled library which pulled in an unexpected (and also completely unneeded) dependency which was also present on most systems (most, not all). Identifiying that as the problem for some select few customers took quite some time, especially since the error message was extremely unspecific and unlike the usual "I'm just missing that DLL I want".
Building libraries yourself as a matter of course will not only force you to gain some skill points in some areas otherwise neglected, it will also be an insurance for the future. Getting all the libraries you need for that specific version of MSVC you want can be quite futile. If you need more special build settings (or a compiler/runtime not usually used on your platform of choice) it can quickly become extremely impossible.


#5304414 Odd Offset With Jframe?

Posted by on 06 August 2016 - 03:29 PM

It's been a long time since I did anything with Swing but I would assume the size you specify is the size of the whole window (including borders, title bar and whatnot), not the size of the client area.


#5303958 String To Char* :(

Posted by on 04 August 2016 - 06:15 AM

CopyToPCHAR needs to take either a pointer or reference to char*, otherwise all changes are done to local variables and lost on return.


#5303772 Gui Libraries?

Posted by on 03 August 2016 - 05:45 AM

I stumbled over nuklear lately. I have not yet found the time to look at it in detail or test-drive it but it looks at least interesting on the surface.


#5301920 Moving Files Within Jar

Posted by on 22 July 2016 - 04:47 AM

Next, I wanted to store the DLL within the jar file so I could copy it to another location. I've tried everything, honestly. I just can't figure out how I would go about copying the DLL file from within the actual jar file to an external location.


I don't really see the problem. It's been a long while since I did something with Java but if I remember correctly you could trivially get an URL to any file in the .jar you loaded yourself from as an URL and use that URL to open a binary stream. Then just open a binary stream in the location where you want the DLL for writing and copy the content over. A far more interesting problem is going to be picking a sensible location to put the DLL and getting Java and/or the OS to load it there.


#5301692 Problem With Cs:go Sensitivity C++

Posted by on 21 July 2016 - 01:05 AM

0.022000 und 0.022 are not necessarily the same when you express them as IEEE 754 floats. I'm not sure what you mean by "sensibility is more accurate" but you should probably read this (ideally both pages linked there).




PARTNERS