Freelancer Best Profit Calc
-
For the traders out there i have a new app that i wrote that i need some beta testing on… its called freelancer best profit calc.
what it does:
processes all the datafiles having to do with systems bases commodities etc and lists and sorts all possible trade routes in the game.lets you lay out multiple stop routes and dump pretty data to a csv (aka excel spreadsheet) file if you want that kind of kinky number crunching like me lol
i am using it on discovery currently but it should work on any version.
i need some people to try it out and make sure i didnt forget anything or if they can think of some more features that it could use etc… and find bugs lol.
**ONLY TESTED ON FL DISCOVERY MOD SO FAR **
** DOES NOT USE THE DYNAMIC ECON ––yet **-------------------- Known Bugs-------------
the path browse button is broken ( it does that on initial startup now but i will change that so you can switch installs or mods etc(any system) - Specific system hasn’t been coded yet just a matter of copy pasting but i haven’t done it yet the code for generating the routes is ugly currently lol
-------------------- info ------------------
it saves the chosen freelancer path entry in HKEY_LOCAL_MACHINE\Software\flbpc
in the registry -
I’m getting this error when I try to load the program:
"Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Could not find a part of the path 'C:**Program Files (x86)**\Microsoft Games\Freelancer\IONCROSS\GAMEDATA_systems.txt".
I know what’s wrong with this path as well - you see, for me, the path should be:
“C:*Program Files*\Microsoft Games\Freelancer*Discovery*\IONCROSS\GAMEDATA_systems.txt”.
I think you should get this path out of the registry.
When I click Continue, I have the program, but with no information about commodities or bases.
Also, some servers - like the official Discovery ones - use a semi-dynamic economy, and hence have to modify the client’s memory - but your tool only seems to get the info from the files.
So, if Freelancer is running, can you have it simply pull the current prices out of memory?
-
yea my girlfriend just got that one doh … lol fixing it now just bear with me hehe the stupid bugs will be the quickest to fix lol
i was up all night working on it so i am a little delirious
going to add some error checking (omg noooo) and save the path to the reg
-
save the path to the reg
You misunderstand me - I mean that you should get the path FROM the registry.
My Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Freelancer\1.0\AppPath
EDIT: Argh, I just got ninja’d.
2ND EDIT: Still getting the same error. -
the dynamic economy stuff i am not sure how the discovery people or alot of the traders would look at that i dont want them to burn my house down but i havent decided aginst it just figured i would get this working for now then move on if the fancy or response is good. i mainly play on my own server with a couple of my friends and gf. so that is the why behind it…
-
It’s still not getting information from my registry - now it’s looking in:
C:\Program Files\Microsoft Games\Freelancer\IONCROSS\
When, by my registry, it should be going to:
C:\Program Files\Microsoft Games\Freelancer\Discovery\IONCROSS\
I can’t understand the Dynamic Economy bit - I’m not going to argue with you unless you decide to not add the feature to check the actual current dynamic prices.
-
Just out of curiosity, why are you using the Ioncross gamedata files? You’re severely limiting your tool’s usefulness as most mods do not share such files in the public mod versions they release.
-
Um, have you seen Freelancer Companion?
-
^^ U sir win the Xarian award for “i was waiting for that”… ^^
FLC can’t output a CSV though… this intrigues me… especially the dynamic econ stuff… will test against FLC and see what else i can find
-
Okay, so when I load it up first time I still get he error - It is STILL not getting the path from the Freelancer registry!
So I have to use the browse box and edit it, restart the program.
Now I can get it to work - however, if (Any System) is in one of your drop-down boxes, it only returns one result.
I also prefer the way FLCompanion has been laid out - you select a system, then a base in that system, and it gets all the routes that start from that base.
EDIT: What’s this about ‘gimped’ to purposely not show certain routes!?
-
yes currently only shows the best profit run the highest i am working on having it show the top X num of routes but wanted to get some feedback on it first. i was thinking about adding a range field so if i did that i would want to be able to have the top X profit wise or distance wise but that will have to come after i get all the crap ironed out and see what everyone wants the most…
-
SirTwitch wrote:
i run straight fl with discovery and this is they way everything is layed out on mine so i am going from there.Well in that case,
SirTwitch wrote:
i am using it on discovery currently but it should work on any version.Is false. I know only of Discovery to share Ioncross gamedata files (of course there may be others, I haven’t checked all mods out there). You should really consider using INIs instead, safer bet
-
like i said earlier the only ioncross files used are the conversion from the internal names to display names like RH06_01_BASE = Planet Blah i have yet to find where that info is listed elsewhere but i am sure its in a file somewhere that i can decrypt just havent got there yet… but i will if there is a demand for it if people like it etc…
-
Alex as far as source goes its 99% parsing ini files and 1 % nasty data moving and comparing
example :
generate all trade routes that have a profit of 1 or better credit
then search through for the ones we want lolhigh tech i know lol its all written in c# so its easy … but let me clean up the code a bit more and like you said get the bugs ironed out then we can talk about that. but i am definatly an open source kinda guy and all … LINUX RULES or whatever
-
I have C++ code that parses the ini and resource files to extract the names. Don’t know how well it would translate to C#. Alternatively, you could just read the database CreateID generates. Check my site - in particular, CreateID (generates the database), WhatIs (searches the database) and JFLT (library that handles the scanning and database). Or even just share the source and let me write it…