Trif☼
Trif☼
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
it works
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
thanks
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
got it
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
from where?
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
No description
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
um
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
yeah:)))
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
No description
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
oooohhhh
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
so yeah, idk more than this
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
and I have to implement whatever, like it's sort of a project made by our teacher and we have to add features
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
I would give you details, but this is for uni, I just pulled this
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
i get the error from var json
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
c++
public static SpriteSheet? LoadSpriteSheet(string fileName, string folder, GameRenderer renderer){
var json = File.ReadAllText(Path.Combine(folder, fileName));
var spriteSheet = JsonSerializer.Deserialize<SpriteSheet>(json, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true });
if(spriteSheet != null){
spriteSheet.LoadTexture(renderer, folder);
}
return spriteSheet;
}
c++
public static SpriteSheet? LoadSpriteSheet(string fileName, string folder, GameRenderer renderer){
var json = File.ReadAllText(Path.Combine(folder, fileName));
var spriteSheet = JsonSerializer.Deserialize<SpriteSheet>(json, new JsonSerializerOptions() { PropertyNameCaseInsensitive = true });
if(spriteSheet != null){
spriteSheet.LoadTexture(renderer, folder);
}
return spriteSheet;
}
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
yea
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
and I get this specific error: System.IO.FileNotFoundException: 'Could not find file 'D:\Universitate\dotNet\bin\Debug\net8.0\Assets\player.json'.'
36 replies
CC#
Created by Trif☼ on 5/13/2024 in #help
✅ System.IO.FileNotFoundException
So I run the project
36 replies