Home » PLAYER'S HQ 1.13 » v1.13 General Gameplay Talk » Just when you thought it was safe in the forums...
Just when you thought it was safe in the forums...[message #269331] Tue, 04 January 2011 16:27 Go to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
I'm back! :wave2: Well, I wasn't ever really gone but I've just been lurking.

I've been struggling with my "game development" PC at home but have it all set up now with a clean install of Windows so I can get going again on the new strategic AI stuff and all.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #269332] Tue, 04 January 2011 16:28 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
So, someone had some questions about the merchant XML stuff I added a while back. I scanned the forums but I don't see any discussion about it but I've never had much luck with the "search" function here.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #269333] Tue, 04 January 2011 16:31 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
as noone but you and me (that includes rowa, btw) actually knew it was there, there was no discussion

and just an idea: with you being back save times are indeed over - for you :devilaugh:

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #269334] Tue, 04 January 2011 16:36 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
Yeah, I think I made it *too* optional. If the new XML isn't in the dealer's files they just use the built-in program data. I suppose I should have had it write out the old built-in dealer data as XML, then merge that into the dealer XML, and then require the new XML to be there.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #269335] Tue, 04 January 2011 16:38 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
... and break the dealer-limit we have while you are at it.

how about rising the roster beyond 32?

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #269340] Tue, 04 January 2011 17:17 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
I'll have to check how the limit is done.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #269422] Wed, 05 January 2011 17:04 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
Argh! The code that handles the merchant ID#s and the files is really crude. What should probably be done is to move all of that into a separate XML file, something like MerchantBaseData.XML. That would link the merchants character ID#s to their dealer ID#s to their inventory files. I will work on that.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #269434] Wed, 05 January 2011 18:36 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
yippyaiyeah

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #271045] Mon, 24 January 2011 06:33 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
I finally got around to comprehending the documentation for your old changes to merchant inventories. I read it a while back, but didn't figure out how to do anything beyond adjusting the cash on hand (not something I needed for UC-1.13) till today. Going against the advice of the document, I managed to assign the Gabby behaviour to a different NPC. Being able to reassign merchant functions to a different NPC is intended right? The warning is only there to keep players wanting to simply bump up Tony's cash on hand from accidentally disabling Tony as a merchant?

By the way, is there any way to set the Bartenders to buy stuff. My experimenting found that of the unused merchants in UC, only Gabby could buy and sell.

[Updated on: Mon, 24 January 2011 06:55] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #271046] Mon, 24 January 2011 07:42 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
The warning is there to keep people from messing with the file. A lot of the potential settings are actually never used by any of the current merchants but there is code to do something with them.

There is still some code specific to certain merchants that I didn't remove. Because of that you can't change the basic type of the merchant: buys only, buys and sells, sells only, or repairs. I was going to work out a way to change that and get rid of the code but I never got back to it.

What I was thinking of is that if the merchant had only a BUYCOSTMODIFIER then he would be a BUYONLY merchant. If he had only a SELLCOSTMODIFIER then he would be a SELLONLY merchant. If he had both then he'd be a BUYSELL merchant. If there was a repair cost then he'd be a REPAIRONLY merchant. Those choices are waht determine how you can interact and there's currently nothing to (for instance) allow a merchant to sell and repair.

Here is the default data of the merchants:

			//Buying	Selling	Merc ID#	Type											Initial						Flags
			//Price		Price			Of											Cash
			//Modifier	Modifier		Dealer

/* Tony	*/		{ 0.75f,	1.25f,	TONY,		ARMS_DEALER_BUYS_SELLS, 15000,	ARMS_DEALER_SOME_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 15000, 15000, 0, 1, 10, 1, 10, 2, 3, false, false },
/* Franz Hinkle */	{ 1.0f,		1.5f,	FRANZ,		ARMS_DEALER_BUYS_SELLS,	5000,	ARMS_DEALER_SOME_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 5000,  5000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Keith Hemps */	{ 0.75f,	1.0f,	KEITH,		ARMS_DEALER_BUYS_SELLS,	1500,	ARMS_DEALER_ONLY_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 1500,  1500,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Jake Cameron */	{ 0.8f,		1.1f,	JAKE,		ARMS_DEALER_BUYS_SELLS,	2500,	ARMS_DEALER_ONLY_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 2500,  2500,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Gabby Mulnick*/	{ 1.0f,		1.0f,	GABBY,		ARMS_DEALER_BUYS_SELLS,	3000,	ARMS_DEALER_GIVES_CHANGE			,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },

/* Devin Connell*/	{ 0.75f,	1.25f,	DEVIN,		ARMS_DEALER_SELLS_ONLY,	5000,	ARMS_DEALER_GIVES_CHANGE			,	5000,  5000,  0, 3, 10, 0, 10, 2, 3, false, false },
/* Howard Filmore*/	{ 1.0f,		1.0f,	HOWARD,		ARMS_DEALER_SELLS_ONLY,	3000,	ARMS_DEALER_GIVES_CHANGE			,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Sam Rozen */		{ 1.0f,		1.0f,	SAM,		ARMS_DEALER_SELLS_ONLY,	3000,	ARMS_DEALER_GIVES_CHANGE			,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Frank */		{ 1.0f,		1.0f,	FRANK,		ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS			,	500,   500,   0, 1, 10, 0, 100, 1, 2, false, true },

/* Bar Bro 1 */		{ 1.0f,		1.0f,	HERVE,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS			,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 2 */		{ 1.0f,		1.0f,	PETER,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS			,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 3 */		{ 1.0f,		1.0f,	ALBERTO,	ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS			,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 4 */		{ 1.0f,		1.0f,	CARLO,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS			,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },

/* Micky O'Brien*/	{ 1.0f,		1.4f,	MICKY,		ARMS_DEALER_BUYS_ONLY, 10000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	10000, 10000, 0, 1, 10, 1, 10, 1, 2, false, true },

			//Repair	Repair
			//Speed		Cost
/* Arnie Brunzwell*/	{ 0.1f,		0.8f,	ARNIE,		ARMS_DEALER_REPAIRS,	1500,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1500, 1500, 0, 1, 10, 1, 10, 1, 2, false, true },
/* Fredo */		{ 0.6f,		0.6f,	FREDO,		ARMS_DEALER_REPAIRS,	1000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1000, 1000, 0, 1, 10, 1, 10, 1, 2, false, true },
/* Perko */		{ 1.0f,		0.4f,	PERKO,		ARMS_DEALER_REPAIRS,	1000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1000, 1000, 0, 1, 10, 1, 10, 1, 2, false, true },

/* Elgin */		{ 1.0f,		1.0f,	DRUGGIST,	ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS				,	500,   500,   0, 1, 10, 1, 10, 1, 2, false, true },
/* Manny */		{ 1.0f,		1.0f,	MANNY,		ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS				,	500,   500,   0, 1, 10, 1, 10, 1, 2, false, true },


As you can see most of the "flags" aren't used. Some of them are obsolete now that dealers have specific lists of items they carry. But others have an effect in how their inventory is stocked (like the AMMO one)

Tony's XML for the flags:
		
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
			
		


Any idea what the gift thing is for? In the code it is handled as a "bribe" but it only seems to do something for Frank.

[Updated on: Mon, 24 January 2011 07:48] by Moderator

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #271053] Mon, 24 January 2011 12:56 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
SpaceViking
... and there's currently nothing to (for instance) allow a merchant to sell and repair.


please, please, please change that as i have a new dealer in mind (dubbed 'the grim gunsmith') to do exactly that: repair stuff ans sell special studd to special rpcs (and noone else) but perhaps this npc-scripting (need to learn lua) anyway

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #271084] Mon, 24 January 2011 20:42 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
That would require changing a lot more than what was the intent of the original XML work.

That said, I should investigate at least getting rid of the leftover hard-coded merchant stuff. It's mostly for Tony (to make sure he carries some ammo) and the liquor dealers.

Hmmm... "Tony and the Liquor Dealers"; sound like the name of a band.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #271085] Mon, 24 January 2011 20:44 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
please

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #271113] Tue, 25 January 2011 01:00 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
A while back I tried to use one of the bartenders as a gas station attendant (selling gas tanks), didn't seem to work as gas tanks never showed up in the items for sale. Is Jake's Merchant ID hard-coded to be the only merchant able to sell gas (I didn't see it in the list of possible flags though)?

EDIT: by the way I should thank you again, I was able to quickly give five of the six bartenders in Calisto/UC-1.13 the ability to sell drinks (except for Frank, they used character slots that are not normally merchants).

[Updated on: Tue, 25 January 2011 01:06] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #271238] Tue, 25 January 2011 20:56 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
No, there is code that adds gas to his inventory once you've done the right quest. That would be difficult to get working via XML which is why I left that stuff alone.

What is the coolness of gas canisters? Maybe that has something to do with it.

[Updated on: Tue, 25 January 2011 20:56] by Moderator

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273522] Mon, 14 February 2011 03:31 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Space Viking, I am seeing some odd buying behaviour with Betty (Keith NPC ID/merchant stuff) and Franz when I activate the extra merchant settings to reassign merchant functions. Oddly the two affected merchants do not have any of the extended tags added to their Merchant Inventory XML's.

It was originally reported that since UC-1.13 v3 was released last month that Betty stopped buying break lights. This is despite having the proper entry in the Keith merchant inventory XML, and also Keith in the stock Data-1.13 campaign buying them under the same r4057 .exe in Tais' final SCI (though I noticed that in Data-1.13, Keith was buying break lights without having them defined in the XML). The following were tried without success:

- reordering the XML inventory numerically by the item index
- adding the extra merchant tags to the Keith merchant XML explicitly pointing to the default 2: Keith Hemps and 147
- non-zero optimum inventory of break lights in the Keith merchant XML, this one led to Betty selling Break lights for $1.00, but still not buying them. Also realized that a bunch of other items on sale were being sold, but not being bought. It seems that the XML is forcing these items into inventory for sale by the merchant, but some internal and more restrictive rules were making these items "illegal" leading to refusal to buy, and appearing for sale for only $1.00.

It was later noticed that Franz was doing the same thing, but with some, but strangely not all weapon sights. ie. FLIR Sight for $1.00. The expected behaviour, from past UC-1.13 mods, is that Franz happily bought everything assigned in the XML.

What finally got Betty to buy break lights was to purge all modified merchant XML's (renaming the folders) so that the game would fall back on Data-1.13 for Merchant XML's. I could not get away with simply deleting the Keith merchant ID from the mod's Data folder, but I had to effectively purge all of them. This has me suspicious that the strange behaviour from Betty and Franz is related to those extra merchant settings I started using in UC-1.13v3.

Tony, merchants that sell only (Devin and bartenders), as well as NPC assigned the Gabby merchant traits seem un-affected, though in my own testing I haven't gotten around to systematically selling to Tony and Gabby every single item they are supposed to buy. I have also not tried selling blood cat parts to Micky.

At present the two options I see are:
1) leave as is and advise people to try liberating factories for income in-game.
2) Rebuild all merchant XML's from the ones in Data-1.13, not use the the extended merchant capabilities.

Thought I should bring up the issue with you before proceeding. Any input on this matter would be greatly appreciated.

[Updated on: Mon, 14 February 2011 03:46] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273531] Mon, 14 February 2011 05:27 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
What do the modified files look like?

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273533] Mon, 14 February 2011 05:37 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
/* Tony	*/			{ 0.75f,	1.25f,	TONY,		ARMS_DEALER_BUYS_SELLS, 15000,	ARMS_DEALER_SOME_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 15000, 15000, 0, 1, 10, 1, 10, 2, 3, false, false },
/* Franz Hinkle */	{ 1.0f,		1.5f,	FRANZ,		ARMS_DEALER_BUYS_SELLS,	5000,	ARMS_DEALER_SOME_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 5000,  5000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Keith Hemps */	{ 0.75f,	1.0f,	KEITH,		ARMS_DEALER_BUYS_SELLS,	1500,	ARMS_DEALER_ONLY_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 1500,  1500,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Jake Cameron */	{ 0.8f,		1.1f,	JAKE,		ARMS_DEALER_BUYS_SELLS,	2500,	ARMS_DEALER_ONLY_USED_ITEMS | ARMS_DEALER_GIVES_CHANGE, 2500,  2500,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Gabby Mulnick*/	{ 1.0f,		1.0f,	GABBY,		ARMS_DEALER_BUYS_SELLS,	3000,	ARMS_DEALER_GIVES_CHANGE							,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },

/* Devin Connell*/	{ 0.75f,	1.25f,	DEVIN,		ARMS_DEALER_SELLS_ONLY,	5000,	ARMS_DEALER_GIVES_CHANGE							,	5000,  5000,  0, 3, 10, 0, 10, 2, 3, false, false },
/* Howard Filmore*/	{ 1.0f,		1.0f,	HOWARD,		ARMS_DEALER_SELLS_ONLY,	3000,	ARMS_DEALER_GIVES_CHANGE							,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Sam Rozen */		{ 1.0f,		1.0f,	SAM,		ARMS_DEALER_SELLS_ONLY,	3000,	ARMS_DEALER_GIVES_CHANGE							,	3000,  3000,  0, 1, 10, 0, 100, 1, 2, false, true },
/* Frank */			{ 1.0f,		1.0f,	FRANK,		ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS							,	500,   500,   0, 1, 10, 0, 100, 1, 2, false, true },

/* Bar Bro 1 */		{ 1.0f,		1.0f,	HERVE,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS							,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 2 */		{ 1.0f,		1.0f,	PETER,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS							,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 3 */		{ 1.0f,		1.0f,	ALBERTO,	ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS							,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },
/* Bar Bro 4 */		{ 1.0f,		1.0f,	CARLO,		ARMS_DEALER_SELLS_ONLY,	250,	ARMS_DEALER_ACCEPTS_GIFTS							,	250,   250,   0, 1, 10, 0, 100, 1, 2, false, true },

/* Micky O'Brien*/	{ 1.0f,		1.4f,	MICKY,		ARMS_DEALER_BUYS_ONLY, 10000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	10000, 10000, 0, 1, 10, 1, 10, 1, 2, false, true },

										//Repair	Repair
										//Speed		Cost
/* Arnie Brunzwell*/{ 0.1f,		0.8f,	ARNIE,		ARMS_DEALER_REPAIRS,	1500,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1500, 1500, 0, 1, 10, 1, 10, 1, 2, false, true },
/* Fredo */			{ 0.6f,		0.6f,	FREDO,		ARMS_DEALER_REPAIRS,	1000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1000, 1000, 0, 1, 10, 1, 10, 1, 2, false, true },
/* Perko */			{ 1.0f,		0.4f,	PERKO,		ARMS_DEALER_REPAIRS,	1000,	ARMS_DEALER_HAS_NO_INVENTORY | ARMS_DEALER_GIVES_CHANGE,	1000, 1000, 0, 1, 10, 1, 10, 1, 2, false, true },

/* Elgin */			{ 1.0f,		1.0f,	DRUGGIST,	ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS							,	500,   500,   0, 1, 10, 1, 10, 1, 2, false, true },
/* Manny */			{ 1.0f,		1.0f,	MANNY,		ARMS_DEALER_SELLS_ONLY,	500,	ARMS_DEALER_ACCEPTS_GIFTS							,	500,   500,   0, 1, 10, 1, 10, 1, 2, false, true },


Those are the default settings. The ARMS_DEALER_xxxx ones are dangerous to set other than the few used above. I am not sure how they work and, as you can see, most of them are not used currently.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273535] Mon, 14 February 2011 06:08 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
The UC-1.13 v3.02 Patch should have all the current XML's, located here: http://www.mediafire.com/?wlpuhcgk3ojs0kf

However to actually see what is going on you'll need the full v3.00 mod (easiest to use the Single Click Installer that Tais put together for UC-1.13 SCI, http://www.ja-galaxy-forum.com/board/ubbthreads.php?ubb=showflat&Number=261665#Post261665) and apply the v3.02 Patch over it. Just use cheat codes to reach C13 (Betty) and L12 (Franz).

The UC-1.13 mod is primarily XML based, and is using Tais' compile of the rev4057 source code.

Additional weirdness out of Franz in UC-1.13v3:
- will buy and sell original JA2 Laser Sight
- will sell for $1.00 the LAM-200, but will not buy them (giving the impression that this item is an illegal item for him to have in inventory)
- will buy First Aid kits despite not being defined to do so in the XML

[Updated on: Mon, 14 February 2011 06:12] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273536] Mon, 14 February 2011 06:13 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
I just need to see the top of the .XML files.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273538] Mon, 14 February 2011 06:23 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Sure,

AlbertoInventory.xml


	
		11 
		76  
		
			45000
			
				45000
				45000
				0
			
		
	
	



CarloInventory.xml


	
		12 
		94  
		
			45000
			
				45000
				45000
				0
			
		
	
	



ElginInventory.xml


	
		17	
		153		
		
			45000
			
				45000
				45000
				0
			
		
	
	



GabbyInventory.xml


	
		4 
		77  
		
			45000
			
				45000
				45000
				0
			
		
	
	



HerveInventory.xml


	
		9 
		104  
		
			45000
			
				45000
				45000
				0
			
		
	
	



MannyInventory.xml


	
		18	
		152  		
		
			45000
			
				45000
				45000
				0
			
		
	
	



PeterInventory.xml


	
		10 
		105  
		
			45000
			
				45000
				45000
				0
			
		
	
	



All others lack the extra XML tags.


EDIT: basically I copied the example in the TXT document. The XML's modified above seem to be giving the correct merchant behaviour to the NPC's they're supposed to transform into merchants.

[Updated on: Mon, 14 February 2011 06:25] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273539] Mon, 14 February 2011 06:25 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
None of that should change the stuff they buy or sell.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273540] Mon, 14 February 2011 06:31 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
That's what I thought. Especially as the problem merchants are not even using modified XML's. It seems that just having these modified files throws off Franz and Keith who don't even have the extra features in their XML's. I can fix the odd behaviour by simply forcing the game to use exclusively the merchant XML's in Data-1.13.

I don't know, perhaps I made a mistake somewhere in adding the extra sections to the XML's. A lot of this was last moment, "hey I wonder what would happen if I just swapped these variables" experimenting.

I am considering purging the v3 merchant files and rebuilding them from the Data-1.13 folder that do work predictably. After that, I can re-introduce the extra merchants functions slowly and see at what point it all breaks.

[Updated on: Mon, 14 February 2011 06:36] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273561] Mon, 14 February 2011 15:07 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
wil473
I am considering purging the v3 merchant files and rebuilding them from the Data-1.13 folder that do work predictably. After that, I can re-introduce the extra merchants functions slowly and see at what point it all breaks.


That sounds like a good idea. There could be something wrong when it supercedes some of the default values but not all.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273562] Mon, 14 February 2011 15:11 Go to previous messageGo to next message
Buns is currently offline Buns

 
Messages:655
Registered:September 2010
I am a bit confused by this: what do the XMLs in NPC-Inventory actually do? Can I make a dealer sell a gun when adding it to his file, like say Devin selling weapons additionally?

Report message to a moderator

First Sergeant
Re: Just when you thought it was safe in the forums...[message #273567] Mon, 14 February 2011 17:14 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
The "new" stuff...

You can change how much they charge above normal prices (or pay), how much money they have and how often it regenerates, how they determine their inventory from the game progress, and (dangerously) some of the flags that determine their behavior (like do they give change or carry used items).

You can't change the basic type of a dealer (buys, sells, buy/sells, or repairs) right now because the game code depends on (for instance) Tony both buying and selling things. I am going to relax this restriction because for a lot of the dealers it doesn't matter.

The "old" stuff allows you to determine which items they potentially have in their inventory.

[Updated on: Mon, 14 February 2011 17:15] by Moderator

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273568] Mon, 14 February 2011 17:22 Go to previous messageGo to next message
Buns is currently offline Buns

 
Messages:655
Registered:September 2010
SpaceViking
You can't change the basic type of a dealer (buys, sells, buy/sells, or repairs) right now because the game code depends on (for instance) Tony both buying and selling things. I am going to relax this restriction because for a lot of the dealers it doesn't matter.

The "old" stuff allows you to determine which items they potentially have in their inventory.
I see, thank you.

Having more dealers buying and selling everywhere in Arulco would indeed be a good idea in order to get away from ALT+LMB as default, and may be a more elegent sollution for implementing this or that stuff than loading everything into BR and Tony.

Report message to a moderator

First Sergeant
Re: Just when you thought it was safe in the forums...[message #273591] Mon, 14 February 2011 22:48 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
BTW, Logisteric has me working on getting rid of the 18 merchant limit. I have it mostly done and hope to finish this week.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273601] Tue, 15 February 2011 03:38 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Excellent news on the more merchants, however did this feature make it under the Spring 2011 releases feature freeze?

A good idea, is now the only way to proceed for my mod. Simply deleting the extra tags from each of the modified Merchant XML's does not fix Betty and Franz, but complete removal of the modded NPC inventory folder from the VFS quene does. I am going to start off by purging the inventory XML's and starting again from the Data-1.13 ones. Once I've got people working as predicted I will then add back extra XML tags one merchant at a time and see at what point things break. I'll keep you updated on results here.

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273604] Tue, 15 February 2011 03:58 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
wil473
Excellent news on the more merchants, however did this feature make it under the Spring 2011 releases feature freeze?


Alas, no. There aren't that many changes, though, and I can support it on my own as a side release for modders. Really only they are interested in this.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273608] Tue, 15 February 2011 06:53 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Right, I've rebuilt merchant XML's and it all broke before adding the extra Merchant stuff. Beyond the extra XML tags the only other thing that was significantly different between UC-1.13 v3 and v2 was the intentional use of the Gabby merchant file (it is loaded out to effectively act as another Tony), and the activation of two more bartenders. Deleting the tricked out Gabby file fixed the Betty/Keith and Franz buying and selling weirdness. I must of pushed the Gabby merchant too far in terms of length of the XML (1687 entries), or items he was dealing with. The Gabby merchant worked just fine as a bartender with about a dozen different items for sale, all miscellaneous class.

I'm going to do some experimenting to see if I can salvage the idea of using Gabby as the Urban Chaos gun dealer Smitty. Before that however I'm going to start adding back the extra XML tags to see if reassigning merchants (except Gabby) work without problems.

[Updated on: Tue, 15 February 2011 06:54] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273609] Tue, 15 February 2011 07:32 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
Hmm. The code shows 5000 as the maximum number of items a dealer can have.

There is some special code for certain merchants. Remind me tomorrow and I will look it up for you. Perhaps that is goofing something up?

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273613] Tue, 15 February 2011 10:26 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
gabby is special as he under normal circumstances does nor show up with crepitus disabled (as uc has it afaik - no monsters in the bullet train)

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #273648] Wed, 16 February 2011 00:59 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
In original Urban Chaos, and UC-1.13, his NPC number's appearance does not appear to be Sci-fi quest related. The character slot is used by the one bartender, other than Frank, that does sell stuff (found in C13).

As far as what is triggering the weird behaviour, it is not his appearance selling drinks. So off the top of my head it could be:
- sheer number of items in the list
- item class, the bugged files had Gabby buying and selling guns, ammo, vests, LBE's, everything. I didn't think anything was up because he was buying and selling everything as expected from the XML.
- this specific XML being assigned to the wrong NPC EDIT: this was dis-proven last night when it all broke without reassigning any merchants to different NPC's.

When I have time to do some more testing, I'll start with the easy one, item class, and systematically add an item from each item class till Betty and Franz stop buying stuff they normally should buy.

Right now I seem to be getting away with reassignment of the Bartender (sell only) XML's.

[Updated on: Wed, 16 February 2011 01:02] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273649] Wed, 16 February 2011 01:08 Go to previous messageGo to next message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
I thought Gabby still does show up even without SF mode.

Report message to a moderator

First Sergeant

Re: Just when you thought it was safe in the forums...[message #273650] Wed, 16 February 2011 01:09 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
nope, in vanilla or 1.13 you can't use his slot if you don't have crepitus (tried that foe smeagol)

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #273654] Wed, 16 February 2011 01:17 Go to previous messageGo to next message
Wil473

 
Messages:2815
Registered:September 2004
Location: Canada
Perhaps Gabby's appearance is not directly controlled by the Crepitus quest. Instead the Crepitus quest simply causes the appearance of one of the alternate maps he is defined to appear in. In UC, the 104 "Gabby" NPC is pre-placed in C13. Also I just tried a test game with Sci-fi and Tons of Guns (to achieve close to the original UC item list) and he was in C13 as expected (well, nobody is supposed to be actively thinking of this bartender as Gabby).

[Updated on: Wed, 16 February 2011 01:19] by Moderator

Report message to a moderator

Lieutenant

Re: Just when you thought it was safe in the forums...[message #273655] Wed, 16 February 2011 01:20 Go to previous messageGo to next message
Logisteric

 
Messages:3199
Registered:December 2008
Location: B
i tried another person in another sector - never got her

Report message to a moderator

Captain
Re: Just when you thought it was safe in the forums...[message #273656] Wed, 16 February 2011 01:24 Go to previous message
SpaceViking is currently offline SpaceViking

 
Messages:751
Registered:January 2004
Location: Rochester, Minnesota, USA
Oh, hey, Gabby is forced to carry some inventory in the code. I ran across that.

Oops, it wasn't Gabby but Sam. Franz also gets the video camera and Jake gets fuel. The bar guys get liquor and Tony gets a bunch of stuff.

BOOLEAN AdjustCertainDealersInventory( )
{
	//Adjust Tony's items (this restocks *instantly* 1/day, doesn't use the reorder system)
	GuaranteeAtLeastOneItemOfType( ARMS_DEALER_TONY, ARMS_DEALER_BIG_GUNS );
	LimitArmsDealersInventory( ARMS_DEALER_TONY, ARMS_DEALER_BIG_GUNS, 2 );
	LimitArmsDealersInventory( ARMS_DEALER_TONY, ARMS_DEALER_HANDGUNCLASS, 3 );
	LimitArmsDealersInventory( ARMS_DEALER_TONY, ARMS_DEALER_AMMO, 8 );

	//Adjust all bartenders' alcohol levels to a minimum
	GuaranteeMinimumAlcohol( ARMS_DEALER_FRANK );
	GuaranteeMinimumAlcohol( ARMS_DEALER_BAR_BRO_1 );
	GuaranteeMinimumAlcohol( ARMS_DEALER_BAR_BRO_2 );
	GuaranteeMinimumAlcohol( ARMS_DEALER_BAR_BRO_3 );
	GuaranteeMinimumAlcohol( ARMS_DEALER_BAR_BRO_4 );
	GuaranteeMinimumAlcohol( ARMS_DEALER_ELGIN );
	GuaranteeMinimumAlcohol( ARMS_DEALER_MANNY );

	//make sure Sam (hardware guy) has at least one empty jar
	GuaranteeAtLeastXItemsOfIndex( ARMS_DEALER_SAM, JAR, 1 );

	if ( CheckFact( FACT_ESTONI_REFUELLING_POSSIBLE, 0 ) )
	{
		// gas is restocked regularly, unlike most items
		GuaranteeAtLeastXItemsOfIndex( ARMS_DEALER_JAKE, GAS_CAN, ( UINT8 ) ( 4 + Random( 3 ) ) );
	}

	//If the player hasn't bought a video camera from Franz yet, make sure Franz has one to sell
	if( !( gArmsDealerStatus[ ARMS_DEALER_FRANZ ].ubSpecificDealerFlags & ARMS_DEALER_FLAG__FRANZ_HAS_SOLD_VIDEO_CAMERA_TO_PLAYER ) )
	{
		GuaranteeAtLeastXItemsOfIndex( ARMS_DEALER_FRANZ, VIDEO_CAMERA, 1 );
	}

	return( TRUE );
}

Report message to a moderator

First Sergeant

Previous Topic: Bigger Counterattacks
Next Topic: .exe?
Goto Forum:
  


Current Time: Thu Apr 25 23:31:27 GMT+3 2024

Total time taken to generate the page: 0.02088 seconds