Problem adding Fog to custom battles

正在查看此主题的用户

Ruthven 说:
Swyter 说:
En serio tio, get a coder.  :smile:
Surely my good fellow ithilienranger is still over here. PM him.

@Abhuva: Fog has always worked fine. I also use it constantly.
In one of the warband versions, I think 1.3something, the fog would only appear blue.

Update your game and see if you still have this problem, you could be using an older version (1.143 or whatever the **** the latest one is works fine)
or perhaps even an old module system.

As a second option, try putting the fog in before and[/] on the mission start. For some reason I think I had to do this to get fog working right. Then again, I haven't touched the module system in about half a year, so I could be wrong.  :razz:


That could be it. I have it on 1.134
 
Swyter 说:
Revan Shan 说:
插入代码块:
(store_current_scene,":current_scene"),
		(try_begin),
			(eq,":current_scene","scn_quick_battle_scene_1"),
			(set_fog_distance, 30, 0xFF[b]AA33[color=blue]00[/color][/b]),
		(else_try),
			(eq,":current_scene","scn_quick_battle_scene_2"),
			(set_fog_distance, 14, 0xFF[b]C64A[color=navy]00[/color][/b]),
		(end_try),
         ]),

Sloppy code, it hurts my eyes.  :cry:

-First of all, you don't seem to understand hex codes. As you're giving it away only Red and Green. While Blue is undeclared.
That messes up the color interpreter and goes to fallback. #0000FF in this case...

I just wanted to note, that i recently ported my projects from Warband 1.134 to Warband 1.143.
In the original code i used the format: 0xFFRRGGBB  (for example 0xFFC1C1C1 )
Now after porting to the latest modulesystem this format gave me wrong colors all the way.. i recieved the intended color by switching back to the format: 0xRRGGBB  (for example 0xC1C1C1)

Guess its worth noting, cause just saying this or that format is wrong just doesnt is right... TW appearantly changed the format (and its just a simple hex-number - both of the formats, so neither of them is mathematically/codewise wrong ..
It just happens that they seemed to change how they interpret the hex-number ... so far i am quite sure that 0xRRGGBB is the right format for Warband 1.143)
 
Abhuva 说:
I just wanted to note, that i recently ported my projects from Warband 1.134 to Warband 1.143.
They probably removed the alpha value or something.
Thanks for letting us know.
 
后退
顶部 底部