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)

Author Topic: How do I force my bar event code to be run on every market?  (Read 353 times)

LngA7Gw

  • Lieutenant
  • **
  • Posts: 86
    • View Profile

I created a new bar mission by subclassing from HubMissionWithBarEvent and adding a line to bar_events.csv and the shouldShowAtMarket method has code to determine whether the mission is appropriate for this market at this time.  However my new plugin isn't even loaded on most markets I visit.

How do I ensure that the class run on every market?  As far as I can tell, it seems that the BarEventManager and BarCMD classes have their own logic to determine whether the plugin is even loaded or not.  I tried increasing the freq column in bar_events.csv and adding a priority tag but they were not sufficient.

I can always increase the bar event count but that affects every bar events.
Logged