Mod the Gungeon API
Adds the good parts of Mod the Gungeon to BepInEx.
CHANGELOG
1.9.2:
- Fixed an issue where trying to load a save with saved extended enums would sometimes cause exceptions.
- Fixed an issue where extended enums would get transferred to the new save slot when switching slots.
1.9.1:
- Removed the Unity Serialization Fixer patcher since it wasn't working on Linux.
- Fixed an issue where the
ETGMod.Databases.Strings.Synergystring table wasn't being reloaded when changing languages.
1.9.0:
- Added
GunBehaviour.AutoreloadOnEmptyClip() - Optimized SGUI thanks to Captain Pretzel.
StringDBnow supports localization.- Added
StringDBTable[string, StringTableManager.GungeonSupportedLanguages],StringDBTable.Set(StringTableManager.GungeonSupportedLanguages, string, string),StringDBTable.SetComplex(StringTableManager.GungeonSupportedLanguages, string, params string[]),StringDBTable.SetComplex(StringTableManager.GungeonSupportedLanguages, string, params Tuple<string, float>[]) - Added
UIStringDBTable.Set(dfLanguageCode, string, string) - Added
GunExt.SetName(this PickupObject, StringTableManager.GungeonSupportedLanguages, string),GunExt.SetShortDescription(this PickupObject, StringTableManager.GungeonSupportedLanguages, string)andGunExt.SetLongDescription(this PickupObject, StringTableManager.GungeonSupportedLanguages, string)
- Added
- Added the Unity Serialization Fixer patcher that makes Unity serialize modded types.
- Fixed an issue where
GunExt.UpdateAnimation()was sometimes wrongly returningnull.
1.8.7:
- Fixed a bug where the default console keys would always close the console while focused on the command field.
- Added configs for more GUI action keybinds.
1.8.6:
- Added configs for changing the keys that open/close parts of the GUI.
1.8.5:
- Fixed a bug where sprite replacements wouldn't work on floor tilemaps.
1.8.4:
- Fixed a mistake where
GunBehaviourdidn't implement theIGunInheritableinterface.
1.8.3:
- Updated the included
Newtonsoft.Jsonversion to 11.0.0
1.8.2:
- Fixed a bug where the scale of the
barrelOffsetof guns created using MTG API was set to(0.9, 0.9, 0.9) - Fixed a bug where two mods trying to replace the same sprite of certain collections would break the game.
- Fixed a bug where trying to add a large sprite would break the game.
1.8.1:
- Fixed a bug where
.jtk2dfiles were not being loaded from folders.
1.8.0:
- Added
GunBehaviour.OnReloadEnded(),GunBehaviour.OnReloadEndedPlayer(),GunBehaviour.OnReloadEndedEnemy(),GunBehaviour.OnInventoryReload(),GunBehaviour.OnInventoryReloadPlayer(),GunBehaviour.OnInventoryReloadEnemy(),GunBehaviour.CanCollectAmmoPickup()andGunBehaviour.OnAmmoCollected() - Fixed
GunBehaviour.EverPickedUpbeingtruewhen the gun is first picked up. - Fixed a bug where
.jtk2dfiles for new sprites weren't being detected when loading sprites from assembly. - Added a config to enable/disable parts of the GUI.
- Made the in-game debug log disabled by default.
- Improved some code.
1.7.7:
- Added
GunBehaviour.OnSwitchedTo(),GunBehaviour.OnSwitchedToPlayer(),GunBehaviour.OnSwitchedAwayFrom(),GunBehaviour.OnSwitchedAwayFromPlayer(),GunBehaviour.OnReloaded(),GunBehaviour.OnReloadedPlayer(),GunBehaviour.OnReloadedEnemy(),GunBehaviour.OwnedUpdate(),GunBehaviour.OwnedUpdatePlayer()andGunBehaviour.OwnedUpdateEnemy().
1.7.6:
GunBehaviour.OnDropped(),GunBehaviour.OnDroppedPlayer(),GunBehaviour.DisableEffect(),GunBehaviour.DisableEffectEnemy()andGunBehaviour.DisableEffectPlayer()now trigger when a gun is thrown.
1.7.5:
- Added
GunBehaviour.DisableEffect(),GunBehaviour.DisableEffectPlayer()andGunBehaviour.DisableEffectEnemy(). GunBehaviour.LastRegisteredOwneris nowNonSerialized. This shouldn't affect much, though.- Changed all Transpilers used by Mod the Gungeon API into ILManipulators.
- All ILManipulators used by Mod the Gungeon API now look for instructions that are less likely to be used by other mods in order to prevent potential breaks.
1.7.4:
- NuGet update. Version 1.7.3 was broken on NuGet and this update fixed that.
1.7.3:
- Fixed
GunBehaviour.OnDroppedByPlayer()never triggering. - Added
GunBehaviour.LastRegisteredOwnerwhich is likeGun.CurrentOwnerbut reset afterGunBehaviour.OnDropped()andGunBehaviour.OnDroppedByPlayer()instead of before. - Made
GunBehaviour.GenericOwnerreturnGunBehaviour.LastRegisteredOwnerifGun.CurrentOwneris null. - Made
GunBehaviour.PlayerOwnerreturnGunBehaviour.LastRegisteredOwneras aPlayerControllerifGun.CurrentOwneris null. - Made
GunBehaviour.EnemyOwnerreturnGunBehaviour.LastRegisteredOwneras anAIActorifGun.CurrentOwneris null.
1.7.2:
- Reduced the size of texture atlases from 4096x4096 to 1024x1024 thanks to Captain Pretzel. This should make mods load faster.
1.7.1:
- Added
GunBehaviour.PostProcessBeamTick(). - Replaced the
GunBehaviour.PostProcessBeamChanceTick()patch with a transpiler.
1.7.0:
- Made certain gun setup methods more optimized thanks to Captain Pretzel.
- Added
GunBehaviour.ModifyClipCount(). - Fixed some base game guns being broken because of
GunBehaviouroverriding the return values of someFuncs, even if the methods for them weren't overriden. NowGunBehaviouronly subscribes toFuncs if the methods are overriden. - Fixed
GunBehaviour.OnGunThrown(),GunBehaviour.OnGunThrownPlayer(),GunBehaviour.OnGunThrownEnemy(),GunBehaviour.PostProcessBeam()andGunBehaviour.PostProcessBeamChanceTick()only being called for the lastGunBehaviourif multiple are applied to the same gun.
1.6.2:
- Changed how
ETGMod.FolderPathworks.
1.6.1:
- Added nullchecks to
ETGMod.Databases.Items.AddSpecific(). - Added a new version of
ETGMod.Databases.Items.AddSpecific()that has an option to not make theEncounterDatabaseEntryproxy. - Updated version in the title.
- Moved the changelog to the new
CHANGELOG.md.
1.6.0
- Fixed possible save file corruption when using extended save flags.
- Fixed the code for getting global tracked stats and maximums not working as intended with extended playable characters enum.
- Added the UI table back to
ETGMod.Databases.Stringsand made it actually work. - Fixed
ETGMod.Assets.TextureMaphaving the wrong names again. - Made
ETGMod.Databases.Items.Add()(the gun version) no longer be obsolete.
1.5.8
- Hopefully fixed the
ETGMod.Assets.TextureMaphaving the wrong names for the keys which caused sprite trimming to not work correctly. - Added the E key to the debug log that clears all messages except exceptions.
- Removed
ETGMod.Databases.Strings.UITableas it wasn't working.
1.5.7
- ACTUALLY fixed switching language breaking modded item names.
1.5.6
- Fixed switching language breaking modded item names.
1.5.5
- MTG API now recognizes
.jtk2dfiles as sprite definition metadata files, because.jsonfiles are recognized as config files by mod managers.
1.5.3
- Fixed outlines breaking when using spritesheet replacements.
- Made the console also log to the BepInEx console window.
- Fixed various other problems with sprite replacements.
1.5.2
- Fixed some sprite replacements not working, now you can enjoy your hunter recolors in peace.
1.5.1
- Fixed more backwards compatibility issues.
- Updated version in the title.
- Made
DungeonStart()actually work (don't worry i've improved the code for it so it shouldn't cause issues).
1.5.0
- Fixed backwards some compatibility issues.
- Added new overridable methods to
GunBehaviour.
1.4.1
- Fixed enums and guids potentially corrupting savefiles.
- Improved name to id conversion system.
1.4.0
- Added documentation.
- Added enum extensions.
- Added shared data.
- Removed some unused or stupid methods.
- Other changes.
1.3.0
- Updated SGUI to the latest version thanks to KubeRoot.
1.2.2
- Updated links once more.
- Hopefully made the enabled mods menu bigger.
- Updated version in the title screen.
1.2.1
- Updated links.
- Added credits section.
- Restructured the page a little.
- Added a dependency on BepInEx Pack.
1.2.0
- Fixed the debug clear command, improved the console clear command and added a new debug key that clears all of the debug log, even errors.
1.1.3
- Hopefully fixed the
Newtonsoft.Jsonissue.
1.1.2
- Updated the plugin version so that it displays correctly in the title screen.
1.1.1
- Fixed the thumbnail to actually display the correct version.
1.1.0
- Big update.
1.0.1
- Fixed
TextureMapbeing removed.
1.0.0
- Release.