Jump to content
Maintenance ×
×
×
  • Create New...

v16.2 Fog Update Config


Recommended Posts

  • Premium

Nice, but I don't get the point when it comes to remove fog. As for me I think it's nice to have a cloudy atmosphere plus it's better because it hides some defaults like tree distances and stuff, while it gives a little bit of performance.

  • Good 1
Link to comment
Share on other sites

  • 3 months later...
  • 2 years later...
  • 1 month later...
  • 7 months later...
0419 11:34:12194 :: Traceback (most recent call last):

0419 11:34:12194 ::   File "uiPhaseCurtain.py", line 61, in OnUpdate

0419 11:34:12195 ::   File "networkModule.py", line 150, in __ChangePhaseWindow

0419 11:34:12195 ::   File "game.py", line 238, in Open

0419 11:34:12195 :: AttributeError
0419 11:34:12195 :: : 
0419 11:34:12195 :: 'module' object has no attribute 'IsFogMode'
0419 11:34:12195 :: 

client syserr 

This is the hidden content, please

Edited by icaloxi
  • Metin2 Dev 1
Link to comment
Share on other sites

  • 2 months later...
  • 9 months later...
  • Premium
Posted (edited)

if u've fog off in day_mode 0, when you switch to day_mode 1 it will reappear. because isn't updated.

diff --git a/Python/root/game.py b/Python/root/game.py
index d8f6fbb..3e93229 100644
--- a/Python/root/game.py
+++ b/Python/root/game.py
@@ -2115,6 +2115,14 @@ class GameWindow(ui.ScriptWindow):
 		self.interface.DisappearPrivateShop(vid)
 
 	## DayMode
+
+	if app.ENABLE_FOG_FIX:
+		def __Fog_DayMode_Update(self):
+			if systemSetting.IsFogMode():
+				background.SetEnvironmentFog(True)
+			else:
+				background.SetEnvironmentFog(False)
+
 	def __PRESERVE_DayMode_Update(self, mode):
 		if "light"==mode:
 			background.SetEnvironmentData(0)
@@ -2124,6 +2132,8 @@ class GameWindow(ui.ScriptWindow):
 				return
 
 			background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
+			if app.ENABLE_FOG_FIX:
+				self.__Fog_DayMode_Update()
 			background.SetEnvironmentData(1)
 
 	def __DayMode_Update(self, mode):
@@ -2138,11 +2148,15 @@ class GameWindow(ui.ScriptWindow):
 
 	def __DayMode_OnCompleteChangeToLight(self):
 		background.SetEnvironmentData(0)
+		if app.ENABLE_FOG_FIX:
+			self.__Fog_DayMode_Update()
 		self.curtain.FadeIn()
 
 	def __DayMode_OnCompleteChangeToDark(self):
 		background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
 		background.SetEnvironmentData(1)
+		if app.ENABLE_FOG_FIX:
+			self.__Fog_DayMode_Update()
 		self.curtain.FadeIn()
 
 	## XMasBoom
-- 

 

Edited by Mitachi

My signature (yes, I'm a creative guy)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 4

      problem Dargon Soul Changre Attribute

    2. 41

      Global Chat

    3. 4

      problem Dargon Soul Changre Attribute

    4. 2

      Startup Loading Window Library

    5. 28

      Ludus2: metin2 fan project

    6. 44

      Inbuild GR2 Animation

    7. 6

      Minimap Mob proto

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.