Love to Tart, always.
I've been curious, Wispborne: is there anything you want to focus on in the near future for MagicLib?
when i installed it ask for lazylib 2.6 but we are at lazylib2.7b, is that normal?
@Alex, doesn't this thread actually belong in 'Modding Resources'?
Hi, I'm new to the modding scene, currently working on a mod that modifies the bounty rewards. It works for vanilla but before I release I was hoping to make it react dynamically to bounties added by other mods such as MagicLib. Is there a way to modify the bounty credit rewards in a blanket way, i.e. for all bounties added by MagicLib?
I've noticed that unlike in job_description, the job_comm_reply and job_intel_success fields will not render \n new lines correctly.
Is it safe to ongoing game if I update to latest version?Yes.
// Long createFleet method
MagicCampaign.createFleetBuilder()
.setFleetName()
.setFleetFaction()
.setFleetType()
.setFlagshipName()
.setFlagshipVariant()
.setFlagshipAlwaysRecoverable()
.setFlagshipAutofit()
.setCaptain()
.setSupportFleet()
.setSupportAutofit()
.setMinFP()
.setReinforcementFaction()
.setQualityOverride()
.setSpawnLocation()
.setAssignment()
.setAssignmentTarget()
.setIsImportant()
.setTransponderOn()
.setVariantsPath()
.create();
// Shorter createFleet method
MagicCampaign.createFleetBuilder()
.setFleetName()
.setFleetFaction()
.setFleetType()
.setFlagshipName()
.setFlagshipVariant()
.setCaptain()
.setSupportFleet()
.setMinFP()
.setReinforcementFaction()
.setQualityOverride()
.setSpawnLocation()
.setAssignment()
.setAssignmentTarget()
.setIsImportant()
.setTransponderOn()
.create();
// createCaptain
MagicCampaign.createCaptainBuilder()
.setIsAI()
.setAICoreType()
.setFirstName()
.setLastName()
.setPortraitId()
.setGender()
.setFactionId()
.setRankId()
.setPostId()
.setPersonality()
.setLevel()
.setEliteSkillsOverride()
.setSkillPreference()
.setSkillLevels()
.create();
import data.scripts.Magic -> import org.magiclib.Magic
import data.scripts.util.Magic -> import org.magiclib.util.Magic
import data.scripts.terrain.Magic-> import org.magiclib.terrain.Magic
import data.scripts.ai.Magic-> import org.magiclib.ai.Magic
import data.scripts.bounty.Magic-> import org.magiclib.bounty.Magic
import data.scripts.campaign.Magic-> import org.magiclib.campaign.Magic
import data.scripts.hullmods.Magic-> import org.magiclib.hullmods.Magic
import data.scripts.plugins.Magic-> import org.magiclib.plugins.Magic
import data.scripts.weapons.Magic-> import org.magiclib.weapons.Magic
Something broke, that link downloads an empty zip
Something broke, that link downloads an empty zip
Sorry! It should be fixed now.
I relied on my automatic process to create the .zip, it broke, and I didn't double-check it :|
hello I keep getting this error when playing and I think it might come from MagicLib.
1172137 [Thread-9] INFO sound.H - Playing music with id [battle_ambience_01.ogg]
1172181 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.RuntimeException: Texture [trails_trail_zappy] from category [fx] not found
java.lang.RuntimeException: Texture [trails_trail_zappy] from category [fx] not found
at com.fs.starfarer.settings.StarfarerSettings.o00000(Unknown Source)
at com.fs.starfarer.settings.StarfarerSettings.class(Unknown Source)
at com.fs.starfarer.settings.StarfarerSettings$1.getSprite(Unknown Source)
at org.magiclib.plugins.MagicAutoTrails.createTrailSegment(MagicAutoTrails.java:147)
at org.magiclib.plugins.MagicAutoTrails.advance(MagicAutoTrails.java:136)
at com.fs.starfarer.title.Object.for$Oo.o00000(Unknown Source)
at com.fs.starfarer.combat.super.new.super(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:750)
I was wondering if I could get some help on using the "location_entitiesID" field for magic bounties. Does causing the fleet to spawn in a particular system require establishing a memKey at the start of the game, or could i use some other identifier? For example if I wanted the bounty to spawn specifically in Duzahk, and not any other uninhabited core system such as Penelope's Star, how would I do that?
I was wondering if I could get some help on using the "location_entitiesID" field for magic bounties. Does causing the fleet to spawn in a particular system require establishing a memKey at the start of the game, or could i use some other identifier? For example if I wanted the bounty to spawn specifically in Duzahk, and not any other uninhabited core system such as Penelope's Star, how would I do that?
location_entitiesID is a list of SectorEntityToken ids.
So, for Duzahk, you could add "duzahk1"(Aka Mainyu) and "duzahk2" (Druj).
There's no option for specifying a specific hardcoded system(s), though.
"location_entitiesID": [
"duzahk1"
],
"location_entitiesID": [
"galatia_gate"
],
"trigger_memKeys_all": { "$test_mission_expired": true }
"trigger_memKeys_any": { "$test_mission_expired": true }
Got a crash on giving the Hegemony a Cryoarithmeric Engine at Chicomoztoc.Thank you! We talked on Discord, and the problem is in AotD. Next MagicLib version will have extra logging in this area to help pinpoint the cause of such crashes.
<crash>
Stelnet.log details my active mods.
As the original writer of this bit of code, I'll offer: if you'd like assistance in fixing this, I am happy to take a look at it.Got a crash on giving the Hegemony a Cryoarithmeric Engine at Chicomoztoc.Thank you! We talked on Discord, and the problem is in AotD. Next MagicLib version will have extra logging in this area to help pinpoint the cause of such crashes.
<crash>
Stelnet.log details my active mods.
As the original writer of this bit of code, I'll offer: if you'd like assistance in fixing this, I am happy to take a look at it.Got a crash on giving the Hegemony a Cryoarithmeric Engine at Chicomoztoc.Thank you! We talked on Discord, and the problem is in AotD. Next MagicLib version will have extra logging in this area to help pinpoint the cause of such crashes.
<crash>
(Honestly, seeing this nullpointer annoys me - I thought I'd been careful about that. Not careful enough, apparently. Even if the actual bug is in someone else's mod, this should not be crashing.)
On the other hand, if you'd prefer to deal with this on your own, that is fine too: this is meant as an offer of support for code I wrote, not me trying to poke my nose in regardless.
Error checking if hegeheavy_databank can be installed in vault_aotd.
// industry: vault_aotd, item: hegeheavy_databank
private boolean canUseItem(Industry ind, SpecialItemData item) {
SpecialItemSpecAPI spec = Global.getSettings().getSpecialItemSpec(item.getId());
String[] industries = spec.getParams().split(","); <--- this line crashes, NPE
I might simply be very stupid but somehow this mod seems to be causing some sort of trouble for me? With just this and Lazylib installed/enabled, the game simply crashes and gives me an error message stating something to the effect of "Command [AddBarEvent] not found in packages." I was surprised that I would get trouble from this of all things, so any idea how I've somehow managed to screw this up to cause this, or what might be the problem?
I might simply be very stupid but somehow this mod seems to be causing some sort of trouble for me? With just this and Lazylib installed/enabled, the game simply crashes and gives me an error message stating something to the effect of "Command [AddBarEvent] not found in packages." I was surprised that I would get trouble from this of all things, so any idea how I've somehow managed to screw this up to cause this, or what might be the problem?
Try simply redownloading and reinstalling it. Sometimes things get corrupted and that fixes it.
Download link in the main post is broken, it leads to "Not Found" page.
The link in the last post (with 1.3.2 announcement) is working properly.
Fresh install of the game and mods on a Win 11 system, loading game with only LazyLib(2.8 ) and MagicLib(1.3.2) enabled and I receive this error in the log file:
____
46828 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NoClassDefFoundError: lunalib/lunaSettings/LunaSettingsListener
java.lang.NoClassDefFoundError: lunalib/lunaSettings/LunaSettingsListener
at org.magiclib.Magic_modPlugin.onApplicationLoad(Magic_modPlugin.java:69)
at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: lunalib.lunaSettings.LunaSettingsListener
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 7 more
------
Is LunaLib a dependency for loading magiclib?
1068791 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at org.magiclib.bounty.intel.MagicBountyInfo.addNotificationBulletpoints(MagicBountyInfo.kt:80)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.addBulletPoints(BountyBoardIntelPlugin.kt:64)
at com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin.addBulletPoints(BaseIntelPlugin.java:211)
at com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin.createIntelInfo(BaseIntelPlugin.java:225)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.createIntelInfo(BountyBoardIntelPlugin.kt:113)
at com.fs.starfarer.campaign.comms.C.recreate(Unknown Source)
at com.fs.starfarer.campaign.comms.C.<init>(Unknown Source)
at com.fs.starfarer.campaign.comms.A.addMessage(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.addMessage(Unknown Source)
at com.fs.starfarer.api.impl.campaign.intel.BaseIntelPlugin.sendUpdateIfPlayerHasIntel(BaseIntelPlugin.java:178)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.notifyUserThatBountyIsAvailable(BountyBoardIntelPlugin.kt:85)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.advance(BountyBoardIntelPlugin.kt:101)
at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:750)
MagicLib 1.3.6
Hello!It is intended.
Switched to version 1.3.5 from version 1.1.3-rc01 and in the bars the first line of dialogue disappeared,
"Connect to the local unsanctioned bounty board."
the same in the version 1.3.6
so now I can't take these unique missions, even if start a new game, still the same.
Hello!It is intended.
Switched to version 1.3.5 from version 1.1.3-rc01 and in the bars the first line of dialogue disappeared,
"Connect to the local unsanctioned bounty board."
the same in the version 1.3.6
so now I can't take these unique missions, even if start a new game, still the same.
Now the unique bounties are moved into the "Bounty board" tag under "Bounties"/"Important" tab in the intel screen
109283 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - []
109286 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - MagicLib achievements are disabled.
109288 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - Saved 0 achievements.
109489 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at org.magiclib.achievements.MagicAchievementManager.setAchievementsEnabled(MagicAchievementManager.java:154)
at org.magiclib.achievements.MagicAchievementManager.onApplicationLoad(MagicAchievementManager.java:116)
at org.magiclib.Magic_modPlugin.onApplicationLoad(Magic_modPlugin.java:74)
at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Disabled achievements using the mod organizer and that session ran fine but now when I try to boot the game I get a fatal:null exception with this in the log. It's the only thing I can think that would be causing it since it's the only major change I've made between starting a new save last night and today when I tried to boot the game.Quote109283 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - []
109286 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - MagicLib achievements are disabled.
109288 [Thread-3] INFO org.magiclib.achievements.MagicAchievementManager - Saved 0 achievements.
109489 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException
java.lang.NullPointerException
at org.magiclib.achievements.MagicAchievementManager.setAchievementsEnabled(MagicAchievementManager.java:154)
at org.magiclib.achievements.MagicAchievementManager.onApplicationLoad(MagicAchievementManager.java:116)
at org.magiclib.Magic_modPlugin.onApplicationLoad(Magic_modPlugin.java:74)
at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:748)
Anyway to turn them back out outside the game? I can't find an easy option to do so in any of the ini files in the magiclib/data/config directory.
Ouch. I'll see if I can make time to fix this today.
In the meantime, look in your saves/common/LunaSettings folder for something like MagicLib.json.data. Open that up and there should be the setting you're looking for. Not at my PC at the moment so I can't check.
org.json.JSONException: JSONObject["unlockedPaintjobs"] not found.
at org.json.JSONObject.get(JSONObject.java:406)
at org.json.JSONObject.getJSONArray(JSONObject.java:482)
at org.magiclib.paintjobs.MagicPaintjobManager.loadUnlockedPaintjobs(MagicPaintjobManager.kt:249)
at org.magiclib.paintjobs.MagicPaintjobManager.onGameLoad(MagicPaintjobManager.kt:91)
at org.magiclib.Magic_modPlugin.onGameLoad(Magic_modPlugin.java:153)
at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.public.dismiss(Unknown Source)
at com.fs.starfarer.ui.impl.L.dismiss(Unknown Source)
at com.fs.starfarer.campaign.save.LoadGameDialog.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.n.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.I.Ò00000(Unknown Source)
at com.fs.starfarer.ui.I.processInput(Unknown Source)
at com.fs.starfarer.ui.W.super(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:750)
Hello! A CTD occurs at seemingly random intervals while in a battle. There are two stack traces in the log. One for Magiclib and another for your other mod, Persean Chronicles.
<snip>
Yeah my magicbounties does not show at all after the update :(
Have some of the fields for magic bounties stopped working? I would like to present a bounty that's a surprise to players, but "job_show_type": false, "job_show_captain": false, "job_show_fleet": "none", no longer seem to be respected in the bounty board itself, even though the mission summary still keeps the information secret.
- Mods may add paintjobs, which will be locked by default. The modder chooses when/how to unlock them.
- Mods may add paintjobs, which will be locked by default. The modder chooses when/how to unlock them.
Does this mean a mod that introduces paintjobs *needs* an achievement or something to unlock the paintjobs?
809946 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain - java.lang.NullPointerException: activeBounty.fleet.flagship must not be null
java.lang.NullPointerException: activeBounty.fleet.flagship must not be null
at org.magiclib.bounty.intel.MagicBountyInfo.showFleet(MagicBountyInfo.kt:579)
at org.magiclib.bounty.intel.AssassinationMagicBountyInfo.showTargetInfo(AssassinationMagicBountyInfo.kt:86)
at org.magiclib.bounty.intel.MagicBountyInfo.layoutPanel(MagicBountyInfo.kt:301)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin$layoutPanel$1.pickedItem(BountyBoardIntelPlugin.kt:135)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin$layoutPanel$1.pickedItem(BountyBoardIntelPlugin.kt:128)
at org.magiclib.bounty.ui.lists.ListUIPanelPlugin.itemClicked(ListUIPanelPlugin.kt:117)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.layoutPanel(BountyBoardIntelPlugin.kt:146)
at org.magiclib.bounty.intel.BountyBoardIntelPlugin.createLargeDescriptionImpl(BountyBoardIntelPlugin.kt:155)
at org.magiclib.util.ui.MagicRefreshableBaseIntelPlugin.refreshPanel(MagicRefreshableBaseIntelPlugin.java:47)
at org.magiclib.util.ui.MagicRefreshableBaseIntelPlugin.createLargeDescription(MagicRefreshableBaseIntelPlugin.java:26)
at com.fs.starfarer.campaign.comms.v2.EventsPanel.new(Unknown Source)
at com.fs.starfarer.campaign.comms.v2.EventsPanel.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.n.buttonPressed(Unknown Source)
at com.fs.starfarer.ui.I.new(Unknown Source)
at com.fs.starfarer.ui.I.processInput(Unknown Source)
at com.fs.starfarer.ui.n.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.privatesuper$Oo.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.privatesuper.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.campaign.comms.v2.EventsPanel.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.campaign.comms.F.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.newui.E.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.newui.for.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.ui.z.dispatchEventsToChildren(Unknown Source)
at com.fs.starfarer.ui.z.processInputImpl(Unknown Source)
at com.fs.starfarer.ui.R.processInput(Unknown Source)
at com.fs.starfarer.campaign.CampaignState.processInput(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Thread.java:750)
Trojan:Script/Wacatac.B!ml
file: D:\OtherGames\installers\Starsector\MagicLib.zip->MagicLib/jars/MagicLib.jar
webfile: D:\OtherGames\installers\Starsector\MagicLib.zip|https://objects.githubusercontent.com/github-production-release-asset-2e65be/583789919/fa6a86f4-3c59-45ef-8d74-173ccd44240c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXXXXXXXXXXXXXXXXX%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T002020Z&X-Amz-Expires=300&X-Amz-Signature=42e6a84bf5b9b71e6df0b15caf1321de489b759b0f20f6e4c919e66249c00063&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=583789919&response-content-disposition=attachment%3B%20filename%3DMagicLib.zip&response-content-type=application%2Foctet-stream|pid:16800,ProcessStart:133524300283484010
I'm having a crash where I complete a bounty off of the Bounty Board, go back to the intel screen, and when I select the Bounty Board to accept another bounty the game crashes. I suspect it's because I missed updating something so the MagicLib Bounty Board is missing a bounty completion flag, but I'm having no luck figuring out what.
Windows defender is tagging magiclib. Is this a known issue? What's it tagging? Is this the thing that checks for mod updates?CodeTrojan:Script/Wacatac.B!ml
file: D:\OtherGames\installers\Starsector\MagicLib.zip->MagicLib/jars/MagicLib.jar
webfile: D:\OtherGames\installers\Starsector\MagicLib.zip|https://objects.githubusercontent.com/github-production-release-asset-2e65be/583789919/fa6a86f4-3c59-45ef-8d74-173ccd44240c?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=XXXXXXXXXXXXXXXXXX%2F20240215%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20240215T002020Z&X-Amz-Expires=300&X-Amz-Signature=42e6a84bf5b9b71e6df0b15caf1321de489b759b0f20f6e4c919e66249c00063&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=583789919&response-content-disposition=attachment%3B%20filename%3DMagicLib.zip&response-content-type=application%2Foctet-stream|pid:16800,ProcessStart:133524300283484010
This should fix it, but I haven't reproduced the crash so please let me know either way: https://github.com/MagicLibStarsector/MagicLib/releases/download/1.3.11-dev02/MagicLib.zip
To anybody reading this code: I'm sorry. Please don't try to understand it or learn from it.
Deepest apologies,
Wisp
16627 [Thread-3] WARN org.magiclib.util.MagicSettings - unable to read content of MagicLib in modSettings.json
org.json.JSONException: JSONObject["subsystemInfoKey"] is not a number.
at org.json.JSONObject.getDouble(JSONObject.java:451) ~[json.jar:?]
at org.json.JSONObject.getInt(JSONObject.java:468) ~[json.jar:?]
at org.magiclib.util.MagicSettings.getInteger(MagicSettings.java:150) ~[?:?]
at org.magiclib.subsystems.MagicSubsystemsManager.reloadSettings(MagicSubsystemsManager.kt:147) ~[?:?]
at org.magiclib.subsystems.MagicSubsystemsManager.initialize(MagicSubsystemsManager.kt:31) ~[?:?]
at org.magiclib.Magic_modPlugin.onApplicationLoad(Magic_modPlugin.java:77) ~[?:?]
at com.fs.starfarer.loading.ResourceLoaderState.init(Unknown Source) ~[port_obf.jar:?]
at com.fs.state.AppDriver.begin(Unknown Source) ~[port.common_obf.jar:?]
at com.fs.starfarer.combat.CombatMain.main(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source) ~[port_obf.jar:?]
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source) ~[port_obf.jar:?]
at java.base/java.lang.Thread.run(Thread.java:1575) [?:?]
data/config/modSettings.json
112: "subsystemInfoKey": "I",
src/org/magiclib/subsystems/MagicSubsystemsManager.kt
147: infoHotkey = MagicSettings.getInteger("MagicLib", "subsystemInfoKey") ?: 23
Heyoo Wisp, I've come across a bug regarding the paintjob system.
When a paintjob is applied, the hullmod in the refit screen shows the applied paintjob. Now this is supposed to happen. Buuut I don't think it's supposed to tell you that all possible paintjobs for that ship are simultaneously applied huh? (Check the attachment lol)
Is this HMI content or MagicLib content?
https://i.imgur.com/TxnZymV.jpg
Whichever it is, it is not only terrible writing, it's terrible for my immersion. If this is going to be part of MagicLib going forward, I'm not going to be playing mods that use MagicLib. No HMI, no Covenant, no Luddic Enhancement, no GMDA, no Xhan? Well, for the price I paid for the mods I guess I can't complain.
Is this HMI content or MagicLib content?Hold on to your horses there cowboy. Let me explain something to you to clear up the biggest misunderstanding I take out of your message.
https://i.imgur.com/TxnZymV.jpg
Whichever it is, it is not only terrible writing, it's terrible for my immersion. If this is going to be part of MagicLib going forward, I'm not going to be playing mods that use MagicLib. No HMI, no Covenant, no Luddic Enhancement, no GMDA, no Xhan? Well, for the price I paid for the mods I guess I can't complain.
Is this HMI content or MagicLib content?
https://i.imgur.com/TxnZymV.jpg
Whichever it is, it is not only terrible writing, it's terrible for my immersion. If this is going to be part of MagicLib going forward, I'm not going to be playing mods that use MagicLib. No HMI, no Covenant, no Luddic Enhancement, no GMDA, no Xhan? Well, for the price I paid for the mods I guess I can't complain.
return (float) (FastTrig.cos((x - fromMin) * (1 / (fromMax - fromMin)) * MathUtils.FPI)) * magicNumber + magicNumber + toMin;
return (float) (FastTrig.cos((x - fromMin) * (1 / (fromMax - fromMin)) * MathUtils.FPI)) * magicNumber - magicNumber + toMin;
Hey,
Was using MagicAnim.smoothToRange and it seems like it generates values on [toMin - (toMax - toMin), toMin] instead of on [toMin, toMax] like intended.
I was able to get the range to function correctly by changing the last line fromCodetoreturn (float) (FastTrig.cos((x - fromMin) * (1 / (fromMax - fromMin)) * MathUtils.FPI)) * magicNumber + magicNumber + toMin;
Code(the difference is the sign of the second "magicNumber" term)return (float) (FastTrig.cos((x - fromMin) * (1 / (fromMax - fromMin)) * MathUtils.FPI)) * magicNumber - magicNumber + toMin;