Dreikblack Posted April 8, 2024 Posted April 8, 2024 #include "UltraEngine.h" using namespace UltraEngine; int main(int argc, const char* argv[]) { auto package = LoadPackage("Data.zip"); if (package == nullptr) { Notify("No Package Found"); } package->FileType(""); auto plugin = LoadPlugin("Plugin\\FITextureLoader"); if (!plugin) Notify("No plugin Found"); else Notify("Plugin Found"); auto displays = GetDisplays(); auto window = CreateWindow("Ultra Engine", 0, 0, 500, 500, displays[0], WINDOW_DEFAULT); auto framebuffer = CreateFramebuffer(window); auto world = CreateWorld(); auto font = LoadFont("Fonts\\arial.ttf"); auto ui = CreateInterface(world, font, framebuffer->GetSize()); ui->SetRenderLayers(2); auto uiCamera = CreateCamera(world, PROJECTION_ORTHOGRAPHIC); uiCamera->SetPosition((float)framebuffer->GetSize().x * 0.5f, (float)framebuffer->GetSize().y * 0.5f, 0); uiCamera->SetRenderLayers(2); uiCamera->SetClearMode(CLEAR_DEPTH); ui->LoadColorScheme("Style.json"); auto btn = CreateButton("TEST", 10, 10, 100, 100, ui->root); auto dir = LoadDir("Ru"); for (WString localFile : dir) { btn->SetText(localFile); Print(localFile); } //Main loop while (window->Closed() == false and window->KeyDown(KEY_ESCAPE) == false) { world->Update(); world->Render(framebuffer); } return 0; } Data.zip Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
Josh Posted April 8, 2024 Posted April 8, 2024 It is possible that maybe assimp and my libzip are conflicting somehow? Quote Let's build cool stuff and have fun.
Dreikblack Posted April 9, 2024 Author Posted April 9, 2024 With last update without assimp issue still there Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
SpiderPig Posted April 9, 2024 Posted April 9, 2024 Can this please be looked asap, I can no longer package and update my game. Quote
Josh Posted April 9, 2024 Posted April 9, 2024 6 hours ago, SpiderPig said: Can this please be looked asap, I can no longer package and update my game. Yes 1 Quote Let's build cool stuff and have fun.
Josh Posted April 9, 2024 Posted April 9, 2024 What example is not working in this example? When I run it, it loads the folder and finds a file called "è¿a¿½½¿µá.txt" in the RU folder. Quote Let's build cool stuff and have fun.
Josh Posted April 9, 2024 Posted April 9, 2024 Okay, building from the engine source works, but from the lib does not. It probably is interfering with assimp...let me do another build without it. (I only updated the editor last time.) 1 Quote Let's build cool stuff and have fun.
Solution Josh Posted April 10, 2024 Solution Posted April 10, 2024 Update is available now which I believe fixes this. I tested on the standalone. 2 Quote Let's build cool stuff and have fun.
Dreikblack Posted April 10, 2024 Author Posted April 10, 2024 Same 1 Quote Check out Slipgate Tactics demo, which is made with Ultra Engine/Leadwerks 5: https://www.leadwerks.com/community/topic/61480-slipgate-tactics-demo/
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.