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
4 registered members (AndrewAMD, fogman, Grant, juanex), 972 guests, and 7 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
c_trace not working at all with c extension !!! #275174
06/30/09 13:11
06/30/09 13:11
Joined: Jun 2009
Posts: 27
Bosnia and Herzegovina, Saraje...
C
CharlieAmer Offline OP
Newbie
CharlieAmer  Offline OP
Newbie
C

Joined: Jun 2009
Posts: 27
Bosnia and Herzegovina, Saraje...
hello, was testing my graphic card with a big particle system (about 8300 particles), and it's running on very good fps :), but when I save a file as "main.c", c_trace function won't work at all ... when I save it as "main.wdl", it's working great, and every particle is scanned ... how can I repair this in c extension ??

here is my code (it's same in .c and .wdl):
Code:
if (my.skill1==0) {
		if (c_trace(
			vector(my.x,my.y,my.z),
			vector(my.x,my.y,my.z-0.3),
			IGNORE_ME | IGNORE_YOU | IGNORE_PASSABLE |
			 IGNORE_PASSENTS | IGNORE_MODELS | IGNORE_SPRITES |
			  IGNORE_CONTENT) !=0 ) 
		  	{
		  			reset(pr,MOVE);
	  				pr.gravity=0;
	  				x=my.x;
	  				y=my.y;
	  				z=my.z+100;
	  				my.skill1=2;
	  				pr.lifespan=1;
	  		}
	}



as you can see, c_trace is ignoring everything except terrain, because of speed ...

any help is appreciated.

Re: c_trace not working at all with c extension !!! [Re: CharlieAmer] #275260
06/30/09 19:16
06/30/09 19:16
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
heya,

when loading main.c will automatically load main.wdl, have you removed the main.wdl when using .c?

Re: c_trace not working at all with c extension !!! [Re: MrGuest] #275366
07/01/09 06:38
07/01/09 06:38
Joined: Oct 2006
Posts: 175
G
Gumby22don Offline
Member
Gumby22don  Offline
Member
G

Joined: Oct 2006
Posts: 175
yep. keep the folder you run it in clean. When moving from A6 (wdl files) to A7 (.c files) I hit this problem.

ie. remove all .wdl files from the project folder, then run the .c file.

Don
have a great day


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