Can't get the tutorial Item Counter Machine to work.
This is my first mod. I've followed the tutorial step by step and now I'm stuck at the Item Counter Machine.
My game crashes immediately after I have plugged the output conveyor AND the power connection.
The game does not crash if I have only output conveyor or only power connection. Also does not crash if I have either of those with the input conveyor.
I know there is an example of this mod that comes with SML, I did an almost complete copy (by eye, not an actual Ctrl C - Ctrl V) of the things regarding this specific page of the tutorial (https://docs.ficsit.app/satisfactory-modding/latest/Development/BeginnersGuide/SimpleMod/machines/SimpleMachine.html).
The example works fine, but it has some things that I guess are approached further on the tutorial.
BTW I can share my github repository. I'm not sure if I can link it here, but I would send a personal message if necessary.
13 Replies
Do you have a crash log?
I think linking to GitHub should work. If unsure whether you can post a link, post it in its own message. This way, only the link gets deleted
Here's the repo: https://github.com/Laurent37/DocMod.git
I'm not sure what the crash log is, if you're referring to the huge text that shows when the crash happens, here's the first lines:
Version: 372858, IsEditor: No, IsPerforceBuild: No, BuildConfiguration: Shipping, Launcher: Steam, NetMode: Standalone, IsUsingMods: Yes, IsSaveGameEdited: No
Unhandled Exception: EXCEPTION_STACK_OVERFLOW
So I guess it tries to address something out of an array bounds, but I don't know what it is.
GitHub
GitHub - Laurent37/DocMod: First Mod
First Mod. Contribute to Laurent37/DocMod development by creating an account on GitHub.
STACK_OVERFLOW usually means something called itself too many times
By "crash log" I mean that, plus the text that follows
With the missing part I could try figuring out what went wrong
Okay here we go.
Okay, you have a loop in grab output
How so? And why does the example that comes with SML works just fine? That is what's getting me.
Let me check
The grab output function that I made is the literal same as the tutorial page and the example.
Solution
I think I found a little difference
Left is yours, right is ExampleMod
I didn't see any other differences in that function
Omg I'm so embarassed.
I checked so many times
No worries! I've had similar things happen to me before :alpako:
It works so good now, wow. Thank you.