Questions tagged [visual-studio]

Visual Studio is an integrated development environment (IDE) from Microsoft. It supports many different programming languages.

Filter by
Sorted by
Tagged with
4
votes
8answers
12k views

Why is the IntelliSense not working when I open a new script in Visual Studio?

The strange thing is that opened scripts or newly opened ones are working fine. It's the new created C# scripts that are not working. With not working, I mean the MonoBehaviour is not in light blue ...
1
vote
1answer
660 views

Adding Log4Net to Unity

I would like to add log4net library as a logging tool to visual studio project which created by Unity, Is this possible? I ...
3
votes
1answer
213 views

Synchronization problem with Visual Studio 2017 and Unity 2017.1.1f

Sometimes I need to change a lot of files and Clean and Rebuild the Solution to get the changes on Unity, am I missing some configuration on Visual Studio or Unity? I uninstalled everything and make a ...
1
vote
0answers
123 views

Visual Studio IntelliSense & syntax highlighting not recognizing Unity types [duplicate]

Frequently when I open a Unity C# script in Visual Studio, the built-in Unity Engine types aren't recognized, so I don't get syntax highlighting or code completion hints for things like ...
0
votes
1answer
5k views

C++ and TinyXML2 Error: **this** was nullptr

I'm trying to make a video game using Microsoft Visual Studio Community 2017 and Simple DirectMedia Layer 2 (SDL 2.0.5, and SDL image loading file version 2.0.3). A map editor called 'Tiled!' was ...
1
vote
2answers
8k views

Getting error when following learnopengl.com “Hello Window” Tutorial; how can I fix them?

I am not sure what to do, I have added the include / lib files in the IDE include / lib folders. But I am getting these errors. Someone please help me! What am I doing wrong? Do I need to add some ...
0
votes
1answer
36 views

Switching from one solution to another in visual sudio [closed]

I have been able to bring a number of projects together like this: But now, whenever I try to switch from "Bitmap Loading and Drawing" sln(do realize bold letters) to another sln, I am unable to do ...
1
vote
1answer
74 views

Do I lose any functionality using Visual Studio for Unity 3d?

MonoDevelop has always had a strange tendency to stop functioning in basic ways ... autocompletion, copy/paste-clipboard, error detecting, and other silly things. I routinely fix this by running ...
1
vote
0answers
83 views

How to import a NET .dll newer than 2.0 into Unity?

I'm trying to build one of the simple EventBus libraries from Github and import them into ...
1
vote
1answer
630 views

Program compiled with assimp will not start

I have recently updated my game engine source code to use the visual studio(2017) vc141 toolkit. I am using Assimp 3.1.1 for model loading. The project compiles and links, and the appropriate dll's ...
0
votes
1answer
571 views

_BitScanReverse identifier not found

I'm developing some additional options for a game (which means I don't have knowledge about whole game's methods, classes etc.). Anyway, I have been trying to build the project for codes I've ...
0
votes
1answer
342 views

How to use images as Sprites in Visual Studio 2010 C++? [closed]

So i'm trying to create my first videogame, a simple code of "Space Invaders" for a project at school and I'm always getting stuck at images. I'm using C++ to code and I've tried both SFML and Magick++...
1
vote
2answers
194 views

Are closing window and destroying DirectX11.1 independent?

I have a project with DirectX support. In this program uses two threads. One is a dedicated message loop and the second is executing DirectX API's. The question is about ending such program. The ...
3
votes
1answer
455 views

How do I add freeglut to a Visual Studio project?

I am working on making a game for Windows in c++. I have previously made games for Ubuntu using freeglut, and I found freeglut for windows, but when I added it to the ...
2
votes
1answer
621 views

No more OpenGLES 2 UWP template in Visual Studio 2017?

In Visual Studio 2015, a convenient cross-platform C++ project template was available named "OpenGLES 2 Application (Android, iOS, Windows Universal)." I cannot find this template in Visual Studio ...
1
vote
1answer
584 views

UE4 crashing after compiling, anyway to fix?

I'm working on a small game project and made a completely noob mistake and don't have a back up. Well, after compiling my most recent c++ code, the engine crashed. And now every time I try to reopen ...
3
votes
2answers
3k views

Unreal engine how do I change the visual studio version without having loaded up a project?

I get an error which I mentioned in a previous post. I did a little more research on this error and found out that I need to use an up-to-date visual studio. I think that I might need to change the ...
1
vote
1answer
401 views

I want to test the Animator component of a gameobject using nunit, but I am having issues

I made a Blender 3D model with animations. Then I used the Animator Controller, and attached it to the model. The Animator Controller has a few Boolean parameter variables like ...
15
votes
5answers
9k views

How can I get rid of “missing DLL” problems?

I made some games with Visual C++ 2015 and OpenGL. When I ran it on my machine there was no problem, but when I ran it on other machines it shows that some DLLs are missing. I want to know how to make ...
10
votes
3answers
17k views

Unity: “inconsistent line endings” dialog shows up ever time I open VS with unity

Everytime I open a script file from unity with visual studio this dialog shows up about normalizing the line endings? What does this mean? I click Yes every time but still can't get rid of it. It only ...
0
votes
2answers
426 views

sfml drawing text c++

using visual studio 2015 and SFML . relevant code: ...
2
votes
1answer
3k views

How to build a C# library for Unity as a pure Visual Studio project

The aim is to build a relatively simple (2D) game in Unity with most of the game logic in a non-visual AI. The AI needs a lot of testing and debugging independently of any visuals (which is best done ...
1
vote
2answers
2k views

Unity launches both Visual Studio and Monodevelop simultaneously

When I open a script for editing from Unity, both Visual Studio and Monodevelop are launched, resulting in two instances of the same solution to be open in two different script editors. I am ...
1
vote
1answer
361 views

C# Script file is not showing in Onclick Event in Unity 5.0.4f1?

I uploaded the levelLoader file to the gameobject. Still, when I drag the script file onClick Event, the no function is null. Why? Can anybody help me? C# code: ...
0
votes
1answer
191 views

On Function event of button is not loading C# Script?

I am making a car game in unity 5.0.4f1. I am facing two snags. While installing 3.5 net framework, it gives an error. I searched, it took my 2hrs and problem couldn't solve. Then, I reinstalled ...
4
votes
1answer
262 views

Trapping Asserts in Visual Studio

I'm writing a 2D game with some fairly complex off-screen logic, with plenty of room for bugs. My usual habit is to write code with a lot of Asserts in it. When an Assert gets hit I drop into the ...
1
vote
2answers
4k views

Unity solution not compatible with Visual Studio

Since updating to the most recent version of Unity 5.4.0f3 Personal Edition, whenever I double click on a script, it launches Visual Studio, but I get an error saying that this version of Visual ...
-1
votes
1answer
657 views

Detect camera collision in OpenGL without using bounding box

Is there any way to detect collisions in OpenGL without using any kind of bounding box? I have created a maze/labyrinth and I want to move the camera/player inside ...
0
votes
1answer
52 views

Change color of a texture in a specific matrix location

I have following bool matrix: bool[,] centerPiece = new bool[,] { { false, true, false }, { true, true, true }, { false, true, false } }; Using a method, I put a ...
0
votes
2answers
51 views

Setting up a draw class giving exceptions

I'm currently trying to set up a class to draw tiles for me in different shapes, but it's currently giving me a hard time, as it's giving me nullreferenceobject errors in my secondary class. My Game ...
0
votes
1answer
52 views

Placing sprites properly to form an object

I'm working with XNA in Visual Studio, and I'm trying to draw this sprite: https://i.imgur.com/Dy5nSuG.png Only using this sprite: https://i.imgur.com/6T8TeTQ.png My current attempt relies on a ...
2
votes
1answer
297 views

Using a single square sprite to create tetris-like objects

I'm currently working on a project in XNA, Visual Studio, where it is crucial I can create the classic tetris figures solely based on one square sprite (So I can return to each individual square at a ...
0
votes
1answer
1k views

Control SDL_Mix Sound Effect Volume

My game (coded in c++) uses SDL Mixer for its sound. But how do I make certain sounds louder than others. In the game's Main menu, one button is not immediately unlocked, creating a sound if you try ...
0
votes
1answer
819 views

Why doesn't SDL_Mixer play my audio file?

I'm coding a game in SDL2 and I'm implementing the audio system using SDL_Mixer. However, my music file won't play during the program and I don't know why. How do I get the music to play? Audio ...
2
votes
1answer
759 views

Integrating the Steamworks API achievements into your game

I'm coding a game in Visual Studio 2015 and am wondering how to go about adding steam achievements to it using the Steamworks API, do I need to have my game on steam before hand or if not what's the ...
1
vote
3answers
484 views

How to export Visual Studio game for mass distribution

I've coded a Visual Studio 2015 game in SDL2 and ran some distribution tests, I gave a user the game's .exe (the raw game with no files) and they got the error SDL2.dll is missing. How would I export ...
0
votes
2answers
1k views

Debugging .FX files in Visual Studio not working

So I have been learning how to use DirectX 11 for a while now and I have chosen to use the .FX framework rather than seperate .vs & .ps files. (I know it's deprecated but I found it a little ...
0
votes
1answer
80 views

Building a game project in C# for Unity in VS?

Say that a project needs to be created from scratch for later use in Unity, for scripts. What is the ideal way to setup this without using a template in Visual Studio? Can this be created in C# with ...
0
votes
1answer
853 views

OpenGL multiple viewports with 3d-2d viewing

I am trying to draw two viewports, the one on top having a 3D stuff into it, and the other at bottom with a 2D stuff fed into it. However, whatever 2D stuff i draw in the bottom viewport is not ...
0
votes
1answer
67 views

How to use the Windows Phone SDK Namespaces in my Unity project?

I'm developing a game with Unity and using C# as the language for the scripts. I want to use the Device Vibration in my Microsoft Phone which is easily available for Windows Phone Development in ...
1
vote
1answer
964 views

Thrown exception pointing to xmemory0

Within a static library I'm creating, I have a struct called Vertex that holds three variables used for an image drawn on a plane: ...
0
votes
1answer
3k views

How to create animation using sprite sheet in C++ and SFML 2.0?

I was wondering how do animation using a sprite sheet. I have a sprite sheet and the size is height:400 width:601 The code I am using is: ...
0
votes
1answer
140 views

SDL2 in a VS2015/C++ panel

I'm trying to use SDL2 in a panel (VS2015/C++) and cannot find solid examples of how to connect the two. Anyone know how this is done? I've tried some code found in various places, but no luck yet. ...
0
votes
1answer
308 views

Can't get to work Spritefonts on monogame 3.5(using Visual Studio 2015 Comunity)

I've been trying to get to work spritefonts, but to no avail. I've added the pipefont to the Pipeline but when I try to load it, it shows this error here Here it is the spritefont content ...
1
vote
1answer
368 views

What is the difference of target frameworks for unity3d?

In Visual Studio in properties I can change target framefork. I cannot find anywhere what ...
8
votes
2answers
4k views

Force Reload VS soution Explorer when adding new c# Script via Unity3d?

When I create C# script (Create -> C# Script) via Unity3d or delete it from Unity3d - <...
0
votes
2answers
308 views

MonoGame Gamepad Y axis flipped?

I'm following a book I bought on Google Play that is teaching me the ropes of MonoGame, and in Chapter 2 it introduces creating an input wrapper that takes care of all the input methods for a game pad ...
0
votes
1answer
148 views

Game crashes when sound is finished

I'm trying to code a simple audio playback test game (which will be used in my actual project), and everything works fine, except for the fact that after the audio has finished playing, the game will ...
3
votes
1answer
2k views

How to buffer an image in winbgim?

So ive always had problems with buffers and never used them before. I read up on the topic online but since winbgim is so old i couldnt find any definite answers to the topic. So im gonna ask them ...
1
vote
1answer
1k views

CryEngine with Visual Studio 2015

I receive an error in Visual Studio when I open CESharpFramework from my project folder. I had assumed I could use Visual Studio 2015; but the error tells me I need an older version of Visual Studio ...