Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_mtlset() -> crash #255151
03/08/09 05:06
03/08/09 05:06
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
ent_mtlset() doesn't work anymore for me. it always crashes. exactly the same project and code worked fine in older engine versions (i think it was 7.50).

what could be the reason for this? for example i simply do

ent_mtlset(my, mat_model, 1);

and it crashes. anyone else with this problem?

Re: ent_mtlset() -> crash [Re: ventilator] #255255
03/09/09 08:26
03/09/09 08:26
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
This was a bug. It happens when you change a non-existent material. This will be fixed in the next update; until then, only change skin materials when they are defined in MED.

Re: ent_mtlset() -> crash [Re: jcl] #257649
03/24/09 14:45
03/24/09 14:45
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
now i have a different problem with ent_mtlset().

in the entity action i have this:
Code:
my.material = mtl_chassisbase; // sets the cube map as material skin and sets the material matrix each frame
ent_mtlset(my, mtl_chassis, 1); // environment mapping
ent_mtlset(my, mat_model, 2);
ent_mtlset(my, mat_model, 3);


the first time i load the level everything works. the second time i load the level the environment mapping material doesn't work anymore. what could be the reason for this? crazy

Re: ent_mtlset() -> crash [Re: ventilator] #257657
03/24/09 15:36
03/24/09 15:36
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Is it a level entity or a view entity? If it's a level entity, are you setting the materials after every level loading?

Re: ent_mtlset() -> crash [Re: jcl] #257661
03/24/09 15:45
03/24/09 15:45
Joined: May 2002
Posts: 7,441
ventilator Offline OP
Senior Expert
ventilator  Offline OP
Senior Expert

Joined: May 2002
Posts: 7,441
it's a level entity and the entity action where i assign the materials runs after loading the level.

Re: ent_mtlset() -> crash [Re: ventilator] #257726
03/25/09 07:27
03/25/09 07:27
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
That should work, then. Can you upload or email that project? I'll have to look into it.

Re: ent_mtlset() -> crash [Re: jcl] #258047
03/27/09 11:07
03/27/09 11:07
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Thanks for the project. The reason of the problem was that effects of model-internal materials were released at level exit. Thus, the material had no effect anymore after loading the level the second time. This will be fixed in the next update. You can work around this with using effect_load() for the chassis material.


Moderated by  jcl, Nems, Spirit, 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