"Unable to load DLL 'Tilengine' - Printable Version +- Tilengine - The 2D retro graphics engine forum (http://tilengine.org/forum) +-- Forum: English forums (http://tilengine.org/forum/forumdisplay.php?fid=3) +--- Forum: Support (http://tilengine.org/forum/forumdisplay.php?fid=7) +--- Thread: "Unable to load DLL 'Tilengine' (/showthread.php?tid=21) |
"Unable to load DLL 'Tilengine' - Domarius - 09-03-2017 Ok I've run "install", seems to copy some DLLs to some x64 folders. Opening "Platformer.csproj" caused Visual Studio Community 2017 to upgrade the project, shouldn't be a problem. Running it gives the error in the screenshot, in Tilengine.cs, line 374. Got to be honest, I'm a bit new to setting up a C# project from scratch, most of what I've done with C# is in Unity and console projects that didn't need any external libraries. I tried adding "Tilengine.dll" as a reference to the project, but it gave an error; "A reference to Tilengine.dll could not be added. Please make sure the file is accessible, and that it is a valid assembly or COM component." so no luck there. RE: "Unable to load DLL 'Tilengine' - megamarc - 09-04-2017 This one is easy The Tilengine.dll and SDL2.dll files must be in the same folder than the main executable, and must match your windows architecture. So:
RE: "Unable to load DLL 'Tilengine' - Domarius - 09-04-2017 Progress... of a kind! At least I'm getting a new error. Got a "File not found" exception in Tilemap.FromFile, went up through the call stack to see it's loading a map, but the map does indeed seem to be there! What could be the problem? Screenshot attached, shows the asset folder is correctly set, and the filename to be loaded, and windows explorer showing the file does exist in the expected location. RE: "Unable to load DLL 'Tilengine' - megamarc - 09-04-2017 Oh I see, it's related to the project configuration... I'll have to fix it
I apologize, please let me know if it works now... RE: "Unable to load DLL 'Tilengine' - Domarius - 09-04-2017 That did it! Thanks I see the Sonic stage with the CRT filter and can scroll around with the arrow keys. So is there an update coming from you that will mean we don't have to do that "working directory" setup? If so, I'll hold off before making a tutorial but I need to make some sort of playable prototype anyway first. RE: "Unable to load DLL 'Tilengine' - megamarc - 09-04-2017 Congratulations! I'm glad you have it working :-) Yes, I'll rearrange a bit the C# samples setup so it works out of the box just as the C and Python samples already do. In that commit I'll put the documentation sources too. I'll write a post here when it's done RE: "Unable to load DLL 'Tilengine' - megamarc - 09-09-2017 Hi, I updated the C# sample project some days ago, both in GitHub and itch.io downloads, and started publishing documentation. I posted a thread about it. Did you see the changes? RE: "Unable to load DLL 'Tilengine' - Domarius - 09-09-2017 This works out of the box now csharp Platformer example project builds and runs just fine in Visual Studio 2017. |