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)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Matsor Browncoat

Pages: [1]
1
Modding / [OptionPanelAPI] setTooltip issue?
« on: February 06, 2020, 09:37:36 AM »
I have the following code snippet, where opts is OptionPanelAPI in a PaginatedOptions.

Code
val testellino = listOf(1.0, 2.0, 3.0, 4.0, 5.0, 10.0, 13.0) // Doesn't matter

opts.clearOptions()

opts.addOption("Save", "ShabroConfigurationsBack", "Save the Princess")
opts.setShortcut("ShabroConfigurationsBack", Keyboard.KEY_ESCAPE, false, false, false, true)

opts.addSelector("Testellone", "Testellone", Color.RED, 256f, 48f, 1f, testellino.size - 1f, ValueDisplayMode.NONE, "Quantity: 1")
opts.setSelectorValue("Testellone", 1f)

opts.setTooltip("Testellone", "Testellone of Quantity") // This doesn't do anything
opts.setTooltip("ShabroConfigurationsBack", "TESTELLONE MAGGICO") // This works as expected

In the snippet above, the first setTooltip (applied on a Selector) doesn't change its tooltip while the second setTooltip (applied on an Option) changes it correctly.

I'm wondering if maybe I'm doing something wrong?

2
Mods / [0.9.1a] Shadowy Broker (v0.3.6 - 2020/03/08)
« on: February 04, 2020, 01:27:41 PM »
Shadowy Broker


Download Link v0.3.6
Requires LazyLib


This small mod adds an interaction option to contact the Shadowy Broker, a mysterious and cocky hacker-turned-financial-advisor that might just help you find profitable trade routes, for a small fee. A smooth and seamless experience, 60% of the time it works every time.

Compatibility
I'm confident you can add and remove the mod without any worry and it shouldn't conflict with any other mod.

Functional Details
Spoiler
You can contact the Shadowy Broker from a new option when interacting with markets.



Upon activation of the "Market Analysis" the Broker will return (or not, it depends heavily on market conditions and finances) the most profitable trade available to you between planets considering your available finances, available commodities, deficit and excess stockpiles on various markets. It's basically an automatic way to look at the resource breakdowns for a small fee. The result looks something like this:



The mod currently sports very basic configurability of the request you can make of the Broker. You can tell him how much cargo to simulate and what percentage of your credits you are willing to invest for the trade (excluding his 5000 credit fee, of course).


[close]

Current Plans
- Withdrawal (cashflow conversion) expenses, still at the planning stage
- New option: Loans
- More trade-specific utilities as they become apparent

Changelog
Spoiler
v0.3.6 - Maximum Travel - 2020/03/08
- The broker is now allowing customers to set their desired "maximum travel distance" so that they can better manage their time investment into profitable trades. This applies to both general market analysis and specific cargo offloads.
- Moved some configuration infrastructure around, some configuration options will have to be reset.

v0.3.2 - 2020/02/17
- Fixed a bug in bank withdrawal. Funds are still in the account, and you can now withdraw them.
- Fixed a bug in supply price and availability analysis for trade routes.
- Reduced wait time for new Broker trade interactions to 3 days (down from 7).
- Deposit interests will now follow the ebb and flow of economic growth, but the Broker will keep an eye on these and slash them if they get too much out of control.

v0.3.1 - In the interest of Banking - 2020/02/12
- The Shadowy Broker is now offering baseline 2% interest (compounded monthly) on credits deposited at his terminals. (i.e. an extremely rudimentary bank system)
- Also he can tell you when his systems are in need of an update. (i.e. Version Checker support)
- Fixed several bugs

v0.2.7 - 2020/02/09
- The Mainframe is now able to take into account tariffs for the units of cargo that have to be bought from tariffed Open Markets.
- The Broker now allows clients to specify an approach type to their trade runs (Lawful or Lawless) to filter out specific markets and commodity availabilities depending on the transponder stance they wish to keep.
- Squashed a couple big bugs.

v0.2.0 - 2020/02/07
- New Feature: The Broker has access to new software on the mainframe and can now help you find the best market to sell the unwanted commodities gathering dust in your cargo. For an even greater fee, of course.
- Streamlined some interactions

v0.1.5 - 2020/02/05
- Refactoring of the central calculation logic
- Some optimisations

v0.1.3 - 2020/02/04
- First Public Release
[close]

Pages: [1]