1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Help me, something is going wrong.

Discussion in 'Discussion' started by Cpt. Max, May 26, 2013.

  1. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    Hello.

    In the server I Co-Own I attempted to make two custom Factions in the plugin 'factions plugin'

    I have made two custom Factions and their classes, this is how it looks like:

    Amaria Industries Faction I made:
    --[[
    ? 2012 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local FACTION = Clockwork.faction:New("Amaria Industries");

    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "";
    FACTION.models = {
    female = {
    "models/betacz/group03/female_01.mdl",
    "models/betacz/group03/female_02.mdl",
    "models/betacz/group03/female_03.mdl",
    "models/betacz/group03/female_04.mdl",
    "models/betacz/group03/female_05.mdl",
    "models/betacz/group03/female_06.mdl",
    "models/betacz/group03/female_07.mdl",
    },
    male = {
    "models/betacz/group03/male_01.mdl",
    "models/betacz/group03/male_02.mdl",
    "models/betacz/group03/male_03.mdl",
    "models/betacz/group03/male_04.mdl",
    "models/betacz/group03/male_05.mdl",
    "models/betacz/group03/male_06.mdl",
    "models/betacz/group03/male_07.mdl",
    };
    };

    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    if (faction.name != FACTION_CITIZEN) then
    return false;
    end;
    end;

    FACTION_AI = FACTION:Register();

    The Class off the Faction:
    --[[
    ? 2012 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local CLASS = Clockwork.class:New("Amaria Industries");
    CLASS.color = Color(120, 105, 65, 255);
    CLASS.factions = {FACTION_AI};
    CLASS.isDefault = true;
    CLASS.wagesName = "Salary";
    CLASS.description = "A Citizen that Works for the Union.";
    CLASS.defaultPhysDesc = "Wearing a ScienceOutfit.";
    CLASS_AI = CLASS:Register();

    And then the other Faction, City 45 Industrial:
    --[[
    ? 2012 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local FACTION = Clockwork.faction:New("City Fourty-Five Industrial");

    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "";
    FACTION.models = {
    female = {
    "models/humans/factory/female_01.mdl",
    "models/humans/factory/female_02.mdl",
    "models/humans/factory/female_03.mdl",
    "models/humans/factory/female_04.mdl",
    "models/humans/factory/female_05.mdl",
    "models/humans/factory/female_06.mdl",
    "models/humans/factory/female_07.mdl",
    },
    male = {
    "models/humans/factory/male_01.mdl",
    "models/humans/factory/male_02.mdl",
    "models/humans/factory/male_03.mdl",
    "models/humans/factory/male_04.mdl",
    "models/humans/factory/male_05.mdl",
    "models/humans/factory/male_06.mdl",
    "models/humans/factory/male_07.mdl",
    };
    };

    -- Called when a player is transferred to the faction.
    function FACTION:OnTransferred(player, faction, name)
    if (faction.name != FACTION_CITIZEN) then
    return false;
    end;
    end;

    FACTION_C45 = FACTION:Register();

    And the class:
    --[[
    � 2012 CloudSixteen.com do not share, re-distribute or modify
    without permission of its author ([email protected]).
    --]]

    local CLASS = Clockwork.class:New("City Fourty-Five Industrial");
    CLASS.color = Color(120, 105, 65, 255);
    CLASS.factions = {FACTION_C45};
    CLASS.isDefault = true;
    CLASS.wagesName = "Salary";
    CLASS.description = "A Citizen that Works for the Union.";
    CLASS.defaultPhysDesc = "Wearing a Industrial Outfit";
    CLASS_C45 = CLASS:Register();

    What works:
    /plywhitelist <playername> <faction name>
    /chartransfer <playername> <faction> <playername>
    But then it will give a unknown class in the Scoreboard, and I do not have any of the models and such.

    What does not work:
    Going to scoreboard, clicking the playername then whitelist --> and then try adding one of the two whitelists. It does not show up.
    When I go to my character screen and attempt to make a character it does not show up one of the two Factions.


    Can someone help me with this please? I would be extremedly grateful. I don't have any experience with Lua Coding, I just copy/paste the working Factions as the CWU one and I just try to change the details and the names.

    And I also wonder how I get a different Character Screen Intro.
     
  2. Kezter

    Kezter Certified Old Fag

    Try these:

    Faction
    Code:
    --[[
       ? 2012 CloudSixteen.com do not share, re-distribute or modify
       without permission of its author ([email protected]).
    --]]
    
    local FACTION = {};
    
    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "";
    FACTION.models = {
       female = {
          "models/betacz/group03/female_01.mdl",
          "models/betacz/group03/female_02.mdl",
          "models/betacz/group03/female_03.mdl",
          "models/betacz/group03/female_04.mdl",
          "models/betacz/group03/female_05.mdl",
          "models/betacz/group03/female_06.mdl",
          "models/betacz/group03/female_07.mdl"
       },
       male = {
          "models/betacz/group03/male_01.mdl",
          "models/betacz/group03/male_02.mdl",
          "models/betacz/group03/male_03.mdl",
          "models/betacz/group03/male_04.mdl",
          "models/betacz/group03/male_05.mdl",
          "models/betacz/group03/male_06.mdl",
          "models/betacz/group03/male_07.mdl"
       };
    };
    
    FACTION_AI = Clockwork.faction:Register(FACTION, "Amaria Industries");

    Class
    Code:
    --[[
       ? 2012 CloudSixteen.com do not share, re-distribute or modify
       without permission of its author ([email protected]).
    --]]
    
    local CLASS = Clockwork.class:New();
       CLASS.color = Color(120, 105, 65, 255);
       CLASS.factions = {FACTION_AI};
       CLASS.isDefault = true;
       CLASS.wagesName = "Salary";
       CLASS.description = "A Citizen that Works for the Union.";
       CLASS.defaultPhysDesc = "Wearing a ScienceOutfit.";
    CLASS_AI = Clockwork.class:Register(CLASS, "Amaria Industries");

    Here are the other two:

    Faction
    Code:
    --[[
       ? 2012 CloudSixteen.com do not share, re-distribute or modify
       without permission of its author ([email protected]).
    --]]
    
    local FACTION = {};
    
    FACTION.useFullName = true;
    FACTION.whitelist = true;
    FACTION.material = "";
    FACTION.models = {
       female = {
                    "models/humans/factory/female_01.mdl",
                    "models/humans/factory/female_02.mdl",
                    "models/humans/factory/female_03.mdl",
                    "models/humans/factory/female_04.mdl",
                    "models/humans/factory/female_05.mdl",
                    "models/humans/factory/female_06.mdl",
                    "models/humans/factory/female_07.mdl"
       },
       male = {
                    "models/humans/factory/male_01.mdl",
                    "models/humans/factory/male_02.mdl",
                    "models/humans/factory/male_03.mdl",
                    "models/humans/factory/male_04.mdl",
                    "models/humans/factory/male_05.mdl",
                    "models/humans/factory/male_06.mdl",
                    "models/humans/factory/male_07.mdl"
       };
    };
    
    FACTION_C45 = Clockwork.faction:Register(FACTION, "City Fourty-Five Industrial");

    And the class:
    Code:
    --[[
       � 2012 CloudSixteen.com do not share, re-distribute or modify
       without permission of its author ([email protected]).
    --]]
    
    local CLASS = Clockwork.class:New();
       CLASS.color = Color(120, 105, 65, 255);
       CLASS.factions = {FACTION_C45};
       CLASS.isDefault = true;
       CLASS.wagesName = "Salary";
       CLASS.description = "A Citizen that Works for the Union.";
       CLASS.defaultPhysDesc = "Wearing a Industrial Outfit";
    CLASS_C45 = Clockwork.class:Register(CLASS, "City Fourty-Five Industrial");

    Also when doing these try to keep them looking neat, they're easier to work with then.
     
  3. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    Nope, it still does not work.
    I can't make a character for it in the character screen menu and I still cannot add the whitelists on the scoreboard menu.
     
  4. Kezter

    Kezter Certified Old Fag

    What have you named the Lua files?
     
  5. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    sh_worker_industry.lua <-- class Industry
    sh_amaria_worker.lua <-- Class Amaria

    sh_amaria.lua <-- Faction amaria
    sh.c45i.lua <-- Faction Industry
     
  6. Kezter

    Kezter Certified Old Fag

    KEEP them the SAME:

    sh_worker_industry.lua <-- class Industry
    sh_amaria.lua <-- Class Amaria

    sh_amaria.lua <-- Faction amaria
    sh_worker_industry.lua <-- Faction Industry
     
  7. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    Okay I did it, going to restart the server later to see if it works.
    Thanks anyways :)

    Okay.. It doesn't work. Still can't make a character for it in the character screen and add whitelists trough scoreboard :l
     
  8. Kezter

    Kezter Certified Old Fag

    Where are you placing the files?
     
  9. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    plugins/factionsplugin/factions <here the faction files>
    plugins/factionsplugin/classes <here the classes file>
     
  10. Kezter

    Kezter Certified Old Fag

    Thats your problem. Place them in:

    schema/factions
    schema/classes
     
  11. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    \orangebox\garrysmod\gamemodes\cwhl2rp\schema/factions
    I put the Factions there
    \orangebox\garrysmod\gamemodes\cwhl2rp\classes
    I put the classes there.


    It still does not work :l.

    edit:
    Wait, nevermind. The files got empty, gonna-refill em in quick.
     
  12. diablo1675

    diablo1675 Guest

    Next time, edit your previous message.
     
  13. Cpt. Max

    Cpt. Max Loading creativity for a title... Clockwork Customer

    Great, it works now!
    Thanks, all of you! :)
     
  14. Kezter

    Kezter Certified Old Fag

    You're welcome. :)
     

Previous Readers (Total: 0)