I need help.

Place to get help with not working mods / modding interface.
ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

I need help.

Post 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?
Attachments
MatterTransferer_1.0.0.zip
(24.72 KiB) Downloaded 89 times

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: I need help.

Post by DaveMcW »

You need to require all 4 files in data.lua.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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?

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post by ridinginstyle00 »

require("prototypes.technology")
require("prototypes.recipe")
require("prototypes.item")
require("prototypes.entity")


this correct?

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: I need help.

Post by DaveMcW »

char(239) error means you have the wrong file format. It should be saved as latin1 or ANSI.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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
Last edited by ridinginstyle00 on Fri Mar 25, 2016 1:31 am, edited 1 time in total.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post by ridinginstyle00 »

and creating the file then saving it as lua with the ansi format gave the old error

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: I need help.

Post by DaveMcW »

So fix your entity.lua.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post by ridinginstyle00 »

Factorio Current Log
Attachments
factorio-current.log
(3.99 KiB) Downloaded 86 times

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: I need help.

Post by DaveMcW »

Try removing a few zero's from your power production. :P

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post by ridinginstyle00 »

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 52 times

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: I need help.

Post by DaveMcW »

I can't understand the crash logs... maybe you'll have better luck asking the developers in bug reports forum.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post by ridinginstyle00 »

k thx for tryin!

Koub
Global Moderator
Global Moderator
Posts: 7217
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: I need help.

Post 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)
Koub - Please consider English is not my native language.

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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?

ridinginstyle00
Inserter
Inserter
Posts: 20
Joined: Fri Mar 25, 2016 12:48 am
Contact:

Re: I need help.

Post 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

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: I need help.

Post 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.

Post Reply

Return to “Modding help”