Preprocessor error

Find a Bug? Have a Problem? Like to Suggest a Feature? Do it Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Preprocessor error

Postby andymac » Sat Sep 05, 2009 8:59 pm

Steps to reproduce the error:
1. Wpen up the script editor
2. Write script / open script
3. Add to scripts list
4. hit "F5"

Output:
"ERROR: Preprocessor failed. Compilation is still possible if no macros or includes are used."

just an example of code that doesn't compile:
Code: Select all
void On_StartUp( HWND hWnd ) {
}


Forgive me if there is a blatantly obvious solution.

The code should just simply compile, and it has on previous versions.

I am using version 5.9.0.0
andymac
I Have A Few Questions
 
Posts: 4
Joined: Thu Jul 23, 2009 8:12 pm

Postby L. Spiro » Mon Sep 07, 2009 7:39 am

It worked for me.

You can send your scripts to my e-mail.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby SpeedWing » Mon Sep 07, 2009 1:32 pm

andymac try this

tools:arrow:Options:arrow:Disassembler
now make sure the Misc. Save Dir is the location where your MHS.exe is in.
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.

Postby andymac » Mon Sep 07, 2009 8:34 pm

The misc save directory was definitely the MHS directory, although, I have multiple copies of MHS an my hard drive.

The scripts that i create generally depend on being compiled multiple times slightly differently each time. I should prabably rewrite my scripts to compensate, but for now, it's going to be difficult to compile externally, considering the amount of compiling I do.

I recently reinstalled windows xp, and as far as I know, that's the only real change since it last worked. Considering this, I'm going to assume that either the reinstall, or changes (or lack thereof) caused by reinstalling individual programs is responsible.

So to tell you the truth, I don't think there's a problem with your program.
andymac
I Have A Few Questions
 
Posts: 4
Joined: Thu Jul 23, 2009 8:12 pm

Postby L. Spiro » Tue Sep 08, 2009 6:50 am

If you reinstalled Windows then you copied MHS to another directory, which causes the scripts not to work.


Open the MHS configuration file (.INI), delete all .LSM entries (delete all of your scripts), and set the total to 0.

Add them again one-by-one-from MHS.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan


Return to Bugs/Problems/Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests