Releases: Xgames123/PrimitierModdingFramework
V0.5.1
Release notes
Framework
- Fixed project template doesn't have DirectDllLink=true set in .pmftoolconfig
- Fixed JSON having single quotes in mod.json auto generation #5
- Fixed loading multiple mods doesn't work #6
- Fixed ICustomSavable.load doesn't get called
- Fixed substances changing when a new substance gets added to primitier
Pmftool
- Changed/Fixed --novr option in pmftool run now teleports the player to the camera so the chunks around the camera get loaded
Moving from last version to this one
Important
- run dotnet tool update xgames105.pmf.pmftool --global
- In your .csproj change the Version attribute to 0.5.1
- In all classes that implement ICustomSavable add this to the constructor
CustomSaveFileSystem.RequestLoad(this);
V0.5
You can find all pmf packages on nuget
Note: the git tag of this release is in the wrong place and I can't fix it
Release notes
Framework
-
(DOESN'T WORK) Added ICustomSavable to save data of a cube behaviour into the world file
-
Added PMFHelper.PrimitierDefaultFont to get the font used in Primitier
-
Added component dumpers for TextMeshPro, StartButton and CubeBase
-
Added OnEarlySubstanceInitialize to CustomSubstanceSettings
-
Added AddCustomCubeBehaviour to CustomSubstanceSettings
-
Removed OnFragmentInitialized and OnCollideWithCube from ICustomCubeBehaviour since they don't work (See docs for alternaives)
PMFTool
- Added directly linking to the proxy dlls (This is better for your hard drive or ssd because it doesn't have to copy any files every time you run pmftool run)
- Added pmftool run --start-slot 8 to start the game in a slot
- Added detach flag to not attach to the Primitier process after running it
- Optimised pmftool run to not copy every single file to the mods directory
Moving from older version to this one
Important
-
run dotnet tool update xgames105.pmf.pmftool --global
-
In your .csproj change the Version attribute to 0.5
-
If you use OnSubstanceInitialize to add a custom cube behaviour change that to AddCustomCubeBehaviour and return the cube behaviour like this
From this
OnSubstanceInitialize = (CubeBase cubeBase) => { cubeBase.gameObject.AddComponent<Decay>(); }
To this
AddCustomCubeBehaviour = (CubeBase cubeBase) => { return cubeBase.gameObject.AddComponent<Decay>(); }
Not required but you should do this
- open .pmftoolconfig and add
Than run pmftool update-dlls
DirectDllLink=true
Optional
- Remove unused OnCollideWithCube and OnFragmentInitialized methods
V0.4.1
V0.4
A lot of things have changed in this update. so I recommend to look thru the demo mod to find what has change
(The old things should still work)
Big things
- Added Custom asset loading
- Added ICustomCubeBehaviour used to create custom CubeBehaviours
- Added CustomSubstanceBuilder used for generating custom substances
- Added PMFLocalizer to create custom localizations for Jp and En
- Added --novr option to PMFTool run to enable the fly cam
Release notes
- Changed the "Debug Tool" title to "Mod settings" in game
- Added Toggle buttons to InGameDebugTool
- Added PMFLocalizer to create custom localizations for Jp and En
- Added CustomSubstanceBuilder used for generating custom substances
- Added localizations for custom substance
- Added Custom asset loading
- Added ICustomCubeBehaviour used to create custom CubeBehaviours
- Added PMFHelper.AutoInject() to automaticly find ICustomCubeBehaviour classes and injects them
- Added CustomSubstanceSystem.GetSubstance to get a substance by its enum id
- Added CustomSubstanceSettings param to CustomSubstanceSystem.LoadCustomSubstance
- Added OnSubstanceInitialize action to CustomSubstanceSettings (This allows you to add components or do stuff when a new cube base using the substance is initialized)
V0.3.1
V0.3
This is a big update in getting started using pmf.
If this release has any problems please create a issue.
Release notes
- Improved documentation (Hopefully)
- Fixed debug tools from different mods not merging in to 1 debug tool
- Fixed dlls in the Dlls folder were not being referenced by the DemoMod
- Added a fly cam
- Added PMFTool for easily running mods, packing mods and updating dlls for mods
- Added a new PMF event (OnRealyLateUpdate)
- Added custom object support (like drones and engines)
- Added project templates for pmf
V0.2
Release notes
- Added dlls required to run the demo mod in a folder called Dlls (Now the demo mod works when you clone it)
- Added Custom materials
- Added sound dumping into ResourceXmlDumper
- Added PlayerLife to PMFHelper
- Changed the size of buttons on in game debug tool
- Added [Obsolete("This is going to be implemented in the future")] to non working methods and classes
- Added PMFSystem.IsEnabled()