Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (AndrewAMD, SBGuy, TipmyPip, ozgur), 923 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ent_bonehandle - invalid function arguments #457670
01/26/16 11:31
01/26/16 11:31
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Code:
long MFBoneHandle = ent_bonehandle(my,"Bone2",0);
printf("%d",(int)MFBoneHandle);


I'm getting an "invalid function arguments" error, after that it prints "3" to the screen which I guess is the correct handle (as I can use it to reset a bone's position).
When I use a regular string it works without error message:

Code:
str_cpy(str_tmp,"Bone2");
long MFBoneHandle = ent_bonehandle(my,str_tmp,0);
printf("%d %s",(int)MFBoneHandle,_chr(str_tmp));



Nothing of importance and it may even be my misunderstanding but I thought I should post it here.


"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
Re: ent_bonehandle - invalid function arguments [Re: Superku] #457678
01/26/16 14:43
01/26/16 14:43
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Nein, das sollte beides äquivalent sein. Ich bekomme hier auch keinen Fehler, wenn ich den Namen direkt übergebe.

Passiert bei Ihnen das Problem auch mit einem Minimal-Skript, das nur die obigen Zeilen ausführt?

Re: ent_bonehandle - invalid function arguments [Re: jcl] #457683
01/26/16 14:56
01/26/16 14:56
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)


"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
Re: ent_bonehandle - invalid function arguments [Re: Superku] #457684
01/26/16 15:45
01/26/16 15:45
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Thanks! This was indeed a bug.

ent_bonehandle writes the bone name into the string when only the index is given. This should not happen here since the name is given, but for some reason the function still checks if the name is writeable. This will be fixed in the next update.

Re: ent_bonehandle - invalid function arguments [Re: jcl] #457686
01/26/16 16:11
01/26/16 16:11
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline OP
Senior Expert
Superku  Offline OP
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Thanks!


"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

Moderated by  jcl, Nems, Spirit, Tobias 

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