Help How to make the map fully bright

Mu online season 21 - grand opening

Jack_Huang

LOMCN Leecher
Mar 20, 2024
1
0
2
Could anyone please advise on how to disable the feature that makes the map go completely dark? I don't want to carry a candle every time I go out. It's a very unpleasant experience.
 

Symtax

Dedicated Member
Dedicated Member
Aug 3, 2016
72
47
45
1. 1725540850471.png
2. CTRL + F
3. Search for public void UpdateLights()
4. then replace the method with the code attached
Code:
            public void UpdateLights()
            {
                switch (GameScene.Game.MapControl.MapInfo.Light)
                {
                    case LightSetting.Default:
                        byte shading = 255;
                        BackColour = Color.FromArgb(shading, shading, shading);
                        Visible = true;
                        break;
                    case LightSetting.Night:
                        BackColour = Color.FromArgb(15, 15, 15);
                        Visible = true;
                        break;
                    case LightSetting.Twilight:
                        BackColour = Color.FromArgb(100, 100, 100);
                        Visible = true;
                        break;
                    case LightSetting.Light:
                        BackColour = Color.FromArgb(255, 255, 255);
                        Visible = true;
                        break;
                }
            }

5. CTRL + S
6. CTRL + B
7. Open client, you now have light.
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,287
520
That would just adjust maps which have a day night cycle (which all dungeons don't)
 
Upvote 0

Symtax

Dedicated Member
Dedicated Member
Aug 3, 2016
72
47
45
That would just adjust maps which have a day night cycle (which all dungeons don't)
I'm not sure he only asked how to make the map not go dark referencing the night time in-game, if it was for caves too then I'd just remove the Twilight & Night functions in-order to make caves go full bright too.

Unless someone knows a better method then I recommend them to post it, am not the best with this stuff.
 
Upvote 0

Hwarang

Dedicated Member
Dedicated Member
Mar 19, 2018
73
30
45
Tunbridge wells
If he just wants the Light lightsetting in the database to be set at a lower RGB so day time is not as bright then set the 255,255,255 to 200,200,200

The code for Default light setting has the DayTime counter code removed so default is exactly the same as Light and just a static RGB of 255,255,255 rather than the Suprcode which gives the Default light setting a somewhat dynamic Night/Day cycle based on DayTime and DayCycle in SEnvir.

case LightSetting.Default:
byte shading = (byte) (255 * GameScene.Game.DayTime);
BackColour = Color.FromArgb(shading, shading, shading);
Visible = true;
break;

The light setting for each map has to be set in the Database, if u want it always light set it Light if dark set Dark if dynamic use that initial code and set Default.

Above is the initial code before it had been changed removing the DayTime counter from the calculation which causes the change between light and dark.

He might be talking about rather than night instantly changing from 255,255,255 to 15,15,15 instantly when it changes from day to night and instead transitioning smoothly over a period of time which is a little more tricky but not to bad but before going into that u might need to clarify what he wants.
 
Last edited:
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,683
34
3,287
520
I mean you're both also assuming they're even talking about Zircon files. Since it was asked in April, and that's their only post - I doubt we'll ever find out :ROFLMAO:
 
  • Haha
Reactions: Symtax
Upvote 0

Hwarang

Dedicated Member
Dedicated Member
Mar 19, 2018
73
30
45
Tunbridge wells
lol true didnt even look at the date =/ i assumed by the zircon code that was linked that some information was given elsewhere lol ;P
 
Upvote 0