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.
Solution:
I think I found a little difference
No description
Jump to solution
13 Replies
Rex
Rex2mo ago
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
Lorranis
LorranisOP2mo ago
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.
Rex
Rex2mo ago
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
Lorranis
LorranisOP2mo ago
Okay here we go.
Rex
Rex2mo ago
Okay, you have a loop in grab output
Lorranis
LorranisOP2mo ago
How so? And why does the example that comes with SML works just fine? That is what's getting me.
Rex
Rex2mo ago
Let me check
Lorranis
LorranisOP2mo ago
The grab output function that I made is the literal same as the tutorial page and the example.
Solution
Rex
Rex2mo ago
I think I found a little difference
No description
Rex
Rex2mo ago
Left is yours, right is ExampleMod I didn't see any other differences in that function
Lorranis
LorranisOP2mo ago
Omg I'm so embarassed. I checked so many times
Rex
Rex2mo ago
No worries! I've had similar things happen to me before :alpako:
Lorranis
LorranisOP2mo ago
It works so good now, wow. Thank you.
Want results from more Discord servers?
Add your server