Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 ... 3 4 [5] 6 7 ... 12

Author Topic: [OUTDATED] MagicLib  (Read 536730 times)

Cabbs

  • Ensign
  • *
  • Posts: 24
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #60 on: July 05, 2020, 01:45:34 PM »

Can anyone tell me any mod using MagicIncompatibleHullmod?

I want to see how it should work.

Don't have a clean example to refer you too, but its super-easy to implement. 

You add code to your applyEffectsBeforeShipCreation like this:

Quote
if(stats.getVariant().getHullMods().contains("swp_shieldbypass")){

 MagicIncompatibleHullmods.removeHullmodWithWarning(stats.getVariant(), "swp_shieldbypass", "CBCC_shieldscaling");

 }

In my example:

1.  applyEffectsBeforeShipCreation runs every time you add a hullmod to a ship, so this check occurs whenever you change something
2.  If the mod with ID "swp_shieldbypass" is present, the IF triggers
3.  'MagicIncompatibleHullmods.removeHullmodWithWarning' removes "swp_shieldbypass" and replaces it with a dummy warning mod that specifies "CBCC_shieldscaling" as the reason, so these two mods can never be present together.


This is how it works as far as I know.
Logged

Professor Pinkie

  • Ensign
  • *
  • Posts: 23
  • Best cupcakes in a sector!
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #61 on: July 05, 2020, 10:11:11 PM »

Silly me.

This is exactly what I was trying to do. My problem was: "eficiency_overhaul" instead of "efficiency_overhaul" in MagicIncompatibleHullmods.removeHullmodWithWarning(stats.getVariant(), "eficiency_overhaul", "my_hullmod");

In the future, I should read the log before asking people questions.

I apologize most deeply.
Logged

SafariJohn

  • Admiral
  • *****
  • Posts: 3010
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #62 on: July 06, 2020, 07:14:28 PM »

Don't feel too bad, I thought a typo might be the problem and still missed that.
Logged

Morrokain

  • Admiral
  • *****
  • Posts: 2143
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #63 on: July 07, 2020, 01:44:41 PM »

I did as well.  :P
Logged

Titann

  • Commander
  • ***
  • Posts: 122
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #64 on: July 11, 2020, 01:56:43 AM »

first download link doesnt work and nexusmod requires login to download. First link says ERR_SSL_PROTOCOL_ERROR and its not safe, not sure why

edit: nvm i cant see download pictures with links on them because imgur is not allowed in our country for some reason lol
« Last Edit: July 11, 2020, 01:58:56 AM by tokmak333 »
Logged

jn_xyp

  • Ensign
  • *
  • Posts: 28
  • Ordinary Player, Fossic.org customer support
    • View Profile
    • Jn_xyp's Blog (In Chinese)
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #65 on: July 19, 2020, 07:50:33 AM »

Hi,

In order to facilitate Chinese players to download this essential mod, I would like to ask permission to repost this mod on the Starsector Chinese Forum.

I will keep all the description and author information, and follow further update of this post.
Logged
Ordinary Player, maintainer and customer support of fossic.org.

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #66 on: July 19, 2020, 09:20:33 AM »

Wait, it wasn't there already? Of course you can, and you should!
Logged
 

jn_xyp

  • Ensign
  • *
  • Posts: 28
  • Ordinary Player, Fossic.org customer support
    • View Profile
    • Jn_xyp's Blog (In Chinese)
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #67 on: July 19, 2020, 09:59:39 AM »

Wait, it wasn't there already? Of course you can, and you should!

Actually it was there already, but we are now going through every reposts to check if there's proper authorization for reposting, and make sure the lib mod like this get updated in time  :D
Logged
Ordinary Player, maintainer and customer support of fossic.org.

Neitronus

  • Ensign
  • *
  • Posts: 32
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #68 on: September 23, 2020, 08:41:03 AM »

Is it possible to update to fix version checker issue? There's an issue with version file being unreacheble on bitbucket after recent bitbucket change AFAIK.
Logged

Stealthlake2305

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #69 on: October 01, 2020, 09:36:34 PM »

Tried to run it but it didn't work. The mods I have running are autosave 1.1bm, common radar 2.5b, lazylib 2.4f, Nexerelin 0.9.7b and they all work fine. Did I install it wrong?
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #70 on: October 02, 2020, 12:39:48 AM »

MagicLib doesn't do anything by itself. It's a toolbox to make other mods easier to code.
Logged
 

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: [0.9.1] MagicLib v0.30 (2021/02/11)
« Reply #71 on: February 11, 2021, 01:26:53 AM »


The main new feature of this update are the new MagicSettings classes that allow mods to very easily externalize settings and whitelists/blacklists into a shared modSettings.json file, facilitating coss-mods integration and inter-compatibility. See the wiki pages for more info on the new functions as well as some implementation use cases.

I would also like to direct the attention of modders toward this thread where I explain the intention behind these new functions.

 This update also fixes a few minor issues and add new "flickering" and "jittering" parameters to MagicRender.

This won't break any saves or mods.

Download available here
Logged
 

Drew Dubious

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.9.1] MagicLib v0.30 (2021/02/11)
« Reply #72 on: March 09, 2021, 06:08:15 AM »

Hello, I recently started trying out mods and I run into this message when I load up a game.

There is 1 mod that failed its update check

-Magiclib (v0.3.0rc4, failed to load master version file from URL"https://bitbucket.org/CodingTartifette/mag-iclib/downloads/magiclib.version")

Failed to retrieve latest Starsector version (SLLHandshakeException): -Current: Starsector 0.9.1a-RCB


Im hoping someone here can help me out or point me in the right direction. Thanks in advance!
Logged

Wispborne

  • Captain
  • ****
  • Posts: 400
  • Discord: wispborne
    • View Profile
Re: [0.9.1] MagicLib v0.30 (2021/02/11)
« Reply #73 on: March 09, 2021, 07:20:47 AM »

Hello, I recently started trying out mods and I run into this message when I load up a game.

There is 1 mod that failed its update check

-Magiclib (v0.3.0rc4, failed to load master version file from URL"https://bitbucket.org/CodingTartifette/mag-iclib/downloads/magiclib.version")

Failed to retrieve latest Starsector version (SLLHandshakeException): -Current: Starsector 0.9.1a-RCB


Im hoping someone here can help me out or point me in the right direction. Thanks in advance!

You can ignore that. It's simply saying that it was unable to automatically check to see if there was an update.
Assuming you downloaded the latest version, you're on the latest version and can ignore that message.
Logged
Mod: Persean Chronicles | Mod Manager: SMOL | Tool: VRAM Estimator | Tool: Forum+Discord Mod Database | If I'm inactive for 3 months, anyone can use any of my work for anything (except selling it or its derivatives).

Drew Dubious

  • Ensign
  • *
  • Posts: 3
    • View Profile
Re: [0.9.1] MagicLib v0.30 (2021/02/11)
« Reply #74 on: March 09, 2021, 07:57:58 AM »

Hello, I recently started trying out mods and I run into this message when I load up a game.

There is 1 mod that failed its update check

-Magiclib (v0.3.0rc4, failed to load master version file from URL"https://bitbucket.org/CodingTartifette/mag-iclib/downloads/magiclib.version")

Failed to retrieve latest Starsector version (SLLHandshakeException): -Current: Starsector 0.9.1a-RCB


Im hoping someone here can help me out or point me in the right direction. Thanks in advance!

You can ignore that. It's simply saying that it was unable to automatically check to see if there was an update.
Assuming you downloaded the latest version, you're on the latest version and can ignore that message.

Great, thanks for the response.
Logged
Pages: 1 ... 3 4 [5] 6 7 ... 12