Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
FX problem #471914
03/25/18 17:28
03/25/18 17:28
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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

Re: FX problem [Re: DAVIDMORETON] #471915
03/25/18 19:06
03/25/18 19:06
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
Did you try using angular brackets #include <mtlFX.c>?

Re: FX problem [Re: Ezzett] #471917
03/26/18 07:47
03/26/18 07:47
Joined: Jan 2005
Posts: 282
devon UK
D
DAVIDMORETON Offline OP
Member
DAVIDMORETON  Offline OP
Member
D

Joined: Jan 2005
Posts: 282
devon UK
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.

Re: FX problem [Re: DAVIDMORETON] #471918
03/26/18 11:02
03/26/18 11:02
Joined: Aug 2003
Posts: 118
Deutschland
E
Ezzett Offline
Member
Ezzett  Offline
Member
E

Joined: Aug 2003
Posts: 118
Deutschland
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.


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1