Page 1 of 1

[PROGRAM] YSFlight Mission Utility

Posted: Wed Feb 12, 2014 2:02 am
by Schwarzwald
As mentioned in my Introduction post, several months ago I was working on a save file generator for YSFlight as part of my High School software class.

Over the past week I've been dusting it off, improving some of the code and giving is a face-lift.

I'm thoroughly pleased to say that as of last night, I have a (hopefully) fully working utility program that allows users extreme control over save file generation.

As of now, I am releasing this program to the YSFlight Community as an open source project currently hosted on SourceForge.

http://sourceforge.net/projects/ysflightmissionutility/

I coded it in Java for cross-compatibility and I've tested it on a Mac and a Windows computer. (I don't have Linux anymore).

I realise that Grigor made the first program of this sort which I discovered recently and I would like to emphasise that this program was not based off his original work and I any similarities are coincidental and unintended.

Please read the User guide accompanying the current version of the program as it outlines the installation instructions.

Also, any bugs you find, send me an email at (m.j.virgona[at]gmail.com) with the subject "YSFlightMU BUG", that way I can promptly address your concerns, similarly with any suggestions you have for improving it, send me an email with the subject "YSFlightMU SUGGESTION". I hope to release an update every month depending on whether improvement ideas keep coming in. Alternatively you can post on the forum but I am much more reliably contact via email.

Finally, the program may seem complex at first, the user guide should clear things up.

I hope you enjoy using it as much as I do.

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 3:35 am
by DD-Destroyer
Nice Stuff!!! Thank you very much

-- Tue Feb 11, 2014 11:35 pm --

BTW how can I use it?

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 4:43 am
by decaff_42
I couldn't open it on mac osx 10.6.8

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 4:53 am
by Gunny
Ditto for windows.

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 5:16 am
by Eric
Very impressive for a class project. For those of you that are unable to get it working, it depends on there being a directory called "ysflight" in the same folder as the .jar file.

For example, my YS install is located at "C:\Program Files (x86)\YSFHQ\YSFlight". I put the .jar file at "C:\Program Files (x86)\YSFHQ" and then launched it. That got it launched, but I ran into a NullPointerException on line 757.

Looking at line 757:

Code: Select all

		//Loading Maps
		File mapLoad = new File(path + "/scenery");
		String dir2[] = mapLoad.list();
		temp_index = 0;
		for (int i = 0; i < dir2.length; i++) //line 757
It appears that it was unable to find the scenery directory, since dir2 was supposed to be initialized with the .list() command on mapLoad, but "If this abstract pathname does not denote a directory, then this method returns null." (JavaDoc). That seems odd to me since it apparently loaded the aircraft directory (directly before loading scenery) without any errors occurring.

Schwarzwald, do you happen to have a Github account? I think it would be great if you could make a new repository with this inside, so (a) we can view the code easier, (b) it is easier to adopt changes from other developers, and (c) it has a pretty solid issue/bug-tracking tool. Plus I know many employers are impressed when they see applicants contributing to open source projects.

There are some things I want to address later concerning the overall architecture of the software, but right now I'm thrilled that you're contributing this much. I'm sure when we can fix up the small file reading issues it will work great. Thanks!

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 5:37 am
by Schwarzwald
Thanks Eric,

Please note that this is my first program in Java, and I'm more than willing to accept advice on improving it, I posted it as an OpenSource project precisely because there are many more people out there with far superior programming skills.

As regards to a GitHub account, it is unfortunate that I've never had occasion to utilise its vast array of usefulness.

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 7:12 am
by Gunny
I have absolutely no programing background at all.So I am no one to throw stones.Just want to say thanks. ;)

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 3:03 pm
by Bombcat
I was able to get it working last night, and there is clearly a good deal of potential here. I like that the program creates an actual .ysf file, as that makes sharing a combat scenario much simpler. I suspect that this could be particularly useful for map makers who wish to include simple missions alongside their maps, as a clear knowledge of the relative distance between map features could permit some interesting scenarios.

It's a little rough and finicky, but all in all, impressive work.

Re: YSFlight Mission Utility

Posted: Wed Feb 12, 2014 10:34 pm
by Schwarzwald
I tried to make it as low end as possible, without fancy graphics and in as small a window as possible (500x500) so that people with slower computers and smaller screens could still use it.

(oh and, at least I know it works in one other place :) )

Re: [PROGRAM] YSFlight Mission Utility

Posted: Sun Mar 27, 2016 8:39 am
by vmateen
Anybody able to get this working on MAC? SOunds awesome but I get an error everytime I load it up

Code: Select all

Exception in thread "main" java.lang.NullPointerException
	at YSFlightMU.<init>(YSFlightMU.java:169)
	at YSFlightMU.main(YSFlightMU.java:2507)

Re: [PROGRAM] YSFlight Mission Utility

Posted: Fri Sep 23, 2016 5:32 pm
by MobKillerYS
So, ive been trying to use your program and when i try to seleect my aircraft, it just shows blank. Can u help me with this?

Re: [PROGRAM] YSFlight Mission Utility

Posted: Sat Sep 24, 2016 7:17 am
by Midnight Rambler
MobKillerYS wrote:So, ive been trying to use your program and when i try to seleect my aircraft, it just shows blank. Can u help me with this?
Hi there! Is it possible for you to post a screenshot of the issue itself? Thanks!

Re: [PROGRAM] YSFlight Mission Utility

Posted: Sun Sep 25, 2016 3:20 pm
by MobKillerYS
https://gyazo.com/84952be71f647e43f6eb750f5215fcb8
Like no aircraft are appearing in the drop boxes

Re: [PROGRAM] YSFlight Mission Utility

Posted: Tue Sep 27, 2016 5:38 am
by Midnight Rambler
MobKillerYS wrote:https://gyazo.com/84952be71f647e43f6eb750f5215fcb8
Like no aircraft are appearing in the drop boxes
I've done some testing and ended up having the same problem. It loaded when I put the .jar in the YSFlight directory but would not load aircraft for me. So I have no real idea what's going on with it. Maybe some of our coding guru's could shed some light on it? :)

Re: [PROGRAM] YSFlight Mission Utility

Posted: Tue Sep 27, 2016 12:21 pm
by u2fly
Think, soon I will try rewright this program on Python with Tkinter.