Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by AndrewAMD. 12/05/23 10:56
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
6 registered members (3run, AndrewAMD, alibaba, fairtrader, ozgur, TipmyPip), 605 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Error while include mtlFX.c in main.c [Re: Schmerzmittel] #146345
08/13/07 19:25
08/13/07 19:25
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Habs jetzt, aber jetzt kommt Crash in Init_skycube???


A7 Com V7.80
Re: Error while include mtlFX.c in main.c [Re: Schmerzmittel] #146346
08/17/07 18:02
08/17/07 18:02
Joined: Aug 2005
Posts: 512
Bayern
Schmerzmittel Offline
User
Schmerzmittel  Offline
User

Joined: Aug 2005
Posts: 512
Bayern
Ich habe jetzt alles probiert.

Ich habe wie von jcl die Zeilen abgeändert und es läuft trotzdem noch nicht. Bitte helft mir.

P.s: Ich möchte den Terrainshader + den Wassershader verwenden. (evtl. auch die Bumpeffekte usw) Immer noch die selbe Fehlermeldung wie am Anfang des Posts!


A7 Com V7.80
Re: Error while include mtlFX.c in main.c [Re: vlau] #146347
09/02/07 04:02
09/02/07 04:02
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
How you get the mtlFX.c work? I got error when I run the script. The engine cannot found mtlfx.c

In WED I can select the action, though.

I have these lines in main.wdl
Code:

PATH "C:\\Program Files\\GStudio7\\template_6";
PATH "C:\\Program Files\\GStudio7\\template_6\\code";
PATH "C:\\Program Files\\GStudio7\\template_6\\images";
PATH "C:\\Program Files\\GStudio7\\template_6\\sounds";
PATH "C:\\Program Files\\GStudio7\\template_6\\models";
PATH "C:\\Program Files\\GStudio7\\code";



and these include in main.c
Code:

#include <default.c>
#include "mtlFX.c"



Re: Error while include mtlFX.c in main.c [Re: Frederick_Lim] #146348
09/02/07 05:58
09/02/07 05:58
Joined: Apr 2007
Posts: 582
Germany
Poison Offline
User
Poison  Offline
User

Joined: Apr 2007
Posts: 582
Germany
Hast du die neue Version ??
Denn mtlFX.c wurde in der neuen Version gefixt deine ist "glaube ich" die verbugte.


Everything is possible, just Do it!
Re: Error while include mtlFX.c in main.c [Re: Poison] #146349
09/02/07 09:51
09/02/07 09:51
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
@Frederick,

As Poison Byte said, you've to update to A7.05, then do one
of the followings :


1) In main.wdl write : PATH "C:\\Program Files\\GStudio7\\code";
and in main.c write : #include <mtlFX.c> OR,

2) Copy mtlFX.c into your work folder, and in main.c write :
#include "mtlFX.c"

Re: Error while include mtlFX.c in main.c [Re: vlau] #146350
09/03/07 01:19
09/03/07 01:19
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Thanks.

Quote:

1) In main.wdl write : PATH "C:\\Program Files\\GStudio7\\code";
and in main.c write : #include <mtlFX.c> OR,



That's what I did in first place, but WED complain mtlFX.c not found, I can't select the fx_terraintex3 action in WED.

Quote:

2) Copy mtlFX.c into your work folder, and in main.c write :
#include "mtlFX.c"



That one works, but it seems strange that I need to copy the mtlFX.c into my level folder.

I believe it is a WED bug, it cannot read the action if the action is in A7 install directory. So, quote 1 is not work.

No such problem in A6.

Last edited by Frederick_Lim; 09/03/07 01:53.
Re: Error while include mtlFX.c in main.c [Re: Frederick_Lim] #146351
09/03/07 04:19
09/03/07 04:19
Joined: Aug 2005
Posts: 1,558
HK
V
vlau Offline OP
Serious User
vlau  Offline OP
Serious User
V

Joined: Aug 2005
Posts: 1,558
HK
Oops, some typo :

1) In main.wdl write : PATH "C:\\Program Files\\GStudio7\\code";
and in main.c write : #include "mtlFX.c"

Tested and work fine.

Re: Error while include mtlFX.c in main.c [Re: vlau] #146352
09/03/07 05:18
09/03/07 05:18
Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Frederick_Lim Offline
User
Frederick_Lim  Offline
User

Joined: Oct 2003
Posts: 827
22�21'24"N 114�07'30"E
Quote:

1) In main.wdl write : PATH "C:\\Program Files\\GStudio7\\code";
and in main.c write : #include "mtlFX.c"





If change from <mtlFX.c> to "mtlFX.c", it means the compiler find the file in local folder, not the A7 code folder, the PATH in main.wdl is meaningless.

I believe in traditional C compiler, #include <..> is different to #include "..", if I set the path in main.wdl, and use the #include <..> syntax, the compiler will look in the engine path.

In fact set the path in .wdl and use #include <..> in lite-C is work fine, the problem is WED cannot find the action in mtlFX.c

Edit:
If I move the mtlFX.c from "code" folder to "include" folder, everything work as expected.

- no need to explicit include the "code" PATH in .wdl
- use the #include <mtlFX.c> syntax
- WED can select the mtlFX's action.

Conitec, please correct this in next update.

Last edited by Frederick_Lim; 09/03/07 05:55.
Page 2 of 2 1 2

Moderated by  old_bill, Tobias 

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