I need help.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
I need help.
Ok so first off working on my first mod so Imma noob at this but it keeps giving me an error with
"Error in assignID, recipe with the name "mt-solar" does not exist"
I making a solar panel that makes 60000000kw of energy. I'm pretty sure that everything else is set up right. I even checked for case sensitive differences and the technology.lua won't accept the item name of mt-solar in my item.lua file.
Any advice?
"Error in assignID, recipe with the name "mt-solar" does not exist"
I making a solar panel that makes 60000000kw of energy. I'm pretty sure that everything else is set up right. I even checked for case sensitive differences and the technology.lua won't accept the item name of mt-solar in my item.lua file.
Any advice?
- Attachments
-
- MatterTransferer_1.0.0.zip
- (24.72 KiB) Downloaded 112 times
Re: I need help.
You need to require all 4 files in data.lua.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
__MatterTransferer__/data.lua:2:
__MatterTransferer__/prototypes/recipe.lua:1: unexpected symbol near char(239)
this is the error i get. do you know of any programs what will count of each individual char so i know which one it is in the future?
__MatterTransferer__/prototypes/recipe.lua:1: unexpected symbol near char(239)
this is the error i get. do you know of any programs what will count of each individual char so i know which one it is in the future?
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
require("prototypes.technology")
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")
this correct?
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")
this correct?
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
yeah i get that second error i posted if i include all the files in the data.lua on the root of my mod folder
Re: I need help.
char(239) error means you have the wrong file format. It should be saved as latin1 or ANSI.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
created a plain .txt file and renamed it to recipe.lua and now it shows this:
__MatterTransferer__/data.lua:4:
__MatterTransferer__/prototypes/entity.lua:25: unexpected symbol near <eof>
i also tried pasting it into a .txt and saved it as a .lua and it gave the old error of what you said was a wrong format. by renaming it when i made the file i got this
__MatterTransferer__/data.lua:4:
__MatterTransferer__/prototypes/entity.lua:25: unexpected symbol near <eof>
i also tried pasting it into a .txt and saved it as a .lua and it gave the old error of what you said was a wrong format. by renaming it when i made the file i got this
Last edited by ridinginstyle00 on Fri Mar 25, 2016 1:31 am, edited 1 time in total.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
and creating the file then saving it as lua with the ansi format gave the old error
Re: I need help.
So fix your entity.lua.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
now my game crashes telling me where the log is. No mod error...the game gets stuck at "Loading Mods 2%" and crashes after about 10 seconds.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
Factorio Current Log
- Attachments
-
- factorio-current.log
- (3.99 KiB) Downloaded 108 times
Re: I need help.
Try removing a few zero's from your power production.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
it wont even take 6kw which is less than the vanilla panel
if i cant do six how will i ever do 6 billion!?
if i cant do six how will i ever do 6 billion!?
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
What i have now after changes....just crashes even changed the amount of resource packs from 1k to 100 didnt do anything
- Attachments
-
- MatterTransferer_1.0.0.zip
- What i have now after changes
- (24.78 KiB) Downloaded 75 times
Re: I need help.
I can't understand the crash logs... maybe you'll have better luck asking the developers in bug reports forum.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
k thx for tryin!
Re: I need help.
Hi,
You wrote :
In another mod I'm watching it's written :
I think the plurals are important (entities/recipes/items)
You wrote :
Code: Select all
require("prototypes.technology")
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")
Code: Select all
require("prototypes.entities")
require("prototypes.items")
require("prototypes.recipes")
require("prototypes.technology")
Koub - Please consider English is not my native language.
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
my file names were singular. i changed the data.lua to plural and the files to plural and still made no difference. crashes after 10-20 seconds. it wouldnt take plural in the data.lua if the file names werent plural as well.
Anyother suggestions?
Anyother suggestions?
-
- Inserter
- Posts: 20
- Joined: Fri Mar 25, 2016 12:48 am
- Contact:
Re: I need help.
copied that quote you put and renamed the files to match and it still consists of the game crashing at 2% after 10-20 seconds.
really stumped...didnt think a 6 billion kw producing solar panel would produce so many issues trying to make it
lol
;D
really stumped...didnt think a 6 billion kw producing solar panel would produce so many issues trying to make it
lol
;D
Re: I need help.
There are few errors - crashing one is lack of this in item entity:
I'd post this as a bug report - it shouldn't crash. More descriptive message should be shown.
Other one is that some paths point to additional solar-panel subdirectory for picture while image is directly in graphics.
Locale file needs name fixed (should be locale.cfg) and then most of the keys in it don't match item/tech names.
You can give solar panel power production of 6GW and it should work.
Code: Select all
subgroup = "energy",
order = "d[solar-panel]-b[solar-panel]",
Other one is that some paths point to additional solar-panel subdirectory for picture while image is directly in graphics.
Locale file needs name fixed (should be locale.cfg) and then most of the keys in it don't match item/tech names.
You can give solar panel power production of 6GW and it should work.