Questions tagged [.net]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
67 views

Multiple .NET Host Running in UnrealEditor

Unreal Editor has 64+ services running under it with .Net host and console window host running multiple times. I am running Unreal Engine 5.3.2 source build. I have tried recompiling and redownloading ...
GloriousDemonFist's user avatar
1 vote
1 answer
257 views

Why is HttpClient failing in Unity?

Before starting, I know I can use the UnityWebRequest class instead. The problem is that it is another library the one that is failing: NEthereum's source code, which makes heavy use of the HttpClient....
Luis Masuelli's user avatar
1 vote
1 answer
213 views

Why are quads not rendering with OpenTK 4.7.5 when similar code works with OpenTk 3.3.3?

The following code will not render the quads with .Net 6 and OpenTK 4.7.5, but (nearly) identical code works with .Net 4.8 and OpenTK 3.3.3. (Triangles will render fine, but I would rather use quads, ...
AntiHeadshot's user avatar
2 votes
1 answer
319 views

Porting Plugins from UE5.0 to UE5.1 source build causes DLL Registration Errors

I built UE5.1-Main from source successfully. I'm trying to port my UE5 marketplace plugins, but when I launch the editor I get these errors for all my ported plugins. I suspect it might have something ...
Tyler's user avatar
  • 123
2 votes
2 answers
273 views

Ways to synchronize lists over the network?

Im working on a little plain c# gameserver using an ecs. It follows the principles of the client/server model architecture. However im often running into the following problem, the server has one or ...
genaray's user avatar
  • 517
0 votes
1 answer
124 views

Will a game made with .Net Desktop Development, be able to run on Windows' desktops?

I am new to making games (I have experience only with pygame), and I want to start creating with C#. I've found out that Monogame is a very good engine. On my way of setting up, in the part where I ...
LoukasPap's user avatar
  • 103
0 votes
1 answer
216 views

High-performance update of a bitmap grid

I need to visualize a fast paced process in .NET in 2D. I am planning to use writeable bitmap 800x40px. The idea is like this - there are objects which are represented by very basic colours and sizes ...
Boppity Bop's user avatar
0 votes
1 answer
375 views

Working with websockets in Unity: Cannot convert lambda expression to type 'IObserver<ReconnectionInfo>' because it is not a delegate type

I'm a bit stuck on a delegate error in Unity. The code works fine if I'm in a c# console app however Unity is giving me the error: Cannot convert lambda expression to type 'IObserver' because it is ...
Willie Wight's user avatar
0 votes
1 answer
245 views

Creating Compute Shaders throws E_INVALIDARG exception in SharpDX

I've recently been working on a small helper for creating and using compute shaders in C# along with Monogame/XNA. My end goal is simply to have compute shaders working in C#. My main issue is as such:...
sfbea's user avatar
  • 13
2 votes
0 answers
358 views

How to effectively/properly use IntPtr in ImGui.NET

How should I go about using methods that take an IntPtr in the .NET Dear ImGui wrapper, ImGui.NET? For example, ...
Allen Pestaluky's user avatar
2 votes
0 answers
171 views

C# UDP Multiplayer Networking - issue with choppiness and consistency

I know I've done this incorrectly, but I don't know what the right way is. Right now I have two clients that connect to a server. Each tick the players send a packet of information containing their ...
user2578216's user avatar
0 votes
0 answers
130 views

How to create an instance of Windows Firewall interface object in Unity

I am trying to make the game add itself into the Firewall rule. I already referenced NetFwTypeLib.dll into the project. It led me to this line of code here: ...
ruiyl's user avatar
  • 11
0 votes
2 answers
225 views

Can I use System.Windows.Rect in Unity?

I need to work with a Rect that has Left, Top, Bottom, Right. Unity's Rect has x, y, width and height instead. Also, Unity's Rect doesn't accept ...
tmighty's user avatar
  • 919
1 vote
1 answer
236 views

Coverting byte[] from stereo to mono produces crackling in OpenAL

I'm trying to convert a Stereo byte[] to mono byte[] Here is my code : ...
David Neves's user avatar
0 votes
1 answer
678 views

How should I load/change/activate scenes?

Scenes are confusing the hell out of me and I'm pretty sure they should be simple to understand. When the game loads, only the current scene has a buildIndex != -1. In order give it a 'real' build ...
BanksySan's user avatar
  • 200
-1 votes
1 answer
45 views

Public MonoBehavior string fields empty

This is bizarre enough that it has to be me being an idiot. I have a MonoBehaviour with some public fields and public methods: ...
BanksySan's user avatar
  • 200
0 votes
1 answer
70 views

How to calculate more precisely the position of the pupil in function of the eye ball and a direction?

I have a game in which I have an eye in a head that should always move towards a piece of food (or another piece of food). The head is moved by the player. The food has a fixed position (for some ...
silviubogan's user avatar
0 votes
0 answers
50 views

Approach in implementing the web browser game

Im Phil and try to figoure out the best approach for my app. I was searching Stack for my question but I didnt find a completely answer. Assumptions: It will be multiple user who can see in real time ...
Gierlos's user avatar
1 vote
1 answer
391 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: ...
Pikamander2's user avatar
0 votes
2 answers
783 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 ...
Ibrahim's user avatar
  • 196
0 votes
1 answer
109 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 ...
Random generalist's user avatar
1 vote
1 answer
3k 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 ...
domago's user avatar
  • 31
0 votes
1 answer
33 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 ...
Tudvari's user avatar
  • 731
1 vote
1 answer
85 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 ...
123iamking's user avatar
5 votes
1 answer
444 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:...
Nilmag's user avatar
  • 241
-1 votes
1 answer
2k 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 ...
Mike Lyle's user avatar
1 vote
1 answer
308 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 ...
z3nth10n's user avatar
  • 141
3 votes
0 answers
414 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: ...
Qubyt's user avatar
  • 53
0 votes
1 answer
5k 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: ...
Jesse Williams's user avatar
1 vote
1 answer
786 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" ....
Qubyt's user avatar
  • 53
1 vote
0 answers
336 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. ...
Josh Rickert's user avatar
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 ...
Jacob's user avatar
  • 2,522
1 vote
1 answer
992 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 ...
Rithesh's user avatar
  • 21
1 vote
2 answers
2k 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: ...
Petr Abdulin's user avatar
  • 2,711
0 votes
1 answer
885 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.
Albertkaruna's user avatar
0 votes
1 answer
165 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 ...
David Lee's user avatar
  • 103
2 votes
3 answers
937 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 ...
Rudi Jansen van Vuuren's user avatar
1 vote
1 answer
693 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: <...
Raedok's user avatar
  • 21
0 votes
1 answer
169 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 ...
Grefu's user avatar
  • 25
-1 votes
1 answer
231 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 ...
ArekBulski's user avatar
3 votes
1 answer
3k 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 ...
Scorch's user avatar
  • 257
-1 votes
1 answer
2k 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 ...
Aditya Yadav's user avatar
0 votes
1 answer
444 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 ...
Xeon's user avatar
  • 308
2 votes
1 answer
263 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 ...
Hugh Wood's user avatar
0 votes
0 answers
151 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. ...
Quintin Steiner's user avatar
2 votes
0 answers
1k 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 ...
Shihan Khan's user avatar
1 vote
2 answers
119 views

Malformed/Pixelated Vertex Normals

I am trying to generate vertex normals for a given triangles/vertices list with the following code: ...
Zarathos's user avatar
  • 113
5 votes
2 answers
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 ...
artganify's user avatar
  • 459
1 vote
1 answer
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 ...
Ceranela's user avatar
1 vote
2 answers
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++.
johnny's user avatar
  • 271