Help o.o.. Things broke o.O!

Place to get help with not working mods / modding interface.
Post Reply
User avatar
darkshadow1809
Filter Inserter
Filter Inserter
Posts: 306
Joined: Thu Jan 15, 2015 10:13 pm
Contact:

Help o.o.. Things broke o.O!

Post by darkshadow1809 »

http://prntscr.com/70wcj7

Heres the file!

Code: Select all

data:extend({
{
  {
    type = "armor",
    name = "Evolution-armor",
    icon = "__base__/graphics/icons/basic-armor.png",
    flags = {"goes-to-main-inventory"},
    resistances = 
      {
        type = "physical",
        percent = 10
      },
      {
        type = "acid",
        percent = 10
      },
    durability = 50000,
    subgroup = "Evolution-armors",
    order = "a[Evolution-armor]",
    stack_size = 1,
  },

  {
    type = "armor",
    name = "Evolution-armor-mk2",
    icon = "__base__/graphics/icons/heavy-armor.png",
    flags = {"goes-to-main-inventory"},
    resistances = 
      {
        type = "physical",
        percent = 25
      },
      {
        type = "poison",
        percent = 25
      },
      {
        type = "acid",
        percent = 25
      },
    },
    durability = 50000,
    subgroup = "Evolution-armors",
    order = "b[Evolution-armor]",
    stack_size = 1,
  },

  {
    type = "armor",
    name = "Evolution-armor-mk3",
    icon = "__base__/graphics/icons/basic-modular-armor.png",
    flags = {"goes-to-main-inventory"},
    resistances = 
    {
      {
        type = "physical",
        percent = 40
      },
      {
        type = "poison",
        percent = 40
      },
      {
        type = "fire",
        percent = 40
      },
      {
        type = "acid",
        percent = 40
      },
    },
    durability = 50000,
    subgroup = "Evolution-armors",
    order = "c[Evolution-armor]",
    stack_size = 1,
  },

  {
    type = "armor",
    name = "Evolution-armor-mk4",
    icon = "__base__/graphics/icons/power-armor.png",
    flags = {"goes-to-main-inventory"},
    resistances = 
    {
      {
        type = "physical",
        percent = 60
      },
      {
        type = "poison",
        percent = 60
      },
      {
        type = "explosion",
        percent = 60
      },
      {
        type = "fire",
        percent = 60
      },
      {
        type = "acid",
        percent = 60
      },
    },
    durability = 50000,
    subgroup = "Evolution-armors",
    order = "d[Evolution-armor]",
    stack_size = 1,
  },

  {
    type = "armor",
    name = "Evolution-armor-mk5",
    icon = "__base__/graphics/icons/power-armor-mk2.png",
    flags = {"goes-to-main-inventory"},
    resistances = 
    {
      {
        type = "physical",
        percent = 80
      },
      {
        type = "poison",
        percent = 80
      },
      {
        type = "explosion",
        percent = 80
      },
      {
        type = "fire",
        percent = 80
      },
      {
        type = "laser",
        percent = 80
      },
      {
        type = "acid",
        percent = 80
      },
    },
    durability = 50000,
    subgroup = "Evolution-armors",
    order = "e[Evolution-armor]",
    stack_size = 1,
      },
	})
Tell me what I did wrong so I can avoid this issue and Improve :D !
ShadowsModpackDevelopment

Natha
Fast Inserter
Fast Inserter
Posts: 178
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Help o.o.. Things broke o.O!

Post by Natha »

The error is in the prototype definition shown in the message box. it misses a name or a type. Please post your date.lua file ;) The error seems to be in Test mode.

User avatar
darkshadow1809
Filter Inserter
Filter Inserter
Posts: 306
Joined: Thu Jan 15, 2015 10:13 pm
Contact:

Re: Help o.o.. Things broke o.O!

Post by darkshadow1809 »

Natha wrote:The error is in the prototype definition shown in the message box. it misses a name or a type. Please post your date.lua file ;) The error seems to be in Test mode.

Code: Select all

function research(count, one, two, three, four, time)
  local ing = {}
  if one > 0 then
    ing[#ing + 1] = {"science-pack-1", one}
  end
  if two > 0 then
    ing[#ing + 1] = {"science-pack-2", two}
  end
  if three > 0 then
    ing[#ing + 1] = {"science-pack-3", three}
  end
  if four > 0 then
    ing[#ing + 1] = {"alien-science-pack", four}
  end
  local unit = {
    count = count or 10,
    ingredients = ing,
    time=time or 10
  }
  return unit
end

function alien_research(count, one, two, three, four, time)
  local ing = {}
  if one > 0 then
    ing[#ing + 1] = {"alien-bioconstruct", one}
  end
  if two > 0 then
    ing[#ing + 1] = {"alien-fragments", two}
  end
  if three > 0 then
    ing[#ing + 1] = {"endo-skeleton", three}
  end
  if four > 0 then
    ing[#ing + 1] = {"exo-skeleton", four}
  end
  local unit = {
    count = count or 10,
    ingredients = ing,
    time=time or 10
  }
  return unit
end


require("prototypes.item-groups")

require("prototypes.tools.attractor")
require("prototypes.tools.attractor-recipe")
require("prototypes.tools.capsule")
require("prototypes.tools.projectiles")
require("prototypes.tools.rocket-projectiles")
require("prototypes.aliens.biters")
require("prototypes.aliens.spawner")
require("prototypes.aliens.spitters")
require("prototypes.aliens.worms")
require("prototypes.aliens.biters-recipe")
require("prototypes.aliens.spawner-recipe")
require("prototypes.aliens.spitters-recipe")
require("prototypes.aliens.worms-recipe")

require("prototypes.alien-armor.armor")
require("prototypes.alien-armor.armor-recipe")

require('prototypes.resources.alien-artifacts')

require('prototypes.machines.alien-tech-lab')


require('prototypes.materials.All-alien-mats')

require('prototypes.technologies.Materials-tech')
require('prototypes.technologies.Hive-tech')
here go ;)
ShadowsModpackDevelopment

Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

Re: Help o.o.. Things broke o.O!

Post by Choumiko »

looks like there is one { too much after data.extend, or one too less at the end.

User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

Re: Help o.o.. Things broke o.O!

Post by rk84 »

@first post.
Copy line 2
Paste between 28-29 and 8-9
Remove line 2

hmm mayby I should take use of "final-fixes" and not mess with dataloader anymore.
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela

User avatar
darkshadow1809
Filter Inserter
Filter Inserter
Posts: 306
Joined: Thu Jan 15, 2015 10:13 pm
Contact:

Re: Help o.o.. Things broke o.O!

Post by darkshadow1809 »

Thanks!

Fixed :D
ShadowsModpackDevelopment

Post Reply

Return to “Modding help”