02-03-2022, 01:10 AM
I'm sorry to be bothering y'all with something so dumb some more, but my inability to actually use it is driving me crazy, as while I created my own custom project to mess around with it, I stumbled across the problem of visual studio not being able to find the definitions of things like TLN_Init() and such. so in hopes that installing it properly is a simple problem with a simple solution, I'm going to post a list of what I've done, to hopefully help someone else point out I missed something bloody obvious.
1) download the windows 64-bit from itch.io
2) drag it to some misc folder
3) open console, type "install"
4) realise Windows doesn't let you run .bat files naturally because it finds them untrustworthy so use "\.install.bat" as the console recommends.
5) claims:
"Installing AMD64
lib\x64\Tilengine.dll
1 file(s) copied."
which sounds good I guess.
6) create visual studio project (as c++ console type)
7) move the include directory to project
8) move the contents of lib/x64 (but not the directories themselves) to the project folder
9) going into visual studio, opening the project properties
9a) going to C/C++ "general" type "include" to Additional Include Directories
9b) going to linker "general", type "include" to Additional Library Directories
10) going into project, including TileEngine.h, as recommended by the VS autocomplete system
11) in the main function, just adding (via Copy+Paste from TileEngine's demo code on it's main website) "TLN_Init(400, 200, 1, 0, 0);"
12) run, results in LNK 2019 error
(Error LNK2019 unresolved external symbol __imp__TLN_Init referenced in function _main [projectname] C:\Users\[raziel]\Documents\GameRetrodev\[projectname]\[projectname].obj 1)
13) annoy people on the forums about how you can't make it work. (again, really sorry for wasting your guys' time on something that's probably real obvious)
1) download the windows 64-bit from itch.io
2) drag it to some misc folder
3) open console, type "install"
4) realise Windows doesn't let you run .bat files naturally because it finds them untrustworthy so use "\.install.bat" as the console recommends.
5) claims:
"Installing AMD64
lib\x64\Tilengine.dll
1 file(s) copied."
which sounds good I guess.
6) create visual studio project (as c++ console type)
7) move the include directory to project
8) move the contents of lib/x64 (but not the directories themselves) to the project folder
9) going into visual studio, opening the project properties
9a) going to C/C++ "general" type "include" to Additional Include Directories
9b) going to linker "general", type "include" to Additional Library Directories
10) going into project, including TileEngine.h, as recommended by the VS autocomplete system
11) in the main function, just adding (via Copy+Paste from TileEngine's demo code on it's main website) "TLN_Init(400, 200, 1, 0, 0);"
12) run, results in LNK 2019 error
(Error LNK2019 unresolved external symbol __imp__TLN_Init referenced in function _main [projectname] C:\Users\[raziel]\Documents\GameRetrodev\[projectname]\[projectname].obj 1)
13) annoy people on the forums about how you can't make it work. (again, really sorry for wasting your guys' time on something that's probably real obvious)