FX problem

Posted By: DAVIDMORETON

FX problem - 03/25/18 17:28

Hello fellow game constructers,
I have made a hollows box, put a player in it with a tree model – works fine.
I want to animate the tree, so added ‘mtlFX’ in the ‘includes’(as instructed in the manual)

////////////////////////////////////////////////////////////////////////
// Template main script:
// Created by WED.
////////////////////////////////////////////////////////////////////////

////////////////////////////////////////////////////////////////////////
// entry: Start Level
// entry_help: Name of the level loaded at start
char* t_levelname = "t1.wmb";

////////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>
#include "startup.h"
#include "t_player.h"

#include "mtlFX.c"

/////////////////////////////////////////////////////////////////
// The main() function is started at game start
function main()
{
// entry: Warning Verbosity (0,1,2,3,4)
// entry_help: Sets sensitivity of warnings (0 = none, 1 = some, 4 = all).
warn_level = 2;

#ifndef startup_h
// load the level
level_load(t_levelname);
#endif
}

When I try to run it, I get error message ‘included mtlFX file not found’, although the file is in line 17. The ‘behavior’ panel shows up, and I can select an action, but it will not work when I rebuild and run the scene.
What am I doing wrong?
Kind regards, David
Posted By: Ezzett

Re: FX problem - 03/25/18 19:06

Did you try using angular brackets #include <mtlFX.c>?
Posted By: DAVIDMORETON

Re: FX problem - 03/26/18 07:47

Thanks Ezzett,
In the past I have tried <> ,"", and nothing !! - it still wouldn't work, BUT when I changed it again just now - it did !!
Maybe it's something to do with this being the 'trial' version?
Anyway, thanks for you help.
Kind regards, David.
Posted By: Ezzett

Re: FX problem - 03/26/18 11:02

I don't think it has something to do with the trail version.

Sometimes problems happen. If I encounter strange behavior while I am programming and if I can't solve this problem I just shutdown my computer. After restarting everything works fine again.

Maybe this solved your problem, too.
© 2024 lite-C Forums