0 registered members (),
17,416
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Strange: WED Entity skills zero?
[Re: ThunderStorm]
#433685
12/04/13 13:50
12/04/13 13:50
|
Joined: Jan 2006
Posts: 968
EpsiloN
User
|
User
Joined: Jan 2006
Posts: 968
|
What do you mean? If you change a level the entities get removed, so a skill wont saved... If you made the next level in WED and you set some skills in WED, and they dont appear when that level is loaded, you probably forgot to re-build the level to include the new changes in the .wmb file.  PS.: There is an option, I think (havent used WED in a while) to only update entities... Works a LOT faster, if you dont want to wait for the whole level to be built.
Last edited by EpsiloN; 12/04/13 13:51.
|
|
|
Re: Strange: WED Entity skills zero?
[Re: EpsiloN]
#433688
12/04/13 13:56
12/04/13 13:56
|
Joined: Dec 2013
Posts: 10 RLP, Germany
ThunderStorm
OP
Newbie
|
OP
Newbie
Joined: Dec 2013
Posts: 10
RLP, Germany
|
The problem exists before a new level is loaded. Here are the skill-settings in WED: Skill1: -768.000 Skill2: 1022.000 Skill3: 49.000 Here is the entity-action:
function actLevelchange()
{
my.emask |= ENABLE_IMPACT;
my.event = levelchangeEvent;
printf("%.4f, %.4f, %.4f", my.skill[0], my.skill[1], my.skill[2]);
}
This should print the first three skillvalues, but it prints 0.0000,0.0000,0.0000... UPDATE: Rebuilding the map several times didn't fix the problem...
Last edited by ThunderStorm; 12/04/13 15:31.
|
|
|
Re: Strange: WED Entity skills zero?
[Re: ThunderStorm]
#433696
12/04/13 15:46
12/04/13 15:46
|
Joined: Dec 2013
Posts: 10 RLP, Germany
ThunderStorm
OP
Newbie
|
OP
Newbie
Joined: Dec 2013
Posts: 10
RLP, Germany
|
OK, I solved it.
There was an error with the VECTOR-Pointer, in which I stored the skill-values in.
Thanks, ThunderStorm
Last edited by ThunderStorm; 12/04/13 15:48.
|
|
|
Re: Strange: WED Entity skills zero?
[Re: ThunderStorm]
#433705
12/04/13 19:24
12/04/13 19:24
|
Joined: Sep 2003
Posts: 6,861 Kiel (Germany)
Superku
Senior Expert
|
Senior Expert
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
|
There is a mistake in your printf line, too. Try the following code:
void main()
{
var my_var = 1404.5;
printf("%.4f",my_var);
printf("%.4f",(double)my_var);
}
The first printf will tell you that the variable is "0.0000", the second printf tells you the correct value. Check the manual for printf, it does not accept vars.
"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
|
|
|
|