Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flint doesn't get commodity price info from installed plugins. #8

Open
jmonty42 opened this issue Oct 5, 2022 · 2 comments
Open

Flint doesn't get commodity price info from installed plugins. #8

jmonty42 opened this issue Oct 5, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@jmonty42
Copy link

jmonty42 commented Oct 5, 2022

I'm using Discovery 4.91.0 and I noticed that Flint isn't aware of configurations set in installed plugins. For example, inspecting the base entity for LI09_08_base, it says the buy price of commodity_outcast is 10000. However, there is a server side plugin with a config file at EXE\flhook_plugins\prices.cfg that overrides that buy price for that station to 45000.

This can be easily reproduced with a local server running this version and checking in game that the station buys this commodity for the price in the prices.cfg file and not what Flint reports.

There's a lot of different files in the flhooks_plugins folder that I'm sure affect the game state that is likely not being picked up by Flint.

@biqqles
Copy link
Owner

biqqles commented Oct 11, 2022

Yes, I know of this issue. There are two ways it can be solved. One requires the cooperation of the server, specifically Alex would have to set up some method to allow programs to access to the server config (the local files that are installed in the plugins directory very much does not match it). The other way to do it is what FLCompanion does, and cleverly access the internal game structures to get exact price data. I worked on implementing this functionality in flair for a bit but don't remember how far I got (probably not very).

The code by which FLCompanion does the latter is here. In theory someone who is sufficiently motivated could pretty much translate that into Python code using flair (and my other library deconstruct to implement the structs) and it should™ work.

@jmonty42
Copy link
Author

Ah, my comment was mostly from the scenario of having access to the server side files like if you're running a private server. But for accessing information that you may not have direct access to as a client it would make sense to try to go the same route that FLCompanion does.

@biqqles biqqles added the enhancement New feature or request label Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants