Home » MODDING HQ 1.13 » v1.13 General Development Talk » Bobby Ray's is missing a lot of items
Re: Bobby Ray's is missing a lot of items[message #279598] Tue, 10 May 2011 14:19 Go to previous messageGo to next message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
JMich
The problem is the
1
line in items.xml
If I remember correctly, a value of 1 means OAS only, a value of 2 means NAS only, while a value of 0 (or absent tag) means both. So, open items.xml, search for medi-kit (or another item you know BR should sell but doesn't), look for the tag and remove it. There are only a few that should be left as 1, but the only one I remember is the ACOG Combo.


I've browsed through the items.xml and it's pretty massive. In order for me to search better, I open it with notepad or wordpad and do a search for the items. I started with the canteen. I understand that this was fixed for the next release, but since I don't want to wait I have no qualms in trying to fix it myself. I did notice that it seemed like the canteen has a couple of references of below it. IIRC correctly there was one just beneath the description and another one short below that.

So what you are saying is, if I set items to "0" instead of "1" or "2", BR will have the items available? I haven't looked at the other merchants in game yet, but I'm going to look for them. By the way, what does NAS and OAS mean?

Report message to a moderator

Private
Re: Bobby Ray's is missing a lot of items[message #279604] Tue, 10 May 2011 16:01 Go to previous messageGo to next message
JMich is currently offline JMich

 
Messages:546
Registered:January 2011
Location: Greece
This is the item tag for canteen from revision 4379 (or something like that). Note that the "attachment" tags that exist are "" which defines which slots can accept a canteen as attachment in NAS (New Attachment System) and "" which defines the item as an attachment. The "" tag is missing completely, thus it accepts the default value of 0 (both New Attachment System and Old Attachment System).
	
		214
		Canteen
		Canteen
		This polyethylene canteen is extremely practical. Whenever you encounter a fresh mountain spring, you can refill it again.
		Canteen
		Any sensible mercenary would carry such a useful item with him. This water-filled polyetherene canteen is refillable and reusable so be sure to have one nearby.
		268435456
		0
		1
		2
		5
		10
		4
		22
		10
		1
		1
		1
		5
		1
		1
		
		
		
	
P.S. Notepad, Wordpad, Notepad++ or any other text editor is perfectly capable of altering any xml file, especially when you want to replace a massive amount of lines.

Report message to a moderator

First Sergeant
Re: Bobby Ray's is missing a lot of items[message #279663] Wed, 11 May 2011 05:02 Go to previous messageGo to next message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
JMich,

I see what you are talking about now. Not to beat a dead horse, but if I remove the " tag completely, then the item will be available on Bobby Ray's? The only items I care about are the canteens and first aid kits. Everything else to me can wait.

Report message to a moderator

Private
Re: Bobby Ray's is missing a lot of items[message #279670] Wed, 11 May 2011 09:01 Go to previous messageGo to next message
tais

 
Messages:656
Registered:February 2008
Location: NL
if you remove that tag completely the item will be available in the usual spots in the game, not just BR's

Report message to a moderator

First Sergeant

Re: Bobby Ray's is missing a lot of items[message #279672] Wed, 11 May 2011 09:07 Go to previous messageGo to next message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
So that's a yes then? I had a problem in attempting to edit the xml. When I attempted to edit it in notepad and wordpad, it would not let me save it. It asked me to over-write the file and when I said yes, I got "Permission denied" or something like that. I've been trying to find how to edit the xml files but to no avail. Do I need to save the file somewhere else, delete the original, then move the copy back to the folder? (After backup has been made first of course).

Report message to a moderator

Private
Re: Bobby Ray's is missing a lot of items[message #279674] Wed, 11 May 2011 09:21 Go to previous messageGo to next message
JMich is currently offline JMich

 
Messages:546
Registered:January 2011
Location: Greece
UAC (again)
You are running either Vista or 7, and you have installed the game in Program Files. To edit any file there, you need administrator access. Two solutions
1) Run notepad.exe (or equivalent) as administrator, File->Open the .xml you want to modify and do the changes, or
2) Copy the file somewhere else, do any changes you deem necessary and copy it back. UAC will pop up, accept the elevated privileges.

Even better, do not install JA2 in Program Files folder

Also, what Tais is saying is this. If an item is not available in the current game settings (Sci-Fi only, Tons of Guns only, NAS/OAS only), the item will not be available for sale, enemies will never have the item, and you shouldn't be able to find it on the maps. If an item is legal with the current game settings, it is possible (but not certain) to be found in all those places.

Hope this helps clarify

Report message to a moderator

First Sergeant
Re: Bobby Ray's is missing a lot of items[message #279677] Wed, 11 May 2011 09:46 Go to previous messageGo to next message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
I think I get it now. Curious, when I'm able to remove the tag (at work now) I wonder if I need to start a new game in order for the item to become available?

I guess I have no idea what the "attachment system" (old or new) really is. I'll start searching. Thanks for all your help and time to explain.

Report message to a moderator

Private
Re: Bobby Ray's is missing a lot of items[message #279679] Wed, 11 May 2011 09:52 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
ordie, allow it to search for updates - the one on my skydrive is a bit old - notepad++ is exactly what you need

Report message to a moderator

Captain
Re: Bobby Ray's is missing a lot of items[message #279682] Wed, 11 May 2011 10:06 Go to previous messageGo to next message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
Will do Logisteric, thanks.

Report message to a moderator

Private
Re: Bobby Ray's is missing a lot of items[message #279772] Thu, 12 May 2011 06:11 Go to previous message
Redshirt78 is currently offline Redshirt78

 
Messages:12
Registered:May 2011
You guys are awesome. The items are now available in BR's. I did have to start a new game to get the items to show up. Thanks a bunch!

Report message to a moderator

Private
Previous Topic: TEASER: Enhanced Stock Animations (Regular Male)
Next Topic: More Savegame Slots
Goto Forum:
  


Current Time: Fri Mar 29 08:31:26 GMT+2 2024

Total time taken to generate the page: 0.01498 seconds