2 registered members (7th_zorro, dr_panther),
724
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: vec_for_screen / vec_to_screen
[Re: alpha_strike]
#301950
12/15/09 15:51
12/15/09 15:51
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
User
|
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi!
the vector temp is empty. try putting a value of zero VECTOR temp = {x=0; y=0;z=0;}
Last edited by Ottawa; 12/15/09 16:06.
Hope this helps! Ottawa Ver 7.86.2 Pro and Lite-C
|
|
|
Re: vec_for_screen / vec_to_screen
[Re: Ottawa]
#301956
12/15/09 16:05
12/15/09 16:05
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
VECTOR has to be in capitals (nur um sicherzugehen, falls du das nicht eh schon hast).
Edit: too slow...
Last edited by Superku; 12/15/09 16:06.
"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
|
|
|
PROBLEM vec_for_screen
[Re: Superku]
#302008
12/15/09 21:51
12/15/09 21:51
|
Joined: Mar 2007
Posts: 1,852
alpha_strike
OP
Serious User
|
OP
Serious User
Joined: Mar 2007
Posts: 1,852
|
Sorry fellows, I am going crazy. Totally blacked out. Some bros, please have a look... This is some code. I just want to try out vec_for_screen. I load a level, with existing camera... and always get a crash. What is wrong with this lines???!?!?! E1515 invalid arguments in start_the_menu
VECTOR* testvec = {x=500; y=500;z=500;} function start_the_menu() { level_load("leer_lev.wmb");
vec_set(camera,vector(0,0,0)); camera.pan=100; camera.tilt=5; wait(2);
vec_for_screen(testvec,camera);
}
Last edited by alpha_strike; 12/15/09 21:52.
|
|
|
Re: PROBLEM vec_for_screen
[Re: alpha_strike]
#302012
12/15/09 22:14
12/15/09 22:14
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
vec_set(camera.x,vector(0,0,0));
dont forget the .x ?
"empty"
|
|
|
Re: PROBLEM vec_for_screen
[Re: flits]
#302014
12/15/09 22:32
12/15/09 22:32
|
Joined: Nov 2009
Posts: 43 Turkiye
Machera
Newbie
|
Newbie
Joined: Nov 2009
Posts: 43
Turkiye
|
maybe testvec values are not invalid on this contdition. try another values.
Last edited by Machera; 12/15/09 22:33.
|
|
|
Re: PROBLEM vec_for_screen
[Re: flits]
#302015
12/15/09 22:38
12/15/09 22:38
|
Joined: Mar 2007
Posts: 1,852
alpha_strike
OP
Serious User
|
OP
Serious User
Joined: Mar 2007
Posts: 1,852
|
bro, let me tell you some shit. I swear to god, that I use vec_for_screen nearly since 2002, my first game war train. Uncountable times. O.k., since I changed from C to Lite, there are several problems. But I solved them... This day I was near fictional suicide... I checked out hundreds of combinations and always thought that I still not clearly understand the new usage of vectors. BUT THAT I MADE THIS MISTAKE vec_set... bro - god bless you - thank you - this day comes to a good end. edit.Thank and hail to all bros who take the time and read my shit.
Last edited by alpha_strike; 12/15/09 22:39.
|
|
|
Re: PROBLEM vec_for_screen
[Re: alpha_strike]
#302016
12/15/09 22:45
12/15/09 22:45
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
tip: in lite-c if you pass a varible or one component of vec instead of a complete vector(i.e camera.x,my.x, my.skill30) variables following this variable are considered as y and z values of that vector you meant.
i.e if you use camera.x lite-c gets the camrea.y and z automatically.
if you use skills it will use following skills as vector's component. i.e:
VECTOR temp_vec; temp_vec.x = 10; temp_vec.y = 12; temp_vec.z = 35; vec_set(my.skill45,temp_vec); //lines above will make your skill45 10, skill46 12 and skill47 35.
---
in same way this sometimes result in diffrent sutiations. like panels only have pos_x and pos_y, there is no z pos.
if you call vec_set(panel1.pos_x,panel2.pos_x); it will set pos_x and pos_y correctly, but it will also make panel1's flags same as panel2. Because in PANEL struct var pos_x and var pos_y is followed by long flags. Thus vec_set gets it as third(z) component of vector and also sets it.
Last edited by Quadraxas; 12/15/09 22:49.
3333333333
|
|
|
Re: PROBLEM vec_for_screen
[Re: Quad]
#302045
12/16/09 07:48
12/16/09 07:48
|
Joined: Jul 2007
Posts: 959 nl
flits
User
|
User
Joined: Jul 2007
Posts: 959
nl
|
np its great that i am not the only one who is pulling out his here's some days
"empty"
|
|
|
|