Search the Community
Showing results for tags 'zip'.
-
Style should make UI looks brown (to check if it's loaded correctly) Also file name is looks wrong if it's not Latin symbolsData.zip #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; }
-
-
I've compressed 5,259 4096x4096 r16 heightmap files into a zip file. It's about 7GB of data. Using LoadDir("") to list the files at the root returns a size of 0 ONLY for this zip file. I used the code below on a zip file of 5,259 1024x1024 r16 heightmaps (1.2GB) and it worked fine. Pretty sure all the files have the exact same names in both zip files. It's just the map resolution that is different. I thought maybe LoadDir() or LoadPackage() doesn't like the large zip file? This is the snippet of code that handles the loading. if (extension == "zip") { auto package = LoadPackage(filepath); if (package != nullptr) { auto dir = package->LoadDir("");
-
Hi, i have created a Project from the Marble Game Template for a Test in MS Visual C++ 2013, here my steps: main.cpp if (ext=="zip" || ext=="pak") { Leadwerks::Package::Load(file,"strongpassword"); } Ok after the changes in main.cpp i have compiled the solution and the Game runs in the Projectfolder, now i have create a folder "MarbleGame" with the MarbleGame.exe, lua51.dll and the steam_api.dll from the Projectfolder, the Assets are in seperated protected ZIP Archives like this: Fonts.zip Maps.zip Materials.zip Models.zip Scripts.zip Shaders.zip Sound.zip In the Archives are not the Basefolders (eg in Maps.zip is only the File "start.map" without any folders). And now the MarbleGame.exe doesnt run and output the Message: Whats wrong, please?
-
Hello, lxFirebal69xl pointed out that the loadfile() function i used in the Notes.lua crashes the application. I tested it and it looks like loadfile can only load files that are placed normally in the game directory and not inside a zip-file. is this a bug or a feature?