Question: A way to edit slots

Discuss and distribute tools and methods for modding. Moderator - Grognak
Post Reply
MightyKebab
Posts: 90
Joined: Sun Dec 15, 2013 3:00 pm

Question: A way to edit slots

Post by MightyKebab »

Hello there, I'm a "pseudo" modder who likes to edit custom ships' settings to fit his own playstyle and enjoyment. However, at certain mods I'm having issues with editing the number of drone slots. I simply can't find anything relevant in the .xml file. Am I just not looking clear enough or the only way to do this is to open it up in SMM? All attempts to help will be appreciated.
User avatar
Sleeper Service
Posts: 2275
Joined: Sun Mar 24, 2013 8:49 pm

Re: Question: A way to edit slots

Post by Sleeper Service »

Indeed, not all ship have entries that define slots by default. But you can add this lines to control the slots (usually after the system lists):

Code: Select all

	<weaponSlots>4</weaponSlots>
	<droneSlots>3</droneSlots>
You can use larger and smaller numbers as well, but anything above four weapon and three drone slots will mess up the UI, as you might know. Have fun with you modded ships. :)
Image
Working on a sci-fi deckbuilder nowadays.
Other games I made.
Russian Rockman
Posts: 816
Joined: Fri Jan 10, 2014 11:43 pm

Re: Question: A way to edit slots

Post by Russian Rockman »

Also, if you increase the # of weapon or drone slots the UI slots will not fit in their boxes. The box will always default to the minimum number though (weapons=3 drones=2). So to work around that little bug all you need to do is increase the size of the smallest boxes in the IMG files. If you kept the max # of drones + weapons at 6 slots then the UI shouldn't be messed up.
Post Reply