Closed Mellorison closed 4 years ago
copy pasting your code into a blank project with otter and VS19 up to date runs as expected. -Are your tools up to date? -What OS and machine are you using? -What project type did you create? ( i used 4.7.2)
Is it mandatory for me to use VS19? The surprising thing about this is that this code runs without any problems in VS15 .... I'm currently using VS17 and that's where I'm experiencing this error.
I am running windows 10 OS on a Dell xps 13.
I created a .NETconsoleApp project type... v4.5.2
Since i have no installed previous(15 and 17) versions on any of my develop machines i can not say if this is the "problem".
could you host your complete project on github? on the first glance it seems all fine. but the devil lies in the detail maybe.
I haven't had a chance to look at this in detail yet, but it looks like the texture it's trying to load from a stream isn't there for some reason, but as far as I know it shouldn't even be hitting that code with what the example does. if you comment out AddGraphic(image);
does it still blow up?
the error message about the color value might have something to do with assigning a player color from the session data, but that appears to just be a warning and unrelated to the actual crash.
Since i have no installed previous(15 and 17) versions on any of my develop machines i can not say if this is the "problem".
could you host your complete project on github? on the first glance it seems all fine. but the devil lies in the detail maybe.
Alright. I'll do that.
I haven't had a chance to look at this in detail yet, but it looks like the texture it's trying to load from a stream isn't there for some reason, but as far as I know it shouldn't even be hitting that code with what the example does. if you comment out
AddGraphic(image);
does it still blow up?the error message about the color value might have something to do with assigning a player color from the session data, but that appears to just be a warning and unrelated to the actual crash.
I Tried commenting out 'AddGraphic(image)', but to no avail. Also tried rebuilding the solution and now this is happening :
Hi. I keep getting this error in the cache whenever I try to run the code below:
`using Otter; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;
namespace PlayerSessions { class PlayerSessions { static void Main(string[] args) { // Create a game var game = new Game("Player Sessions"); // Name the game folder for exporting session data. game.GameFolder = "PlayerSessionDemo";
}`