Results 1 to 2 of 2

Thread: Delete Scripts

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Delete Scripts

    Hey,

    Im new with scripts modding, and I want to know how to remove all scripts from The Last Roman campaign, Im talking about the climatic changes, the Expedition-ERE missions... I want a plain campaign to make a new mod in other time, other factions... I can leave the scripts without remove, but this will make longer the time between turns right?


    Ancient Empires Member: Unit Maker

  2. #2
    Litharion's Avatar Artifex
    Join Date
    Sep 2013
    Location
    Germany
    Posts
    2,622

    Default Re: Delete Scripts

    Quote Originally Posted by Cpt. Cortes View Post
    Hey,
    Im new with scripts modding, and I want to know how to remove all scripts from The Last Roman campaign, Im talking about the climatic changes, the Expedition-ERE missions... I want a plain campaign to make a new mod in other time, other factions... I can leave the scripts without remove, but this will make longer the time between turns right?
    It is usually pretty simple to remove the campaign related scripts. Take a look at the scripting.lua under campaigns with pfm

    At the end of the scripting.lua you will find entries relating to different scripts like the climate change.

    Code:
    -----------------------------------------------------
        additional script files to load
    ------------------------------------------------------
    require("att_save_load");
    require("att_start");
    require("att_preservation");
    require("att_climate_change");
    require("att_traits");
    require("att_attila_story");
    require("restrict_military_building");
    require("restrict_religious_building");
    require("restrict_trade_building");
    ... etc

    If you want to remove specific scripts simply do this:


    Code:
    require("att_save_load");
    require("att_start");
    require("att_preservation");
    --require("att_climate_change");
    require("att_traits");
    require("att_attila_story");
    --require("restrict_military_building");
    --require("restrict_religious_building");
    --require("restrict_trade_building");

    all scripts marked with "--" won't be used for the campaign now. -- is used in lua for comments.

    Edit: The impact on performance shouldn't be noticeable btw.
    Last edited by Litharion; September 22, 2015 at 08:05 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •