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
THOM
Posts: 1266
Joined: Wed Nov 20, 2013 11:35 pm
Location: Germany - Cologne
Contact:

Re: Ask a simple question, get a simple answer

Post by THOM »

So - this doesn't work:

Code: Select all

self:setParam("clouds2Map", "assets/textures/env/sky_cloudy_rim_2.tga")
Because the engine expects as the second parameter a number, not a string...
THOM formaly known as tschrage
_______________________________________________
My MOD (LoG1): Castle Ringfort Thread
My MOD (LoG2): Journey To Justice Thread | Download
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

You need to use setTexture(), not setParam().
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.
Pompidom
Posts: 497
Joined: Sun May 06, 2018 9:42 pm

Re: Ask a simple question, get a simple answer

Post by Pompidom »

I have started to build a big cathedral/church thingie.
Now I noticed when making big rooms there is a black wall after 7 squares where everything including lights simply disappears in a black hole.
Any way to increase viewing distance in indoor maps without adding a sky object?

https://ibb.co/nGT5zJ 7 squares from the wall
https://ibb.co/dotPRy 8 squares from the wall

So far the only work around I have found is to add a sky object with all components disabled except the sky.
This works, there is no daylight since the light component is disabled, however this causes much stress on performance since visibility is maxed out.
And depending on the time of day the room looks different or foggy or red in case it's evening time and blueish during night time.

https://ibb.co/cW15Yd
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: Ask a simple question, get a simple answer

Post by kelly1111 »

viewtopic.php?f=22&t=7998#p80940

this will solve the problem I think
Pompidom
Posts: 497
Joined: Sun May 06, 2018 9:42 pm

Re: Ask a simple question, get a simple answer

Post by Pompidom »

Sadly, it doesn't, the draw distance is still locked at 7 squares :(

For now it works with a partially disabled sky object and it looks okayish.
I'll see what i can do to improve things after I have finished the roof.

https://ibb.co/hBNPby
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

I go over how to deal with the default far clip in this post.
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.
Pompidom
Posts: 497
Joined: Sun May 06, 2018 9:42 pm

Re: Ask a simple question, get a simple answer

Post by Pompidom »

Definitely will give this a try. Thank you :)

I started reading through this entire topic to search for possible stuff I can use but fell asleep after 50 pages. One day I will find hopefully find the time to read through it all.

Since my mod is demon hell spawn oriented in certain maps, I started to make a demon kitchen where human corpses lay on tables and placing furnaces on which meat food items are being grilled, a blood bath that contains all drained blood spawning blood demons and that sort of things. It's already in demo 0.02.

Log1 has corpses on a vertical spike. Are there any custom assets like that out there that are usable for this setting? I'm also looking for a big mirror to walk through in an upside down dimension.
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 tell me how to get hudprinted text in a different color?
How do I script that?
Pompidom
Posts: 497
Joined: Sun May 06, 2018 9:42 pm

Re: Ask a simple question, get a simple answer

Post by Pompidom »

You asked this question back a year ago. The answer was no. :lol:
kelly1111
Posts: 349
Joined: Sun Jan 20, 2013 6:28 pm

Re: Ask a simple question, get a simple answer

Post by kelly1111 »

I tend to do that :shock:
Its 32 degrees in here and I am toast.

Next time ill check my own historical questions first
Post Reply