Upcoming Games

(UTC times)


Full list
Add a game

Upcoming Events

No events to display

The Fiddle Yard - Program enumeration

You are here: Home > Forum > General > General questions, comments, and issues > The Fiddle Yard - Program enumeration

Page 1 of 1

The Fiddle Yard - Program enumeration 30/03/2012 at 14:46 #31072
MrSuttonmann
Avatar
265 posts
Hi there guys, I need your help.

I've decided to re-write The Fiddle Yard, and I have completely redesigned the way the program finds SimSig programs on the local computer.

I need you guys to go through your SimSig installation folder (usually "C:/Program Files/SimSig", or on 64bit "C:/Program Files(x84)/SimSig"and list the filenames of the simulations.

That's to say, if you have Kings Cross installed, I require "kingsx.exe".

Thanks for your help, and I'll ensure that your username/fullname (whichever you prefer) goes into the credits of the program.

(Formerly known as manadude2)
Log in to reply
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 16:19 #31076
MJD
Avatar
149 posts
My Simsig programs are on F:/SimSig
Will the new prog be able to find them.
Bristol.exe
Cambridge.exe
Croydon.exe
Cscot>exe
Derby.exe
Edinburgh.exe
Euston.exe
Exeter.exe
Gloucester.exe
KingsX.exe
Lime_St.exe
London_Bridge.exe
NEScot.exe
Nll.exe
Peterbrough.exe
Saltley.exe
Sheffield.exe
South_Humberside.exe
Southhampton.exe
Trent.exe
Waterloo.exe
WembleySub.exe
Westbury.exe
Worksop.exe

Are the sims I have installed.

Mike.
Last edited: 30/03/2012 at 16:36 by MJD
Log in to reply
The following users said thank you: northroad, MrSuttonmann
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 16:30 #31077
MrSuttonmann
Avatar
265 posts
Hi MJD,

Yes, if you have installed the simulations then the program will be able to find them.

The program will not be able to find non-installed simulations, such as previews or developer versions, or the installation packages for simulations.

(Formerly known as manadude2)
Log in to reply
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 16:48 #31078
Sacro
Avatar
1171 posts
Online
If you're going to have a hardcoded list then why can it only have installed sims?

If you're going to use installed only, then enumerate around SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall , that should allow you to locate all installed sims.

Log in to reply
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 19:48 #31079
MrSuttonmann
Avatar
265 posts
Sacro, I'm well ahead of you.

The program does enumerate around SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall but I needed a list of the executable files names - a detail that isn't in the subkeys. This information is required for the way in which I have implemented the launching process. The program gets the DisplayName subkey, the InstallLocation subkey and the UninstallString subkey. It then analyses the DisplayName string to determine which simulation is required to be run. As the typical DisplayName format is "SimSig <Simulation> <Version>", the program then selects the 2nd word from the string. The 2nd word may not always be the name of the simulations. In the case of Exeter, for example, there is no problem, and the program appends this to the InstallLocation and send this completed string to Process.Start(programPath + word2 + ".exe"), which launches the simulation. If there is a problem with the 2nd word - for instance "King's Cross", it notices that no file name "King's.exe" exists in InstallLocation. It the looks up "King's" from a list of all the simulations I have stored in My.Resources (hence this post), finds the correct executable name for the simulation (KingsX.exe), appends this to the InstallLocation and sends it to Process.Start.

I have a working version that I am about to submit to the Uploads/Downloads section.

{now available at http://www.SimSig.co.uk/index.php?option=com_remository&Itemid=56&func=fileinfo&id=405}

(Formerly known as manadude2)
Last edited: 30/03/2012 at 20:10 by AndyG
Log in to reply
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 20:15 #31080
Stephen Fulcher
Avatar
2084 posts
James,

Does the requirement for the list of executables now mean that every time a new sim is released or updated with a slightly different file name Fiddle Yard will not detect it and will therefore also need to be updated?

Also add
SwinDid.exe
Swindon.exe
Didcot.exe

I have all three installed on my computer.

Steve

Log in to reply
The following user said thank you: MrSuttonmann
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 20:24 #31081
MrSuttonmann
Avatar
265 posts
Stephen,

No, the program will not need to be updated to detect new simulations unless the new simulations executable file name does not match it's name, such as King's Cross, where the executable name is KingsX.exe, rather than King's.exe.

This first release does not offer self auto-update, but the next one will. This means that every time you open the program it will check my server for updates. Expect that in a couple of days - I have a few things to sort out on the server for that to work.

Thanks

(Formerly known as manadude2)
Last edited: 30/03/2012 at 20:30 by MrSuttonmann
Log in to reply
Re: The Fiddle Yard - Program enumeration 30/03/2012 at 22:27 #31082
MrSuttonmann
Avatar
265 posts
OK, I have a new version available on my server.

It will soon be available here, once approved: http://www.SimSig.co.uk/index.php?option=com_remository&Itemid=56&func=fileinfo&id=405

Thanks for your support in making this.

(Formerly known as manadude2)
Last edited: 30/03/2012 at 22:31 by MrSuttonmann
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 08:12 #31085
MJD
Avatar
149 posts
Getting:- Not a valid win 32 application
is this for lin only?

Mike.
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 17:03 #31096
MrSuttonmann
Avatar
265 posts
Apologies for that!

It appears that Visual Studio didn't export the program correctly.


It should be available now from http://turbinesoftware.info/downloads/fiddleyard/publish.htm

Please run as administrator.

(Formerly known as manadude2)
Last edited: 31/03/2012 at 17:05 by MrSuttonmann
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 17:52 #31098
Albert
Avatar
1315 posts
" said:
is this for lin only?

Wouldn't be an .exe file in that case. In Linux we mark files as executable instead of giving them an .exe suffix. The old version of Fiddle Yard was able to run in Wine however.

AJP in games
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 18:24 #31099
Sacro
Avatar
1171 posts
Online
Actually, it's a .net application, and they are given an ".exe" extension, even on Linux.
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 19:13 #31100
Jan
Avatar
906 posts
Hmm, after launching, I see the splash screen, and then get the following exception:
System.ArgumentNullException: Der Wert darf nicht NULL sein.
Parametername: item
bei System.Windows.Forms.ListBox.ObjectCollection.AddInternal(Object item)
bei System.Windows.Forms.ListBox.ObjectCollection.Add(Object item)
bei The_Fiddle_Yard.Form1.Form1_Load(Object sender, EventArgs e)
bei System.EventHandler.Invoke(Object sender, EventArgs e)
bei System.Windows.Forms.Form.OnLoad(EventArgs e)

After doing a little more testing, it seems that the program cannot handle the old simulations, like Didcot or Liverpool Street.

Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply
Re: The Fiddle Yard - Program enumeration 31/03/2012 at 19:36 #31101
MJD
Avatar
149 posts
Yep that is great.
Many thanks.

Mike.
Log in to reply
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 07:55 #31216
MrSuttonmann
Avatar
265 posts
Thank you for your responses, everyone!

Yes, TFY is a .NET application, and having not tested it on Linux I can't tell you whether it will still run or not. I'm not sure if WINE supports .NET.

Jan - though the message was in German, I have made some sense out of it, and (I hope) fixed the issue. The program attempted to create a new instance of a listbox before the view had loaded completely, causing the error. There's now a short delay built into the program to give it time to display, then enumerate.

You may not have been able to launch the program a couple of days ago - this was because I was forced to switch web hosts. During the transition period, the domain nameservers have to catch up with the changes, taking anywhere from a few seconds to 48 hours. Thankfully, it only took a minimal 8 hours.


There is an update to the program, all you need to do is launch it. A popup will appear asking if you wish to update - click yes and the patch will be applied automatically.

Thanks guys!

(Formerly known as manadude2)
Log in to reply
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 08:03 #31217
Razzabazza123
Avatar
91 posts
What is the fiddle yard used for
Log in to reply
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 14:06 #31226
postal
Avatar
5265 posts
" said:
What is the fiddle yard used for
Clicked on the Search Tab (top right), entered "fiddle yard" into the Search Box and found this whole thread to answer your question.

I don't expect it will ever catch on, but as a general question, which is easier and quicker for the community as a whole; two clicks and type "fiddle yard" or make a new posting and expect someone else to make two clicks, type "fiddle yard" then post back with the answer?

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Last edited: 04/04/2012 at 14:10 by postal
Log in to reply
The following users said thank you: jc92, northroad, UKTrainMan, Sam Tugwell, Meld
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 14:09 #31227
postal
Avatar
5265 posts
" said:
What is the fiddle yard used for
Clicked on the Search Tab (top right), entered "fiddle yard" into the Search Box and found this whole thread to answer your question.


As a general question, which is easier and quicker for the community as a whole; two clicks and type "fiddle yard" or make a new posting and expect someone else to make two clicks, type "fiddle yard" then post back with the answer?

“In life, there is always someone out there, who won’t like you, for whatever reason, don’t let the insecurities in their lives affect yours.” – Rashida Rowe
Log in to reply
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 14:39 #31229
Jan
Avatar
906 posts
I assume that 1.1.6.84 is the current version now? If so, I still get the same exception as before.
As I said, it's probably rather to do with the fact that I've still got some of the old Simsigs installed. Didcot and Swindon are no longer needed (and apparently a registry entry for the old version of Southampton is lurking around on my computer as well), but in the case of Liverpool Street and Stafford there is no newer version available.
Because these registry keys contain a Simsig in their name, they get picked up by your search routine, but then the program cannot handle them, probably because they contain only the DisplayName and the UninstallString.

Two million people attempt to use Birmingham's magnificent rail network every year, with just over a million of them managing to get further than Smethwick.
Log in to reply
Re: The Fiddle Yard - Program enumeration 04/04/2012 at 15:18 #31231
Lardybiker
Avatar
771 posts
" said:
Thank you for your responses, everyone!
Yes, TFY is a .NET application, and having not tested it on Linux I can't tell you whether it will still run or not. I'm not sure if WINE supports .NET.
From what I know, you don't necessarily need WINE if the application is written right. Whilst I am certainly not the guru on this subject I do know that Linux has a .Net equivalent called Mono. Mono doesn't support all .Net features, but if you are careful, its possible to make a .Net application that will run directly under Mono and therefore it will run on Linux with no modifications.

As I said though, there are far more qualified than me with regards to Linux who can better guide you regarding this.

Last edited: 04/04/2012 at 15:19 by Lardybiker
Log in to reply