A way to export single floor into a file?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
Trollmann
Posts: 24
Joined: Sun Apr 15, 2012 6:31 pm

A way to export single floor into a file?

Post by Trollmann »

As the topic says. Is there a way?

I started doing a test dungeon where I just did another floor for each test I had in mind, but some of them grew to be pretty large and awesome in the terms of classic Grimrock game play feeling,
so I was thinking to add them in my another non-test dungeon which already has a few ~complete floors.

Now, I will re-create everything I've done from scratch if I have to, but it would help greatly if there is a way to export and import single floor into dungeon.

At least copying the assets to another project works :) Would be nice if we could copy and paste the wall layout too. Just suggestions!
User avatar
crisman
Posts: 305
Joined: Sat Sep 22, 2012 9:23 pm
Location: Italy

Re: A way to export single floor into a file?

Post by crisman »

you can try oper dungeon.lua in script folder, and copy and paste the data of the level you are interested into the dungeon.lua of your choice.
User avatar
JohnWordsworth
Posts: 1397
Joined: Fri Sep 14, 2012 4:19 pm
Location: Devon, United Kingdom
Contact:

Re: A way to export single floor into a file?

Post by JohnWordsworth »

You should just be able to copy the dungeon floor definition from dungeon.lua in your mod_assets/scripts. Copying the 'spawn('...')' messages and the like should even copy all of the objects on that floor. You might want to close the Dungeon Editor first (so it doesn't overwrite your new dungeon.lia script while you work on it.

Edit: Haha, @crisman you must have pipped me to the post (button) by a few seconds! Lol
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
User avatar
Trollmann
Posts: 24
Joined: Sun Apr 15, 2012 6:31 pm

Re: A way to export single floor into a file?

Post by Trollmann »

Oh, sweet. Didn't know the actual maps are also in .LUA format :) I just started creating my own dungeons few days back, but I'm learning quick!

Would still be nice if the feature to import / export was added, maybe in the same box where your current levels are listed. Right-click -> Export / Import etc. Maybe in future :)
Thanks, I will try out copying the dungeon data from the .LUA files.
User avatar
Montis
Posts: 340
Joined: Sun Apr 15, 2012 1:25 am
Location: Grimrock II 2nd playthrough (hard/oldschool)

Re: A way to export single floor into a file?

Post by Montis »

also make sure all level references from scripts or teleports refer to the correct levels when moving them up/down or into another dungeon :)

in scripting it is advised anyway to use self.level (self always refering to the script entity until otherwise defined)
When destiny calls, the chosen have no choice.

My completed dungeon (LoG1): Hypercube
Post Reply