The Daily Click ::. Forums ::. Klik Coding Help ::. Text Blitter 1.5 Load Image action not working?
 

Post Reply  Post Oekaki 
 

Posted By Message

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
27th May, 2010 at 08:17:53 -

I posted this in my FableQuest project thread, but I'll post it again here because I'm desperately trying to find a fix as soon as possible.

Anyway, I'm using the Text Blitter object, and I use the Load Image action to import the graphics for the text from an external BMP file. The imported graphics are loaded just fine when I'm testing the game in MMF2, but when I export the game to an EXE and run it independently from MMF2, the image isn't loaded properly and just shows up as random garbage on the screen.

Here's an example file of what happens:

http://galaxytrail.com/fablequest/textblt_test.zip

Run the EXE and you'll see that the text shows up as just a row of black squares. If you load the MFA file and run it from within MMF2, though, it appears just fine.

I have no clue what's causing this, but there may be a possibility that something's weird with my copy of MMF2? Could anyone try loading the MFA file in their copy and exporting it to an EXE to see if the problem disappears?

 

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
27th May, 2010 at 09:35:15 -

just a thought but open up your mmf2 runtime folder (C:\Program Files\Multimedia Fusion 2\Data\Runtime) and rename your txtblt.mfx to txtblt.mfx.bak

Once you have done this copy your txtblt.mfx from the extensions folder into your runtime folder and recompile it. see what that does. if ti doesn't work no harm done as you have a backup of your original txtblt.mfx

 
n/a

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
27th May, 2010 at 12:04:59 -

I tried that earlier today, but it didn't seem to solve the problem. Maybe I could try installing MMF2 on a different computer and recompile the game there, though.

 

Strife

Administrator
Der Dairy Crick

Registered
  21/11/2002
Points
  2305

VIP MemberGOTW AWARD! -Astro Dude - part 1 GOTM JULY - 2009 - 3RD PLACE!It's-a me, Mario!Has Donated, Thank You!I donated an open source project
28th May, 2010 at 08:21:54 -

One of the developers at the Clickteam forums gave me the solution, and I figured I should post it here in case other people have similar issues.

Apparently, MMF2's automatic filter detection doesn't work properly with the Text Blitter object. What you need to do is go to the Application Properties, click "Edit" under Image Filters, and uncheck Automatic while manually checking the filters you need for the game.

Sooo, crisis averted.

 

Xgoff



Registered
  22/02/2009
Points
  135
28th May, 2010 at 08:57:36 -

i just make unchecking automatic a habit

... but that's mainly because i usually use external images anyway

 
Image

lembi2001



Registered
  01/04/2005
Points
  608

VIP MemberIt's-a me, Mario!Wii OwnerI like Aliens!Has Donated, Thank You!PS3 OwnerI am an April Fool
28th May, 2010 at 10:35:44 -

I didn't even know that existed!!! LOL

Glad to hear you got it fixed though

 
n/a
   

Post Reply



 



Advertisement

Worth A Click