Page 1 of 2

I need help.

Posted: Fri Mar 25, 2016 12:55 am
by ridinginstyle00
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?

Re: I need help.

Posted: Fri Mar 25, 2016 12:58 am
by DaveMcW
You need to require all 4 files in data.lua.

Re: I need help.

Posted: Fri Mar 25, 2016 1:01 am
by ridinginstyle00
__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?

Re: I need help.

Posted: Fri Mar 25, 2016 1:02 am
by ridinginstyle00
require("prototypes.technology")
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")


this correct?

Re: I need help.

Posted: Fri Mar 25, 2016 1:19 am
by ridinginstyle00
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.

Posted: Fri Mar 25, 2016 1:24 am
by DaveMcW
char(239) error means you have the wrong file format. It should be saved as latin1 or ANSI.

Re: I need help.

Posted: Fri Mar 25, 2016 1:30 am
by ridinginstyle00
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

Re: I need help.

Posted: Fri Mar 25, 2016 1:31 am
by ridinginstyle00
and creating the file then saving it as lua with the ansi format gave the old error

Re: I need help.

Posted: Fri Mar 25, 2016 1:38 am
by DaveMcW
So fix your entity.lua.

Re: I need help.

Posted: Fri Mar 25, 2016 1:51 am
by ridinginstyle00
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.

Re: I need help.

Posted: Fri Mar 25, 2016 1:52 am
by ridinginstyle00
Factorio Current Log

Re: I need help.

Posted: Fri Mar 25, 2016 2:09 am
by DaveMcW
Try removing a few zero's from your power production. :P

Re: I need help.

Posted: Fri Mar 25, 2016 2:13 am
by ridinginstyle00
it wont even take 6kw which is less than the vanilla panel

if i cant do six how will i ever do 6 billion!? :D

Re: I need help.

Posted: Fri Mar 25, 2016 2:15 am
by ridinginstyle00
What i have now after changes....just crashes even changed the amount of resource packs from 1k to 100 didnt do anything

Re: I need help.

Posted: Fri Mar 25, 2016 2:17 am
by DaveMcW
I can't understand the crash logs... maybe you'll have better luck asking the developers in bug reports forum.

Re: I need help.

Posted: Fri Mar 25, 2016 2:21 am
by ridinginstyle00
k thx for tryin!

Re: I need help.

Posted: Fri Mar 25, 2016 6:49 am
by Koub
Hi,

You wrote :

Code: Select all

require("prototypes.technology")
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")
In another mod I'm watching it's written :

Code: Select all

require("prototypes.entities")
require("prototypes.items")
require("prototypes.recipes")
require("prototypes.technology")
I think the plurals are important (entities/recipes/items)

Re: I need help.

Posted: Fri Mar 25, 2016 8:09 am
by ridinginstyle00
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?

Re: I need help.

Posted: Fri Mar 25, 2016 8:12 am
by ridinginstyle00
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

Re: I need help.

Posted: Fri Mar 25, 2016 9:14 am
by orzelek
There are few errors - crashing one is lack of this in item entity:

Code: Select all

    subgroup = "energy",
    order = "d[solar-panel]-b[solar-panel]", 
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.