Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
my.material stopped working after latest Gamestudio update8.10.3 #442853
07/04/14 23:24
07/04/14 23:24
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
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?

Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: tolu619] #442854
07/04/14 23:54
07/04/14 23:54
Joined: Jul 2004
Posts: 785
Serbia
Iglarion Offline
User
Iglarion  Offline
User

Joined: Jul 2004
Posts: 785
Serbia
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.


IGRAVISION Page - www.igravision.com
RPG project - The Battle For Forgol 92.75%
Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: Iglarion] #442855
07/05/14 00:01
07/05/14 00:01
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
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?

Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: tolu619] #442856
07/05/14 00:03
07/05/14 00:03
Joined: Jul 2004
Posts: 785
Serbia
Iglarion Offline
User
Iglarion  Offline
User

Joined: Jul 2004
Posts: 785
Serbia
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?


IGRAVISION Page - www.igravision.com
RPG project - The Battle For Forgol 92.75%
Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: Iglarion] #442857
07/05/14 00:21
07/05/14 00:21
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
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?

Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: tolu619] #442919
07/05/14 22:09
07/05/14 22:09
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
Guys, I still haven't found the root of the problem. I can't assign my models the default shaders that came with Gamestudio

Re: my.material stopped working after latest Gamestudio update8.10.3 [Re: tolu619] #443152
07/10/14 09:10
07/10/14 09:10
Joined: Jun 2014
Posts: 97
Lagos, Nigeria
T
tolu619 Offline OP
Junior Member
tolu619  Offline OP
Junior Member
T

Joined: Jun 2014
Posts: 97
Lagos, Nigeria
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.


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