Jump to content

Ped component database


Dante666

Recommended Posts

Is there any plans to do some kind of database which contains more specific information about components each ped can use? I mean about different props, what kind of clothes they are wearing etc. There are some information about components in here and some good images with ids in here.

It would be nice for callouts if you could know the color of the shirt suspect is wearing and stuff like that :) I know it would be a lot of work to add all that data but with community helping I don't think it should be too much work. Of course if people use texture mods for peds it would make the information wrong but I don't know if that would be a big problem.

Link to comment
Share on other sites

Here's a crude xml representation what i meant

<Ped>
	<Model>a_f_m_fatbla_01</Model>
	<Gender>Female</Gender>
	<Ethnicity>Black</Ethnicity>
	<Component componentId="3" drawableId="0" textureId="0"> <!-- Shirt -->
		<Type>TShirt</Type>
		<Colors>
			<Color>Pink</Red>
			<Color>White</Color>
		<Colors>
		<Pattern>Striped</Pattern>
	</Component>
	<Component componentId="3" drawableId="1" textureId="0"> <!-- Another shirt -->
		<Type>TShirt</Type>
		<Colors>
			<Color>Blue</Red>
		<Colors>
		<Pattern>Plain</Pattern>
	</Component>
	<Component componentId="4" drawableId="0" textureId="0"> <!-- Pants -->
		<Type>Shorts</Type>
		<Colors>
			<Color>Green</Red>
		<Colors>
		<Pattern>Plain</Pattern>
	</Component>
	<Component componentId="4" drawableId="1" textureId="0"> <!-- Another pants -->
		<Type>CargoPants</Type>
		<Colors>
			<Color>Blue</Red>
		<Colors>
		<Pattern>Plain</Pattern>
	</Component>
</Ped>

Now you could create a ped randomly based on that data and get a callout something like "We got a black female with pink and white t-shirt and blue cargopants wreaking havoc in Grove Street" :)

Link to comment
Share on other sites

This would be very useful to have...but like you said...its a lot of work.

We would probably write a plugin to do most of the behind-the-scenes work, actually. Maybe the plugin spawns the first ped, then cycles through the variations, and the user has to type in the color of each component? Then on to the next ped, and so on. Lots of legwork.

Edited by Stealth22

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

Link to comment
Share on other sites

  • Management Team

To add to Stealth22, this is basically how we gathered all the different ped models and their variations (http://ragepluginhook.net/PedModels.aspx): Having a plugin to spawn them and then take a screenshot. I guess one could also do basic color detection of components via code when spawning in a well lighted environment and freezing the time.

Please do not PM me unless really necessary (knowing you helps). If you think you need my attention in a topic, tag me.

Link to comment
Share on other sites

Color detection via code would be faster for sure but if we want to have more detailed information like multiple colors, pattern, hair type etc. then it would most certainly need manual work. And instead of typing anything manually I think everything should be predefined to keep the data consistent, also it would be faster to add/edit data.

So maybe a plugin where you can spawn a ped, cycle thru each component and their variations and edit the info of the component. When editing info it would ask the type, color etc. and you just select proper value for that from the list. 

Link to comment
Share on other sites

  • 1 month later...

I've started on a module that would read an XML file just like the one you posted there. Basically, you would give it a ped, and based on the models defined in that XML file, it would return you a description object, if it found anything.

I've just discovered a major flaw though. A ped model can have multiple ethnicities, can't it? Like, if you turn your ped into a cop or a highway patrol officer, each one of those two ped models has like 2 or 3 different heads and hands, each of them being a different ethnicity.

Might have to specify an ethnicity for each component, but I'm not sure if that makes any sense.

Any ideas, @Dante666?

Stealth22
LSPDFR Tester | Plugin Developer
My Plugins: Code 3 Callouts | Traffic Control | Keep Calm | ALPR+

Please do not PM me for any kind of technical support.
I unfortunately do not have enough free time to answer every PM that I get. For issues with my plugins, please post in the comments section of the file, or it's forum thread. You'll get a much quicker response from me there than if you send me a PM; I do my best to respond to every question in the comments sections. For API/programming questions, please post them in the API Development forum, so all developers can benefit from the answer as well. Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...