Home » MODDING HQ 1.13 » v1.13 Coding Talk » (New) Common Attachment Framework (new title; was The NAS Receiver)
Re: The NAS Receiver[message #303961] Fri, 27 April 2012 09:20 Go to previous messageGo to previous message
Madd_Mugsy

 
Messages:634
Registered:July 2005
Location: Canada
Quote:
How about: (New) Common Attachment Framework

That title will work Smile 1st post edited.

Quote:
how many bits is NAS using for layouts?


NAS looks like it was supposed to be using 64 unsigned bits, but I noticed it is actually only using 32 signed bits (max value = 2,147,483,647). I'm going to change it to use an unsigned 64 bit integer instead (max value = 18,446,744,073,709,551,615). I've just got a few more places to change it in the code. This is pretty much as big as it can get. Any bigger and it would likely be easier to just implement an alternate solution than to add code for special 128/256 bit integers Razz

In the XML Editor, BTW, these fields are using the Decimal data type, which is the biggest type allowed by VB.NET (max value = +/-79,228,162,514,264,337,593,543,950,335). Apart from Byte and Char, VB doesn't appear to have unsigned integers, so we're stuck with Decimal. Technically, this means you can put decimal points in the field. Expect weird things (rounding, at least) if the game picks up any decimal points....

Quote:

I'm surprised that this wasn't planned to be OAS compatible. Both OAS/NAS use the same Attachments.XML, and if that is cut down for only one of the two systems then that raises the XML overhead (ie. need to support both systems which lead to the whole NAS 0.7 winning out over NAS 0.6 in the end).


Good point. I just pegged this thing initially for a NAS addon since that's where all the action is. I've actually already changed the code (very, very minor changes were required) to make it work with OAS as well.


BTW, using your bitmask list above, I had trouble figuring out where sniper rifles fit in. A sniper rifle should be able to have rails to mount a Rifle LAM, but without some additional differentiation, I ended up with foregrips and GLs on my sniper rifles Razz LMGs face a similar issue.

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 10:34:37 GMT+2 2025

Total time taken to generate the page: 0.03291 seconds