Questions tagged [.net]

.NET is a framework for software development based on the CLR ("Common Language Runtime") standard.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

How can I fix my project after upgrading to Unity 2019 / .NET 4.x?

My Unity version was about a year out of date. After upgrading it to Unity 2019.1.5f1 through the Unity Hub, my project started throwing hundreds of errors. The most prominent one seemed to be: ...
0
votes
1answer
32 views

Unity - Scripting Runtime Version Option Missing

I have been trying to open and run my couple-months old project in Unity3D, and I'm getting about 500 errors. So idecided to reinstall Unity. On the tutorial for the project, it tells us to make sure ...
0
votes
0answers
36 views

Using Azure with Unity

I currently use Unity 2018.3.9f1. I would like to hook up my Unity program to an Azure service, so that I can store/analyse information about user behaviour. As a primer, I tried to import the ...
0
votes
1answer
55 views

Visual Studio can't handle my unity scripts

I have created a new project in Unity 2018.3.4f1 with Visual Studio Community 2017. I can't edit scripts properly in Visual Studio because of a bunch of errors related to .net framework. How can I fix ...
0
votes
1answer
85 views

How do I compile a namespace to a .DLL in Unity?

I'm developing a core library that I will use in my other games. I've only heard of using Unity .DLLs recently, and have spent some time putting my core scripts into a namespace. If I understand .DLLs ...
0
votes
0answers
73 views

Simple Text Drawing OpenGL ES 2 .Net Core

As the title suggests I would like a simple way to render reasonable amounts of text (20-30 lines @60fps) to the screen in opengl ES 2.0 under .Net Core 2.1. I have tried many libraries however I can'...
0
votes
1answer
21 views

Disabling, overriding or hooking a VS warning to Unity's Vector's ToString()?

I've just spent 2 hours debugging a misbehaviour because ToString() truncates to 1 digit by default. I want to disable the parameterless version so I won't use it by accident and I will always have ...
1
vote
1answer
53 views

Unity - job system compatibility for end user?

I'm thinking about using Job system. But it requires .Net 4.x (also look like .Net 4.x will be default for Unity in 2019). It is a little hassle for me cause I'm using Visual Studio 2015, I have to ...
5
votes
1answer
328 views

System.Net.Http.dll and Unity 2018.2.1, 2.2, 2.3 are conflicting, assembly reference keeps being deleted in VS 2017, any suggestions?

I'm looking for some suggestions on how to fix a strange bug i've been getting with System.net.http.dll. For the record, builds work fine as i have the mcs.rsp file in the /Assets/ folder with "-r:...
0
votes
1answer
292 views

Is there a way to invert collision detection in unity?

I'm trying to make a drag and drop tool to make maps in my game (dungeon crawl). I would like to use colliders to define geometry, just invert the case so that collisions are good, not colliding is ...
1
vote
1answer
210 views

Things to keep in mind after upgrading from .NET 3.5 to .NET 4.6 on Unity3D

I have recently updated my forked project from .NET 3.5 to .NET 4.6, and for some reason (even though Unity3D advises that there isn't any problem) my project doesn't load things correctly: By ...
2
votes
0answers
122 views

SFML.NET DLLNotFoundException with dll.config files in project

I am trying to run SFML.NET on arch linux and I have two dll.config files in my project called sfmlnet-graphics-2.dll.config and sfmlnet-window-2.dll.config. sfmlnet-graphics-2.dll.config: ...
0
votes
1answer
2k views

Linq with Unity - Select One from Many

I'm using Linq to select the objects closest to the player that have the usable tag thusly: ...
1
vote
1answer
465 views

How do I set up an SFML .NET dll reference in Visual Studio Code

How do I set up SFML .NET library dll files as references in Visual studio code using dotnet core SDK? I want to ditch visual studio as it's large and clunky and am wondering how to add "third party" ....
1
vote
0answers
150 views

Directory.EnumerateFiles hangs with disk pegged to 100%

I am having an issue that occurs seemingly at random with the following block of code. ...
1
vote
0answers
76 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
497 views

Multi-threaded MMO Server with complex inter-dependencies.

I am working on a Mobile MMO and I am using .NET to build a MMO Server. My current application architecture is as follows. Clients are accepted using Async Calls (BeginAccept/EndAccept). Data ...
1
vote
2answers
549 views

Handling keyboard input in SDL2

I'm using SDL2 with .NET bindings. Keyboard handling is encapsulated in static class, and keyboard handling code part looks like this: ...
0
votes
1answer
331 views

How to display full website in Unity WebGL?

I want to display the complete website within the WebGL in Unity. I have tried Awesomium plugin but it doesn't work in WebGL. Please tell me is there any way to display the webpage. Thank you.
0
votes
1answer
88 views

Validate single player game packet on a server

I am building a game in Unity and store data on a .NET server. I was wonder what the best approach to validating the game data before posting the scores to the .NET server. The game is somewhat ...
1
vote
3answers
432 views

Synchronizing object states over .NET sockets

What I want to achieve is synchronize the state of a list of objects between two applications using sockets. All my attempts, but failed. One of my methods was to send each object each update to the ...
1
vote
1answer
198 views

OpenGL scissor odd behaviour

I am currently developing a GUI app using OpenGL with OpenTK as interface in C#. The viewport is set to the entire window space (0,0,width,height) and an ortho transformation is applied like this: <...
0
votes
1answer
104 views

Time per turn in a .NET turn-based game?

I am developing the server for a browser game, it uses an ASP.NET API for authentication, login and character creation and a websocket for the rest of the game (Microsoft.Web.WebSockets). While on ...
-1
votes
1answer
169 views

XNA draw a rectangle 3D perpendicular to camera

I need some ideas how to implement the Draw method. Need to draw a rectangle (actually a million of them, all same texture) that is in 3D, starts at point ...
1
vote
1answer
1k views

How do I use SharpDX with the .NET Core framework?

I started a project to build a game engine. As a result of circumstance, I won't have the luxury of building the engine in C++, so I'm going to have to settle for C# with the .NET Core. Given that ...
-1
votes
1answer
247 views

How to use JWT in unity

Is it possible to use JWT in my unity games? I've read here that JWT needs .NET version 3.5+ and in Unity 5.4.1f1 the .NET version is "2.0.50727.1433". Is this information correct or incorrect? If ...
0
votes
1answer
298 views

Unity3D 5.5b : C# WebGL open email client Win32 exception error

I want to send an email in a WebGL build using C#. My code is as below ...
2
votes
1answer
220 views

Point welding on generated terrain

I am converting two 2D images (A Voronoi graph and a Diamond Square noise map) into a 3D object. However when finding the corner points of the Voronoi I am left with gaps, so I thought to drop these ...
0
votes
0answers
96 views

XNA Access violation from KernelSoundEffectInstance

Some users (but not all) are reporting a periodic crash in my XNA game. They say it's happening every 15 to 20 minutes. I am unable to replicate this myself, so I asked users to send me error logs. ...
2
votes
0answers
908 views

SignalR For Multiplayer Game Development [closed]

I've been working with SignalR for live chat and notifications in .NET platform and was wondering how much is it worth for working on games development? I've made ...
1
vote
2answers
106 views

Malformed/Pixelated Vertex Normals

I am trying to generate vertex normals for a given triangles/vertices list with the following code: ...
5
votes
2answers
1k views

Managing cross-platform targets/compatibility with Monogame

I recently started using Monogame for the first time because of it's cross platform compatibilities and heavily active development. The first thing I did is installing the whole framework using their ...
1
vote
1answer
2k views

Simple Tanks game - Client-Server communication approach doubts [closed]

I want to create simple a multiplayer 2D game with tanks ( cooperative ) in C# with .NET. I also want to keep it simple, because it is only a semester project, and unfortunately i don't have time to ...
2
votes
2answers
1k views

Can .NET Core be used to make games on non-Windows platforms? [closed]

If I build a game that runs on a Windows phone, does that mean it will work on Android (and future ios) with .NET core or vNext? I do not wish to use XNA or C++.
1
vote
1answer
231 views

XNA texture garbage collection

I use a Dictionary<string, Texture2D> for storing textures and every texture in the game is a reference to a texture from this dictionary. However ...
3
votes
1answer
2k views

Unity's StartCoroutine funtionality inside a .NET Library and outside a MonoBehaviour

This code is used in a MonoBehaviour script in my current code: ...
2
votes
2answers
757 views

Where to save game data?

For my game, I'm currently considering where I should save the player's information (configuration files, state saves, player generated content). 'Where' refers to the physical location on disk. I ...
0
votes
1answer
208 views

Is there a way to use the ContentManager with full directory paths

So i want to figure out a way to use the ContentManager.Load method with full directory paths, so lets say Content.Load<T>(@"Images\SomeImage"); becomes ...
0
votes
2answers
325 views

Loading content into an Winforms/XNA Editor's content project

So i am bulding a game editor/engine basically for teh lulz but i have encountered a problem i cannot seem to fix, i cannot load any new content through the Winforms UI during runtime. I tried using ...
1
vote
1answer
242 views

Inventory management syncronized network

I'm implementing an inventory system with items in 1x1 slots in a open-world multiplayer game. But I can't decide how I want to synchronize the item management with the server. I see two options here. ...
0
votes
1answer
72 views

What method should I use to create a story game which is about making decisions?

I am planning to create a story game in VB.Net which is about making decisions and from there, there's different possible endings. I want to know ( if there're any ) ways that can be used, other than ...
6
votes
1answer
1k views

How do I import service references to Unity3D?

I'm attempting access a service reference in Unity. I need two: the SOAP framework and a separate service called ContentVault. The respective service URL's are: ...
2
votes
1answer
263 views

Monogame/Android: Using content from PCL

I'm quite new to Monogame and PCL, but I hope someone can help me with my question. I have a Monogame/Android project with references a PCL which targets .NET 4.5, iOS and Android. The PCL has ...
2
votes
2answers
624 views

In a ES system, how one would implement/ deal with Modifiers?

Given the normal entity-component-system architecture, lets say we a component that give the entity Strength. Now on the game flow I want to give +4 strength do to the wielded weapon. What would be ...
0
votes
2answers
2k views

Translate extrinsic rotations to intrinsic rotations ( Euler angles )

The problem I have is very frustrating: I am using the Jitter Physics library which gives Quaternion rotations, you can extract the extrinsic rotations but I need intrinsic rotations to rotate in ...
1
vote
1answer
2k views

Need to translate a Rotation Matrix to Rotation y, x, z OpenGL & Jitter for 3D Game

I am using the Jitter Physics engine which gives a rotation matrix: M11 M12 M13 M21 M22 M23 M21 M32 M33 And I need it so OpenGL can use it for rotation ...
14
votes
4answers
4k views

Monogame minimum hardware requirements?

What are the minimum hardware / driver requirements for running a Monogame 3.x game, on each of the various Operating Systems?
2
votes
1answer
197 views

How to open prerequisite retrieval application

I have an application that cannot use OneClick publishing. I still want to access those nice prerequisite (applications?) that install .NET and XNA for you when you create a OneClick publisher. I ...
0
votes
1answer
2k views

ASP.NET MVC & SQL Server vs. PHP & MySql

I'm going to develop a strategy browser-based game with ASP.NET MVC and SQL Server. However, as I explored the web to get some ideas and patterns from existing games, I found out that none of them ...
4
votes
2answers
2k views

Including files in an application using XNA

I'm making a game and I need to load some text files to create levels. After much frustration in trying to get them to work I placed the files in the debug folder of my project (I think this is a bad ...