[MOD] New resource Titanium [100% Finished]

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [MOD] New resource Titanium [100% Finished]

    Hello, this post is FINISHED, but I'm testing all to be sure all works.
    1st test:



    Idea born here: [FAQ] How to add new resources such as stone

    Logic: New resource Titanium info for logic here: en.wikipedia.org/wiki/Titanium
    As metal, it have a new buildings 'Titanium Mine', with new 'Titanium Store',, Research Technology Titanium, Bonus, production, etc.
    It can be stolen like metal, crystal and deuterium, ships and defenses made by titanium can produced debris, etc.
    For now, elite top tier ships and defenses changed from required 'Metal', to require Titanium, also Titanium Mine and Tech Titanium requires Titanium.

    Logic for changes rates production:
    Original is 4, 2, 1 for Metal, Crystal and Deuterium.
    Now is 8, 4, 3, 2 for Metal, Crystal, Titanium and Deuterium. Other option is 4, 2, 1.5, 1 for Metal, Crystal, Titanium and Deuterium, but for now i use 8, 4, 3, 2.
    As we can see, its low level production, only 50% more than Deuterium, 25% less than Crystal and 70% less than Metal, so this is Beta version for this MOD and can be balanced.

    I'm sorry but this MOD requires a lot of changes, maybe take few hours, keep in mind methodology is find and replace, but some code can be different because version number, this was made for New-Star V2.8.1, so it should works on 2moons 1.8, 2moons 2.0, etc.

    New constants/variables (keep a eye on it for possible bugs):
    titanium, titanium_basic_income, titanium_start, fleet_resource_titanium, titanium_perhour, titanium_max, titanium_mine, titanium_store, titanium_mine_porcent, der_titanium, titanium_proc_tech, kbtitanium, production905, cost905, storage905, bonusPtitanium, bonusPtitaniumUnit

    Installation Option 1: Video with guide is here, don't need to watch all video, only understand logic for find and replace. File TXT from video guide is in attachments (Guide new resource titanium.txt), and install.zip with install.sql full complete with new vars.
    mediafire.com/file/3r3cjqe063f…4-07-19_19-20-52.mkv/file

    Installation Option 2: Video guide to update/merge from full version with Winmerge: https://winmerge.org
    Download full version here: [MOD]V2.8.1 New-Star Ultra [RC1.1]
    Use Winmerge to merge your code with list of vars/cons in this post.


    Regards.
    Files

    The post was edited 45 times, last by Zuno ().

  • Zeus wrote:

    For example, when there are elite ships, there will be an item that will be used to produce them or new buildings when there is research, right?
    Yes, exactly that logic is used, i will continue updating post with more information.

    Regards.