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
2 registered members (AndrewAMD, TipmyPip), 13,557 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
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 | 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