群星
ParaWikis
最新百科
都市天际线2百科
英雄无敌3百科
维多利亚3百科
奇妙探险队2百科
罪恶帝国百科
英白拉多:罗马百科
热门百科
群星百科
欧陆风云4百科
十字军之王2百科
十字军之王3百科
钢铁雄心4百科
维多利亚2百科
ParaWikis
申请建站
ParaWikis
ParaCommons
最近更改
随机页面
加入QQ群
工具
链入页面
相关更改
特殊页面
页面信息
页面值
阅读
编辑
编辑源代码
查看历史
讨论
编辑“
物种修改
”
自由之民
(
讨论
|
贡献
)
2022年5月17日 (二) 20:21的版本
(自由之民移动页面
Species modding
至
物种修改
)
(
差异
)
←上一版本
|
最后版本
(
差异
) |
下一版本→
(
差异
)
警告:您正在编辑的是本页面的旧版本。
如果您发布该更改,该版本后的所有更改都会丢失。
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
{{version|Timeless}} This article is about creating new species to add in addition to the ones already in Stellaris. This will cover the processes of portrait design, folder arrangement and more. As with empire modding some parts of this guide will describe fairly easy or even obvious things, however there are parts of species modding much more complicated or containing unexpected nuances. In order to effectively create a new species a few tools are needed: # Any photo editing software capable of supporting image transparency, such as [http://www.aha-soft.com/artcursors/ Artcursors], [http://www.getpaint.net/index.html Paint.net], or Photoshop. MS Paint does not support image transparency and cannot be used without conversion software. # Either the ability to edit and save DDS files, or convert PNG or TGA files to DDS files. # A picture or pictures of the species to add. # A text editor. [https://www.notepad-plus-plus.org/ Notepad++] is recommended, but Notepad is fully capable of this. == Stellaris Mod Creation Menu == Open up the Stellaris Launcher. At the top right of the 'Mods' tab, click "Mod Tools". Click on the "Create Mod" tab that is to the left.: * The first blank is for the visible name of the mod. * The second blank is for the name of the actual mod file. * The third blank is the supported version. This should already be filled out and do not change it. * Below that is four available tags that that can be added. Use "Species". Once the mod info is filled out, click the "Create Mod" button at the bottom right. This will create an empty folder with the mod name and a .mod file. Mod file creation menu filled out with an example: [[File:Creating a mod.jpg|frameless|left]]{{clear}} Some text should appear at the bottom of the window saying "Successfully created mod file in (MY DOCUMENTS PATH)\Stellaris\Mod\YourMod.mod".<ref name="MYDOCUMENTS">On Windows XP, this is located by default at ''C:\Documents and Settings\YOUR USER NAME\My Documents'' .<br> On Windows Seven, Windows Eight, and Windows Ten, by default, it is always located at ''C:\Users\YOUR USER NAME\Documents'' .</ref> [[File:File Uploaded.jpg|frameless|left]]{{clear}} The text at the bottom contains the location of the mod file. {{clear}} === Going Into The Mod Files === Go to the location of the mod files in your My Documents Folder.<ref name="MYDOCUMENTS" /> [[File:Step3.jpg|frameless|left]]{{clear}} # Click on the text file that has the name of the mod and COPY that into the folder with the mod name. # Change the name of the .mod file copy to 'descriptor'. # Open the folder with the mod name. The folder should be empty (except for the copy of the mod file) and ready to fill with the necessary files to create the new species. [[File:Descriptor.jpg|frameless|left]]{{clear}} Keep this folder open for easy access. == Manual Species Creation (Vanilla Rendition Replacement Version) == Having created a new MOD file, proceed with creating the Species. The instructions below will teach you how to append your new Species to an existing Species Class already found in the game. {{ambox | image = [[File:Ambox warning pn.png|40px|link=]] | text = '''WARNING: Editing the default species classes overwrites every other mod that alters the same! This means that no other Species can be added, and any future Vanilla rendition update will be glitched! In order for your species to exist alongside any other custom species, one must create an unique, separate species class! Add an unique, separate species class using the [[species creator|custom species creator]] instead.''' }} === Creating the Mod File Structure === * Go to the location of the mod files that you generated in the steps above. * On Windows, enter the My Documents folder.<ref name="MYDOCUMENTS" /> * In the My Documents folder, enter the Paradox Interactive folder. In Paradox Interactive, enter the Stellaris folder. In Stellaris, enter the Mod folder. * Create a new folder in the mod folder named 'common' * Create a new folder in the mod folder named 'gfx' * In the main Stellaris window, open 'common' and copy the following folder to the Mod window: : species_classes There should be exactly one file in the folder you copied. * Change that file’s name from 00_species_classes to anything you choose. '''DO NOT''' name it "00 or 01_species_classes" or any other numerical variant. * Open the new file. * Decide now whether the new species is going to be a mammal, reptile, avian, arthropod, mollusk, or fungus. * Let’s say you've chosen to add a new fungus. Scroll down through the file until you find the section that reads: <syntaxhighlight lang="ruby"> FUN = { portraits = { "fun1" "fun2" "fun3" "fun4" "fun6" "fun7" "fun8" "fun9" "fun10" "fun11" "fun12" "fun13" "fun14" "fun15" } custom_portraits = { # add additional portraits when customizing species trigger = { local_has_dlc = "Creatures of the Void Portrait Pack" } portraits = { "fun16" } } graphical_culture = fungoid_01 move_pop_sound_effect = "fungoid_pops_move" } </syntaxhighlight> * Now paste the following section in right ABOVE the line that says "graphical_culture = fungoid_01" and change myspecies1 to the name of the species: <syntaxhighlight lang="ruby"> custom_portraits = {#add additional portraits when customizing species trigger = { always = yes } portraits = { "myspecies1" } } </syntaxhighlight> {{ambox | image = [[File:Ambox warning pn.png|40px|link=]] | text = '''WARNING: DO NOT NAME YOUR PORTRAIT "MYSPECIES1" OR "MYSPECIES". This is the system default! An unique name must be used to prevent incompatibility with other Mods! }} * Don't worry about what "trigger = {always = yes}" means, it just ensures that you don't need any special DLC or other requirements to use this portrait. * Save and close the file. Next step: In the mod folder navigate to the main directory and open the 'gfx' folder. * Create a new folder named 'models' and open it. * Create a new folder (inside of 'models') and name it 'portraits' {'gfx\models\portraits'} – this is where you will put the picture of the species. * Inside of the 'gfx' folder create a new folder named 'portraits' then open that folder ('gfx\portraits') and create ANOTHER folder named 'portraits' ('gfx\portraits\portraits') * Keep the folder 'gfx\models\portraits' open. === Adding The Portrait === ==== Making The Portrait In Photoshop or Paint Net ==== Open up the photo editing software * Open up the picture or photo that you will use as the species’ picture. [[File:source.jpg|frameless|left]]{{clear}} '''NOTE:''' You should use the highest quality image possible for this. If you have to shrink it down a bit you will lose some detail. * From the left hand side select the tool that looks like a magic wand (left column, 4th down) [[File:magicbutton.jpg|frameless|left]]{{clear}} * Erase the background – this may take some experimentation, using the various tools and making some adjustments. [[File:img example.jpg|frameless|left]]{{clear}} '''TIP:'''Using the eraser tool (pink and white eraser icon, right column), set the 'hardness' to about 20% and fade the edges of the portrait so that no hard edges remain (edges without blending like this tend to look really harsh – you'll probably need to experiment with lots of different techniques to achieve something that looks good.) [[File:species7.jpg|frameless|left]]{{clear}} * Once you are satisfied with the portrait, resize it to a maximum of about 400 pixels in height (any higher and you run the risk of the portrait going out of frame in the game). * Save the portrait as a '''DDS image''' with a memorable name ('''DO NOT''' name the file "MYSPECIES"or any variant) in the 'gfx\models\portraits' folder. * Now save the portrait in the main mod directory with the same name (make sure to save it as a '''JPG image''') * Now close the photo editing software and open up the Mod’s 'gfx\models\portraits' folder to ensure that the species’ portrait is there. * Check in the main mod directory. ==== Adding The Portrait to the Mod ==== * Open up your Mod’s 'gfx\portraits\portraits' folder. It is located in the My Documents folder by default.<ref name="MYDOCUMENTS" /> * Copy the file named '00_portraits' to the mod’s 'gfx\portraits\portraits' folder. * Rename the file as to anything you wish. '''DO NOT''' use "00_portraits" or any numerical variation of the same. * Open the file. * Delete everything and put in the following lines:<syntaxhighlight lang="ruby"> portraits = { myspecies1 = { texturefile = "gfx/models/portraits/X.dds" } }</syntaxhighlight> * Replace X.dds with whatever you named your portrait in the previous step. Save the file and close it. == Naming Your Species == {{ambox | type = notice | text = '''''This applies ONLY to UNIQUE Species Classes.''''' }} All Species added into the game must be named separately. Failure to do so will cause their names to be blank in the Species list. '''If you used the method that appends a Species to the Vanilla rendition Species Classes, skip this step.''' * In the root of your Mod’s folder, create a folder named "''common''", in all lowercase. * In the "''common''" folder, create a folder named "''species_names''", in all lowercase. * In the "''species_names''" folder, create a new TXT file. Name it anything you wish. Inside the text file, paste the following: <syntaxhighlight lang="ruby"> X = { Y = { name = NAME plural = PLURAL home_planet = "HOME PLANET NAME" home_system = "NAME OF STAR HOME PLANET IS IN" name_list = "Z" } } </syntaxhighlight> Each entry is a key corresponding to a key that Stellaris will read when it generates a Species. '''Each of the five categories, left of the equals sign, ''must be lowercase''!''' * "Name" is self-evident. This is what the Species is called. * "Plural" is the plural name of the species. This is used when multiple instances of one species are addressed collectively. (For instance, the creature called a "turtle" has the plural of "turtles".) * "Home_Planet" is the first planet this Species starts on when the galaxy is randomly generated. * "Home_System" is the star the Species’ first planet orbits around when the galaxy is randomly generated. * "Name_List" is the series of first, last, and full names given to individual Leaders of this Species. These are found in the "''name_lists''" folder in the "''common''" folder of Stellaris.<ref name="STEAMDIRECTORY">By default, "Stellaris" is located in a certain area depending on what Launcher it is equipped with. For the Steam Launcher Program, it is found in the Steam entry thirty-two bit program directory.<br> The address to this is "''C:\Program Files (x86)\Steam\steamapps\common\Stellaris''" . {{ambox | type = notice | text = NOTE: If you want to use the spacebar and include two words, QUOTATION MARKS must cover them! ("name = '''"'''Turtle Mushroom'''"''' and not "name = TURTLE MUSHROOM"!) }} * The X variable represents the Species Class of the creature. It '''must''' match the name of the Species Class found in the "''species_classes''" folder. * The Y variable is the unique category for that series of names. Y can be replaced by anything, as long as it is unique, does not have any spaces or special characters (e.g. punctuation or any symbol except the underscore), and does not repeat. In the example to copy and paste, remember to retain the quotation marks for Planet Name, System Name, and Name List! == Species Class Localization == {{ambox | type = notice | text = '''''This applies ONLY to UNIQUE Species Classes.''''' }} : ''This section governs the required Localization to properly render a Species in-game. For the actual creation of Localization files, not discused here, refer to the [[Localisation modding#Manually Creating a YML File|instructions concerning Localization itself]].'' Every Species Class includes Localization for use in dialog. This is found in the "''localisation''" folder of your Mod or of Stellaris. Species Class Localization allows for the game to properly insult and demean your species’ appearance, organs, appendages, mouths, and existence. * At the top of the Localization file, type "'''l_english:'''", all lowercase. REMEMBER THE COLON. (If you chose a different language, use it instead.) * Every entry after the "l_english" command '''must begin with a blank space'''. Now, paste the following code into your YML file, overwriting it. {{clear}} <syntaxhighlight lang="tcl">l_english: CLASS:0 "X" CLASS_desc:0 "A creature's Species Class has no effect on your Empire, but a X may consider other X's to be less alien than creatures of other Species Classes." CLASS_plural:0 "X" CLASS_adj:0 "X" CLASS_insult_01:0 "X" CLASS_insult_02:0 "X" CLASS_insult_plural_01:0 "X" CLASS_insult_plural_02:0 "X" CLASS_compliment_01:0 "X" CLASS_compliment_plural_01:0 "X" CLASS_spawn:0 "X" CLASS_spawn_plural:0 "X" CLASS_sound_01:0 "X" CLASS_sound_02:0 "X" CLASS_sound_03:0 "X" CLASS_sound_04:0 "X" CLASS_sound_05:0 "X" CLASS_organ:0 "X" CLASS_mouth:0 "X" CLASS_hand:0 "X" </syntaxhighlight> Replace "CLASS" with the Species ''Class'' of your Species that is found in the folder "''species_class''", nested in the "''common''" folder. What each key represents should be obvious. Every key can be entered to read anything. * The first line is the name of the Species ''Class'' (e.g. "Mammalian, Fungoid"). Only one. * "CLASS_desc" is the generic description. In the Vanilla rendition of Stellaris, every Species Class’ description says the same thing. * "CLASS_plural" is the plural name of the Species Class (e.g. "Mammalians, Fungoids"). Only one. * "CLASS_adj" is the adjective of the Species Class. (e.g. "a Mammalian obsession", "a filthy Molluscoid"). Only one. * "CLASS_insult_X" denotes a diplomatic insult at ''one'' member of that Species Class (e.g. calling an Insectoid a "bug"). Any number of Insults can be written, as long as they have a plural complementing them. Simply increment the number. * "CLASS_insult_plural_X" denotes a diplomatic insult to ''multiple'' members of that Species Class (e.g. calling a group of Insectoids "bugs"). Any number of Insults can be written, as long as they have a singular form complementing them. Simply increment the number. * "CLASS_spawn" denotes the offspring of the creature (e.g. "spore" for Fungoid, "cub" for Mammalians). Only one. * "CLASS_spawn_plural" denotes a group of a Species Class member’s offspring (e.g. "babies" for Humanoids). Only one. * "CLASS_sound_X" denotes descriptive noises (e.g. "stupid Robot, will you stop that ''beeping''"). Five must be written. * "CLASS_organ" denotes a body part or aspect of the Species Class member (e.g. "just looking at you makes my ''stomach'' churn"). The organ does not have to be digestive, or even an organ, though choosing something like "hair" sounds odd when a creature says your Species it churn. * "CLASS_mouth" denotes the mouth the Species Class member uses for eating (e.g. "look at that thing on your face, is that supposed to be a ''jaw''"). * "CLASS_hand" denotes the appendage a Species Class member uses to pick up things (e.g. "our Federation is surely in capable ''paws''). If the Species Class does not have hands, use a substitute {{ambox | image = [[File:Ambox warning pn.png|40px|link=]] | text = '''WARNING:''' '''Always remember the initial space and the colon after the key. Do not delete the quotation marks and ''never'' use quotation marks inside of the aforementioned quotation marks! Use four apostrophes instead, or this will break the localization!''' }} == Adding the MOD Files == * Enter the Stellaris Mod folder * In the folder, search for the MOD file generated. This is the MOD file that is present with any other MOD files downloaded from the Steam Workshop. * Double-click the MOD file. Inside you should see something resembling the following: <pre> name="MOD NAME" path="mod/MOD FOLDER NAME" tags={ "Species" } supported_version="CURRENT GAME VERSION" </pre> * Here, add your thumbnail if you wish. (This is optional.) Now add a line above 'supported version': <pre> name="MOD NAME" path="mod/MOD FOLDER NAME" tags={ "Species" } picture="X.jpg" supported_version="CURRENT GAME VERSION" </pre> Obviously, change the name of "X.jpg" to whatever the portrait was named. Now, a Descriptor MOD File must be created. * Copy, not cut, the MOD file you just finished editing. * Open the folder of the Mod that you have created and paste it there. * Rename the copied MOD file to "DESCRIPTOR.MOD". It MUST read "DESCRIPTOR.MOD", in ''all lowercase''. == Uploading The Mod == ==== Test The Mod ==== Close down all of the windows and launch Stellaris. * Click on the 'Mods' tab in the launcher. * You should see the mod’s name in the list. Click on it. [[File:checkmod.jpg|frameless|left]]{{clear}} The mod should now be highlighted (slightly lighter colored corners than before) * Click play * Create a new empire, then under 'Appearance', in the Fungoid (or whichever you picked) find the new portrait [[File:UnitedApes.jpg|frameless|left]]{{clear}} Once you've tested you portrait in game (you can always make changes to the "gfx/models/portraits/X.dds" to get a better result) it’s time to publish the mod. === Stellaris Mod Upload === Close all windows and programs – You don't want anything interfering with this next step. # Go to the 'Upload Mod' tab in the Stellaris launcher, under the "Mod Tools" button from the 'Mods' tab. # Click on 'Upload Mod' then find the mod in the list (it’s a grayed out list) and click it, then click on 'Fetch Info' # It should say "Mod does not exist on Steam. Will create new mod." # Click 'Upload' in the bottom right corner. # Wait. If you've done everything right you will be rewarded with a message "Mod uploaded okay." === Steam Workshop === Go to the Steam Workshop page. Click on the mod and then edit the description. [[File:workshoppage.jpg|frameless|left]]{{clear}} == References == <references /> == External links == * Stellaris [https://pdxint.at/3Hd09JE Species C6 Mod], Official announcement by the Stellaris team – [https://youtu.be/ofhM-Cxh6YU Trailer] (Holiday Special – {{#dateformat:2021-12-23|mdy}})<br> {{ModdingNavbox}} [[Category:模组制作]]
摘要:
请注意您对群星百科的所有贡献都被认为是在知识共享署名-非商业性使用-相同方式共享下发布,请查看在
群星百科:版权
的细节。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源。
未经许可,请勿提交受版权保护的作品!
为防止机器编辑,请完成下方验证
取消
编辑帮助
(在新窗口中打开)
本页使用的模板:
Template:Ambox
(
编辑
)
Template:Ambox/core
(
编辑
)
Template:Clear
(
编辑
)
Template:ModdingNavbox
(
编辑
)
Template:Navbox
(
编辑
)
Template:Navboxgroup
(
编辑
)
Template:Version
(
编辑
)
×
登录
密码
记住登录
加入群星百科
忘记密码?
其他方式登录