Moved Walls Don't Stay Put Across Restore

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
User avatar
petri
Posts: 1917
Joined: Thu Mar 01, 2012 4:58 pm
Location: Finland

Re: Moved Walls Don't Stay Put Across Restore

Post by petri »

Another point to consider: you can easily apply static offsets to model components, if you like, by using the "offset" property in model component's definition.
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Moved Walls Don't Stay Put Across Restore

Post by Lark »

Thank you for all of the ideas. These are all really good ideas, but I've actually had some success importing models with Blender and John's Grimrock Model Toolkit - perhaps unfortunately! This is really fun and it's putting me behind on my scripting duties. Heck, I've even way behind on the forums. Has anyone discovered a list of "textures" you can apply to things. At least I think I'm using the right words. I only know about "dungeon_bricks_01" from Skuggasveinn's tutorials. Here's a little success I've had. :D
SpoilerShow
Image
I also want to know if my railing can be defined in such a way that you can't pass through it from either side nor attach through it. I have the passing through part working (with scripting) for the party, but not for a monster. I'd like Mr. Snail here to be able to get closer to the railing and not stick his head through my new graphics. I thought I could put a blocker for monsters on my side and an invisible wall on his side, but it looks like invisible walls block everyone and blockers for monsters don't keep them from attacking you if you're standing on one. Hummm... this would probably do better in another thread, but darn it all! I'm just so excited!!

:shock: Look at the time! Off to bed for me now. What fun! -Lark
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Moved Walls Don't Stay Put Across Restore

Post by Jackard »

Lark wrote: I also want to know if my railing can be defined in such a way that you can't pass through it from either side nor attach through it.
All the impassable thin walls seem to have the 'door' property. Pedestals have an impassable property and a property that allows projectiles to pass overhead.
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Moved Walls Don't Stay Put Across Restore

Post by Lark »

Thanks Jackard! Pedestal is probably the right way to do it so I'll try that next. I actually got it working with door - probably the wrong way! If you use a door model, then apparently you have to have a gate node in your model. So I renamed the railing itself to gate and it worked without printing an error message. However, projectiles wouldn't pass over it. So... I renamed the root node to gate and the railing to railing... and it worked! Neither the party nor monsters can pass through, but projectiles fly over with ease! I can only surmise that something checked the location of the gate node and decided it shouldn't block projectiles. Isn't that cool and/or strange? I'm not sure that's behavior I could count on, so pedestal it is.

Thanks Jackard. -Lark
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Moved Walls Don't Stay Put Across Restore

Post by Jackard »

Since you are already familiar with this, how would I make a custom object that is a combination of dungeon_wall_open and a pedestal ?

It seems like the former should already have come with the impassable and projectile properties of the latter.
User avatar
blob
Posts: 50
Joined: Fri Aug 02, 2013 9:34 am

Re: Moved Walls Don't Stay Put Across Restore

Post by blob »

Hey Lark, is this mostly for walls ? I'm a setWorldPosition addict too, and I'm carefully placing my lamps and mushrooms all over the place. :)
I just tested in game and all those items arent being reset when I save and reload.
User avatar
Lark
Posts: 178
Joined: Wed Sep 19, 2012 4:23 pm
Location: Springfield, MO USA

Re: Moved Walls Don't Stay Put Across Restore

Post by Lark »

Hello Blob,

See Petri's first post in this thread. I've only found that wall positions aren't saved and Petri gave two ways to keep them where you want them. I haven't really worked on it from the setWorldPosition() perspective lately - I've gotten lost in 3D modeling land. Not that I know what I'm doing. Heck, a week ago, I wouldn't have even known where to start. Now, I have a few basic models in-game that I did from scratch and some other free models altered and imported!

Sorry Jackard,

I've simply not tried the pedestal definition yet... it's on the list as it's probably the right way to do it, but defining a new model with a gate node and defining it as a door works fine for my model tests. My brain is warped out on modeling, exporting DXT5 formats, Blender, Gimp, and trying to figure out how to swap my red and alpha channels to finally get a good normal map! A week ago, all of that would have been Greek! I'll post here and/or PM you when I get around to defining it right.

Take care all, -Lark

NutJob, we miss you! Please come back... :cry:
User avatar
blob
Posts: 50
Joined: Fri Aug 02, 2013 9:34 am

Re: Moved Walls Don't Stay Put Across Restore

Post by blob »

Thanks Lark, just wanted to check you hadn't seen it happen on that. From my tests those smalls objects save those states :)
Congratz in getting into 3D stuff, the initial wall is pretty big but once you pass it it's pretty fun! You don't sound frustrated after a week focusing on that, it's a good sign. ;)
Post Reply