QodotPlugin / qodot-plugin

(LEGACY) Quake .map support for Godot 3.x
MIT License
960 stars 70 forks source link

Document loading maps at runtime from game resources #159

Closed ceceayo closed 1 year ago

ceceayo commented 1 year ago

Is it possible to load a map from game resources at runtime?

Derpford commented 1 year ago

Seconding this--I want to load different maps into the same scene, so that I can have one scene for game logic and load maps in and out of it (I'm making a multiplayer game).

DeerTears commented 1 year ago

You can already load maps and build them at runtime by setting a QodotMap's map_file to your map, then calling verify_parameters() then build_map() on the node. But I remember people running into dependency errors with their export settings, so I'm hoping someday I can write out the full method for this (including export settings) and add it to https://qodotplugin.github.io/

Maybe it's a bit late, but a suggestion for @Derpford you can always save your complete QodotMap builds as .tscn scenes, and just load that. It's likely faster to load Godot's own data structures from your hard drive than it is to perform the entire build process in QodotMap.

DeerTears commented 1 year ago

Moving this to the documentation repo