Jump to content

Chimera

Members
  • Posts

    6
  • Joined

  • Last visited

Everything posted by Chimera

  1. On a side note, is there an actual license for your template? I'm just sort of cautious about you saying free to use, but also seeing the copyright in even the app.cpp/h.
  2. Any idea when they might be fully implemented? I was actually about to try either making my own GUI system or using your template when I stumbled on them, but it would be so much easier if it was already in the engine.
  3. Probably a stupid question, but I just started using Leadwerks again, and happened to stumble across classes like GUI, Button, TextButton, etc in autocomplete. Are these just leftovers of something, or are they something new? Can't find any docs on them and using them tends to give errors about shaders.
  4. Just did that, and it fixed it. I didn't even know where to find the config file, thanks! Any way of marking this fixed?
  5. Just like the title, I am unable to see the properties when clicking an object in the scene tab. Not even with the root. I have tried 2 seperate projects so far, but both have the same error. Both projects ARE updated and running the beta build. Edit: Fixed, removed config file and it works again.
  6. I am also getting an access violation when using the ->SetPosition/Fov commands in C++. Code in question(Posting the entire App::Start for completeness' sake) : bool App::Start() { //Perform cfg checks. Sets screenres to 1920x1080 if they throw an error try { ScreenWidth = stoi(System::GetProperty("Screen Width", "1920")); ScreenHeight = stoi(System::GetProperty("Screen Height", "1080")); } catch (std::invalid_argument) {std::cout << "\n\nWaiter!!! There was a string in my Screen Res!\n\n";} //Initialize Steamworks (optional) if (!Steamworks::Initialize()) { System::Print("Error: Failed to initialize Steam."); return false; } //Create a window window = Leadwerks::Window::Create("Game Window",0,0,ScreenWidth,ScreenHeight,Window::Titlebar); //Create a context context = Context::Create(window); //Create a world world = World::Create(); std::string mapname = System::GetProperty("map","Maps/G.map"); Map::Load(mapname); //The culprits are right here-----> //cam->SetPosition(0, 5, 0); //cam->SetFOV(90); //Move the mouse to the center of the screen window->SetMousePosition(context->GetWidth()/2,context->GetHeight()/2); window->HideMouse(); return true; } I have tried debuging multiple times, and it always throws an access violation when those 2 lines are uncommented. It works perfectly fine if I just create a camera through the editor though, so I have no clue what is going on. EDIT: Apparently my problem was I forgot to call Camera::Create on cam....... I am an idiot. ಠ_ಠ
×
×
  • Create New...