Questions tagged [visual-studio]
Visual Studio is an integrated development environment (IDE) from Microsoft. It supports many different programming languages.
217
questions
0
votes
0
answers
107
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 ...
1
vote
1
answer
120
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 ...
0
votes
1
answer
34
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
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
25
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'...
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
45
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
98
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 ...
0
votes
1
answer
24
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
373
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
72
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:
...
0
votes
0
answers
257
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 ...
1
vote
1
answer
445
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 <...
0
votes
1
answer
606
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
241
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
2
answers
755
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
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 ...
1
vote
1
answer
385
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 ...
1
vote
1
answer
767
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 ...
0
votes
1
answer
300
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
2
answers
656
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 ...
0
votes
0
answers
105
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
376
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
267
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 ...
0
votes
1
answer
306
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
635
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
1
answer
489
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
130
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) ...
0
votes
1
answer
2k
views
UE4 C++ - Add generated source code folders to Visual Studio solution?
In Unreal Engine 4, using a Visual Studio solution and projects generated from the Editor using the First Person Template, the layout of the Solution looks something like the following:
I am not a ...
1
vote
1
answer
2k
views
Can't build UE4 new mod kit - UGCExampleProject - UE4
I am trying to build the new mod kit to support modding for my new game.
I am following the QuickStart Guide:
Place your project in a directory under your UE4 root directory (such as /Games or /...
0
votes
1
answer
71
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 ...
0
votes
1
answer
58
views
Character bobs when moving
Whenever I try to move a character in unity, the character kind of, like, bobs around when walking. Is there any way to remedy this? I have tried the trick of putting the inputs into update and the ...
2
votes
1
answer
2k
views
How to set C++ language standard for VS2019 in an Unreal project?
I am trying to a simple thing, just like that, in a header file;
#include <filesystem>
#include <iostream>
namespace fs = std::filesystem;
And ...
1
vote
0
answers
31
views
Unity problem with instantiated objects when destroyed
So this is my problem, I have a square that when destroyed spawn 4 smaller squares when shooting on it, but when I shoot one of the 4 smaller squares sometimes a different square that are not even ...
-1
votes
1
answer
629
views
How i can detect a single ARuco marker among several markers?
Hi everyone i am working on a rehabilitation application that depends on ARuco markers. The idea is to draw an object on a single marker among the four existing ones, then when the patient's hand ...
0
votes
1
answer
1k
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 ...
1
vote
0
answers
331
views
How to speed up script compilation?
Is there a way to speed up script compile time when I change something in VS then click on Unity?
It takes 15 seconds. Is this normal?
0
votes
0
answers
75
views
When set Visual Studio as external editor tool, Unity will freeze (macbook version)
So I want to link visual studio and Unity, but if I set vs as the external editor tool and open a script, after I open a script for around 1 minute, Unity will freeze and I can't do anything but quit ...
0
votes
0
answers
442
views
How to convert world coordinates to grid movement
I'm producing a tactical 3D RPG game and I have the following issue:
I want the NPC to move through the grid. The grid is formed by tiles and each tile has a script attached to it. In this script, ...
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
1k
views
Unreal doesn't see Visual Studio 2019
I have Visual Studio 2019 installed, with all of the tools mentioned in the Unreal documentation installed, and when I try to create a C++ project in Unreal Engine, I get "No compiler was found. In ...
0
votes
1
answer
497
views
Visual studio alternatives for unity as intellisense not working [closed]
I am new to unity and unity tools for game dev are unavailable in vs community,i also tried vs code.So what are some alternatives for vs for unity scripts for a beginner?
0
votes
0
answers
514
views
Need help with a 'Read access violation' exception in an SFML/C++ project:
I'm recently learning to make a 2d game in SFML using a tutorial series on youtube by Suraj Sharma(Video 57):
https://www.youtube.com/watch?v=kwd_AVCkvXE&list=PL6xSOsbVA1ebkU66okpi-KViAO8_9DJKg&...
0
votes
0
answers
34
views
Prefabs x coordinate of position is getting mysteriously updated after destroying and reinstantiating them
Project brief
I am trying to make a gamified version of to-do where the player enters tasks and is rewarded with points and a tree grows with the progress.
What I am trying to do
I have a list of ...
0
votes
0
answers
106
views
How to extract data from a resource compiler script in c#
I need to know how to extract all data from a resource compiler script to a folder or the desktop.
the .res files are compiled and added to an exe file.
.res is the file extension.
and if that is ...
1
vote
1
answer
1k
views
Why are Visual Studio and VSCode not giving me a dropdown list of methods and options etc?
I am using VSCode but I have also tried Visual Studio 2019 to write code for Unity, but when I'm writing the lines I don't get dropdown menus with for example the methods this class holds. Or objects. ...
1
vote
1
answer
56
views
Can't open scripts in Unity 2019.2.11.f1 version
I'm using Visual Studio 2017, Unity Hub to 2.1.3 and just created a project using Unity's 2019.2.11.f1 version.
Once trying to open a script in Unity, it doesn't open and then I'm forced to use Task ...
0
votes
0
answers
80
views
Need help with a Lnk2019 error in an SFML/C++ project
I'm currently making a 2D video game using the SFML library on Visual Studio 2019 community with the help of a Youtube tutorial series by Suraj Sharma:
https://www.youtube.com/watch?v=IdKZpv6xqdw&...
0
votes
0
answers
79
views
Need help with sluggish sprite movement in an SFML-C++ project:
I've recently bought an SFML course on Udemy.The course is teaching me to make a game where you are chopping a tree while avoiding falling branches.
Right now i'm learning to animate moving clouds ...
0
votes
1
answer
5k
views
Need help with an 'Exception thrown:write access violation:this was nullptr' in a c++ - SFML project
I'm currently learning how to program a 2d game with SFML using a tutorial series by Suraj Sharma.This's his channel:
https://www.youtube.com/channel/UC2i39AOpDSlO1Mrn1jQ8Xkg
The tutorial series:
...