Moding beginner problems. [German/Deutsch]

Place to get help with not working mods / modding interface.
Groot
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Aug 24, 2017 8:55 pm
Contact:

Moding beginner problems. [German/Deutsch]

Post by Groot »

Hallo, da mein Englisch nicht so gut ist, schreibe ich einfach mal auf Deutsch in der Hoffnung, dass mir trotzdem jemand helfen kann. Danke schon mal im Voraus.

Also ich habe bis jetzt noch nie eine Mod geschrieben und ich hab auch nicht so viel Ahnung von dem Programmieren. Gestern als kleinen Einstieg hab ich es geschafft, einen Gegenstand(Item) in das Spiel "einzubauen" was auch gut funktionierte.
Jetzt wollte ich noch ein weiteres Labor "einbauen" und dies hat leider nicht funktioniert :-(.

Bei mir kommt ständig der Fehler: Error in assingID, Entity with Name "..." does not exist.

Diesen Fehler hatte ich gestern auch schon und ich konnte ihn auch beheben. aber dieses mal weiß ich nicht weiter. Ich hab schon im Internet gesucht und auf der Wiki Seite einiges angeschaut, aber nichts hat geholfen.

Was ich bis jetzt für das Labor geschrieben habe:
items.lua
recipes.lua
entities.lua
data.lua
tech.lua
Das mit dem Wissenschaftspaket hat sehr gut funktioniert. Hat einer von euch ne Idee was Fehlt?

Gruß Groot
Last edited by Kayanor on Thu Aug 24, 2017 9:44 pm, edited 1 time in total.
Reason: Fixed Spoiler Tags
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Arch666Angel »

Dir fehlt augenscheinlich das neue "lab" bzw die entity definition. Die Reihenfolge in der du die Sachen in data.lua lädst ist durchaus auch wichtig wie du eventuell schon bemerkt hast. General hat es sich als gut erwiesen erst Kategorien, dann entities, dann items, dann recipes und als letztes Technologien zu laden.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Bilka »

Ich hoffe mal dass das nur falsch kopiert ist, aber in der entities.lua musst du ein Objekt für dein Labor definieren, nicht zum zweiten Mal die Rezepte :D

PS: Auf Deutsch erreichts du zwar ein paar Leute, aber auf Englisch können dir immer mehr helfen. Versuch einfach auf English nach Hilfe zu fragen. Übung macht den Meister :)
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by darkfrei »

Du kannst hier https://mods.factorio.com/mods/darkfrei ... /downloads data.lua gucken.
Du brauchst immer:
Entity, was tied at die Erde platziert,
Item, was liegt in deiner Tasche.

Und wenn du eine Technologie benutzen willst, kannst du auch eine hinzufügen.

Auf jeden Fall brauchst du Notepad++ für richtige Textformatierung.
Koub
Global Moderator
Global Moderator
Posts: 7955
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Koub »

Hi people,

I understand everybody can't be fluent in English. However, it would be very nice if those of you who are able to translate help by doing so : maybe the information exchanged in this topic can help all the community, and human-translation will always be better than a google-translate a moderator will have to do.
Koub - Please consider English is not my native language.
Groot
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Aug 24, 2017 8:55 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Groot »

Hello, thanks all to you for the fast answers. @ Koub I will try it to translate it in Englisch next time.

@Arch666Angel: I have now a new sequence in the data.lua.
@Bilka: Yes, it was a copy fail. The right one is this one :
@darkfrei : I will learn from your mod.
Deutsch
entities.lua
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Arch666Angel »

Code: Select all

type = {"lab"},
 name = {"lab-2"},
Needs to be strings, not arrays:

Code: Select all

type = "lab",
 name = "lab-2",
Groot
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Aug 24, 2017 8:55 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Groot »

Hey guys, thanks for the help, but now i have an other error.:
Deutsch
Image-Bild
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by darkfrei »

In vanilla Factorio\data\base\prototypes\entity - entities.lua ( :?:
Why not demo-entities.lua?
:?: ) you can find this code:
lab code from vanilla
It's a lot! But normally you change some of them: speed, power, graphics and amount of modules.
Groot
Manual Inserter
Manual Inserter
Posts: 4
Joined: Thu Aug 24, 2017 8:55 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by Groot »

Hey, now it works. Very big thanks to everybody. @darkfrei at first i copy the Code but it dosent worked. now i had try it again and i it wors. :D
Deutsch
My mistake that i made:

Code: Select all

(
{
	{
    type = "lab",
    name = "lab-2",
    icon = "__Versuch__/graphics/icons/lab-2.png",
    flags = {"placeable-player", "player-creation"},
    minable = {mining_time = 1, result = "lab"},
    max_health = 150,
    corpse = "big-remnants",
.
.
.

and now:

Code: Select all

(
  {
	{
    type = "lab",
    name = "lab-2",
    icon = "__Versuch__/graphics/icons/lab-2.png",
    flags = {"placeable-player", "player-creation"},
    minable = {mining_time = 1, result = "lab"},
    max_health = 150,
    corpse = "big-remnants",
.
.
.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Moding beginner problems. [German/Deutsch]

Post by darkfrei »

It must be

Code: Select all

result = "lab-2"
Post Reply

Return to “Modding help”