Gamestudio Links
Zorro Links
Newest Posts
nba2king Latest Roster Update Breakdown
by joenxxx. 10/14/25 06:06
Help!
by VoroneTZ. 10/14/25 05:04
Zorro 2.70
by jcl. 10/13/25 09:01
ZorroGPT
by TipmyPip. 10/12/25 13:58
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 10/11/25 18:45
Reality Check results on my strategy
by dBc. 10/11/25 06:15
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (Grant, joenxxx), 9,921 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
joenxxx, Jota, krishna, DrissB, James168
19170 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: 28,028
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,028
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: 28,028
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,028
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 | 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