kayatoo Posted January 18, 2018 Posted January 18, 2018 Hello everyone, I just playing around leadwerks c++ to learn engine. I've created a simple map with editor and save it under Maps folder. Once I try to load that map through cpp code and give path parameter as "Maps/sm.map", leadwerks can not find the map. Because engine is trying to load file at "../LeadwerksEngine/Projects/Maps/sm.map" It get fixed by adding project name to path as follows (Cube is project name) ../LeadwerksEngine/Projects/Cube/Maps/sm.map" However even so engine loads the map, engine can not load textures and etc within the map. Engine gives errors to read files with path on ../LeadwerksEngine/Projects/Textures/sometexture.tex" What did i make wrong? Could Anybody faced this problem help me? Quote
gamecreator Posted January 18, 2018 Posted January 18, 2018 Is this when you run the program straight from Visual Studio? If so, you may need to alter your Working Directory in the Project Property under Debugging. Quote
Roland Posted January 18, 2018 Posted January 18, 2018 Debug Working Directory is wrong. Change $(SolutionDir)\..\..\.. to $(SolutionDir)..\.. Se my post here https://www.leadwerks.com/community/topic/16838-upgrading-44-c-projects-to-45/?tab=comments#comment-110509 1 Quote Roland Strålberg Website: https://rstralberg.com
gamecreator Posted January 18, 2018 Posted January 18, 2018 Is everyone having this issue? Josh, can you fix the template? Quote
kayatoo Posted January 18, 2018 Author Posted January 18, 2018 Just changed Debug Working Directory as what Roland said and works perfectly. Thanks for quick response Quote
cassius Posted January 18, 2018 Posted January 18, 2018 Has not worked for me up to now. I will keep trying. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Roland Posted January 18, 2018 Posted January 18, 2018 1 hour ago, cassius said: Has not worked for me up to now. I will keep trying. Its your problem the same one or something else ? Quote Roland Strålberg Website: https://rstralberg.com
cassius Posted January 18, 2018 Posted January 18, 2018 in my case creating a blank project fails to build. It cannot find ctype.h and many other libs Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Roland Posted January 19, 2018 Posted January 19, 2018 Then there is something wrong with you VS installation or your paths. Check your Include Directories Quote Roland Strålberg Website: https://rstralberg.com
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.