my.material stopped working after latest Gamestudio update8.10.3

Posted By: tolu619

my.material stopped working after latest Gamestudio update8.10.3 - 07/04/14 23:24

Code:
my.material = mtl_toon;
mtl_setup(200,20,50,50);



I had these lines of code within some of the actions run by some of my entities in my game. After I updated my gamestudio to version 8.10.3, I had to comment out all such lines because while the game still runs, the moment it tries to create any entity that has any material assignment within its code, I get an Error E1520 that says "Structs inconsistent - MATERIAL".
The "mtlFX.c" file in my include folder has the following properties:
Date modified: 12/22/2013 4:29pm
Size: 26.8kb
I have not tampered with this file in any way at all. Is there something I'm doing wrong?
Posted By: Iglarion

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/04/14 23:54

I remember there exists some changes after version 8.10.
For example, mat_model was used in earlier versions, but for newer version you must rename in mtl_model.
Posted By: tolu619

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/05/14 00:01

But since I haven't made any changes whatsoever to the default files in the include folder, and I haven't written a single line of shader code myself, I should be able to simply assign some of the shaders that come with gamestudio to my entities. How do I do that?
Posted By: Iglarion

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/05/14 00:03

Quote:
The "mtlFX.c" file in my include folder has the following properties

This is C-Script/Wdl section, did you are trying mix C-Script with lite-C?
Posted By: tolu619

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/05/14 00:21

Originally Posted By: Iglarion
Quote:
The "mtlFX.c" file in my include folder has the following properties

This is C-Script/Wdl section, did you are trying mix C-Script with lite-C?


No, I created a new topic and posted without checking/changing any of the defaults apart from selecting the "Add this thread to my Watched Topics." checkbox. It must have been automatically added to the C-Script section. How can I change that?
Posted By: tolu619

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/05/14 22:09

Guys, I still haven't found the root of the problem. I can't assign my models the default shaders that came with Gamestudio
Posted By: tolu619

Re: my.material stopped working after latest Gamestudio update8.10.3 - 07/10/14 09:10

Found it! The include folder was ok, but I had to copy the files from the include folder into my project folder and overwrite the old files.
© 2024 lite-C Forums