Page 1 of 1

Moding beginner problems. [German/Deutsch]

Posted: Thu Aug 24, 2017 9:40 pm
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

Re: Moding beginner problems. [German/Deutsch]

Posted: Thu Aug 24, 2017 9:56 pm
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.

Re: Moding beginner problems. [German/Deutsch]

Posted: Thu Aug 24, 2017 10:01 pm
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 :)

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 10:26 am
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.

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 10:34 am
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.

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 12:21 pm
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

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 1:32 pm
by Arch666Angel

Code: Select all

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

Code: Select all

type = "lab",
 name = "lab-2",

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 3:53 pm
by Groot
Hey guys, thanks for the help, but now i have an other error.:
Deutsch
Image-Bild

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 4:09 pm
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.

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 5:39 pm
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",
.
.
.

Re: Moding beginner problems. [German/Deutsch]

Posted: Fri Aug 25, 2017 7:34 pm
by darkfrei
It must be

Code: Select all

result = "lab-2"