[PROGRAM] YSFlight Mission Utility

Note that alterations to the YSFlight .EXE is forbidden
Post Reply
Schwarzwald
Newbie
Newbie
Posts: 26
Joined: Sun Feb 02, 2014 7:44 am
Favorite Aircraft: ATR-72
Has thanked: 4 times
Been thanked: 5 times

[PROGRAM] YSFlight Mission Utility

Post by Schwarzwald » Wed Feb 12, 2014 2:02 am

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.
Last edited by Scarecrow on Mon Jun 02, 2014 8:12 pm, edited 2 times in total.
Reason: removed mailto: link to avoid spambots

User avatar
DD-Destroyer
Contributor
Contributor
Posts: 308
Joined: Tue May 22, 2012 11:45 pm
Favorite Aircraft: FA-50 Golden Eagle
Location: Seoul
OS: Windows
Has thanked: 3 times
Been thanked: 148 times
Contact:

Re: YSFlight Mission Utility

Post by DD-Destroyer » Wed Feb 12, 2014 3:35 am

Nice Stuff!!! Thank you very much

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

BTW how can I use it?

User avatar
decaff_42
First Class Membership
First Class Membership
Posts: 3388
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 519 times
Been thanked: 1167 times
Contact:

Re: YSFlight Mission Utility

Post by decaff_42 » Wed Feb 12, 2014 4:43 am

I couldn't open it on mac osx 10.6.8
Check out my website YSDecaff for all my tutorials and addon releases.
Visit by Bitbucket page for Python codes: https://bitbucket.org/decaff42/

Feel free to ask me a question! I'll try to answer it as well as I can or recommend a more knowledgeable member if necessary.

User avatar
Gunny
Business Class Membership
Business Class Membership
Posts: 3182
Joined: Sun Feb 06, 2011 6:17 pm
Favorite Aircraft: Any thing with a prop.
Location: New Iberia.LA.
OS: Windows XP SP3
Has thanked: 538 times
Been thanked: 675 times

Re: YSFlight Mission Utility

Post by Gunny » Wed Feb 12, 2014 4:53 am

Ditto for windows.
Image[/align=centre]

User avatar
Eric
Senior Veteran
Senior Veteran
Posts: 1516
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 59 times
Been thanked: 155 times
Contact:

Re: YSFlight Mission Utility

Post by Eric » Wed Feb 12, 2014 5:16 am

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!
I make this website.

Schwarzwald
Newbie
Newbie
Posts: 26
Joined: Sun Feb 02, 2014 7:44 am
Favorite Aircraft: ATR-72
Has thanked: 4 times
Been thanked: 5 times

Re: YSFlight Mission Utility

Post by Schwarzwald » Wed Feb 12, 2014 5:37 am

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.

User avatar
Gunny
Business Class Membership
Business Class Membership
Posts: 3182
Joined: Sun Feb 06, 2011 6:17 pm
Favorite Aircraft: Any thing with a prop.
Location: New Iberia.LA.
OS: Windows XP SP3
Has thanked: 538 times
Been thanked: 675 times

Re: YSFlight Mission Utility

Post by Gunny » Wed Feb 12, 2014 7:12 am

I have absolutely no programing background at all.So I am no one to throw stones.Just want to say thanks. ;)
Image[/align=centre]

User avatar
Bombcat
CVW-171
CVW-171
Posts: 925
Joined: Thu Feb 03, 2011 3:08 am
Favorite Aircraft: F-14D Tomcat
Location: Virginia
OS: Windows 7
Has thanked: 137 times
Been thanked: 136 times
Contact:

Re: YSFlight Mission Utility

Post by Bombcat » Wed Feb 12, 2014 3:03 pm

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.
[CAG171]Bombcat, Commander, Air Wing 171
Team Awesome # 23
Former YSFHQ administrator.

Schwarzwald
Newbie
Newbie
Posts: 26
Joined: Sun Feb 02, 2014 7:44 am
Favorite Aircraft: ATR-72
Has thanked: 4 times
Been thanked: 5 times

Re: YSFlight Mission Utility

Post by Schwarzwald » Wed Feb 12, 2014 10:34 pm

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 :) )

vmateen
Newbie
Newbie
Posts: 17
Joined: Sat Mar 26, 2016 8:17 pm
Favorite Aircraft: A-10
OS: Mac
Has thanked: 20 times
Been thanked: 2 times

Re: [PROGRAM] YSFlight Mission Utility

Post by vmateen » Sun Mar 27, 2016 8:39 am

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)

MobKillerYS
Newbie
Newbie
Posts: 2
Joined: Fri Sep 23, 2016 5:30 pm
Favorite Aircraft: F-14
OS: Windows

Re: [PROGRAM] YSFlight Mission Utility

Post by MobKillerYS » Fri Sep 23, 2016 5:32 pm

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?

User avatar
Midnight Rambler
Senior Veteran
Senior Veteran
Posts: 2109
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 10
Has thanked: 258 times
Been thanked: 355 times

Re: [PROGRAM] YSFlight Mission Utility

Post by Midnight Rambler » Sat Sep 24, 2016 7:17 am

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!
Image

MobKillerYS
Newbie
Newbie
Posts: 2
Joined: Fri Sep 23, 2016 5:30 pm
Favorite Aircraft: F-14
OS: Windows

Re: [PROGRAM] YSFlight Mission Utility

Post by MobKillerYS » Sun Sep 25, 2016 3:20 pm

https://gyazo.com/84952be71f647e43f6eb750f5215fcb8
Like no aircraft are appearing in the drop boxes

User avatar
Midnight Rambler
Senior Veteran
Senior Veteran
Posts: 2109
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 10
Has thanked: 258 times
Been thanked: 355 times

Re: [PROGRAM] YSFlight Mission Utility

Post by Midnight Rambler » Tue Sep 27, 2016 5:38 am

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? :)
Image

User avatar
u2fly
Veteran
Veteran
Posts: 1165
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 647 times
Been thanked: 261 times
Contact:

Re: [PROGRAM] YSFlight Mission Utility

Post by u2fly » Tue Sep 27, 2016 12:21 pm

Think, soon I will try rewright this program on Python with Tkinter.
/!\ READ YSFLIGHT HANDBOOK (.PDF) | updated 2017/05/03

U.S. Senator John McCain wrote:
“Spending #NewYearsEve w/ brave #Ukrainian Marines at a forward combat outpost - we stand w/ them in their fight against #Putin's aggression”
http://pic.twitter.com/vkz0gdozVV
(31 DEC 2016)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest