Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,561 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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