[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 »

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: 323
Joined: Tue May 22, 2012 11:45 pm
Favorite Aircraft: FA-50 Golden Eagle
Location: Seoul
OS: Windows
Has thanked: 4 times
Been thanked: 165 times
Contact:

Re: YSFlight Mission Utility

Post by DD-Destroyer »

Nice Stuff!!! Thank you very much

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

BTW how can I use it?
User avatar
decaff_42
Staff
Staff
Posts: 3838
Joined: Sat Oct 29, 2011 7:23 pm
Favorite Aircraft: SR-71 Blackbird
Location: Eastern United States
OS: Mac OSX
Has thanked: 844 times
Been thanked: 1726 times
Contact:

Re: YSFlight Mission Utility

Post by decaff_42 »

I couldn't open it on mac osx 10.6.8
Check out my website YSDecaff for all my tutorials and addon releases.
Visit my GitHub page for Python codes: https://github.com/decaff42?tab=repositories

YSFlight Addon Database - Find links to nearly every addon made for YSFlight!
Submit Addon To Database
User avatar
Gunny
Business Class Membership
Business Class Membership
Posts: 3250
Joined: Sun Feb 06, 2011 6:17 pm
Favorite Aircraft: Any thing with a prop.
Location: New Iberia.LA.
OS: Windows 10 & XP SP3
Has thanked: 586 times
Been thanked: 786 times

Re: YSFlight Mission Utility

Post by Gunny »

Ditto for windows.
Image[/align=centre]
User avatar
Eric
Senior Veteran
Senior Veteran
Posts: 1547
Joined: Thu Feb 10, 2011 5:30 am
Favorite Aircraft: Super Hornet
Location: Chicago, Illinois
Has thanked: 61 times
Been thanked: 166 times
Contact:

Re: YSFlight Mission Utility

Post 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!
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 »

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: 3250
Joined: Sun Feb 06, 2011 6:17 pm
Favorite Aircraft: Any thing with a prop.
Location: New Iberia.LA.
OS: Windows 10 & XP SP3
Has thanked: 586 times
Been thanked: 786 times

Re: YSFlight Mission Utility

Post by Gunny »

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
Staff
Staff
Posts: 935
Joined: Thu Feb 03, 2011 3:08 am
Favorite Aircraft: F-14D Tomcat
Location: Virginia
OS: Windows 7
Has thanked: 139 times
Been thanked: 139 times
Contact:

Re: YSFlight Mission Utility

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

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: 27
Joined: Sat Mar 26, 2016 8:17 pm
Favorite Aircraft: A-10
OS: Mac
Has thanked: 35 times
Been thanked: 5 times

Re: [PROGRAM] YSFlight Mission Utility

Post 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)
MobKillerYS
Newbie
Newbie
Posts: 2
Joined: Fri Sep 23, 2016 5:30 pm
Favorite Aircraft: F-14
Location: Hopefully out of SAM range
OS: Windows

Re: [PROGRAM] YSFlight Mission Utility

Post 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?
User avatar
Midnight Rambler
Staff
Staff
Posts: 2136
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 11
Has thanked: 267 times
Been thanked: 374 times

Re: [PROGRAM] YSFlight Mission Utility

Post 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!
Image
MobKillerYS
Newbie
Newbie
Posts: 2
Joined: Fri Sep 23, 2016 5:30 pm
Favorite Aircraft: F-14
Location: Hopefully out of SAM range
OS: Windows

Re: [PROGRAM] YSFlight Mission Utility

Post by MobKillerYS »

https://gyazo.com/84952be71f647e43f6eb750f5215fcb8
Like no aircraft are appearing in the drop boxes
User avatar
Midnight Rambler
Staff
Staff
Posts: 2136
Joined: Thu Feb 10, 2011 11:08 pm
Favorite Aircraft: F-16
Location: Australia
OS: Windows 11
Has thanked: 267 times
Been thanked: 374 times

Re: [PROGRAM] YSFlight Mission Utility

Post 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? :)
Image
User avatar
u2fly
Senior Veteran
Senior Veteran
Posts: 1485
Joined: Fri Oct 02, 2015 9:27 am
Favorite Aircraft: Antonov An-225 Mriya
Location: Ukraine
OS: Linux
Has thanked: 1051 times
Been thanked: 339 times

Re: [PROGRAM] YSFlight Mission Utility

Post by u2fly »

Think, soon I will try rewright this program on Python with Tkinter.

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”

pic.twitter.com/vkz0gdozVV [archived]
(31 DEC 2016)
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests