Water type

» Siedler Map Source Forum » Siedler DEdK Script Forum » Water type

Seiten: 1

SH
#1
24.11.2018 14:31
Beiträge: 127

Water type

Hi,
in function Logic.WaterSetType(_minX, _minY, _maxX, _maxY, _watTyp) what I have to write in _watTyp? It is for example WaterTypes.European-Shorewave or somethong else?

____________________
Sorry for my German

mcb
#2
24.11.2018 14:44
Beiträge: 1472

There isn't a list in Lua, but you can add this to your script:

WaterTypes = {
	WaterA = 1,
	WaterB = 2,
	WaterC = 3,
	WaterD = 4,
	WaterE = 5,
	Mediterran_Ocean = 10,
	Mediterran_River = 11,
	Mediterran_Lake = 12,
	Nordic_Swamp = 20,
	Evelance_Swamp = 30,
	Moor = 40,
	Moor_NonFreezing_Swamp = 41,
	Mediterran_NonFreezing_Shorewave = 45,
	European_NonFreezing_Shorewave = 50,
	European_Shorewave = 55,
}


And then use something like WaterTypes.European_Shorewave.

SH
#3
24.11.2018 15:26
Beiträge: 127

Ok,
In winter I changed the non-freezing water to freezing. The water didn't freeze, but it became more white. How to change the water in winter so that it will freeze?

____________________
Sorry for my German

SH
#4
24.11.2018 15:39
Beiträge: 127

I did the same with changing freeznig water to other freezing water and it unfreezed, but entities could walk on it.

____________________
Sorry for my German

mcb
#5
24.11.2018 15:39
Beiträge: 1472

You might have to update the blocking with Logic.UpdateBlocking(_minX, _minY, _maxX, _maxY)
Both positions have to be divided by 100 (similar to your SetWaterType)

SH
#6
24.11.2018 15:51
Beiträge: 127

Yes, it works, but the water is still unfreezed (and more white) and it looks strange that entities walk on the water. It is possible to make an ice without changing weather?

____________________
Sorry for my German

mcb
#7
24.11.2018 16:14
Beiträge: 1472

Might be a bug with the GFX-Set, try to reset the snow effect parameter:

Display.GfxSetSetSnowEffectStatus(_gfx, _transS, _transE, _flag)
-- with params
Display.GfxSetSetSnowEffectStatus(3, 0, 1, 1)

SH
#8
24.11.2018 18:29
Beiträge: 127

Infortunately, it doesn't work with it. Even after change the weather to summer and then to winter, water is not freezed. But it is possible to create a new weather type with snow and without ice, or ice is related to the lanscape?

____________________
Sorry for my German

mcb
#9
24.11.2018 19:13
Beiträge: 1472

Both the snow on the ground and the ice is controlled by this Display.GfxSetSetSnowEffectStatus function.

Seiten: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum