where is the value of the cost of crafting modules for the ship?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Fame14
Posts: 1
Joined: Thu, 23. Dec 21, 16:42
x4

where is the value of the cost of crafting modules for the ship?

Post by Fame14 » Mon, 3. Jan 22, 01:35

I want to change the prices for crafting modules, the price depends on the quality, but I cannot find where to change the price of quality, in which file the value of the price for the quality?

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Re: where is the value of the cost of crafting modules for the ship?

Post by euclid » Fri, 14. Jan 22, 13:00

Hi Fame14 and welcome to the Forum,

I'm not sure but think you mean the mods for your ship that you can install via the modification stations provided you have sufficient materials and the credits. The prices for those are defined in ui\addons\ego_detailmonitorhelper\helper.lua where you find

Code: Select all

Helper.modQualities = {
	[1] = { name = ReadText(20110, 1001), nonetext = ReadText(1001, 8027), paintnonetext = ReadText(1001, 8511), icon = "mods_grade_circle_01", icon2 = "mods_grade_01", category = "basic",		color = { r =  30, g = 255, b =   0, a = 100 }, price =  50000 },
	[2] = { name = ReadText(20110, 1101), nonetext = ReadText(1001, 8029), paintnonetext = ReadText(1001, 8512), icon = "mods_grade_circle_02", icon2 = "mods_grade_02", category = "advanced",		color = { r =  64, g = 154, b = 255, a = 100 }, price = 100000 },
	[3] = { name = ReadText(20110, 1201), nonetext = ReadText(1001, 8030), paintnonetext = ReadText(1001, 8513), icon = "mods_grade_circle_03", icon2 = "mods_grade_03", category = "exceptional",	color = { r = 181, g =  72, b = 208, a = 100 }, price = 250000 },
}
Hope that is what you are after.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
Shuulo
Posts: 1629
Joined: Mon, 14. Apr 08, 17:03
x4

Re: where is the value of the cost of crafting modules for the ship?

Post by Shuulo » Fri, 14. Jan 22, 15:54

damn, putting balancing data into barely moddable UI code is painful, i would not touch it really.
Is there a hope that this will be moved to parameters or other library/file?

docwho83
Posts: 168
Joined: Mon, 15. Jun 09, 23:10
x4

Re: where is the value of the cost of crafting modules for the ship?

Post by docwho83 » Sun, 23. Jan 22, 11:56

I would hope but I also want a way to put this on ships as I go. Not build them then call it back so I can mod the heck out of it. Ok granted unless you have some game mods running you not have any parts on hand. But still a way to automate it would be nice.
My Mods
RepairLasers Player controlled drone Also on steam
[Minefield] fell affliction minefield removed Also on steam
[Buildmodule] add research for buildmodule leak steals

Post Reply

Return to “X4: Foundations - Scripts and Modding”