FreeTrain Forum Index FreeTrain
Moved to freetrain.sourceforge.net/forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Welcome
Welcome to FreeTrain.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Error when starting on Vista home premium

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    FreeTrain Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Al Heeley



Joined: 06 Oct 2007
Posts: 7

PostPosted: Sat Oct 06, 2007 8:33 am    Post subject: Reply with quote

I get the following error message when trying to start FreeTrain on Vista home premium.

The type initializer for 'freetrain.framework.MainWindow' threw an exception.
at freetrain.framework.MainWindow..ctor(String[] args, Boolean constructionMode)
at Driver.Driver.run(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 38
at Driver.Driver.Main(String[] args) in c:\dev\freetrain\trunk\FreeTrain\tools\Driver\Driver.cs:line 26
The type initializer for 'freetrain.framework.ResourceUtil' threw an exception.
at freetrain.framework.ResourceUtil.loadSystemPicture(String name)
at freetrain.framework.MainWindow..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\MainWindow.cs:line 119
Retrieving the COM class factory for component with CLSID {E1211353-8E94-11D1-8808-00C04FC2C602} failed due to the following error: 80040154.
at org.kohsuke.directdraw.DirectDraw..ctor() in c:\dev\freetrain\trunk\FreeTrain\lib\DirectDraw.net\DirectDraw.cs:line 47
at freetrain.framework.ResourceUtil..cctor() in c:\dev\freetrain\trunk\FreeTrain\core\framework\ResourceUtil.cs:line93

I would love to get this game up and running, a big fan of the originals. Any solution for Vista?
Back to top
View user's profile Send private message
steven_h
Developer


Joined: 01 May 2007
Posts: 62
Location: Canberra, Australia

PostPosted: Sun Oct 07, 2007 12:06 am    Post subject: Reply with quote

Do you have the resources in the directory? "loadSystemPicture" is looking for items in the ./plugins/system directory and without this plugin your game wont run...
How did you Download/Obtain?

Mods... can we push this to a new thread?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
himasaram
Developer


Joined: 01 May 2007
Posts: 79

PostPosted: Sun Oct 07, 2007 6:22 am    Post subject: Reply with quote

steven_h wrote:
Mods... can we push this to a new thread?


Done!
Back to top
View user's profile Send private message
Al Heeley



Joined: 06 Oct 2007
Posts: 7

PostPosted: Sun Oct 07, 2007 8:40 am    Post subject: Reply with quote

steven-H: I downloaded from the sourceforge.net site: http://sourceforge.net/project/showfiles.php?group_id=188623
Extracted the zip to a folder on my desktop as there seemed to be no installer program. Did i miss something?

The system folder seems to be in the right place, but theres no c:\dev folder or \trunk folder.
I also added in all the extra plugins from the folder on sourceforge, but it still kicks up the same error.
Back to top
View user's profile Send private message
Al Heeley



Joined: 06 Oct 2007
Posts: 7

PostPosted: Wed Oct 10, 2007 4:47 pm    Post subject: Reply with quote

Has anyone else managed to run the game successfully on Vista (32bit)? Crying or Very sad
Back to top
View user's profile Send private message
Al Heeley



Joined: 06 Oct 2007
Posts: 7

PostPosted: Wed Oct 10, 2007 9:04 pm    Post subject: Reply with quote

himasaram wrote:
First the standard questions:

Do you have the correct version of .NET Framework (2.0 redistributable) installed?

Are you logged in as administrator?

Is this of any relevance to Vista? Can anyone give some more details about what the .net framework is, if you need it, where to get it and where to install it?
Back to top
View user's profile Send private message
himasaram
Developer


Joined: 01 May 2007
Posts: 79

PostPosted: Wed Oct 10, 2007 11:35 pm    Post subject: Reply with quote

Dunno if the .NET runtime has to be installed on Vista, but you can try. clicky.
Back to top
View user's profile Send private message
Al Heeley



Joined: 06 Oct 2007
Posts: 7

PostPosted: Thu Oct 11, 2007 6:42 pm    Post subject: Reply with quote

Thanks - I did the clicky thing, it says "This product is already installed as part of the operating system. Still no joy. Crying or Very sad
Back to top
View user's profile Send private message
questron



Joined: 12 Dec 2007
Posts: 1
Location: Mayen, Germany

PostPosted: Wed Dec 12, 2007 10:09 pm    Post subject: Reply with quote

Maybe the problem is here:

Quote:
Retrieving the COM class factory for component with CLSID {E1211353-8E94-11D1-8808-00C04FC2C602} failed due to the following error: 80040154


As far as I know, this error code means something like the com-class can't be found.

And there is actually no COM-class with this CLSID installed on my Vista-System, but there is on a fresh WinXP-Installation. It's identified with DirectX6 in the registry. So the error code seems to make sense.

I checked out the latest sources from the svn and I wasn't able to compile them on vista, 45 errors were thrown. All related to something DirectX-like, it's missing the DxVBLibA for example. I guess these problems are also related to the missing DirectX6 on Vista.
Back to top
View user's profile Send private message
charlieg
Site Admin


Joined: 29 Apr 2007
Posts: 80

PostPosted: Sat Dec 15, 2007 2:27 am    Post subject: Reply with quote

Yay for legacy DirectX. Argh! I thought DirectX was backwards compatable? How did they mess that up in .NET?

_________________
Want Free Games?
Free Gamer - open source games blog and information
Back to top
View user's profile Send private message Send e-mail
Stormbringer



Joined: 22 Jan 2008
Posts: 1

PostPosted: Tue Jan 22, 2008 6:54 pm    Post subject: No Success Reply with quote

Al Heeley wrote:
Has anyone else managed to run the game successfully on Vista (32bit)? Crying or Very sad


Hm. I bought A-Train many years ago, the original version on diskettes (still got them) and I really enjoyed this game. When changing to Windows XP it didn't run. Then I found a newer version on CD-ROM, but no success.

Today I discovered this site and FreeTrain, but meanwhile I've got Windows Vista. So I'm also interested, whether there is any possibility to get FreeTrain runnig on my PC.

Disappointed greetings from Germany,
Christof Sad
Back to top
View user's profile Send private message
sskchan



Joined: 07 Feb 2008
Posts: 1

PostPosted: Thu Feb 07, 2008 4:58 pm    Post subject: Workaround to run Freetrain on Vista Reply with quote

Al Heeley wrote:
Has anyone else managed to run the game successfully on Vista (32bit)? Crying or Very sad


Perhaps you gentlemen out there have already solved it but since I can't find any post on the web directly on this workaround so I think it may be still useful to post it here.

I am new to Freetrain and had the same problem running Freetrain on Vista.

However, I believed the cause of the problem is similar to that of failing to run BVE on Vista, which is due to removed support of DirectX 7 & 8 for VB from Vista (the COM things being complained when starting Freetrain).

So I followed the procedure in the following link for BVE (a 1st person train driving simulation) and I am able to run FreeTrain on Vista now.

http://www.railforums.co.uk/showthread.php?p=141444

Notes:

1. I copied the DLLs from an old XP machine so I didn't try the links to the DLL in the article.
2. UAC can be turned back on after installation (at least in my case).
3. Since I am new to FreeTrain I am not sure everything works exactly the same way it used to be on previous platforms.

Good luck!
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    FreeTrain Forum Index -> Bug Reports All times are GMT
Page 1 of 1   

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Community Chest


Powered by phpBB
Hosted by FreeForums.org