Fluid registration

Place to get help with not working mods / modding interface.
Post Reply
Frontrider
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 14, 2017 8:41 am
Contact:

Fluid registration

Post by Frontrider »

I can't seem to get it right. This code won't load:

Code: Select all

  { 
    --gas hydrogen
    type="fluid",
    name = "gas-hydrogen",
    icon = "__mod-name__/graphics/icons/hydrogen-filled.png",
    default_temperature="20",
    max_temperature="20",
    heat_capacity="0",
    pressure_to_speed_ratio="1",
    flow_to_energy_ratio="0.4",
  }
What I need to add for it to load into the game, instead of crashing?

Helfima
Fast Inserter
Fast Inserter
Posts: 199
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: Fluid registration

Post by Helfima »

Frontrider wrote:I can't seem to get it right. This code won't load:

Code: Select all

  { 
    --gas hydrogen
    type="fluid",
    name = "gas-hydrogen",
    icon = "__mod-name__/graphics/icons/hydrogen-filled.png",
    default_temperature="20",
    max_temperature="20",
    heat_capacity="0",
    pressure_to_speed_ratio="1",
    flow_to_energy_ratio="0.4", <= remove last comma
  }
What I need to add for it to load into the game, instead of crashing?
remove last comma

Frontrider
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 14, 2017 8:41 am
Contact:

Re: Fluid registration

Post by Frontrider »

Nope, it still crashes.
And its the base mod, whats crashing.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Fluid registration

Post by prg »

Look at how the base mod defines fluid prototypes and add the missing keys and units.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

Frontrider
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 14, 2017 8:41 am
Contact:

Re: Fluid registration

Post by Frontrider »

Okey, almost asked where do I find it, but got it.

Now it works.

Post Reply

Return to “Modding help”