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!
User avatar
Doridion
Posts: 256
Joined: Tue Jun 10, 2014 9:23 pm

Re: Ask a simple question, get a simple answer

Post by Doridion »

@antti : Could sticking it thread and the superthread ?

Both of them are useful for modders to ask or found easily important threads and of course, not having 5 times the same question in 5 different threads :D

Thanks in advance !
User avatar
Prozail
Posts: 158
Joined: Mon Oct 27, 2014 3:36 pm

Re: Ask a simple question, get a simple answer

Post by Prozail »

Vice Dellos wrote:i want to change the y-position of a secret door. i thought you had to do something like
door.go:setWorldPositionY(42) but i get an error: attempt to index field 'go' (a nil value) How are you supposed to call on it?
if you're calling it directly just use "secret_door_id_1:setWorldPositionY(42)"

It's not entierly clear when you need to add the ".go"
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Is there an object that allows the player to pass through walls?

Having some trouble mixing terrain that creates invisible walls.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Ask a simple question, get a simple answer

Post by NutJob »

Jackard wrote:Is there an object that allows the player to pass through walls?

Having some trouble mixing terrain that creates invisible walls.
As in something your champion can posses to allow the party to walk through a wall OR allow you, the creator, to walk through a wall for debugging? F1 removes Collision if the latter.
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Neither. I want to add something to the map that allows players to pass through these pesky invisible walls created by mixing terrain.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Ask a simple question, get a simple answer

Post by NutJob »

Jackard wrote:Neither. I want to add something to the map that allows players to pass through these pesky invisible walls created by mixing terrain.
Then I have the exact opposite problem you have. I wish my wall entities had collision. Also, to answer your question, I don't think so.
NutJob
Posts: 426
Joined: Sun Oct 19, 2014 6:35 pm

Re: Ask a simple question, get a simple answer

Post by NutJob »

Q1: Is there a way to find entities(At) on another level? So far I can only use self or the calling object (be it a lever, the party, floor trigger, etc) with entitiesAt(x,y) and would love something like entitiesAt(level,x,y).

Q2: Is there a way to get the height of a tile? so far I have been using "self.go.map:getElevation(party.x, party.y)" but it's cumbersome.
Last edited by NutJob on Fri Oct 31, 2014 3:10 am, edited 2 times in total.
User avatar
ScroLL
Posts: 56
Joined: Tue Sep 18, 2012 12:21 pm
Location: Vermont

Re: Ask a simple question, get a simple answer

Post by ScroLL »

NutJob wrote:
Jackard wrote:Neither. I want to add something to the map that allows players to pass through these pesky invisible walls created by mixing terrain.
Then I have the exact opposite problem you have. I wish my wall entities had collision. Also, to answer your question, I don't think so.
Couldn't you just place an invisible_wall there, or set the entity to have a class of Obstacle?
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Is there an object limit? My editor has begun to crash when I copypaste things.

Code: Select all

=== Software Failure ===

[string "GameObject.lua"]:0: attempt to index field 'map' (a nil value)
stack traceback:
	[string "GameObject.lua"]: in function 'destroy'
	[string "Map.lua"]: in function 'removeFloor'
	[string "Arch.lua"]: in function 'spawn'
	[string "DungeonEditor.lua"]: in function 'spawn'
	clipboard:1: in main chunk
	[string "DungeonEditor.lua"]: in function 'pasteEntities'
	[string "DungeonEditor.lua"]: in function 'mapView'
	[string "DungeonEditor.lua"]: in function 'update'
	[string "Grimrock.lua"]: in main chunk
Jackard
Posts: 59
Joined: Thu Oct 30, 2014 7:32 pm

Re: Ask a simple question, get a simple answer

Post by Jackard »

Also its letting me move through some of these thin walls, without using the console. Do walls need a solid tile for collision to work properly?
Post Reply