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
2 registered members (Quad, AndrewAMD), 1,007 guests, and 6 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
Page 1 of 2 1 2
publishing problem/ error in effect #324701
05/22/10 18:35
05/22/10 18:35
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
When I run my game from SED or WED, everything works fine but when I publish it (resource checked or not), I will always get the
"Malfunction W1550: Error in effect"
warning. It appears for every material in my level without telling me what causes the error. The code should be fine.

Does anyone have a clue?

EDIT: I'm using 7.84.2.

EDIT2:

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>
#include "mtlFX.c"
///////////////////////////////

action arm() {
	my.material = mtl_envGlass;
}

function main() {
	level_load("test.wmb");
	ent_create("palette.pcx",nullvector,arm);
}



Just tried it, same results, where is the mistake?
The publish process states that "default.fx" and "mtlFX.c" have been successfully included.

EDIT3: It does work with 7.82.

Last edited by Superku; 05/23/10 01:29.

"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: publishing problem/ error in effect [Re: Superku] #324984
05/24/10 13:06
05/24/10 13:06
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Have you tried a wait (3)
after level_load and ent_create...

Re: publishing problem/ error in effect [Re: Ottawa] #324986
05/24/10 13:40
05/24/10 13:40
Joined: Apr 2008
Posts: 581
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 581
Austria
I notice you include it with "", but it must be included with <>.

That's probably a reason while the effect is not copied, check if the glass env fx is really in your CD folder.

Re: publishing problem/ error in effect [Re: Petra] #325017
05/24/10 15:58
05/24/10 15:58
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thanks for your response.

Quote:
Have you tried a wait (3)
after level_load and ent_create...

This is not necessary anymore (but nevertheless I gave it a try, same result).

Quote:
I notice you include it with "", but it must be included with <>


Not exactly, the difference between "" and <> is where the linker searches for the respective file (but nevertheless I gave it a try, too, same result).
The file does get included, too (I checked it).


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: publishing problem/ error in effect [Re: Superku] #325083
05/24/10 20:24
05/24/10 20:24
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
The mtlFx.c file requires some of the .fx files located in GameStudios "code" folder. Have you tried copying the content of this folder to your publishing folder?


Always learn from history, to be sure you make the same mistakes again...
Re: publishing problem/ error in effect [Re: Uhrwerk] #325085
05/24/10 20:30
05/24/10 20:30
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
It was a bad example, I'm sorry. Please have a look at the following code, same problem:

Code:
///////////////////////////////
#include <acknex.h>
///////////////////////////////

MATERIAL* mat_ambient = {
	effect ="

	const float4x4 matWorldViewProj;   // World*view*projection matrix. 
	const float4 vecAmbient; // Ambient color, passed by the engine. 
	
	float4 AmbientVS(in float4 InPos: POSITION): POSITION 
	{ 
		return mul(InPos, matWorldViewProj); 
	} 

	float4 AmbientPS(): COLOR 
	{ 
		return vecAmbient; 
	} 

	technique AmbientTechnique 
	{ 
		pass P0 
		{ 
			VertexShader = compile vs_1_1 AmbientVS(); 
			PixelShader  = compile ps_1_1 AmbientPS(); 
		} 
	} 
	";
}

action arm() {
	my.material = mat_ambient;
}

function main() {
	level_load("test.wmb");
	ent_create("palette.pcx",nullvector,arm);
}

(You don't need to include default.c.)

Can someone please try to publish this code with 7.84 and run it?

Thanks in advance!


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: publishing problem/ error in effect [Re: Superku] #325159
05/25/10 00:04
05/25/10 00:04
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Superku

I tried your code in SED
I had to remove test.wmb since I don't know what it looks like.
I did get a white square in the middle of the screen.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: publishing problem/ error in effect [Re: Ottawa] #325164
05/25/10 01:42
05/25/10 01:42
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thank you, Ottawa. A white square is fine.
Did you publish the code? It works for me in SED, too.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: publishing problem/ error in effect [Re: Superku] #325212
05/25/10 13:29
05/25/10 13:29
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Superku!

I published your test code
(My antivirus was in the way....I cleared that up)

The result.

Can't open file (first message)
Error in effect : mat_amibient (second message)

Then I got a blue background window with a mauve square in the center.


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Re: publishing problem/ error in effect [Re: Ottawa] #325231
05/25/10 14:42
05/25/10 14:42
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thank you very much, I get the second message
"Error in effect : mat_amibient",
too, but not the first one. When does "Can't open file" show up?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Page 1 of 2 1 2

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