Not sure if I should’ve posted this on “getting started” or not. But here goes.
First time delving into C++. I followed the “programming quick start” and was successfully able to finish the “hello world” project. Then, just for the hell of it, I went back to the class and changed the values to see it updated in the editor, but it wouldn’t update. I tried building again, closed and opened up the editor, etc. It only shows the values I initially assigned to the variables. I even opened up the code through class viewer and Scene outlines, and it shows the updated values in the code, but the same values when running the game. Any ideas what I’m doing wrong? Thanks!
EDIT:
Thanks!
For some reason I was still on development, even though I remember following the tutorial and changing it… I changed it to development editor and now I’m getting lots of errors in visual studio, and I can’t compile in editor. here are the errors:
Deleting old hot reload file: "C:\Users\xxUser\Documents\Unreal Projects\MyTestProject\Binaries\Win64\UE4Editor-MyTestProject-301.dll".
1> Unable to delete old hot reload file: "C:\Users\xxUser\\Documents\Unreal Projects\MyTestProject\Binaries\Win64\UE4Editor-MyTestProject-301.dll". Error: C:\Users\xxUser\\Documents\Unreal Projects\MyTestProject\Binaries\Win64\UE4Editor-MyTestProject-301.dll
1> myCode.cpp
1> link.exe UE4Editor-MyTestProject.dll
1>LINK : fatal error LNK1104: cannot open file 'C:\Users\xxUser\\Documents\Unreal Projects\MyTestProject\Binaries\Win64\UE4Editor-MyTestProject.dll'
1> -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\Users\xxUser\\Documents\Unreal Projects\MyTestProject\Binaries\Win64\UE4Editor-MyTestProject.pdb
1> Cumulative action seconds (8 processors): 0.00 building projects, 0.15 compiling, 0.00 creating app bundles, 0.00 generating debug info, 0.10 linking, 0.00 other
1> UBT execution time: 5.99 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\Program Files\Unreal Engine\4.0\Engine\Build\BatchFiles\Build.bat" MyTestProjectEditor Win64 Development "C:\Users\xxUser\\Documents\Unreal Projects\MyTestProject\MyTestProject.uproject" -rocket" exited with code -1.
facepalm *
Also, just fyi, for 64bit, in the solutions platforms, I had to click on “configuration manage” and choose x64 there. Other than that I don’t see the actual 64bit there, only “windows”. this is 2013 express that was linked in the tutorial.
“Also, just fyi, for 64bit, in the solutions platforms, I had to click on “configuration manage” and choose x64 there. Other than that I don’t see the actual 64bit there, only “windows”. this is 2013 express that was linked in the tutorial.”
there are detailed instructions on Epic’s Git Hub and even in the video linked on Git Hub explaining how to expand the build configuration bar
I just go to build->configuration personally
Rama
PS: for the rest of your errors, I am not sure, try logging off and back on and then post any updates on exactly what error you’re getting, it looks like it is not finding your project .dll, which might be your directory structure or your build cs or something! I dont know
Yep. I went through that tutorial and expanded the build configuration bar. It only has “windows” in solutions platforms. So I went to configuration manager and changed it to 64 there. odd.
Also, I don’t know how I did it, but I fixed the compile error and everything seems to work fine, although I’m still getting “Unable to delete old hot reload file:” errors, but no build fails
Yep, watched that video about 4 times now and did those things exactly, and checked and rechecked them
-clicked “standard toolbar options”>add/remove>solution platform. open dropdown for solution platform and I see windows…go to configuration manager and set 64x there by default.
-went to tools>options>projects and solutions>unchecked “always show error list if build finishes with error”
still getting the “Unable to delete old hot reload file:” when compiling, but with successful builds now, so maybe I should ignore it?
btw, the new errors are multiple lines of this, each associated with a different dll file:
1> Deleting old hot reload file: "C:\Users\xxuser\Documents\Unreal Projects\myProject\Binaries\Win64\UE4Editor-myProject-1747.dll".
1> Unable to delete old hot reload file: "C:\Users\xxuser\Documents\Unreal Projects\myProject\Binaries\Win64\UE4Editor-myProject-1747.dll". Error: C:\Users\xxuser\Documents\Unreal Projects\myProject\Binaries\Win64\UE4Editor-myProject-1747.dll