Author Topic: Mono failed to load .dll error  (Read 15802 times)

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Mono failed to load .dll error
« on: June 21, 2013, 10:28:32 am »
I bought the anniversary edition of AI war fleet command on steam, and whenever I try to start it up it two error windows pops up saying: "Weird virtualquery result"
and "Fatal gc error- mono failed to load .dll"
I have the crash report in the game directory.
I've tried disabling the anti-virus and firewalls with no luck, also restarting the computer and using memory diagnostics seemed no good either.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mono failed to load .dll error
« Reply #1 on: June 21, 2013, 10:32:48 am »
Awesome, this should be an easy one: Steam didn't download the entire game properly.  Just do a Verify on your local files (in the Properties for the game's entry in Steam), and Steam will find the missing files and re-download them.  This happens every so often with Steam, and can lead to all sorts of craziness as game engines tend to freak out when part of their required files are mysteriously missing. :)

Hope that helps!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Mono failed to load .dll error
« Reply #2 on: June 21, 2013, 10:44:14 am »
(edit:ninja'd; definitely try what Chris said first, but if that doesn't work try the below)

Welcome to the game and to the forums :) Sorry about the troubles you're encountering.

I've never seen that particular error message and all I can find via google is people reporting this on other games and either getting no response or a developer saying that they've never heard of it before and can't find much on google :)  It does appear to come from the garbage collector code.

That said, in one case it was a steam version and the developer suggested trying a non-steam install and it worked, so you can give this a try:

1) Go to your steam AIW directory (probably C:\Program Files (x86)\Steam\steamapps\common\AI War Fleet Command\ ) and run AIWar.exe directly, not through steam.
2) If that doesn't work, first make sure steam is not running at all, then retry.  Just for diagnosis, really, not expecting that this would be a real solution.
3) If #1 didn't work, download and install the base game from here: http://www.arcengames.com/w/index.php/aiwar-downloads
4) Run that non-steam copy, making sure it's not the steam one (steam being on or off should not matter for this.
5) If #4 works, copy the C:\Program Files (x86)\Steam\steamapps\common\AI War Fleet Command\RuntimeData\Expansions\ folder from your steam install to your non-steam install
6) Run the non-steam copy again.  If it works you're all set as far as the game itself.  You would not get steam integration in terms of the overlay, achievements, etc, though, but I'm not sure how much we can do to make that part work.  Anyway, first step is getting a game that works :)

Let me know how it goes.

Thanks,
Keith
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Re: Mono failed to load .dll error
« Reply #3 on: June 21, 2013, 10:56:37 am »
Thanks for the quick response! :D
Yeah I validated and re-validated the files with steam like there was no tomorrow, didn't work...
So currently I am downloading the non-steam version of the base game.

I will follow Keith's steps and see if that resolves it.

Will report back.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mono failed to load .dll error
« Reply #4 on: June 21, 2013, 11:03:29 am »
Hmm, hopefully that does it then!  We did have one other person say that for whatever reason Steam just wouldn't download things right for them, but then after installing our version over top of the Steam version all was well.  That just blows my mind that that could happen to one (now probably two) people and not to the other 96,000+ people.  Obviously it happens, since it did happen, but I just can't fathom what the mechanism of it happening would be.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Mono failed to load .dll error
« Reply #5 on: June 21, 2013, 11:08:34 am »
One thing that might possibly be involved is if you have Mono installed on your machine and the game is getting confused about whether to use the embedded stuff (shipped with the game) or the stuff you already had installed... but given the architecture of how Unity incorporates mono with the build I don't think that should be possible.  But one never knows :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mono failed to load .dll error
« Reply #6 on: June 21, 2013, 11:16:27 am »
I'm fairly certain I have Mono installed, or at least I did at one point during which we were starting to use Unity... I'm pretty sure.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Re: Mono failed to load .dll error
« Reply #7 on: June 21, 2013, 11:18:08 am »
Yeah there was several hits on google about discussions regarding wether anti-virus softwares or other security programs were interfering for unity, or steam was the one to blame for messing up the files.
Regardless still waiting for the non-steam version.

Hopefully that shall fix it. :D

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Re: Mono failed to load .dll error
« Reply #8 on: June 21, 2013, 11:56:51 am »
Nope, the non-steam version did not work :(
Same as before, with the error messages.
I don't know if the crash report for the non-steam version would be any use, if would look at it.

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Mono failed to load .dll error
« Reply #9 on: June 21, 2013, 12:30:38 pm »
That's... really odd.  I have no idea why it would be doing that.  Something more than 100,000 people own this game and this is the first time (iirc) I've seen those error messages.  My suspicion is therefore that something is odd about the setup of your particular machine, though obviously that explanation doesn't help you run the game :)  Do you have another machine to test it on?

Just checking, but when you look at the AIW directories (both steam and non-steam) do you see a "AIWar_Data" directory?  In that directory do you see a "Mono" directory?  In that subdirectory, do you see a "mono.dll" file?
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mono failed to load .dll error
« Reply #10 on: June 21, 2013, 12:39:30 pm »
Also, if you look inside the AIWar_Data directory, there is an output.log.  Can you post that?  And then inside the RuntimeData folder, there ought to be several different error logs.  Can you post those also?

Beyond that it really sounds like something is messing with the game engine itself in some way.  The reason I thought this would be a super easy fix was because usually that's just a sign that the entire engine isn't there.  Like Keith noted, this is the first time we've had this sort of error where that was not the case.  We did have some issues with false detection with the 2011 version of Kaspersky, but they fixed their issue (it was affecting a lot of games) and their later versions have had no problems.

It's particularly odd that the problem is happening this soon in the process.  Right then it's just trying to load all the dlls for the engine itself, which is very harmless; it may not have even gotten to our game code yet by the time it dies (if there are no error logs in the RuntimeData folder, then that would be why).  When Kaspersky was nailing the game, it gave a different error because it was actively trying to kill the "check for updates" call that is by default on.

So I'm really not sure what is up here.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Re: Mono failed to load .dll error
« Reply #11 on: June 21, 2013, 12:47:18 pm »
Here are the output log, but the runtimedata contains several logs like sysrequirements and such.
« Last Edit: June 21, 2013, 12:55:17 pm by Vikingfisk »

Offline Vikingfisk

  • Newbie
  • *
  • Posts: 9
Re: Mono failed to load .dll error
« Reply #12 on: June 21, 2013, 12:54:47 pm »
Sorry the logs in the steam version? Or the non steam version?
Anyways there was a debuglog in the non steam version, but not in the steam version?

I attached it.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Mono failed to load .dll error
« Reply #13 on: June 21, 2013, 12:59:31 pm »
Hmm, the logs from either version are fine.  What is odd is that output.log that you posted is empty.

And there are some errors in the other error log you posted, but they are harmless errors and also from the 17th, not today.  Were you previously able to run this?
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline keith.lamothe

  • Arcen Games Staff
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 19,505
Re: Mono failed to load .dll error
« Reply #14 on: June 21, 2013, 01:01:56 pm »
The output_log.txt is blank, so I guess nothing made it there.  The ArcenDebugLog.txt file contains some entries from 3 or 4 days ago that look like it was trying to run an older version of the dll with the new language files (those taunt names are not used anymore, as they've been renamed).

That's kind of strange, actually: you say that's from the non-steam version?  That you just installed today?  The timestamp on the most recent message in there is from "6/17/2013 8:50:10 AM".  Just curious: is your computer clock set to a different day?  Or perhaps that log file was inadvertently included in the installer, dunno :)
Have ideas or bug reports for one of our games? Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!