Home » MODDING HQ 1.13 » v1.13 Coding Talk » [IDEA] New Magazine System
Re: [IDEA] New Ammunition System[message #286942] Mon, 18 July 2011 22:19 Go to previous messageGo to previous message
ctiberious is currently offline ctiberious

 
Messages:605
Registered:March 2007
My first redesign of the xml files was a complete, from the ground up, redesign. I put all similar classed items together, with gaps between each class of item for later expansion. So, as an example, items 1-9 were all money class items, or "blanks" specifically set aside so that modders could add money class items and still keep everything together. This worked just fine except if we play a version of the game that limits us to only 350 items (this is what happens if you start the game with only a Data folder).

There are approximately 145 "static" items. That is, items that the code references directly. The "Angel vest" is only one such item. Various armors are referenced for creature NPCs and tanks, as an example. And there are a couple "generic" gun entries as well. These are all easily handled regardless of how I redesign the xml layout. In other words, if I change the "Kevlar Leather Vest" to item 40, so long as I tell the code that the item is now 40, the quest should run just fine. So I just have to change my redesign/clean-up so that we have the "basic" items in the first 350 indecies so that regardless of how you play the game, you still get access to the correct equipment.
Right now I'm looking at restoring the first 350 items back to their original layout, then tack all the "new" stuff in an orderly fashion from 351 on. The main stumbling block is that NMS is a replacement of OMS. My intention is to include the ability to play in "OMS mode" but even if you did, the code would still be using NMS. There would just be alot of automation running in the background. For example, right now you load a "5.56mm Mag 30" 'ammo item' into a weapon to load it. Once NMS is finished, playing in OMS mode would still allow you to load a "5.56mm Mag, 30" item, and from the players point of view, both items should basically appear the same (at least, that's the intent). But from the code side, the "5.56mm Mag, 30" is just a mag item which will automatically be loaded with 30 rounds of the appropriate ammunition. As a result, I can't simply add all the NMS items after 350. If I did, and you tried to play the game with only the Data folder, you'd have weapons, armor, items, etc. And you'd have EITHER ammunition or magazines, but not both. So you really wouldn't be able to play. I have to make sure that all the magazine and ammunition items that "DATA only" needs are included in that first 350 indecies.

I'm hoping all this makes sense.

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
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
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
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
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
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
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
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) Common Attachment Framework (new title; was The NAS Receiver)
Next Topic: Path finding problems in 1.13
Goto Forum:
  


Current Time: Sat Jan 25 13:24:07 GMT+2 2025

Total time taken to generate the page: 0.06814 seconds