Announcement

If you are having trouble logging in, please reset your password.
If that does not work, please use the "Contact Us" to contact an admin.

May 04, 2012, 11:18:10 PM Last Edit: January 01, 1970, 12:00:00 AM by Guest
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?

#1 May 05, 2012, 10:04:52 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
Yeah, I added it to script that exists, I didn't forget to change dim_frm value. I was also trying to create new script also with dim_frm 2 and didn't work too. So error is not there  <img src="/wp-content/uploads/invision_emoticons/sad.png" alt="" data-emoticon="" srcset="/wp-content/uploads/invision_emoticons/sad@2x.png 2x" width="20" height="20">  I tried this:


 




dim_frm 2




findframe 1,"Box12"




label 101




setlmlevel 1, 0




wait 1000




setlmlevel 1, 1




wait 1000




goto 101


 




And game crashed while loading.

#2 May 05, 2012, 11:53:40 AM Last Edit: January 01, 1970, 12:00:00 AM by Guest
I was not able to assign sector to scene.4ds objects? When I assigned sector to Box12 and DC-ED didn't accept it.




But when I tried to findframing sectors, I doesn't work too. I tried it with all objects and sectors.