Thank you for your reply, it seems 90% of tutorials out there (that I have found) tell you to change the Game Mode in the level and primal game data file, from what I understand of the logic, you are correct, but either way it is not working for me.
Apparently, it was a fluke that I got it working, something is just not right. While trying to make a new mod, and even now once again my first mod which was fully working, is not letting me place items in game.
I am lost, to try to find what is causing it, I tried making a new mod, with a fresh dev kit install, to see if anyone could figure what is wrong. Here is a step by step of how I am making a new structure mod, please let me know if you notice anything.
Make a folder in Mods called MyMod then copied the 3 generic mod files to the MyMod Folder.
Rename the files as follow: “MyMod” for the Level file, “PrimalGameData_BP_MyMod” and “TestGameMode_MyMod”
Changes to “PrimalGameData_BP_MyMod”:
Mod Name: Mod Test
Default Game Mode:TestGameMode_MyMod
Compiled, saved and close “PrimalGameData_BP_MyMod”
Opened Mymod (Level), in World Settings, changed Primal Game Data Override to “PrimalGameData_BP_MyMod”, cleared the “Force Load Map Name”, then saved.
Reopened TestMap and changed Primal Game Data Override to “PrimalGameData_BP_MyMod”, then saved.
Created “Materials” and “Objects” subfolder to the “Game/Mods/MyMods” folder, then imported the files crate_D, Crate_N, Crate_S into “Materials” and Crate.fbx into “Objects” (links at the bottom of the post).
Right clicked on crate_D and “Create material”, opened the new material, drag and dropped crate_N and crate_S and linked them to Normal and Specular, saved and close the crate_d_Mat Material.
Imported the crate.fbx into the Objects folder, unchecking Auto gen of collision, import mat and textures and cliked Import.
Opened the new crate static mesh, Menu collision, add box simplified collision, dragged the crate_d_mat into the mat slot in the details, saved and closed the static mesh.
Clicked on the main folder “Game”, then in filters, typed in WoodTable on the right side, and copied the blueprint WoodTable (woodtable icon and dark blue line at bottom), “EngramEntry_Furniture_WoodTable” and PrimalItemStructure_Furniture_WoodTable files to my Objects folder.
Renamed the 3 files to MyCrate, EngramEntry_Furniture_MyCrate and PrimalItemStructure_Furniture_MyCrate
Opened the file MyCrate blueprint and changed:
Static Mesh to “crate” from my Objects folder.
Comsumes Primal Item to “PrimalItemStructure_Furniture_MyCrate”
Unchecked “Requires Placement on Structure Floor” (so we can place it on ground to test).
Pickup Gives Item to “PrimalItemStructure_Furniture_MyCrate”
Descriptive Name to “My Crate”
Compiled, saved and closed the MyCrate blueprint/
Opened the file EngramEntry_Furniture_MyCrate and changed Blue Print Entry to PrimalItemStructure_Furniture_MyCrate, then compiled, saved and closed it.
Opened PrimalItemStructure_Furniture_MyCrate and changed:
Descriptive Name Base to “My Crate”
Item Description to “A test wood crate”
Item Icon changed to crate_D from the Materials folder.
Structure to build to MyCrate from the Objects folder.
Compiled, saved and closed “PrimalItemStructure_Furniture_MyCrate”.
Opened PrimalGameData_BP_MyMod from the MyMods folder and changed
Additional Engram Blueprint Classes, I added the “EngramEntry_Furniture_MyCrate”
Additional Structures to Place, I added “MyCrate” from the Objects folder.
Compiled, saved and closed it.
Now, all this is typical of creating a new mod, seen ppl also change the Default Game mode in the TestMap and in the MyMod level file, but I believe it is not required unless you make changes to the TestGameMode_MyMod file.
I used the following command to spawn the item:
cheat giveitem “Blueprint’/Game/Mods/MyMod/Objects/PrimalItemStructure_Furniture_MyCrate.PrimalItemStructure_Furniture_MyCrate’” 1 0 0
Int he dev kit, everything is working, I can see the engram, make or summon the crate, place it, all is working perfectly.
Now for the baking:
- Click Steam Upload and fill in the fileds:
Test mod output, I put in the URL of my game mods folder so I can test before upload.
Preview image, I used the crate_icon.png
Title is “My Crate”
Description is “A test Crate”
Click Cook Game Mod.
In local game, the mod appears since I put in the mods folder before baking. I add My Crate and only it to the list of mod, but once in game, the engram is not there, I can summon the crate, see it in the inventory, move it to my actionbar, but when I use it (from bar or inventory), nothing happens… no green outline, nothing.
PS: if it will help, I can zip my whole “MyMod” folder for someone to try.