余灼星 余灼星
关注数: 12 粉丝数: 78 发帖数: 3,005 关注贴吧数: 38
stellaris开发日志#32 Modding art an Hello Modders. Today's dev diary will be about modding art, and give a cursory glance at what is possible to do in Stellaris. We will mainly talk about characters and ships in this dev diary. Today we are releasing our Maya exporter, which opens up a whole new world of possibilities for modders. So, provided you have the skills in Maya and Photoshop, you can do anything you want - anything we have done, you can do too! (more info and links can be found at the end of this post) For characters, you have two options. The simpler one is static 2d avatars. These are just an image with transparency that is used directly in-game. They don't require Maya or any other fancy tools, and will likely be the initial choice for most modders. Static portraits are not used by the core game, but the functionality is there for the modders. There is an example for this in the games files, where we specify the species, so you just add textures and point to them in the files and you get new species.  All the characters we have created for Stellaris are animated 2D portraits. What we do is we draw characters in Photoshop, and split the images up into separate parts for anything that will be in a different layer, looking something like the picture below. We then create a plane for each asset in Maya, and layer them correctly.  If you want to create an animated character, you have two options. One, you can mod an existing one by modifying an existing character’s texture. This is desirable if you don't want to or can't use Maya for any reason but your Photoshop skills are high. This is a bit limiting of course, since you can only change the look so much within the confines of that character. The animations will of course be the same, so you can't move the eyes etc. If you want to do this, take an existing texture and add some more colors to the entire texture, and you can see the entire area you have to work with.There is some space outside the edge of the character to work with. Secondly, if you have some Maya skills, you have more freedom. The level of knowledge required is really not that high. Just creating a few planes, cutting, creating some joints and simple animations. What you do is you create texture similar to ours, then create a few different planes and cut out each area. Build a simple rig, and add some animation.    You can also mod in more clothes, triggering the use of different outfits in different situations. In the game currently we use this for the different leader types such as scientist, admiral etc. We also use this for the rulers, so that if you are a militaristic society, your ruler will wear a military uniform. This has very few limits, and could be used to create some very unique characters. There is another layer where you can add other things to you characters with the help of triggers. We use it to add the different hairstyles for the humans, but you could just as well add glasses to your characters, or some other visual attribute. If you are feeling fancy, you could even extend a race to use multiple portraits. So that you insect race has a Queen model for your ruler, a lieutenant for you leaders, and a third model for your pops. Though all the portraits in the game are shown as 2D, they are technically 3D and there is nothing really stopping you from adding a 3D model (though we have yet to try that ourselves). If you wish to know exactly how to add new portraits, there is a detailed guide on the wiki: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.stellariswiki.com%2FPortrait_modding&urlrefer=959fec7297fa91cdc5d946ae67af4e8d Moving on to to ships. With the release of our maya exporter, you can now create any model you like and add it to the game. The process is very straightforward. You build your mesh and use maya to export it. There is fairly little to be said simply because most things are theoretically possible to do. If you want ships with like 5 sections you can do that. Vertical ships? Sure. Organic ships? Absolutely. Stations are also technically ships that don't move, so these are of course modable as well. corvette = { max_speed = 5.25 acceleration = 0.35 rotation_speed = 0.1 combat_max_speed = 1.5 combat_rotation_speed = 0.08 collision_radius = 2.0 modifier = { ship_armor_add = 3 } max_hitpoints = 300 size_multiplier = 1 fleet_slot_size = 1 section_slots = { "mid" = { locator = "part1" } } num_target_locators = 2 is_space_station = no icon_frame = 2 base_buildtime = 60 can_have_federation_design = yes enable_default_design = yes #if yes, countries will have an auto-generated design at start prerequisites = { "tech_spaceport_1" } class = shipclass_military required_component_set = "ftl_components" required_component_set = "combat_computers" required_component_set = "thruster_components" required_component_set = "ship_sensor_components" }
1 下一页