LoG Sky System [BETA]

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: LoG Sky System [BETA]

Post by LordGarth »

This script linked to a pressure plate will change the ambiance

function setAmbiance()

skyScript.setAmbiance("day")

end

Replace day with whatever ambiance you have.

LordGarth
Dungeon Master and DOOM will live forever.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: LoG Sky System [BETA]

Post by LordGarth »

I have gotten the duplicate weather problem too.

Perhaps there is not enough time now and then to when one ambiance is removed and the next is put into place.

LordGarth
Dungeon Master and DOOM will live forever.
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: LoG Sky System [BETA]

Post by Diarmuid »

Ha! Glad someone is trying this out... I'd check out the duplicate thing, but my laptop died and I'm waiting for a replacement, and no LoG meanwhile. :(

Ah, for the duplicate, I noticed that if you set weatherRadius to 2 or 4 there didn't seem to be duplicate problems. Probably a rounding error of some kind.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: LoG Sky System [BETA]

Post by LordGarth »

All weather radius was 2 and the error does not happen all the time. I have gotten several errors but they were all duplicate error. Either duplicate ambiance or projectile. I think that the previous ambiance or projectile is not fully destroyed before the new one comes up and there is a duplicate.

This error happens randomly when the timing is just right.

LordGarth
Dungeon Master and DOOM will live forever.
User avatar
LordGarth
Posts: 500
Joined: Mon Jun 18, 2012 5:07 pm
Location: Colorado USA

Re: LoG Sky System [BETA]

Post by LordGarth »

Duplicate ID problem seemed to be with rainy day only. I changed the cloud frequency to 8 instead of 9 and no problem so far.

LG
Dungeon Master and DOOM will live forever.
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: LoG Sky System [BETA]

Post by bongobeat »

hi!

works now:
but I have two issues:

first when i start previsualization in the editor:
i got some messages "warning! item cell coordinates are 0,0 but its world coordinates indicate that the item is at -11,-11
(12 messages like this one)

then if i try to change the weather by using the spawned scrolls, the editor crashes.

I have exported the dungeon, and test it in real, but there is the same issues: message in console, and crash when using the scroll

here a copy or the error log
SpoilerShow

Code: Select all

mod_assets/dx_sky_system/dx_sky_system.lua:549: attempt to index global 'skyScript' (a nil value)
stack traceback:
	mod_assets/dx_sky_system/dx_sky_system.lua:549: in function 'onUseItem'
	[string "Item.lua"]: in function 'useItem'
	[string "CharSheet.lua"]: in function 'slotClicked'
	[string "CharSheet.lua"]: in function 'draw'
	[string "Gui.lua"]: in function 'draw'
	[string "GameMode.lua"]: in function 'update'
	[string "Grimrock.lua"]: in function 'display'
	[string "Grimrock.lua"]: in main chunk
any idea to resolve this?
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: LoG Sky System [BETA]

Post by Diarmuid »

The warnings are normal and unavoidable (it's because clouds are big particles of a 20x20 tiles size approx, and it complains they are not in 1 square).

Your error is probably due to not having the script in a script entity named skyScript.

Code: Select all

mod_assets/dx_sky_system/dx_sky_system.lua:549: attempt to index global 'skyScript' (a nil value)
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: LoG Sky System [BETA]

Post by bongobeat »

true!
thanks! :D

btw i have test the rainy day or night, is spawns rain particle 2 square aroud my possition, and that all.
no particle outside this position I mean.

and another issue i forgot on my first post:
when i set the ambiance to day or rainy day, it spawns a blue or grey sphere (depend of ambiance), in the start location
i suppose it is the "skySphere = "dx_skysphere_blue"," as writen in the script

here is a screen of the day ambiance
Image

can it be desactived?
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: LoG Sky System [BETA]

Post by Diarmuid »

Hi,

The sphere is needed to make the sky background blue, and the rain is indeed spawned only around you (that's what weatherRadius is for) because it would be way too resource-intensive to spawn it all over the place.

Normally, both the sphere and the rain are supposed to move with you, not to stay there. I think you probably miss the hooks on your party object. Normally the skyScript puts these automatically via the LoG framework. Do you have that installed? And if yes, did you manually define any onMove hooks for the party? (using cloneObject) If yes, you would need to move those hooks to be defined dynamically through the framework Look how it's done in skyScript for the syntax.
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: LoG Sky System [BETA]

Post by bongobeat »

Hello,

yes the framework is installed but I haven't define a hook, well i dont know how to do that!

do you have some example please?
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
Post Reply