Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Personal Contacts (08/13/20)

Pages: 1 ... 3 4 [5]

Author Topic: [0.9.1] MagicLib v0.29 (2020/04/26)  (Read 138711 times)

Professor Pinkie

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

Can anyone tell me any mod using MagicIncompatibleHullmod?

I want to see how it should work.
Logged

Cabbs

  • Ensign
  • *
  • Posts: 24
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #61 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 #62 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: 1714
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #63 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: 1445
  • Megalith Dreadnought - Archean Order
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #64 on: July 07, 2020, 01:44:41 PM »

I did as well.  :P
Logged

Titann

  • Commander
  • ***
  • Posts: 107
    • View Profile
    • Email
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #65 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: 25
  • Ordinary Player, Java / Python Beginner.
    • View Profile
    • Jn_xyp's Blog (In Chinese)
    • Email
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #66 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, Java / Python Beginner.
Github: https://github.com/jnxyp/

Tartiflette

  • Admiral
  • *****
  • Posts: 2977
  • Toss a coin to your Modder, O' valley of plenty
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #67 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: 25
  • Ordinary Player, Java / Python Beginner.
    • View Profile
    • Jn_xyp's Blog (In Chinese)
    • Email
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #68 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, Java / Python Beginner.
Github: https://github.com/jnxyp/

Neitronus

  • Ensign
  • *
  • Posts: 21
    • View Profile
Re: [0.9.1] MagicLib v0.29 (2020/04/26)
« Reply #69 on: Today at 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
Pages: 1 ... 3 4 [5]