Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

***Program*** Freelancer Trading Helper

The general place to discuss MOD''ing Freelancer!

Post Thu Mar 13, 2003 12:59 am

***Program*** Freelancer Trading Helper

I've just completed an early verision of my Freelancer program "Freelancer Trading Helper". It computes trade routes based on your selections and the data in goods.ini and market_commodities.ini.

here it is

Note: It's written in Java (I haven't got a clue as how to make a GUI in C/C++), so you'll need at least JRE 1.4 installed (or the full SDK). GO to the download page for J2SE 1.4.1 and from there select the JRE or SDK

Edit: Version 0.2 is up. The only difference is that I included my own decompressor so you don't have to decompress the files yourself, however it still works if you decompress them with another program

Edit: Version 0.25 is now up. I've added a text field for specifying your current amount of credits

Edit: Version 0.7 is now up. There are several improvements from 0.25, see the readme for details

Edited by - Chaldan on 14-03-2003 11:51:14

Edited by - Chaldan on 14-03-2003 13:05:55

Edited by - Chaldan on 19-03-2003 10:37:19

Post Thu Mar 13, 2003 1:29 am

that might just be usefull at some point

Post Thu Mar 13, 2003 3:56 am

Nice program!

Post Thu Mar 13, 2003 9:43 am

im getting an error about loading goods.ini

and yes i decompressed it....any clue what the error is....i used bini to decompress...

Post Thu Mar 13, 2003 10:13 am

Well, you need to backup your original goods.ini and market_commodities.ini and rename the uncompressed goods.ini.txt to goods.ini and market_commodities.ini.txt to market_commodities.ini. I'll probably make a change to the program so that it checks for the .txt-files as well (or include a decompressor so that this step is not necessary at all)

Dai

Post Thu Mar 13, 2003 7:53 pm

i used bini to decompress the inis and renamed them to ini like you said. the program still gives me an error opening them so i can't use it =/

Post Thu Mar 13, 2003 9:21 pm

Exactly what does the error say? I need to know, so I can locate it in my code.

If it says "Error opening goods.ini" check these things:
-Make sure the uncompressed goods.ini is in the DATA/EQUIPMENT/ directory
-Make sure that the fltrader.jar is the same directory as the DATA, DLLS and EXE folders

Edited by - Chaldan on 13-03-2003 21:36:05

Post Thu Mar 13, 2003 10:10 pm

This is by no means a complaint. In fact, once I actually read the instructions and got it working, this was possibly the most useful 3rd party program I could think of for Freelancer! I applaud you for your hard work!

If I may impose enough to make a request: Is it possible to add in addition to the "specify desired profit" field in the trade routes tab, a field with the amount of money you can spend (spending limit) field? I have no clue if this fits in with your sceme, so I apologize if it doesn't!

Otherwise, this is a GREAT tool! Well done!!!!

Post Thu Mar 13, 2003 11:06 pm

This is a great utility. Now I dont know if this is possible but if you could work out something to do with the time it takes to run routes because even though this route:

Optronics: Planet Honshu (Honshu) => Planet Cambridge (Cambridge)
$1189 profit per unit ($326975 profit total)
Luxury Food: Planet Cambridge (Cambridge) => Planet Honshu (Honshu)
$1200 profit per unit ($330000 profit total)

Is the most Profitable over all, this trade rout:

Cardamine: Yanagi Depot (Sigma-13) => Planet New Berlin (New Berlin)
$840 profit per unit ($231000 profit total)
Engine Components: Planet New Berlin (New Berlin) => Yanagi Depot (Sigma-13)
$299 profit per unit ($82225 profit total)

Is the most profitable per time. This run takes around 5 min. Still it is proably a longshot and the program is great.

No Blood For Oil

Post Fri Mar 14, 2003 1:12 am

I also discovered that file extensions in Windows need to be turned on in order to rename the uncompressed goods.ini and market_commodities.ini . Also, make sure that the original goods.ini and market_commodities.ini files are removed from the directory. Took me a while to figure that out...heh.

The program works great for me now. Just thought I'd pass that along.

Wallace

Post Fri Mar 14, 2003 1:12 am

I can't get it to run

I'm running on XP Professional with JRE 1.2 installed.

I've decompressed goods.ini and market_commotities.ini using BinQ and renamed them back to [name.ini.

I've placed a copy of fltrader.jar in the Freelancer directory (along side DATA, EXE etc.) and run the app using the command line:

java -jar fltrader.jar

Here's there error I get;

C:\Program Files\Microsoft Games\Freelancer>java -jar fltrader.jar
Exception in thread "main" java.lang.IllegalArgumentException: invalid range pro
perties
at javax.swing.DefaultBoundedRangeModel.<init>(Unknown Source)
at javax.swing.JSlider.<init>(Unknown Source)
at javax.swing.JSlider.<init>(Unknown Source)
at GUI.TradingGUI.createTradePanel(TradingGUI.java:212)
at GUI.TradingGUI.<init>(TradingGUI.java:46)
at fltrader.main(fltrader.java:8)

Any ideas?

--
Hurg

Post Fri Mar 14, 2003 1:16 am

Hurg, try right-clicking on the fltrader.jar file and opening it directly.

Wallace


Edited by - Blyre on 14-03-2003 01:16:40

Post Fri Mar 14, 2003 1:21 am

Oo, real-time. I'll try it now.

--
Hurg

Post Fri Mar 14, 2003 1:26 am

I've fixed it! The problem only happens with JRE 1.2. I've just installed JRE 1.4.1 and it works perfectly now.

Thanks me.

--
hurg

Post Fri Mar 14, 2003 1:53 am

got it working...i had it in the data directory...not the freelancer directory...now...would it be possible to get a version of this that could list all possible trade routes with a positive profit based on the system/base selection...instead of just 1 or 2 routes...and not have a required profit field....say for example i want all the positive profit routes in the new york system only...would be great...i dont know how to edit java stuff or i would make the changes myself

Return to Freelancer General Editing Forum