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 »

Can someone please tell me what I did wrong with this floor texture (the lighting problem) ?

http://imgur.com/a/vEieM

Is it the normal map ?
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 »

Probably. Is the normal map in object or tangent fashion? (Supposed to be object normals for LoG2)
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

Isaac wrote:Probably. Is the normal map in object or tangent fashion? (Supposed to be object normals for LoG2)
You've got it backwards, it should be in tangent space for Grimrock. DXT5nm style for grimrock 2 (X coordinate in green channel, Y coordinate in alpha channel, red and blue channel are ignored).
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
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 »

minmay wrote:
Isaac wrote:Probably. Is the normal map in object or tangent fashion? (Supposed to be object normals for LoG2)
You've got it backwards, it should be in tangent space for Grimrock. DXT5nm style for grimrock 2 (X coordinate in green channel, Y coordinate in alpha channel, red and blue channel are ignored).
I already knew it was tangent for Grimrock; I've made them for LoG1 before...

I was under the [false?] impression that LoG2 normal maps were swizzled object normals.
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: Ask a simple question, get a simple answer

Post by kelly1111 »

Ok ... trying to get it to work (need some advice again)

http://imgur.com/a/5ctDC

Is this the way ?

gimp did give me some warning about a volume map.

Is there a good toturial around to read into to learn the ropes on this ?
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 »

kelly1111 wrote:Is there a good toturial around to read into to learn the ropes on this ?
viewtopic.php?f=22&t=8080&p=103867&hili ... ap#p103867

@minmay : Thanks!

I just made a Photoshop Action that makes the NM conversion a one click step. 8-)
User avatar
Duncan1246
Posts: 404
Joined: Mon Jan 19, 2015 7:42 pm

Re: Ask a simple question, get a simple answer

Post by Duncan1246 »

It's probably a silly question, but I need an answer: how can I close an image drawn with context commands? (code in my last post on this thread)
The Blue Monastery (LOG1)
download at:http://www.nexusmods.com/grimrock/mods/399/?

Finisterrae(LOG2)
download at:http://www.nexusmods.com/legendofgrimrock2/mods/61/?
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 »

Duncan1246 wrote:It's probably a silly question, but I need an answer: how can I close an image drawn with context commands? (code in my last post on this thread)
I've been waiting on an answer from minmay. [Afaik] The player has to click the screen. There does not seem to be a way to call the function to cancel it.

****Edit: I misunderstood you to mean 'drawn with GameMode.showImage()', instead of context commands. :?
As is [was later] posted, a simple condition to skip the drawing command will stop it. Context GUI commands are drawn per frame.
Last edited by Isaac on Sun Nov 20, 2016 7:19 am, edited 4 times in total.
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: Ask a simple question, get a simple answer

Post by AndakRainor »

Duncan1246 wrote:It's probably a silly question, but I need an answer: how can I close an image drawn with context commands? (code in my last post on this thread)
You could remove the connector, or immediately return in your drawing function when some condition is met.
User avatar
AndakRainor
Posts: 674
Joined: Thu Nov 20, 2014 5:18 pm

Re: Ask a simple question, get a simple answer

Post by AndakRainor »

Does anyone know how the health_regeneration_rate and energy_regeneration_rate stats work? How much health or energy per second do they restore?
Post Reply