MCUnderground
MCUnderground
CC#
Created by MCUnderground on 4/12/2025 in #help
Clipboard.GetImage() handling webp.
Im using WPF Clipboard, tho i realized, any image copied from internet is blank, it holds data like resolution but blank image. WPF seems to support transparency on Clipboard. Tho i went the route to check if it is a Dip or Bitmap, and it is Dip, it goes to that if statement if i set it first, it returns a memorystream, but i dont know what to do with that memorystream as trying to convert it to bitmapsource fails. And it goes to my next check if it is filedrop and it is, so it stores the image path(when you copy image from web, it goes to temp folder as "Untitled"). So the Clipboard passes for both Dip, Bitmap, GetImage() and GetFileDropList() if you copy image from the web. Weird.
5 replies
CC#
Created by MCUnderground on 9/20/2024 in #help
NewtonSoft Serialization Exception
Got it working, by changing TypeNameHandling.All to TypeNameHandling.Objects.
11 replies
CC#
Created by MCUnderground on 9/20/2024 in #help
NewtonSoft Serialization Exception
Well version are same. De/Serialization works fine, until List is not involved, when list is involved, it has System.Private.CoreLib in $type(im using TypeNameHandling). Also since this is also Godot 4.3 C# building to android could be their problem, with dependencies. Just wanted to ask here, if this has any solutions and is a common error. I will write at Godots discord also, since building to Android with C# project is still new.
11 replies
CC#
Created by MCUnderground on 9/20/2024 in #help
NewtonSoft Serialization Exception
Well, i have not changed the version number, i made sure they both reference same dll. Will check about newtonsoft version since i am not sure if they are the same.
11 replies
CC#
Created by MCUnderground on 9/13/2024 in #help
✅ EFCore issues when removing an entity,
Hmm so in the same function,
var item2 = await _context.Items.Where(i => i.Id == request.Item2Id).Include(i => i.Data).ThenInclude(d => d.Collection).FirstOrDefaultAsync();
var item2 = await _context.Items.Where(i => i.Id == request.Item2Id).Include(i => i.Data).ThenInclude(d => d.Collection).FirstOrDefaultAsync();
var a = _context.ItemCollections.Include(ic => ic.Items).ToList();
var a = _context.ItemCollections.Include(ic => ic.Items).ToList();
item2.Data.Collection.List has 2 items. a.Items has 3 items. My brain is not braining sorry
8 replies
CC#
Created by MCUnderground on 9/13/2024 in #help
✅ EFCore issues when removing an entity,
No description
8 replies
CC#
Created by MCUnderground on 9/13/2024 in #help
✅ EFCore issues when removing an entity,
Update when i have three lvl 1 items, and combine two, the itemdata stays in the collection. so it is probably deleted when i have two of those items only combine them, and then itemdata is not used anywhere, but would it be?
8 replies