Help needed getting started with modding with C++
I've coded in C++ with unreal before... but it's been a while... So I wanted to get into it again since the trains lacking any decent pathfinding was bothering me. However... I can't for the life of me figure out how to get the C++ part of modding working. blueprints worked fine... but when I generated a new mod for bp + C++ I was unable to get any C++ classes working.
24 Replies
>docs
Here is the modding documentation: https://docs.ficsit.app/
Have you followed the c++ section directions?
I have
But I don't get a C++ classes folder for my mod, nor does it appear when I make one... (first make files in file explorer, Then add them to vs)
Did you run regenerate project files after adding the module?
yep
Does the Alpakit template for creating a mod with a cpp module already set up work?
What happens if you try to use the editor's Create C++ Class utility?
I can't do that... As it makes no folder in the content viewer where I can view C++ classes
yes
I guess some sort of typo or mistake has been made in setting up the module manually then. Try going through the process again or bringing over the working module from the template, making the required edits of course
You should have any C++ classes folder to right click and create a new C++ class. But you still have to put the new C++ class in your mod's C++ module (it defaults to
FactoryGame
which is not good)
This thing you have to change is in the class creation wizard, before actually creating the classSo making them in a different one and then copying them over?
No
Right-clicking a different folder to bring up the same menu
ah right... and then in there I can change the path. I see now... I'll give that a try
Booting up the editor to screenshot the thing
Solution

Yep! Just booted up the editor and saw it aswell!!! Thanks!
I think you should see your plugin's C++ classes folder once you create one class and build again in VS
Alright! Now it's working! Thanks @Robb (Busy) and @Rex [they/them] !!
Oh, I don't know that could be opened by folder clicking, I usually trigger it from the Tools menu
I thought that's what the docs said
It is what the docs say: https://docs.ficsit.app/satisfactory-modding/latest/Development/Cpp/setup.html#_adding_a_class

I guess the instructions need to be changed to account for the fact you can use any
C++ classes
folder. I would also rephrase them because it's easy to follow this paragraph to the letter, only for the warning just below to tell you that you should've done something else before creating the classindeed... It's the first part that tripped me up the most...
