Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (BrainSailor, Quad), 7,086 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 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