Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 1,098 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
baffling phenomenon #413501
12/14/12 19:01
12/14/12 19:01
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I'm using A6.6

When I compile my game from WED all is fine.

But when I publish it, the sprites with the action below all fade to alpha 0 immediately after it loads. Poof! Gone!

Code:
action act_obj_set
{	
	ent_obj = me;
	while(!player){wait(1);}
	my.collision_range = 400;
	my.fade_dist = 500; //1000;
	my.fade_speed_fac = 0.01;
	vec_set(d3d_lodfactor,vector(500,650,800));
	my.passable = on;
	my.polygon = on;
	my.alpha = 100;
	vec_set (temp, my.pos);
	temp.z -= 2000;
	my.z -= c_trace (my.pos, temp, ignore_me + ignore_you + ignore_sprites + ignore_passable) + my.z_adjustment; 
}


Re: baffling phenomenon [Re: JazzDude] #413502
12/14/12 19:11
12/14/12 19:11
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The code you're showing here does no fading at all. If you have multiple entities with this action attached ent_obj will always point to the most recently created one. Is this intentional?


Always learn from history, to be sure you make the same mistakes again...
Re: baffling phenomenon [Re: Uhrwerk] #413513
12/14/12 21:38
12/14/12 21:38
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
No, it doesn't have to be there. But removing it doesn't change things. The action works okay until I publish.

Then the sprites appear in proper position but immediately fade away like they're all out of LOD visible range.

Re: baffling phenomenon [Re: JazzDude] #413516
12/14/12 22:12
12/14/12 22:12
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Well, I don't think that the code you're showing here is causing the trouble.


Always learn from history, to be sure you make the same mistakes again...
Re: baffling phenomenon [Re: Uhrwerk] #413520
12/14/12 23:41
12/14/12 23:41
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I don't think so either.

The real question is, Why is the published version different from the version compiled in WED.


Re: baffling phenomenon [Re: JazzDude] #413521
12/15/12 00:02
12/15/12 00:02
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I reinstalled A660 but that didn't help.

Re: baffling phenomenon [Re: JazzDude] #413524
12/15/12 00:24
12/15/12 00:24
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Have you maybe used one of the statistic variables in the published version and forgot that they are all 0 in the release version? I'm talking about time_level, time_entities etc.


Always learn from history, to be sure you make the same mistakes again...
Re: baffling phenomenon [Re: Uhrwerk] #413535
12/15/12 05:47
12/15/12 05:47
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
No, none of those variables were used.

I thought it might be a conflict with the A8 demo so I uninstalled both versions, cleaned up the registry and reinstalled A6. But that didn't change anything. frown

Re: baffling phenomenon [Re: JazzDude] #413588
12/15/12 16:38
12/15/12 16:38
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Is this problem maybe frame rate dependent, i.e. does the development engine run significantly faster or slower than the published one?


Always learn from history, to be sure you make the same mistakes again...
Re: baffling phenomenon [Re: Uhrwerk] #413774
12/17/12 16:57
12/17/12 16:57
Joined: Sep 2003
Posts: 733
Whitefish, Montana
JazzDude Offline OP
User
JazzDude  Offline OP
User

Joined: Sep 2003
Posts: 733
Whitefish, Montana
I uninstalled A6.6 again and started with a fresh download of A6.4 and the 6.6 upgrade. The problem was still there. I've concluded it's not an engine problem and I'll look for a solution in another thread.

Thanks, Uhrwerk, for your kind assistance.

Page 1 of 2 1 2

Moderated by  HeelX, Spirit 

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