Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Limb keyvalues

Author
Message
prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 5th Mar 2009 13:53 Edited at: 5th Mar 2009 13:57
In 3dws there are different "variables" you can use by pressing shift enter (keyvalues), how would I access them from my limbs ingame?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Mar 2009 18:45
I used to have an example file generated by 3DWS but don't have it any more - can you post a complete example model (preferably with textures) and I'll start from there.

BTW, this is more a parsing problem than anything else - as you saw from the other thread, getting hold of limb names is fairly easy.

prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 5th Mar 2009 20:27
what do you mean? like simple_example.3dw? or another file?
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 5th Mar 2009 20:51 Edited at: 5th Mar 2009 20:52
Make your model, with variables, then export it as a .dbo file.

prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 5th Mar 2009 21:34 Edited at: 5th Mar 2009 22:27
Here it is: there is a chrspawn, 3 ai_spawn, and an ai_trigger. What I need to do is find out (on ai_spawn or whatever) what the value for "class" is. any help is appreciated. Could I split the returned string with all of the variables into different "lines" by spliting them with n and then split them again using = ?

EDIT: I am trying that splitting thing, and it seems to be working (i can get the line like "Classname=aispawn" and "health=100" on their own, so it should take a few more lines of code to be able to split them fully so I can see what variables are equal to what).

Attachments

Login to view attachments
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 6th Mar 2009 18:28
I'll pick this up later tonight and start work on it, but basically, all I'm going to do is grab the limb names, split the name into key=value strings, then split those and post them into a map< int,map<string,string> > (int=object number, first string=key, second string=value)

prasoc
15
Years of Service
User Offline
Joined: 8th Oct 2008
Location:
Posted: 6th Mar 2009 19:22
No worries, I have it sorted using strtok() and strings, but thanks for the help.

Login to post a reply

Server time is: 2024-09-30 19:28:28
Your offset time is: 2024-09-30 19:28:28