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

Cars

Discussion in 'Modding [KAG]' started by Asu, Aug 8, 2013.

  1. Ninja12

    Ninja12 Haxor

    Messages:
    223
    # I believe.
     
  2. Crash159

    Crash159 Base Burner

    Messages:
    8
    Really cool, you should try to make small and heavy armored cars for knights.
     
  3. Fernegulus

    Fernegulus Bison Rider

    Messages:
    400
    You just add a line Car in mods.cfg, this is basically the mods name (name of folder in Mods/).
     
  4. Ninja12

    Ninja12 Haxor

    Messages:
    223
    Read the cfg stuff, it'll tell you.
     
  5. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909

    Open the root folder of your King Arthur's Gold Beta Folder, inside this folder will be a file called "mods.cfg"

    [​IMG]

    Open it up and edit it in notepad/wordpad or whatever your default text editor is (not MS word, or any other word processing application)
    and add the line: "Car"

    Your mod file should look like this if you are only loading the car mod:
    Code:
    # Add mods (directory names) from /Mods directory to be used by this game
    # use line breaks between mods eg.
     
    # HoverMessage
    # MyModXXX
    # BestModEvr
     
    #HoverMessage
     
    Car
    and a line break just means to make a new line.


    **EDIT** Included screenshot of King Arthur's Gold Beta Directory
     
    king-george likes this.
  6. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909
    Your welcome, it can be difficult when you are new to this kind of thing =))

    Yes, you did something wrong, you were almost right though. What you actually need to do (if op instructions are correct), put the zip file inside of your Mods folder, unzip it directly there so that you now have a folder inside your Mods folder called "Car", you can now remove/delete/move the zip file where ever you like.

    Once the 'Car' folder is there, your final step after adding "Car" into the mod.cfg (which we did above) is to edit the ruleset you'll be loading, to actually load the car. If you're trying to do it in sandbox, then you'll need to edit this file(this file is the same for your Capture the halls rules):

    /Base/Rules/WAR/Scripts/gamemode.cfg

    Code:
    # config file for game rules
    # rules name: WAR
    # rules description:
     
        teams                              = team1.cfg; team2.cfg;
     
        gamemode_name                      = TTH
        gamemode_info                      = Take the Halls
     
        scripts                            = WAR.as;
                                            WAR_Interface.as;
                                            # RequestSpawnOnDeath.as;
                                            WAR_PickSpawn.as;
                                            SpawnFish.as;
                                            TeamMenu.as;
                                            SpawnTraders.as;
                                            WAR_GiveSpawnItems.as;
                                            KillMessages.as;
                                            JoinCoreHooks.as;
                                            DefaultBalanceTeams.as;
                                            CoreHooks.as;
                                            ChatCommands.as;
                                            TimeToEnd.as;
                                            RestartAfterShortPostGame.as;
                                            FanfareOnWin.as;
                                            SetCameraOnPlayer.as;
                                            DefaultScoreboard.as;
                                            Editor.as;
                                            RedBarrier.as;
                                            SpawnImmunity.as;
                                            BasicHelps.as;
                                            ShowGamemode.as;
                                            Car.as; #This is the additional line we are adding, so that when the gamemode is loaded, it will load the additional script
     
        daycycle_speed                    = 0            # 1 day = X minutes; / 0 no cycle
        daycycle_start                    = 0.5        # 0.0 midnight; 0.5 - midday; 1.0 midnight
     
        minimum_players_inteam            = 1
     
        autoassign_teams                  = no        #team allocation is smart in this gamemode
     
    ~SNIP OF REST OF CODE~
    (Base is inside the root of your KAG folder.)

    And that should be all you need to do =))) :B):

    **EDIT** Please note, that you cannot COPY and PASTE the code above, as I have snipped the code (it would break your rules if you copy and paste what I wrote). You will need to manually add the additional line.
     
  7. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909

    I've followed my instructions and I've had no problems in getting it work. Lets go through it in the order(read the previous posts for theirinstructions)

    1) Download the Car.zip file in OP
    2) Copy the Zip file to your Mods folder, inside your root KAG directory.
    3) Unzip the file
    4) Edit /KAG/mods.cfg to include Car
    5) Edit /KAG/Base/Rules/WAR/gamemode.cfg to to include Car.as
    6) Fire up King Arthurs Gold and go into singleplayer/Sandbox and type !car to spawn the car.

    Somethings to check is that you've edited the mods.cfg and gamemode.cfg - Car should be with a capital C.
     
  8. Infiniterising

    Infiniterising Amorous Duelist Donator

    Messages:
    192
    Can it have the ability to ram people and run them over?
     
  9. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Sorry for being a bit late.

    Press the 'Home' key and with the up and down keys ( The special ones, like <-|-|-| but vertically ), search an error.
    It's exactly the good way to install the mod... :/

    Yep.
    I'll tweak a bit the mod and send a update.
     
    kaizokuroof likes this.
  10. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909

    When you included the script in your gamemode file, is it "Car" with the CAPITAL 'C'? Also in the mods.cfg, is it "Car"? Doublecheck this and let us know :)
     
  11. kaizokuroof

    kaizokuroof Agkubuk|'Kaizokuroof' Cilobakil, Roofpointy Global Moderator Forum Moderator Donator Tester
    1. PumpkinStars - [Pk#] - Inactive

    Messages:
    909

    Hrmm, and now that Solo Sandbox has been removed, where are you trying to load your car from? If you're trying to access it from Challenge mode, you'll need to add the Car.as; into the challenge gamemode.cfg

    Might also add, that I have my files extracted like so:

    /KAG/Mods/Car/Entities/Vehicles/Car/
     
  12. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Updated to v2
     
    kaizokuroof likes this.