Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > FileNotFoud Exception???
 

FileNotFoud Exception???

Hello everyone!

I'm working on a new creature (first real one) and when I introduce it to my local terrarium it gets destroyed.

The error that is being dumped to Trace is a bit odd (see below):

**** An exception occurred in a 'shrieker': 
System.IO.FileNotFoundException: The system cannot find the file specified.
   at Kyle.Heon.Terrarium.Carnivores.Shrieker.IdleEvent(Object sender, IdleEventArgs e)
   at OrganismBase.Animal.OnIdle(IdleEventArgs e, Boolean clearOnly) in E:\dev\LHSDK\Terrarium\1.2\Client\OrganismBase\Classes\Creature\Animal.cs:line 1047
   at OrganismBase.Animal.InternalMain(Boolean clearOnly) in E:\dev\LHSDK\Terrarium\1.2\Client\OrganismBase\Classes\Creature\Animal.cs:line 1000
   at Terrarium.Hosting.GameScheduler.ActivateBug() in E:\dev\LHSDK\Terrarium\1.2\Client\Game\Classes\Hosting\GameScheduler.cs:line 445

Any thoughts why it's barking about a FileNotFound?
MigrationUser 1  Thursday, July 22, 2004 4:56 PM
I've narrowed this down somewhat after a few hours of debugging.  It seems that the issue only happens when code is called that is in a external class.  I've created some classes to handle attacking and movement and it appears that when I try to call this code the error above shows up.

Any thoughts?  I'm running out of ideas here.
MigrationUser 1  Thursday, July 22, 2004 8:50 PM
I think I have solved this.  My seperate classes were stored in another C# Class Library Project.  I have just moved the external .cs files into the base creature project and I'm not getting the error(s) anymore.

Is it not possible to have external dll's referenced in Terrarium?  If not, why not?  Is it a security thing?  Just curious.
MigrationUser 1  Thursday, July 22, 2004 10:50 PM
Everything needs to be in a single file for purposes of teleportation. But more importantly we also need to verify the size of the code. Every user is expected to play with only 100KB of final assembly. This restriction is to prevent goliath creatures with gobs of code for every contingency (huge state machines) and promote more learning and behavioral oriented game play.

Before the rants start coming in I realize the EcoSystem is almost always dominated by state machines anyway, so the original 100KB is more now to protect people from passing around files that are too large.
MigrationUser 1  Wednesday, July 28, 2004 5:59 PM

You can use google to search for other answers

Custom Search

More Threads

• IssueVision for VS2005
• Changing readonly property of all textboxes on form
• How do I set species name?
• Getting Started.. verificationexception in sample code
• UI Patterns
• Adventure Works for SQL Server 2000
• Can anyone provide the tracker sql scripts?
• Work Offline
• Thumbnail Generation
• Error Trying to Install Issue Vision