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
Robb
Robb2mo ago
>docs
FICSIT-Fred
FICSIT-Fred2mo ago
Here is the modding documentation: https://docs.ficsit.app/
Robb
Robb2mo ago
Have you followed the c++ section directions?
SteamBotBro
SteamBotBroOP2mo ago
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)
Robb
Robb2mo ago
Did you run regenerate project files after adding the module?
SteamBotBro
SteamBotBroOP2mo ago
yep
Robb
Robb2mo ago
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?
SteamBotBro
SteamBotBroOP2mo ago
I can't do that... As it makes no folder in the content viewer where I can view C++ classes yes
Robb
Robb2mo ago
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
Rex
Rex2mo ago
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 class
SteamBotBro
SteamBotBroOP2mo ago
So making them in a different one and then copying them over?
Rex
Rex2mo ago
No Right-clicking a different folder to bring up the same menu
SteamBotBro
SteamBotBroOP2mo ago
ah right... and then in there I can change the path. I see now... I'll give that a try
Rex
Rex2mo ago
Booting up the editor to screenshot the thing
Solution
Rex
Rex2mo ago
No description
SteamBotBro
SteamBotBroOP2mo ago
Yep! Just booted up the editor and saw it aswell!!! Thanks!
Rex
Rex2mo ago
I think you should see your plugin's C++ classes folder once you create one class and build again in VS
SteamBotBro
SteamBotBroOP2mo ago
Alright! Now it's working! Thanks @Robb (Busy) and @Rex [they/them] !!
Robb
Robb2mo ago
Oh, I don't know that could be opened by folder clicking, I usually trigger it from the Tools menu
Rex
Rex2mo ago
I thought that's what the docs said
Rex
Rex2mo ago
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 class
SteamBotBro
SteamBotBroOP2mo ago
indeed... It's the first part that tripped me up the most...
Rex
Rex2mo ago
No description

Did you find this page helpful?