Well hello there!
I was studying and finding out, how lightmaps in Mafia works and well, I do some progress, in latest version of MWE, you can easilly do anything with them. I am now, for example, able to turn daytime to evening.
But now I want to do something harder. Correct me, if I get something wrong. As we know, Mafia uses pre rendered lightmaps, because it’s lights and shadows are not fully dynamic. Instead of that, you can define lightmaps levels (layers). For each lightmap, you can create one layer, then for example delete lights and create another level. In game, you can switch between them by script. Used in Villa mission, where you were able to turn the ligts on and off by switches. That’s how I get it, that’s how I understood from reading all of Villa mission scripts.
So, I picked Farm mission, “turned off the lights” in DCED, created lightmaps in LEVEL 0 with lights off. In game, ligts weren’t shining and lightmaps were dark. Then I used DC-ED to turn on the lights, created lightmaps under level 1. I noticed, that MWE shows only level 0 in 3D view and it’s not possible to change it, howewer this have no infulence on level 1. So when I started the game and all the lights were on, game was rendering level 1.
So I opened the Villa mission in DCED and looked on scripts. In Villa misiion, lightmaps level are controlled by SETLMLEVEL x, y … X represents number from findframe and y represents level number.
So I tried to add script
findframe 1,”Box12″
setlmlevel 1, 0
And nothing happened. I tried it on every object and sector (in Villa, setlmlevel is applied to both object and sectors and works well)
My question is: WTF I’m doing wrong?