Jump to content

  • Log In with Google      Sign In   
  • Create Account

Khatharr

Member Since 24 Apr 2010
Offline Last Active Private

#5276763 VS2015 without internet explorer

Posted by Khatharr on 18 February 2016 - 09:40 PM

After several months of use I've had no VS2015 issues with stock IE on Win7 and Win8.1.




#5276737 Continous movement for square

Posted by Khatharr on 18 February 2016 - 08:56 PM

Correct. They're exactly what they sound like in that context.

 

The reason your square appears not to move when you adjust the z coord is that you don't have a projection set up, so you're probably still using the orthographic projection from SFML. If you set up a projection matrix then the object should appear to move nearer or farther as you adjust the z. Setting a projection also involves setting the near and far planes, so it should give you more room to work in as well.




#5276730 VS2015 without internet explorer

Posted by Khatharr on 18 February 2016 - 08:39 PM

 

Does notepad use IE, or do they both use comctl?


I don't know how you came up with that from my analogy.

 

You made a non sequitur and then extended it ad absurdium and now you're behaving as if I were the one who did it.
 

 

There's a pretty massive difference between "don't require this optional component" and "don't let anything require anything".


My point is that IE is NOT an optional component when talking about Visual Studio, regardless of whether it's optional when talking about Windows.

 

There are a lot of things that break if IE is removed (you even get a big warning to that effect when removing it), which is why MS got sued and lost.
 
Components required for the correct functioning of the system should be included in the OS and referred to by the web browser and other programs, not included in the web browser and referred to by the OS. If a component is required by several common programs but not by the OS then it should be a component; like CRT, DirectX, or any of the other shared packages or libraries that are involved in running programs on Windows.

 

Just because Visual Studio can be installed on Windows does not mean that it should only depend on the same dependencies that Windows guarantees is available. That way lies madness and extremism.

Um... No...

Because all of the VS deps are either downloaded during installation or are already included in Windows... Provided you include IE, which is included in Windows unless you're European and have to add it yourself just to get your shit to work right.




#5276262 VS2015 without internet explorer

Posted by Khatharr on 17 February 2016 - 11:53 PM

 

 

removing it from your system is actually dumb

 
Not nearly as dumb as
 

There are chunks of the OS and MS products that will assume it is installed


But then we already had that lawsuit...

 


Would you like it if Notepad was 50GB because it statically linked with every possible keyboard, mouse, GPU, and printer driver just in case the user uninstalled one of those critical components from the OS?

Or would it be better if you had to enter punch cards instead because nobody wanted to commit to writing reusable software?

 

 

Does notepad use IE, or do they both use comctl? There's a pretty massive difference between "don't require this optional component" and "don't let anything require anything".




#5276251 VS2015 without internet explorer

Posted by Khatharr on 17 February 2016 - 10:16 PM

removing it from your system is actually dumb

 
Not nearly as dumb as
 

There are chunks of the OS and MS products that will assume it is installed


But then we already had that lawsuit...


#5276083 Is it worth it to learn LUA scripting for the AAA game industry?

Posted by Khatharr on 16 February 2016 - 11:09 PM

Lua is trivial to learn if you already program. If you're interested in it then just do it.




#5275380 Behavior Trees or FSM?

Posted by Khatharr on 11 February 2016 - 10:25 PM

Sorry to possibly throw a wrench in your plans.

 

I have exactly 0 experience in making an AI, but have been reading about various tactics in implementing things, as they look interesting.

 

I know FSMs (but in a different context), and browsed BTs a bit (and like you I have problems picturing its execution).

Recently I ran into GOAP (goal oriented action planners). In GOAP, you let go of rigid order in decision making, and instead have individual actions that you combine into achieving a goal.

 

I cannot tell you how this compares to FSM or BT, or even if it actually works, due to my 0 experience, but it sounds like this may be an alternative that could be of use, for some part of the decision making.

 

GOAP is really for high-level strategizing. It can be pretty smart, but it's really only good at selecting action states. For a game like Shadowrun it would be simpler, but in a top down squad shooter like OP describes it would likely be hybridized with an FSM or similar.




#5274564 SFML Cannot get sprite rect to change

Posted by Khatharr on 05 February 2016 - 06:46 PM

You may want to use an enum for directions and make a changeDir() function that will accept a direction as its argument.
class Player {
  //blah blah
  enum Direction : int { DOWN = 0, LEFT, RIGHT, UP };
  Direction facing = DOWN;
  const int TEXTURE_CELL_HEIGHT = 24;

  void changeDir(Direction dir) {
    if(dir != facing) {
      facing = dir;
      sf::IntRect srcRect = playerSprite.getTectureRect();
      srcRect.y = dir * TEXTURE_CELL_HEIGHT;
      playerSprite.setTextureRect(srcRect);
    }
  }

    //...
    if (sf::Keyboard::isKeyPressed(sf::Keyboard::W))
    {
      changeDir(UP);
      player.cPos(0, -10);   
    }
    //...

  //blah blah
}
 
Also, the class is named 'Player', so you don't have to name it's members 'playerThis' and 'playerThat'. You can just use 'this' and 'that', since they're already scoped within Player.


#5274407 Read one text line without limit correctly

Posted by Khatharr on 05 February 2016 - 02:53 AM

http://man7.org/linux/man-pages/man3/getline.3.html

 

This is a nonstandard function, but you didn't say what platform you're on, so...

 

Note the second paragraph in the description.




#5274383 Hi there. Please read. Many thanks.

Posted by Khatharr on 04 February 2016 - 09:13 PM


half a dozen games out over the next 24 months

 

Your future holds difficulty.




#5274168 [Debate] Using namespace should be avoided ?

Posted by Khatharr on 03 February 2016 - 09:29 PM

Never in headers.

 

Prefer scoping it.

 

Pefer:

using std::string;

 

over

 

using namespace std;




#5273784 Where to begin?

Posted by Khatharr on 01 February 2016 - 09:38 PM

Too bad you didn't ask this a few days ago or you could have tried to hook up with a group at Global Game Jam.

 

You may want to google around for jams or similarly structured competitions.

 

I found this in the first few results from "game jam":

http://www.indiegamejams.com/




#5273750 How to implement GLSL marching ant shader

Posted by Khatharr on 01 February 2016 - 05:41 PM

Yes. "Texels" in this case. It's called multi-sampling (though most people asociate that term with antialiasing). There's no trick to it, you just take more than one sample. Be aware that sampling is expensive though.


#5273411 Order of transformation confuse

Posted by Khatharr on 30 January 2016 - 06:20 PM

A) Something is wrong with that mesh.
B) Desk check - do the math on paper to determine your desired matrix, then inspect the matrices being generated.
C) If you want to see which order is giving the correct transform you're going to need another object around the place to compare visually. For a simple box like this you're going to get (should get, anyway) a box from either transform.


#5273352 How to handle Foilage (Tree/Bush) Impact & Motion

Posted by Khatharr on 30 January 2016 - 09:15 AM

Looks nice. You may want to tune the amplitude decay a little more so that it decays faster.

The UDP/TCP thing isn't really a "holy war" issue in this case. For games of this sort with rapid state updates UDP is recommended because lost packets can simply be skipped, rather than waiting for timeout and retransmission. TCP may work over a LAN with limited connections, but beyond that the added latency and packet loss make it untenable. TCP is really tuned for bulk data transmission (file downloads) or transactional exchanges (card games, for example), where latency is less important than reliable delivery and ordering.

Gaffer has a good article about this that explains the reasoning succinctly.

http://gafferongames.com/networking-for-game-programmers/udp-vs-tcp/




PARTNERS