Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Who's Online
12 user(s) are online (6 user(s) are browsing Forum)

Members: 1
Guests: 11

Anubis, more...
Collapse/Expand Donations
Please make a donation if you want to help keeping The-Starport online:
Collapse/Expand Advertisement
There are currently 265 users playing Freelancer on 98 servers.
September. 10, 2010


Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

« 1 (2)


Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
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..



Posted on: 2/7 1:50
Report Top
Re: Freelancer Best Profit Calc
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 2134
Offline
Quote:

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,

Quote:

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

Posted on: 2/7 1:50
"If you spend more on coffee than on IT security, then you will be hacked. What's more, you deserve to be hacked."
-Richard A. Clarke
Report Top
Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
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...



Posted on: 2/7 1:53
Report Top
Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
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 lol

high 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


Posted on: 2/7 1:57
Report Top
Re: Freelancer Best Profit Calc
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 739
Offline
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...

Posted on: 2/7 2:11
Report Top
Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
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


Posted on: 2/7 2:26

Edited by SirTwitch on 2010/2/7 2:32:34
Edited by SirTwitch on 2010/2/7 2:33:13
Report Top
Re: Freelancer Best Profit Calc
Just can't stay away
Joined:
11/30 19:02
Group:
Registered Users
Posts: 246
Offline
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.

Posted on: 2/7 8:45
Report Top
Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
select any system to any system and you got it ... me too man it bugged me too

Posted on: 2/7 13:23
Report Top
Re: Freelancer Best Profit Calc
Just popping in
Joined:
2/6 19:47
Group:
Registered Users
Posts: 14
Offline
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

Posted on: 2/7 13:30
Report Top
Re: Freelancer Best Profit Calc
Just can't stay away
Joined:
2008/8/21 4:48
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Posts: 326
Offline
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.

Posted on: 2/8 11:06
Report Top
« 1 (2)