Topic: Megafiles?

Hello! I don't know if this is programming as that, but anyway:
I have a game, which has it's files in .meg-format. And I try to edit these in different ways, but there is always an error message.
Now the thing I try to edit is merely a number which I do know will not affect any kind of visual or super-important things in the game; the number represents the cost of an item ingame. tongue
I've tried to extract the files, but then there is an exception message.
When I edit the files in Notepad f.e, there comes this error message, which I've found is quite common in different situations on Google's search results.

"Microsoft Visual C++ Runtime Library
Runtime Error!
Program: ...s\Empire at War Forces of Corruption\swfoc.exe
This application has requested the Runtime to terminate it in an unusual way."

Please contact the application's support team for more information.
Now, I wonder if there is any way to fix this without having to reinstall it all?
Would very much appreciate it if someone gave a suggestion or so. smile

Re: Megafiles?

Probably the game uses some hash to compare the filesize or even the content to prevent editing of game files...
And as soon as the hashes are wrong, it crashes.

What are you trying to edit?

Re: Megafiles?

Some numbers that shall be the cost of some ingame items you can buy when playing, weapons and things like that. No movement speed or something that'll affect moving things.
I wouldn't like add a thousand more numbers, just f.e change 1 to 5.

But it also reacts like that if I just save the file without editing anything on it. hmm sad

Maybe it is something with this Windows Visual component. I've looked in the compuer files and we have a Windows Visual Studious, if that is playing some part in it.

Re: Megafiles?

What editor are you using?

Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks

Re: Megafiles?

Well, as I am not the expert on modifying games or so, just trying to change some small things, I edit it directly in Notepad. I don't know if there's a special program for .meg-files.
I have tried an extractor made by an game modder, but I didn't know how to compress the different files back into .meg-format again so I just tried to edit it direct in Notepad.
And I did find what i was looking for, but not able to touch it. sad

Re: Megafiles?

Perhaps notepad is changing the encoding of the file or even replacing the linebreaks by Windows breaks.

Re: Megafiles?

Wierd if that's the case. I didn't do any linebreaks, just deleting a number symbol (1,2,3..) and wrote another instead.

Re: Megafiles?

I recommend gvim for easy, quick editing:
http://www.vim.org/download.php#pc

Ben
SVN repository for my extensions - The thread
Quickmarks 0.5
“Question: How does a large software project get to be one year late? Answer: One day at a time!” - Fred Brooks

Re: Megafiles?

I got some help at a Petroglyph forum after all. It was something strange with how Notepad did it, appearently. But there was an extractor which also could compress extracted files back into .meg-format.
Thanks anyway. smile