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
1 vote
0 answers
71 views

How do I create a build from a custom Game Engine?

I have an custom Game Engine, made in C++ and made in Microsoft Visual Studio 2019. Currently, this Game Engine has a .sln with the following projects: TheGameEditor, which is the current entry point ...
0 votes
0 answers
85 views

Cmakelists.txt with sfml/glew/glm .exe doesn't work

I am working on a game in c++, i want to make a Cmakelists.txt file for build a .exe file. ...
1 vote
1 answer
452 views

OpenGL - Debug version runs faster than Release version

My Visual Studio 2019, 64-bit version of Tetris using OpenGL runs significantly faster, 3X, in Debug mode than in Release mode. The image above shows the board. Each cycle of the rendering or game ...
0 votes
0 answers
72 views

Can't start Unity project, none of the scripts load and materials are pink: JSON parse error: The document is empty

I am trying to open a project from a company, the problem is, nobody has this problem except me, so one can replicate it. When i open the project i get the following issues: There seems to be a file ...
0 votes
0 answers
39 views

Specular lighting does not appear

I'm struggling to add specular lighting on-top of diffuse lighting and not entirely sure where I'm going wrong. I've followed the instructions given in our lecture but it just doesn't seem to be ...
0 votes
1 answer
773 views

Visual Studio not adding the header file to the Solution explorer

I'm having trouble with my Unreal Visual Studio 2019 project. I created a new header file, and saved it in the same folder my other ones are in. (I didn't add these, they were in the starter project ...
0 votes
0 answers
377 views

How can you get the Sid Meier's Civilization V SDK to run?

I'm trying to get the Sid Meier's Civilization V SDK to be able to do some improvements to the UI. It is possible to install and run it from Steam Library after ...
0 votes
1 answer
49 views

Bullet physics linker error

I am trying to build my project in VS, which is a copy of HelloWorld.cpp provided by Bullet. I am getting a list of errors of sort "unresolved external symbol" when I build my project, ...
1 vote
1 answer
361 views

How to get Keyboard working with GameInput on PC in C++

I need some help here. I try this for a while now but it won't work and I can't find anything online. I want to write my own input handling. At first I used XInput for gamepads and Win32 callbacks for ...
1 vote
0 answers
17 views

Editor script in VStudio cannot 'see' main scripts

(Notice: This is a crosspost with r/UnityHelp) When loading a custom editor script into VStudio, it cannot see the main game scripts. This is quite annoying for writing code, as you'll imagine. ...
0 votes
1 answer
29 views

How can I load symbols for Composure?

I'm trying to load symbols so I can use breakpoints in Composure scripts and see how they control the PostProcessing of the SceneCapture2D component (because of this problem), but breakpoints hit. I'...
1 vote
3 answers
6k views

How to generate .sln files manually in Unity

I'm using git with a Unity project of mine. I'm working on my home machine and also on one at school. I started it at home and it works perfectly on my machine. Once I cloned it at school it opened ...
0 votes
0 answers
38 views

Room re-drawn multiple times when player walks into door

Using Visual Studio with C#, I am trying to have another room redrawn after the player walks into a door. What I'm finding is it creates more than one room and the walls don't line up. The code is ...
0 votes
1 answer
47 views

playerOne.Score += 1; isnt working when my player picks up a item?

so currerntly i am working on a game just uses visual studio using C# but i have a issue where the player picks up a coin but it is not added to the score any reason why this would be. ...
0 votes
2 answers
107 views

Can I contribute code to an Unreal game without running the engine on my system?

I want to get into game programming, but my system can't run Unreal Engine. Another programmer I'm working with is using Unreal on his system, so I want to know if it's possible for me to code using ...
1 vote
2 answers
25k views

Error: not all code paths return a value [closed]

I'm new to unity, so I've been having problems with my code here: ...
0 votes
1 answer
25 views

Visual Studio showing only one code suggestion?

I'm on visual studio 2022 (not visual studio code) for unity, and for some reason, visual studio will only display one suggestion, and asks me to press Alt+. to see the next one. IntelliSense is ...
0 votes
1 answer
466 views

How to change sprites for multiple child object from a parent?

I am not much of an expert, tried to look up for solutions but I never found any that I could use. I have a parent object, and I want to change it's child objects randomly. This is the hierarcy: I ...
0 votes
0 answers
85 views

Unable to create an iOS project in Stride

I'm trying out stride but building my project fails for iOS. Windows, mac, and android work until it hits iOS and then it fails. I can create an iOS app in visual studio 2022 fine though. My error is: ...
1 vote
2 answers
1k views

Why is my call to SetDisplayMode not supported?

I have some legacy DirectX code that always returns DDERR_UNSUPPORTED. I originally developed the code using DirectX3, and I am porting it to DirectX7 after ...
2 votes
1 answer
226 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 ...
0 votes
0 answers
328 views

How to fix build errors in Stride Engine

I tried building Stride.GameStudio with with Visual Studio 2022, but it failed, with errors. I tried these steps from the README file. Close VS, clear the nuget cache (in your cmd dotnet nuget locals ...
0 votes
2 answers
757 views

Errors displayed even when the project runs in Unity

I work with Unity and Visual Studio. Almost every single keyword is underlined with the red curvy lines (representing error) in all scripts but the game works fine when I play it. I tried unloading ...
3 votes
1 answer
461 views

Monogame project runs in VS but hangs when run via .exe

I've been working on a monogame project for a little over a week and had no problems. Today I went to test out the project outside of Visual Studio, by running directly from the .exe in the release ...
1 vote
0 answers
123 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 Unity. Here are the libs: TinyMessenger and RedBus It's that simple - I ...
0 votes
1 answer
662 views

Unity with VS Code: .sln generated is missing assemblies. Only .sln generated by Studio works (with Code as well)

After every Unity update I have a lot of problem with missing assemblies in Visual Studio Code. ...
1 vote
1 answer
224 views

SpriteBatch.Draw has Padding on Monogame.Android

I am using Monogame to create a small Android game. I am trying to draw a sprite to the Android screen but it seems to have a padding of some pixels. The same game works fine on desktop. How can I ...
0 votes
1 answer
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
2 answers
599 views

How to get past Visual Studio "Setup Error" for Unity development?

When I launch Visual Studio from Unity on my laptop, I get the following error: Setup Error The setup for this installation of Visual Studio is not complete. Please run the Visual Studio Installer ...
0 votes
2 answers
674 views

cant add unity scripts to obects "unity_csc.bat not found. Is your Unity installation corrupted?"

I got a new computer and on it I installed unity and signed in etc. when I load it up however and try adding scripts to objects in the scene it doesn't add them and has this error: "cant add ...
1 vote
1 answer
501 views

Unity LoadScene did not seem to work properly

My logic is simple: after conditions are met, display an image (an Image class instance) and restart the stopwatch. After a certain time, reload the scene. In a <...
2 votes
1 answer
8k views

Structure of Visual C++ Projects in Visual Studio [closed]

In particular, I was wondering if it was possible for Visual Studio to treat source files in different directories as all in the same directory. I first saw this after purchasing the Introversion ...
7 votes
6 answers
15k views

No project in visual studio using unity created

As I have sometimes problems with intellisense in visual studio using unity, I searched for some answers. It was almost every time pretty much the same: Reloading the project. But in my solution ...
0 votes
1 answer
548 views

I already have a GameManager script, but need to have a 2nd one

I'm making a Unity game, and I want to use the Unity Distribution Portal. My problem is that you have to make a script named GameManager for this, but I already ...
1 vote
1 answer
262 views

How can I enable intellisense for Stride 3D in Visual Studio?

I have installed Visual Studio and Stride 3D, but, when I'm using Visual Studio it doesn't help me with code recommendations. For example, if I write "Ent" it doesn't show me ...
0 votes
1 answer
2k views

Convert a string to a gameobject name

I want to use a string to reference a gameobject that I already have in my code, but the console says that you can't convert a string to unityengine.object. I have a string that says ...
0 votes
1 answer
2k views

How do I install SDL.NET in Visual Studio 2010? (Or any other .NET library) [closed]

I'm trying to get SDL.NET to work in Visual Studio 2010, but am really not sure how to go about installing the library (or creating a custom project or something), and any basic instructions would be ...
0 votes
1 answer
139 views

DXUT getters are always null using DLL

I'm struggling with a problem for a while and I hope some of you can help me out. The title for this question is vague, so I will try to explain my problem as best as I can! I'm am creating a project (...
2 votes
1 answer
1k views

How do I prevent my game from being detected as a virus?

I developed my own game engine and I'll refer to it as a Software Development Kit (SDK) here, for making a specific type of game. The SDK encapsulates low level DirectX APIs. It's written in C++ and ...
3 votes
1 answer
4k views

Visual Studio not recognizing Unity's new Input system

I'm attempting to learn Unity's new input system, but when I try to add using UnityEngine.InputSystem; to my code it gets a red squiggly line under it. It doesn't ...
0 votes
2 answers
462 views

Full-screen window hangs when debug break or crash (Windows/GLFW/Cocos2D)

I run into an issue if my game application becomes unresponsive when running in fullscreen on Windows. This mostly applies when I want to use breakpoints in Visual Studio, however if the application ...
1 vote
1 answer
154 views

Why I don't have the DX templates even with the Windows 8 SDK installed?

I have Windows 7, 64 bit. I installed the Windows 8.1 SDK from here, and I installed Visual Studio Ultimate 2013. I chose to install everything; the size of the install was around 11GB. Yet I don't ...
0 votes
1 answer
346 views

Calling a function from Super is getting an error

I am following GameDev.tv's unreal C++ course, but I am getting an error that is causing my compiler to fail. I'm coding a player controller, and I think I followed all the steps right but when I ...
0 votes
0 answers
118 views

How to save Unity assests to another drive?

My C:\ volume has almost no space left. Therefore I want to transfer all my assets to the volume E:/. And save my new assets automatically on the E:/ volume. I have searched very long in unity for ...
0 votes
0 answers
406 views

What does rebuilding the .vcxproj file do?

I'm having the same problem this user had. The solution is confusing me, because all I want to do is comment out the code I added that caused the compiler crash, get Unreal to accept it and stop ...
1 vote
0 answers
275 views

Unreal Visual Studio 2019 taking forever for tellisense

I'm using the latest unreal engine and visual studio 2019. I'm having a problem where intellisense can take way too long. This usually happens when I have just opened the project inf VS 2019, but ...
1 vote
1 answer
326 views

Unreal Engine 4 - Error in Macro Syntax Causes Build to Hang

Problem Errors in macro syntax causes the module's build to hang for 2+ hours (possibly, indefinitely) with no indication of a build error. Steps to Reproduce Create a template game project in the ...
0 votes
1 answer
224 views

VSSetConstantBuffers1 does not appear to be working

I'm experiencing something very strange here when using VSSetConstantBuffers1. I have a projection * world matrix that I'm sending to a constant buffer to rotate a triangle on an axis. When I do ...
0 votes
1 answer
72 views

Publish to folder equivalent for a desktop GL project with visual studio Mac 2019

I'm not home so the only computer I have access to is a Macbook, and now I would like to see how I could pack up projects to export for various platforms. But when I build my project it only produce a ...
1 vote
1 answer
142 views

How can I let the user choose his own background image?

Dear Stackoferflow Fourm I would like to have a function in my Android Game Programming that allows the user to choose his own background image (I would like to let the user change the plane image) ...

1
2 3 4 5