Lightning NStpe logic

04/18/2023 14:03 3lmoo#1
Can anyone explain to me how maps from NStu are connected to lightning in NStpe?

Like if I copy Nosville map with Map ID 1 and add it as like Map ID 20000 in NStu everything is fine besides lightning and I wonder how NStpe files which take care of lightning are linked to MAP ID.

Like I assume it's kinda equal to how minimaps from NStpe are connected to NStu and I know how minimaps work. I just have no clue what the logic behind lightning is - would be great if someone could tell me.
04/18/2023 17:52 Bejine#2
From my NosPlacer (map editor) [Only registered and activated users can see links. Click Here To Register...]:
Quote:
Map floor shadows texture, entity shadows texture and minimap texures are inside NStpDatas
Shadows' ID is mapId + 2144337920 (mapId + 0x7FD00000)
Entity shadows' ID is mapId + 2144468992 (mapId + 0x7FD20000)
Minimap ID is mapId + 1431425024 (mapId + 0x5551D000)
For example, map with ID 123 would need to have (otherwise it will default to full white):
- texture 2144338043 for map shadows (like a shadow of a tree)
- texture 2144469115 for entity shadows (like your character going darker when under a tree)
- texture 1431425147 for minimap
I hope that's what you asked for
04/18/2023 18:29 3lmoo#3
Hey, thanks a lot!

Is exactly what I asked for. :)