problem with importing module script

Started by metanet, Wed 07/09/2011 17:16:02

Previous topic - Next topic

metanet

I'm trying to import the Flashlight module to a little game I'm building. It took a lot of searching to even discover how to do this, so maybe I'm doing it wrong.

here's what I tried:
I right clicked "scripts" and chose "import script", then chose the Flashlight.scm file.

Then, AGS gives this error:

---
An error occurred trying to import the script module. The error details are below.

System.OutOfMemoryException: Exception of type
'System.OutOfMemoryException' was thrown.
at System.IO.BinaryReader.ReadBytes(Int32 count)
at AGS.Editor.ImportExport.ImportScriptModule(String fileName)
at AGS.Editor.Components.ScriptsComponent.ImportScriptModule)String fileName)
---

What am I doing wrong? Thanks for any help!

Flashlight v2.0
AGS v 3.2.1
Windows 7 64-bit

hedgefield

Does this happen once or every time you try to import the module? I've had an error like this on occasion, but aside from giving me a small heart-attack, it was always a one-time thing and a reboot of AGS made everything go back to normal.

monkey0506

I'd also suggest a reboot of the computer if you're getting OutOfMemory errors. If it keeps happening try killing some of the programs you're running in the background, run a memory scan such as memx86 to check for errors with your physical RAM, and a virus scan couldn't hurt.

It probably was a random brain fart somewhere down the line in your computer that is nothing to seriously worry about. If it's a recurring problem you might need to investigate further.

metanet

Thanks for your replies!

Unfortunately it seems to happen every time I try to import the script. AGS runs just fine otherwise.

I just rebooted my computer (which is only about 3 months old, it's basically brand new) and has 6GB of RAM, which should be plenty. I have relatively few processes running right now and restarted AGS three times to test, but unfortunately got the same error message each time.

I'll run a virus scan and will try a memory scan as well. Anything else you'd recommend trying?

steptoe

On the off chance ( I have never used win 7) you could check out windows msconfig (use run) and disable any unwanted programs that run at start up to give you more memory.

just a thought though it's probably something else.

metanet

I ran a memory check and everything came back fine. Same with the virus scan.
Hmm, I just tried installing AGS on my XP netbook, and got the same error.

Then I tried re-downloading and re-unzipping the Flashlight package, and this time AGS on my Windows 7 machine imported the script without error. That's great! A little confusing, but who cares. I'm just so glad it worked :)

Thanks again for all your help, everyone!

monkey0506

Hmm..well glad you got it working! Sounds like for some reason the download got corrupted the first time you did it.

I'm pretty sure the download for the module is actually a RAR. Not sure about the ZIP format or other archiving programs in particular, but I use RAR and WinRAR, and its Cyclic-Redundancy Check has actually proven useful in verifying the integrity of downloads on my end. ;)

metanet

oops sorry, yes, you're right, it's a RAR, and that's a great point about WinRAR. I use WinRAR for all my compression/decompression needs as well; I'm not sure how the download got corrupted or why there was no error when I unrar-ed the file, but hey, at least it was an easy fix!

thanks again! :)

metanet

sorry, one more thing -- monkey_05_06, are you the creator of Flashlight? If so, kudos, it's awesome and super easy to use. Thanks very much for your hard work!

SMF spam blocked by CleanTalk