Ask a simple question, get a simple answer

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!
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: Ask a simple question, get a simple answer

Post by kelly1111 »

lostsol: thanks for the script. It tested it. In my dungeon, no result. still void where the floor should be...
In a new dungeon 32 x 32 ... it works.

Perhaps you are right. It will not work on maps with a different grid size. I cant seem to find another explanation.
Killcannon
Posts: 73
Joined: Sun Apr 12, 2015 2:57 pm

Re: Ask a simple question, get a simple answer

Post by Killcannon »

The only problem I seem to have with multi-level 'building' style maps is that objects tend to disappear in the floor of the second and third story floors if there's walkable space under them. Perhaps sending us the map you're working on so we can look at it in editor would help?
lostsol
Posts: 86
Joined: Mon Apr 02, 2018 4:51 pm

Re: Ask a simple question, get a simple answer

Post by lostsol »

kelly1111 wrote: Tue Feb 12, 2019 8:07 pm lostsol: thanks for the script. It tested it. In my dungeon, no result. still void where the floor should be...
In a new dungeon 32 x 32 ... it works.

Perhaps you are right. It will not work on maps with a different grid size. I cant seem to find another explanation.
This issue is entering a realm that is beyond my pay grade, but I am still willing to help as best I can. Please keep in mind that the idea of the larger level sizes being the culprit here is only my best guess, and the problem could very well be something entirely different.

So, I did some forum searching on the topic of heightmap and came upon a fountain of knowledge that is minmay's "Modding infodump". Specifically this post:

viewtopic.php?f=22&t=13948&p=105580&hil ... ap#p105580

Please read through the post so you have a better feel for what I am getting at. I have done no testing of my own, but here are my initial thoughts:

- Your heightmap layer is not the correct size (the size of the tile layer).

- You may need to add an offset to the forest_heightmap definition.
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: Ask a simple question, get a simple answer

Post by kelly1111 »

lostsol wrote: Wed Feb 13, 2019 8:16 pm
kelly1111 wrote: Tue Feb 12, 2019 8:07 pm lostsol: thanks for the script. It tested it. In my dungeon, no result. still void where the floor should be...
In a new dungeon 32 x 32 ... it works.

Perhaps you are right. It will not work on maps with a different grid size. I cant seem to find another explanation.
This issue is entering a realm that is beyond my pay grade, but I am still willing to help as best I can. Please keep in mind that the idea of the larger level sizes being the culprit here is only my best guess, and the problem could very well be something entirely different.

So, I did some forum searching on the topic of heightmap and came upon a fountain of knowledge that is minmay's "Modding infodump". Specifically this post:

viewtopic.php?f=22&t=13948&p=105580&hil ... ap#p105580

Please read through the post so you have a better feel for what I am getting at. I have done no testing of my own, but here are my initial thoughts:

- Your heightmap layer is not the correct size (the size of the tile layer).

- You may need to add an offset to the forest_heightmap definition.
much and many thanks for the link... totally forgot to look this up. I will experiment with the data..
but am now concidering changing the levels back to 32x 32
for it is indeed the problem with the heightmap at larger level sizes
shayologo
Posts: 8
Joined: Wed Feb 13, 2013 12:10 pm

Re: Ask a simple question, get a simple answer

Post by shayologo »

My very easy question, because it's don't existe any tutorial of moddig and object are very hard to find in editor

1 - How start a LUA script when a player is on a title? it's a direct detector to place on the map?

2 - How have diggable object? I look for something like diggable detector and it's spawn what i want when player dig on a title
User avatar
Zo Kath Ra
Posts: 937
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ask a simple question, get a simple answer

Post by Zo Kath Ra »

shayologo wrote: Sat Feb 16, 2019 10:06 pm My very easy question, because it's don't existe any tutorial of moddig and object are very hard to find in editor

1 - How start a LUA script when a player is on a title? it's a direct detector to place on the map?

2 - How have diggable object? I look for something like diggable detector and it's spawn what i want when player dig on a title
1) Place a script_entity and a floor_trigger in the dungeon. Then connect the floor trigger to the script_entity

2) Just like 1. Except: Check "triggeredByDigging" in the floor_trigger, but remove all other "triggeredBy" check marks.
User avatar
Isaac
Posts: 3185
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

Zo Kath Ra wrote: Sat Feb 16, 2019 10:24 pm 1 - How start a LUA script when a player is on a title? it's a direct detector to place on the map?
Additionally, set the floor_trigger to only trigger by the party, unless you want monsters and dropped items also trigger it.
shayologo
Posts: 8
Joined: Wed Feb 13, 2013 12:10 pm

Re: Ask a simple question, get a simple answer

Post by shayologo »

Thanx you, that work, i come with another question

What is LUA fonction to change party view direction? i want a 180° rotation
User avatar
THOM
Posts: 1274
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ask a simple question, get a simple answer

Post by THOM »

This is a function that came a bit after the initial release with an update. That's why the command is not written in the official scripting reference. But you can find it here:
https://github.com/JKos/log2doc/wiki

Code: Select all

party.party:turn(1)
This will turn the party 90°. For 180° you will need that two times with a small delay inbetween.

-1 instead of 1 will turn the party in the other direction.
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
shayologo
Posts: 8
Joined: Wed Feb 13, 2013 12:10 pm

Re: Ask a simple question, get a simple answer

Post by shayologo »

It's existe a time delay function?
Post Reply