race resources

I want my 15 rapid-fire quantum torpedo launchers Uber-Defiant now! - Get help from modders. Share your work. Discuss modifications.
posted on August 9th, 2011, 1:11 am
Hey guys, quick modding question.  How do I limit which resources a race can utilize?  In my case, I want to have a race that only uses supply, but I can't figure out how to get rid of the dilithium and tritanium.
posted on August 9th, 2011, 1:14 am
What do you mean by only utilize a resource? Show up on the GUI? Use for costs or?
posted on August 9th, 2011, 1:17 am
Show up on the GUI. :blush:
posted on August 9th, 2011, 1:21 am
in the misc folder find ur race cfg file and place

noCrew = 1
noOfficers = 1
noDilithium = 1
noLatinum = 1
noMetal = 1
noBiomatter = 0
posted on August 9th, 2011, 1:27 am
Cool, thanks. :blush:
posted on August 9th, 2011, 1:35 am
Ok well, that almost did it.  The icons are still there but the numbers are gone.  See this screens shot.

Attachments

FOScreenShot_110808_213403.png
posted on August 9th, 2011, 2:01 am
u checked your interface tga i think there apart of that
posted on August 9th, 2011, 2:05 am
Nope, they are not in the races interface texture.  I think it is contained in the race sprite file, but I"m not sure...  I will have to try some more in the morning. :(
posted on August 9th, 2011, 6:44 am
I see references to resources in the gui_interface and gui_interface_misc, if that helps. I assume that you just have to move those references out of that section into the races respective GUI files (instead of using #include on all of them)

If you determine how this adds to a solution, I'd love to know, as I'd like to finish off that bit of the tutorial :)
posted on August 9th, 2011, 1:23 pm
ok in your race .cfg file place
resourcePanelSize = 3
resourcePanel_0 = 0 0 0 0 // 0 0 48 48 // dilithium
resourcePanel_1 = 0 0 0 0 // 160 0 48 48 // latinum
resourcePanel_2 = 320 0 48 48 // biomatter
resourcePanel_3 = 0 0 0 0 // 480 0 48 48 // metal

this will keep all but biomatter/supply (also comments out the orig values lol)
posted on August 9th, 2011, 4:04 pm
Ok, here is my cfg file.
Code: Select all
#include "gui_defaultrace.cfg"

SelectionRectangleColor   =      0.4   0.6   1

minimapShipFilterArea         =    22   352   25   12
minimapStationFilterArea      =    47   352   25   12

groupTextColor            =   0.6      0.7      1.0

noCrew = 1
noOfficers = 1
noDilithium = 1
noLatinum = 1
noMetal = 1
noBiomatter = 0
resourcePanel_0               =   0   0   0   0   //   0   0   48   48   // dilithium
resourcePanel_1               =   0   0   0   0   //   160   0   48   48   // latinum
resourcePanel_2               =   0  0   48   48   //   biomatter
resourcePanel_3               =   0   0   0   0   //   480   0   48   48   // metal


and here is the result.  I managed to get the image all the way to the left, and get rid of the other resources, but the numbers are still all the way to the right. :sweatdrop:

Attachments

FOScreenShot_110809_120413.png
posted on August 9th, 2011, 4:16 pm
try this
resource_5 = 50 4 100 26 // supply
posted on August 9th, 2011, 4:52 pm
Yay, that did it, thanks a lot Blade. :thumbsup: :thumbsup: :thumbsup:
posted on August 9th, 2011, 5:23 pm
lol np have fun with your race
Reply

Who is online

Users browsing this forum: No registered users and 6 guests