Git Product home page Git Product logo

concrete-tints's Introduction

Hi there, I'm Adrien ๐Ÿ‘‹

concrete-tints's People

Contributors

larandar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

memium

concrete-tints's Issues

Compatibility request for Industrial Revolution 3 mod.

The Concrete Tints mod currently does not work with Industrial Revolution 3 (which is a quite big and popular overhaul mod).

The problem is that IR3 splits the concrete technology into two separate ones and renames them (ir-concrete-1 for regular and ir-concrete-2 for refined), which causes the code for Concrete Tints (that assumes the regular tech name) to fail to add the new recipes.

This can be fixed by:

  • adding data-updates.lua file to mod folder:
if mods["IndustrialRevolution3"] then
    concrete_technology_name = "ir-concrete-2"
else
    concrete_technology_name = "concrete"
end
require("prototypes.tinted_concrete")
  • adding:
local concrete_technology_name = concrete_technology_name or "concrete"

on line 2 of concrete_tinter.lua (utils),

  • changing:
"concrete"

into

concrete_technology_name

on line 69 of concrete_tinter.lua (utils),

  • adding:
if script.active_mods["IndustrialRevolution3"] then
    concrete_technology_name = "ir-concrete-2"
else
    concrete_technology_name = "concrete"
end

on the top of concrete-tints-1.2.0.lua (migrations),

  • changing:
"concrete"

into

concrete_technology_name

on current line 3 of concrete-tints-1.2.0.lua (migrations),

  • changing dependencies to:
"dependencies": [
    "base >= 1.1.0",
    "(?) IndustrialRevolution3"
],

in the info.json file.

Those changes may need to be checked and tested, but they should make the Concrete Tints mod work well with the Industrial Revolution 3 mod for both new and old saves without affecting its compatibility with vanilla Factorio.

0.18.18 compatability

Since 0.18.18 colored concrete is no longer considered minable, which causes the mod to crash on startup. Please remove the corresponding line in your code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.