Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: (New) Common Attachment Framework (new title; was The NAS Receiver)[message #304041] Sun, 29 April 2012 21:46 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
After playing around with this some more I'm rethinking dinglehopper's idea about having more than one list. There are so many different possible combinations that the list becomes unwieldy pretty quickly.

I was thinking we could retain the single list, and single AvailableAttachmentPoint tag within the game, but enable the xmls to contain more than one AvailableAttachmentPoint tag. This would work similarly to the DefaultAttachment tag, and yes it means it's ugly, and not great db design practice, adding extra columns like that, but it'd be easy to add in. All the AvailableAttachmentPoint tags in the item would be OR'd together by the game, and we could have several dropdowns in the editor instead of just one.

I don't think we'd need to apply this to the other AttachmentPoint tag though. Attachments tend to connect to just one or a few places, whereas guns have many available connection points.

EDIT: testing this out now with 10 AvailableAttachmentPoint tags. I also think we can cut down the number of DefaultAttachment tags from 20 to 10... any opposed to that?

EDIT:

Sample picture:
http://dl.dropbox.com/u/76356832/JA2/Editor%20-%20Multiple%20Available%20Attachment%20Points.jpg

In this iteration, I'm just using the CAF for RIS and AK stuff so far. But the additional fields should make adding stocks, barrels and magwells much easier.

Example of attachment granting RIS attachment points:

http://dl.dropbox.com/u/76356832/JA2/Editor%20-%20RIS%20Attachment%201.jpg
http://dl.dropbox.com/u/76356832/JA2/Editor%20-%20RIS%20Attachment%202.jpg

The CAF makes these items much easier Very Happy

[Updated on: Sun, 29 April 2012 22:38] by Moderator

Report message to a moderator

First Sergeant

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New Stealth Mechanics
Next Topic: [IDEA] New Magazine System
Goto Forum:
  


Current Time: Fri Jan 10 09:59:26 GMT+2 2025

Total time taken to generate the page: 0.02452 seconds