Freelancer Best Profit Calc
-
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…
-
awesome i know c++ as well so porting it wouldnt be bad i would love to get a nother guy or 2 that code as well that would make it a bit easier but you really dont want to see this code yet lol … 13 hours of extra black coffee no sleep and oragel (for my toothache) lol .0001% error checking and ugly stuff like
for(int jk=0;jk <=traderoutecount; jk++)
{
int bob= 0; // lol seriously
}the jk var was due to me running out of single char ones lol
ohh and dont forget the misuse of public elements in structs and
the temp1-1000000 variables
-
There’s one problem I STILL see with apps like these, and that’s…
Ok, you can see the best routes from one system to another, but what if you, say, want to see the best route in the mod?
I’ve never seen this feature in Freelancer Companion and I must say, it bugs me like hell.
-
defiantly want to add a range feature even if its simple like adding a column called range so you can sort by how many systems away it is and i remember seeing a file that had connection in it so i think i will work on that and showing the best 20 or so runs when any system is selected today.
but if anyone has a good algorithm for finding a simple best path i can hack up for it that would save me a headache i am sure lol
-
You could use the C# code from DAM to parse the names, etc. It’s all done for you and loaded into a DataSet ready to display. The parser also is pretty much guaranteed to work with discovery because I wrote it for it. You can find the DAM source code on the starport-forge project page.