The goal of MagicLib is to create an Open Source, community driven "library" of useful (and well documented) scripts and plugins that can be leveraged and contributed to by every modder.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou can upload this file to other sites but you must credit me as the creator of the file
Modification permissionYou are allowed to modify my files and release bug fixes or improve on the features so long as you credit me as the original creator
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou are allowed to use the assets in this file without permission as long as you credit me
Asset use permission in mods/files that are being soldYou are allowed to use the assets in this file in mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
Added a merged "occupied" system themes list to MagicSetting
MagicRender: Fixed issue where sprite flickering was applied incorrectly.
MagicLensFlare: Now uses the "visual only" API.
MagicSettings: Improved error messages with the lines where the issue is if possible.
MagicTargeting: Added the option to exclude flares from missile picks.
MagicCampaign: Many small improvement to the logic of nearly all functions. Better checks for suitable systems, more coherent fleet spawning, Fleet quality is now a thing, made a lot of parameter nullable for procgen filler...
MagicUI: the widgets texts can be null to be ignored, same for numbers if they are negative.
Version 0.34rc2
MagicRender: Singleframe render is now maintained while the game is paused
Magic UI: Should be displayed sharp at 100% UI scaling
MagicTrail: - Now properly supports texture scrolling whether the source is moving or not. - Now supports one-time random texture offsets. - Now supports per-segment texture offsets. - MagicTrail.csv updated with a random trail offset boolean. - Big thanks to Originem for fixing the scrolling issue as well as doing a massive optimization work, and making these new features possible.
MagicLensFlare: createSmoothFlare() temporarily deprecated due to changes in 0.95 breaking them.
Version 0.33rc1
MagicUI: Should work with UI scalling now
MagicCampaign: - Fixed AI-core captains crashing the game upon looting their fleet, - Deprecated the old captain declaration that only works for human officers - Added support for 0.95 automatic levels and skills.
Version 0.32rc2
Added MagicCampaign
Deprecated a lot of similar methods with barely different declarations
Version 0.30rc3
Added MagicSettings: . A collections of methods to easily read variables and lists from a shared modSettings.json file. . It is intended to create a unified settings system across mods to make inter-mod integration much easier. . Produces helpful error messages when failing, as well as a detailed log when in dev-mode.
MagicRender: Now supports sprite flickering and jittering.
MagicTrails: . Added "base_trail_contrail" to default available trails. . Added compensation attribute to MagicAutoTrails to fix offset following projectiles with fast lateral drift. (courtesy of TomatoPaste) . Added a non-verbose implementation of MagicAutoTrails used when not in dev Mode.
MagicVectorThrusters: . Probably fixed a long standing rotation error with the vectoring thruster script . Added support for vector thruster covers (non animated thrusters will only turn).
MagicInterferencePlugin: . Fixed minor error in the Interference hullmod tooltip. . Added a non-verbose implementation used when not in dev Mode.
Fixed Version Checker file
Version 0.29
Added MagicInterferencePlugin . Makes exceptionally strong weapons with the "Interference" trait have negative effects when more that one is mounted on a given ship. . Those weapons need to trigger the plugin to check for possible other interference sources from a CSV file. . If other sources are found, it will add a hullmod that reduced the ship's dissipation depending on the number of interfering weapons and their interference strength.
Added MagicBasicInterferenceEffec loose weapon script to trigger an interference check.
Added MagicIncompatibleHullmods . Proposes a uniform "incompatible hullmod" solution. . When triggered as two incompatible hullmods are added, it will remove the offending hullmod and add a hullmod to warn the player about that operation. . The added hullmod's tooltip will indicate which hullmod was removed and why.
Added MagicModuleRetreatCleaner to fix the bug with retreating ships with modules preventing the combat from ending.
MagicRender: . Added optional blending modes to the sprite renders.
MagicUI: . Fixed crash when used the first frame in combat
MagicRender: Fixed screencheck culling being overly aggressive.
MagicTrail: Fixed case issue for Linux players.
Version 0.26
MagicTrail: . Now supports render order overrides.
MagicRender: . Now supports render order overrides.
MagicTrail CSV plugin: . Added renderBelowExplosion boolean to automatically render the trail under the FX layer
Version 0.25 RC2
MagicTrail CSV plugin: . Finally NAILED THAT FRICKING BUG WITH RON'S EDITOR CORRUPTING THE FILES! . (and also future-proofed the CSV reading process, thanks Kitta Khan for the help)
Version 0.25
MagicTrail CSV plugin: . Added a bunch of default textures. . Fixed trail duplication bug on save reload from a battle. . Fixed trail_data corruption using Ron's editor
MagicFakeBeam: . Added spawnAdvancedFakeBeam that can use custom vanilla-like textures.
Version 0.24
MagicTrail CSV plugin: . Added a velocity randomization parameter.
MagicTargeting: . Fixed issue with random missile targeting only working in the front of the source ship.
Version 0.23RC3
MagicTrail CSV plugin . Fixed issue with multiple trails getting weird offsets . Added second dispersion method to create non-linear offsets
Version 0.23
Added CSV-based projectile trail manager. (see data/trails/trail_data.csv)
MagicTrails: . Now uses an alternate rendering method which should fix a variety of issues . The old render version is available under "specialOptions", as the bool "FORWARD_PROPAGATION" (default false)
MagicUI: . Added two new methods to display fully fledged status bar in the UI and the player ship hud widget.
MagicRender: . Fixed issue with sprite attached to fading projectiles.
Version 0.22
MagicTargeting: . Missile targeting now ignores missiles without collisions
MagicSettings Offers classes to load merged settings and lists from a shared modSettings.json file. Intended to make cross-mod integration and compatibility much easier to manage.
MagicIncompatibleHullmod A uniform solution for the "incompatible hullmod" issue with vanilla hullmods.
MagicInterference Adds a cross-mod mechanic to balance very powerful weapons.
MagicAnim A collection of functions to make smooth animations.
MagicFakeBeam Creates convincing punctual beams from arbitrary coordinates.
MagicLensFlare Creates "cinematic" lens flares.
MagicRender Draw arbitrary sprites on-screen with constraints to entities/camera when needed. (aka "SpriteRenderManager")
MagicTargeting Allows "smart" target selection for systems and missiles within distance and search cone parameters, plus it can use ship-class preferences.
MagicTrails Allows to create missile-style trails anywhere, from ships to bullets, with a lot of customization options. Also includes a CSV based manager that should be able to handle most projectile use cases with negligible overhead.
MagicUI Draws UI elements such as a system-like charge-bar/tick box next to the normal ship-system for special systems, or an extra status bar above the flux/hull bars.
Loose scripts Scripts that can be used "as it is" or can be copied to individual mods to personalize the result.
MagicVectorThruster Manages vectoring or vernier-style attitude thrusters.
MagicMissileAI A very customizable and lightweight missile AI script usable without any java knowledge.
MagicGuidedProjectileScript A weapon script that allows regular projectiles to track their target.