Fog problem

The original, free Ace of Spades game powered by the Voxlap engine. Known as “Classic,” 0.75, 0.76, and all 0.x versions. Created by Ben Aksoy.
8 posts Page 1 of 1 First unread post
Gibbs3333
Mapper
Mapper
Posts: 89
Joined: Wed Dec 19, 2012 2:43 pm


How to install a fog in a .txt for a map ? This topic is invalid for me : http://buildandshoot.com/viewtopic.php?f=18&t=117# I don't understand... Blue_NotHappy
Sample
Deuced Up
Posts: 83
Joined: Wed Nov 21, 2012 8:37 pm


fog = (000, 000, 000)
fog = (RGB, RGB, RGB)
fog = (RED, GREEN, BLUE)
Red: fog = (255, 000, 000)
Green: fog = (000, 255, 000)
Blue: fog = (000, 000, 255)
White: fog = (255, 255, 255)
Black: fog = (000, 000, 000)


Right?
Gibbs3333
Mapper
Mapper
Posts: 89
Joined: Wed Dec 19, 2012 2:43 pm


I did it...
Code: Select all
name = 'Orbix'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (000, 000, 000)
And then nothing, it was the classic fog : 128, 232, 255. I should add a script ?
ProfCupcake
Deuce
Posts: 3
Joined: Sat Dec 29, 2012 5:10 pm


Try using a value of (001, 001, 001).
I'm not sure about this one, but I know some engines (namely, the Cube engine) reset it to default if you leave it as all 0's.
Gibbs3333
Mapper
Mapper
Posts: 89
Joined: Wed Dec 19, 2012 2:43 pm


I will try.
Gibbs3333
Mapper
Mapper
Posts: 89
Joined: Wed Dec 19, 2012 2:43 pm


It doesn't work. Any idea ?
Sample
Deuced Up
Posts: 83
Joined: Wed Nov 21, 2012 8:37 pm


Try (1, 125, 255) (This is an example)
Gibbs3333
Mapper
Mapper
Posts: 89
Joined: Wed Dec 19, 2012 2:43 pm


Sorry guys I did an error in the scripting. So to increment : you must write a dynfog.py like that :
Code: Select all
# dynfog.py by SLoW

import commands

def apply_script(protocol, connection, config):
    class FogProtocol(protocol):
        default_fog = (128, 232, 255)
        def on_map_change(self, name):
            self.set_fog_color(getattr(self.map_info.info, 'fog', self.default_fog))
            protocol.on_map_change(self, name)
    return FogProtocol, connection
Insert in your folder called "script" and write that in .txt of your map.
Code: Select all
name = 'Exemple'
version = '1.0'
author = 'Gibbs3333'
description = ('Team R3S')
protected = ['D4','D5', 'E4', 'E5']
fog = (255, 0, 0)
It was my fault sorry guys. Blue_Surprised2
8 posts Page 1 of 1 First unread post
Return to “Ace of Spades 0.x Discussion”

Who is online

Users browsing this forum: No registered users and 18 guests