{"id":61,"date":"2018-08-11T12:36:22","date_gmt":"2018-08-11T12:36:22","guid":{"rendered":"http:\/\/lovablestranger.com\/blog\/2018\/08\/11\/summer-dev-log-long-catching-up\/"},"modified":"2018-12-07T22:13:52","modified_gmt":"2018-12-07T21:13:52","slug":"summer-dev-log-long-catching-up","status":"publish","type":"post","link":"https:\/\/lovablestranger.com\/blog\/2018\/08\/11\/summer-dev-log-long-catching-up\/","title":{"rendered":"Summer dev log (long, catching up)"},"content":{"rendered":"<h2>Unity update<\/h2>\n<p>I moved the project from Unity 5.3.4 to Unity 2018.1.6. Unity 5 is getting pretty long in the tooth and I really want to implement TextMesh Pro (alternative text rendering plugin). Experience tells me that you should always avoid upgrading engines or APIs that your project is relying on but I figured I had the time and if I was ever going to do it, it\u2019d be now. If you\u2019re lucky nothing breaks but you can\u2019t ever expect that. Truth be told, you never know until you try.<\/p>\n<p>Technically, only one thing broke. Unity removed MSAA from UI canvases rendered in Screen Overlay mode (default camera). It made some screens, like the building blueprint screen, really, really ugly and unfortunately the solution to that issue was to change the rendering of every single screen in the game and\u00a0<i>that<\/i> cause a whole mess of issues. It was a domino effect of shit. It wasn\u2019t hard to fix but incredibly tedious. Eventually I was able to put everything back in order. #NeverUpgrade<\/p>\n<h2>TextMesh Pro<\/h2>\n<p>It\u2019s a really good text rendering engine but the feature I wanted the most is its ability to insert arbitrary sprites in text.<\/p>\n<figure class=\"tmblr-full\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-464\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_153.png\" alt=\"\" width=\"483\" height=\"129\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_153.png 483w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_153-300x80.png 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_153-210x56.png 210w\" sizes=\"(max-width: 483px) 100vw, 483px\" \/><\/figure>\n<h2>Improved \u201cBattle system\u201d<\/h2>\n<p>If you squint really hard, House Dominae is almost like an RPG, where your slaves are party members and customers are enemies to battle and defeat. That\u2019s honestly pretty close to how I\u2019ve been looking at it. There is a system in the game where slaves encounter customers and attempt to defeat them, except not with swords and magic but with their bodies and skills.<\/p>\n<p>Inspired by these ideas I made some changes to how the customer-slave encounters play out. Previously, slaves would roll dice based on the amount of experience points in their relevant skills. Those rolls would be modified by various circumstantial modifiers like gender\/orientation compatibility, tiredness, etc. until finally tallied up and compared to the difficulty of the requested act.<\/p>\n<p>That system worked well enough but while playing the game I observed that it felt really binary. Your slaves would either fail every time, or they\u2019d succeed every time and it just wasn\u2019t very interesting. I tried making the limit more fuzzy by allowing slaves to soft fail, i.e. get the job done but poorly.<\/p>\n<figure class=\"tmblr-full\"><img loading=\"lazy\" class=\"alignnone size-full wp-image-465\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_154.png\" alt=\"\" width=\"622\" height=\"374\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_154.png 622w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_154-300x180.png 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_154-210x126.png 210w\" sizes=\"(max-width: 622px) 100vw, 622px\" \/><\/figure>\n<p>The new system is closer to an RPG battle in the sense that every customer has a climax limit (health) and the slave gets multiple attempts (attacks) to reach that limit. If a slave can\u2019t immediately satisfy a customer they can make an additional obedience check to see if they want to continue. Customers will do a similar \u201cpatience\u201d roll to see if they\u2019d want to continue. As long as both agree the slave can keep swinging. The result is the climax ratio the slave delivered divided by the number of attempts made. This means that a slave can\u00a0\u201csucceed\u201d by 30%, which would be considered a poor result. They can also succeed by 200%, which could be interpreted as the customer cumming twice.<\/p>\n<p>This level of granularity means that the progression of each slave\u2019s performance will feel much less binary. Additionally all these values are fed into the text generation system so you can write really creative and detailed descriptions.<\/p>\n<h2>Foreplay<\/h2>\n<p>The service phase has been removed and is replaced by a foreplay phase. Unless they fail an obedience check a slave will always perform some kind of foreplay at the start of a customer encounter. They will maybe flirt or do\u00a0a little striptease dance before moving on to the main event. This will cut off a small portion of the customer\u2019s climax limit, making the encounter slightly easier.<\/p>\n<h2>Skills now have discrete levels<\/h2>\n<p>A slave\u2019s performance in a skill used to be based on the precise value of experience points for that skill. That\u2019s been changed to a more typical leveling system. Skill rolls are based on the level for that skill.<\/p>\n<h2>Obedience rolls<\/h2>\n<p>Obedience dictates whether or not a slave will do as they\u2019re told. They can either accept a task, resist it, or refuse it entirely. I had a similar issue with obedience rolls as I did with customer-slave encounters where the rolls felt really binary. Either a slave would refuse everything or they\u2019d agree to everything.<\/p>\n<p>Thankfully, this didn\u2019t need as big of an overhaul. I changed up the math to a much simpler (and to me, more predictable) look-up table. It gives me better control and I can tweak it as I go along.<\/p>\n<figure class=\"tmblr-full\"><img loading=\"lazy\" class=\"alignnone wp-image-484 size-full\" src=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_156.png\" alt=\"\" width=\"589\" height=\"323\" srcset=\"https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_156.png 589w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_156-300x165.png 300w, https:\/\/lovablestranger.com\/blog\/wp-content\/uploads\/2018\/08\/housedominae_156-210x115.png 210w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/figure>\n<p>It\u2019s a tricky balance because I want Obedience to matter while not making it so that a slave can constantly disobey and drag the game down. This should work for now though.<\/p>\n<h2>More LUA stuff<\/h2>\n<p>Finally, this past week I\u2019ve made some good progress with custom activities, scripted in LUA. Most has to do with exposing the necessary functions to the scripting environment, writing helper functions and sample scripts.<\/p>\n<p>So far I\u2019m very happy with how it\u2019s turning out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unity update I moved the project from Unity 5.3.4 to Unity 2018.1.6. Unity 5 is getting pretty long in the tooth and I really want to implement TextMesh Pro (alternative text rendering plugin). Experience tells me that you should always avoid upgrading engines or APIs that your project is relying on but I figured I [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[7,11,5,10],"_links":{"self":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/61"}],"collection":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/comments?post=61"}],"version-history":[{"count":2,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions"}],"predecessor-version":[{"id":485,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/posts\/61\/revisions\/485"}],"wp:attachment":[{"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/media?parent=61"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/categories?post=61"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovablestranger.com\/blog\/wp-json\/wp\/v2\/tags?post=61"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}