1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Need help with builder_blocks.

Discussion in 'Modding [KAG Classic]' started by Robinskie, Sep 18, 2012.

  1. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    I have a game mode with two different teams: Humans and Zombies (I edited the sprites in knight/archer/builder.cfg)
    Now the problem is, I want to make zombies unable to build some stuff (doors, bridges, workshop...)
    I edited the builder_blocks folder and deleted the doors, bridges, etc. lines. And configured the actor_config to this file. (The human builder uses the CTF builder_blocks file)
    This seems to work well when you start the game, but when you start switching around with classes and teams all suddenly zombies are able to build everything! :(
    I've seen other servers where this worked well. :huh?:
    How do I fix it?
    I tried hundreds of things but it still doesn't work. :>:(:

    Please help!

    PS: I have the gamemode file downloadable down there: :down:
     

    Attached Files:

  2. vladislavbyk

    vladislavbyk Catapult Fodder

    Messages:
    22
    Edit your builder_blocks config, and delete blocks... What the problem?
    Add another one config (for ex. zombie_blocks) if this your problem. And set it in Zombie class config

    Mini-example:
    builder.cfg
    Code:
        inventory =
                               
        name = Builder
        tool = Builder
        emblem = GUI/builder_icon.png
        actor_name = runner
     
    #Your path here
        actor_config = Rules/VB/teams/survive/humans/builder_blocks.cfg
    #
        actor_sprite_size = 32
        actor_sprite_male = Sprites/builderMale.png
        actor_sprite_female = Sprites/builderFemale.png
        actor_heads_size = 16
        actor_heads_male = Sprites/MaleHeads.png
        actor_heads_female = Sprites/FemaleHeads.png
     
        default_health = 1.5
        default_armor = 0.0 
     
        stone_default = 35
        wood_default = 20
        gold_default = 0
        arrows_default = 0
        bombs_default = 0
         
        stone_warmup = 35
        wood_warmup = 20
        gold_warmup = 0
        arrows_warmup = 0
        bombs_warmup = 0
    
    --
    builder_blocks.cfg

    Code:
    @$blocks =
    Spikes;        167;    0;    -1;    1;  0;    1;    1;
    Door;          128;    1;    -1;    5;  0;    1;    1;
    Ladder;        144;    1;    -1;    1;    0;    1;    1;
    Trap Bridge;    176;    1;    -1;    2;  0;    1;    1;
    Stone Wall 1;  224;    0;    -1;    2;  0;    1;    1;
    Stone Back 1;  227;    0;    -1;    1;  0;    1;    1;
    Stone Wall 2;  48;    0;    -1;    2;  0;    1;    1;
    Stone Back 2;  64;    0;    -1;    1;    0;    1;    1;
    Workshop;      146;    -1;    -1;    0;    0;    3;    3;
    --
    zombie.cfg
    Code:
        inventory =
                                               
        name = Zombie
        tool = Builder
        emblem = GUI/builder_icon.png
        actor_name = runner
     
    #Your path here
        actor_config = Rules/VB/teams/survive/zombies/builder_blocks.cfg
    #
     
        actor_sprite_size = 32
        actor_sprite_male = Entities/Actors/Sprites/Zombie.png
        actor_sprite_female = Entities/Actors/Sprites/Zombie.png
        actor_heads_size = 16
        actor_heads_male = Sprites/MaleHeads.png
        actor_heads_female = Sprites/FemaleHeads.png
     
     
        default_health = 3.0
        default_armor = 1.0 
     
        stone_default = 0
        wood_default = 0
        gold_default = 10
        arrows_default = 0
        bombs_default = 0
         
        stone_warmup = 0
        wood_warmup = 0
        gold_warmup = 10
        arrows_warmup = 0
        bombs_warmup = 3   
    
    --
    zombie_blocks.cfg
    Code:
    @$blocks =
    Door;          128;    1;    -1;    5;  0;    1;    1;
    
     
  3. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    I tried EXACTLY what you told me (and I did that before, I'm not an idiot :D) . But it still doesn't work.
    This is what happens: I spawn in human team. When I switch class to archer/knight and switch to zombie team. The zombie builder can build everything!
    Help please!
     
  4. MechaTrickster

    MechaTrickster Banned Donator

    Messages:
    654
    Did you replace
    Code:
    actor_config = Rules/HvsZ/builder_blocks.cfg
    with
    Code:
    actor_config = Rules/HvsZ/zombie_blocks.cfg
    In the zbuilder.cfg?
     
  5. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    Yes I did.
    I start thinking this is a bug that we should maybe report on the mantis bug tracker website. :huh?:

    EDIT: I have completely rewritten everything, and I found the problem:
    As soon as a add the archer (skeleton :skeleton: ) to the zombies, it doesn't work any more. :eek:
    That is some weird stuff.
     
  6. LadyHawk

    LadyHawk Ballista Bolt Thrower
    1. Aphelion's Roleplay

    Messages:
    75
    Ive Seen this happen on Rayned Attack/Defence (Old Shit) and im sure its a bug.
     
    Robinskie likes this.
  7. Robinskie

    Robinskie Drill Rusher

    Messages:
    124
    Yeah, I'm pretty sure about that to :)
     
    LadyHawk likes this.