Giter Site home page Giter Site logo

flashpointenabler's Introduction

FlashpointEnabler

Activates features of FPs

Requirements

Features

  • Activates the repeatable flag on FlashpointDefs.
  • Can randomize Planets for all flashpoints.
  • Can make all flashpoints repeatable.
  • Adds new Tags to create Flashpoints.

New Tags

  • {RANDOM} | Use for employer or target to generate a random faction as those.
  • {PLANETOWNER} | Use for employer or target to use current planet owner as the faction selected.
  • empty "value" field select random map.

Download

Downloads can be found on github.

Settings

Setting Type Default Description
randomPlanet bool default false Makes ALL flashpoints go to random planets.
debugAllRepeat bool default false Makes ALL flashpoints repeatable.(This will be removed later, when we figure out how to set the flag in existing flashpoints done by HBS)

Install

  • After installing BTML and ModTek, put everything into \BATTLETECH\Mods\ folder.
  • If you want different settings set it in the settings.json.
  • Start the game.

flashpointenabler's People

Contributors

morphyum avatar

Watchers

 avatar  avatar

flashpointenabler's Issues

Exception with Battletech 1.9

System.Exception: Exception from HarmonyInstance "de.morphyum.FlashpointEnabler" ---> System.Exception: Parameter "useInitial" not found in method BattleTech.SimGameState.GenerateFlashpoint(System.String, System.String, System.Boolean)
at Harmony.MethodPatcher.EmitCallParameter (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Reflection.MethodInfo patch, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Boolean allowFirsParamPassthrough) [0x00490] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.MethodPatcher+<>c__DisplayClass19_0.<AddPrefixes>b__0 (System.Reflection.MethodInfo fix) [0x00001] in <1b23547042994e96b8b6361dbe3791d9>:0 at System.Collections.Generic.List1[T].ForEach (System.Action1[T] action) [0x00024] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 at Harmony.MethodPatcher.AddPrefixes (System.Reflection.Emit.ILGenerator il, System.Reflection.MethodBase original, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.Dictionary2[TKey,TValue] variables, System.Reflection.Emit.Label label) [0x0002b] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x00123] in <1b23547042994e96b8b6361dbe3791d9>:0
--- End of inner exception stack trace ---
at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x0030d] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00028] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.PatchProcessor.Patch () [0x000d8] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x0002c] in <1b23547042994e96b8b6361dbe3791d9>:0 at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[T] action) [0x0001b] in <1b23547042994e96b8b6361dbe3791d9>:0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00007] in <1b23547042994e96b8b6361dbe3791d9>:0
at RepeatableFlashpoints.FlashpointEnabler.Init (System.String directory, System.String settingsJSON) [0x00013] in <9af056f6a2bc46068528ef2488fcadc1>:0

Exception with BattleTech 1.7

Message :Exception from HarmonyInstance "de.morphyum.FlashpointEnabler"

StackTrace : at Harmony.MethodPatcher.CreatePatchedMethod (System.Reflection.MethodBase original, System.String harmonyInstanceID, System.Collections.Generic.List1[T] prefixes, System.Collections.Generic.List1[T] postfixes, System.Collections.Generic.List1[T] transpilers) [0x00310] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, Harmony.PatchInfo patchInfo, System.String instanceID) [0x00028] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.PatchProcessor.Patch () [0x000e4] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.HarmonyInstance.<PatchAll>b__9_0 (System.Type type) [0x0002c] in <ef472ad41f4948fdb52674edfe069979>:0 at Harmony.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable1[T] sequence, System.Action`1[T] action) [0x0001b] in :0
at Harmony.HarmonyInstance.PatchAll (System.Reflection.Assembly assembly) [0x00007] in :0
at RepeatableFlashpoints.FlashpointEnabler.Init (System.String directory, System.String settingsJSON) [0x00013] in <9af056f6a2bc46068528ef2488fcadc1>:0
Date :06.10.2019 20:02:45

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.