Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
News - Blog: From Air to Unity – The monstrous cloud editor under our bed

#1
Blog: From Air to Unity – The monstrous cloud editor under our bed

<div style="margin: 5px 5% 10px 5%;"><img src="https://www.sickgaming.net/blog/wp-content/uploads/2019/09/blog-from-air-to-unity-the-monstrous-cloud-editor-under-our-bed.png" width="646" height="365" title="" alt="" /></div><div><p><strong><i><small> The following blog post, unless otherwise noted, was written by a member of Gamasutra’s community.<br />The thoughts and opinions expressed are those of the writer and not Gamasutra or its parent company. </small></i></strong> </p>
<hr>
<p><em>This is a guest devblog co-written with our programmer&nbsp;<a href="https://twitter.com/OndraPaska" target="_blank" rel="noopener noreferrer">Ondrej Paška</a>. We will be doing these from time to time.</em></p>
<p>Game development is a race against time. Not only because of looming deadlines, but also because technology rapidly evolves. Established tech from ten years ago, might be hopelessly obsolete today.</p>
<p><img alt src="https://www.sickgaming.net/blog/wp-content/uploads/2019/09/blog-from-air-to-unity-the-monstrous-cloud-editor-under-our-bed.png"></p>
<p>We learned it the hard way. When I started working on <a href="http://attentat1942.com/" target="_blank" rel="noopener noreferrer">Attentat 1942</a> as a programmer at the end of 2011, we put some of our bets on technologies, that we should’ve seen were slowly fading away. With our next game <a href="https://www.svoboda1945.com/" target="_blank" rel="noopener noreferrer">Svoboda 1945</a> those decisions came back to haunt us, just like historical traumas from post-war period are still felt by our characters.</p>
<p>Let me show you the journey of our small Czech team into the depths of Flash development, showing our attempts to build our own git, creating our own cloud editor, but eventually ending up loving Unity.</p>
<h3><strong>When Apple ditches your technology, it’s not good</strong></h3>
<p>As historical accuracy was the key goal, we wanted to let actually professional<a href="https://www.gamasutra.com/blogs/OndrejTrhon/20181126/331373/Attentat_1942_The_Long_Road_Towards_German_Release.php" target="_blank" rel="noopener noreferrer"> historians create all the content</a>.</p>
<p>The problem was that we weren’t experienced designers. The initial idea was to create an editor in which our historians could put the game together themselves. They would assemble dialogues, storylines and interactive scenes.</p>
<p>We wanted our own tool to be accessible so we – yes, yes, we know – decided that it should run in the browser. And the best way how to make interactive stuff on the web at that time was, you guessed it, Flash.</p>
<p>What seems like a horrible decision made sense back then. For GUI elements there was Adobe Flex, which enabled XML layouts with code hooks – similar to what Android does now.</p>
<p>So we started making our own online editor, with user management and basic tools for creating interactive fiction. Behold:</p>
<p><img alt height="421" src="https://www.sickgaming.net/blog/wp-content/uploads/2019/09/blog-from-air-to-unity-the-monstrous-cloud-editor-under-our-bed-1.png" width="646"></p>
<p>We named it MIVE. And to be honest, I also feel proud. We made this beast from scratch and we came up with some ideas that we would be happy to have today. For example you could send a link to a scene to someone and they could immediately play it inside their browser, without installing anything. Upon release, we exported a package directly from the server, coupled it with a standalone Adobe AIR engine and sent out PC and Mac versions.</p>
<p>Our initial plan that the script writers and historians would work on the game soon started to fall apart. We weren’t able to make the editor accessible enough. We had to hire people we called scripters to work as intermediaries between writers and programmers.</p>
<p>But this moved programmers further away from game designers, creating new kinds of funny incidents. Attentat 1942 started as a text only game. So when the request to add a video playback function came, we thought that it would only be intro or some minor part of the game. We coded it and forgot about it. Later, scripters came and told us about a weird bug – the game was freezing and crashing. We took a look at the data and found 30 videos playing simultaneously in one scene. That turned out to be deliberate.</p>
<p>In the end, Attentat 1942 became a full FMV game. But we had to grapple with it along the way.</p>
<h3><strong>Too many things, too much bugs</strong></h3>
<p>In the end, the main problem was that we tried to do a bit of everything. MIVE had user permission system, online directories like Google Drive, version control as Git, access management, automatic video conversions, interactive scene editing and much more. You could pick it up and create a lot of different games. But for our particular game, it made things much harder.</p>
<p>And honestly, it was also a buggy mess. Complicated scenes took minutes to load. Our scripting system was getting really convoluted and inexperienced junior scripters got lost among entangled variables and dependencies.</p>
<p>Things got much worse when Flash fell out of grace. Browsers rolled out security improvements which broke our editor regularly. Standalone version of Adobe AIR had 1 GB memory limit which we often exceeded and the garbage collector often dropped our frames.</p>
<p>Every little bugfix took its toll. We finished Attentat 1942 through gritted teeth and released it. We got nominated for the IGF, won several awards and the reception was generally really good. It’s good no one was able to see all the hacks and mess, which kept our serious story of nazi occupation together.</p>
<p>In the end, no one is judging the quality of your code.</p>
<h3><strong>New times require new tools</strong></h3>
<p>Fast-forward to 2019. We are currently developing our new game Svoboda 1945. Although we did some early prototypes in MIVE, we very soon decided to move away from Flash altogether. It wasn’t an easy decision, but we really hated the long waits and also wanted to target more platforms.</p>
<p>In recent years, Unity implemented better 2D game features. We decided to switch and port our entire game onto a new platform. How did that work?</p>
<p><img alt height="331" src="https://www.sickgaming.net/blog/wp-content/uploads/2019/09/blog-from-air-to-unity-the-monstrous-cloud-editor-under-our-bed-2.png" width="646"></p>
<p>Even with fewer resources than we had for Attentat 1942, as a single programmer, I was able to create Unity tools with game designers in mind. Simple draggable scripts, polished dialogue system, scriptable objects for variables – Unity enabled me to easily create a kind of scripting LEGO. Our scripters can now quickly create not only prototypes, but whole game scenes. Versioning is left to git and we started doing video conversions by hand in ffmpeg.</p>
<p>Using standard Unity stuff and putting a layer of useful gadgets on top greatly sped up our development. Ease of use and error-proofness were the main goals. Bugs are now easier to find and we can spend more time thinking about game design and less time waiting for scenes to load.</p>
<h3><strong>So: What we learned?</strong></h3>
<ul>
<li>Before the “final” game design, create cheap prototypes. Don’t make your code too general. When you are satisfied with your prototype, start from scratch.</li>
<li>Listen to feedback and make tools easy to use</li>
<li>Don’t make general tools, make tools specifically for your game!</li>
<li>Be aware that your favorite technology might be forgotten in 5 years</li>
<li>Don’t expect non-programmers to start coding without proper guidance</li>
</ul>
<p>Had we knew all that in 2011, we would have saved a lot of time, energy, avoided much of development stress. And we wouldn’t have to debug a single character’s scene for roughly a year. Ludmila is a central figure of Attentat 1942 story. But for us programmers, she is also a long and confusing list of variables running in Flash.</p>
<p>Unity allowed us to create characters of Svoboda 1945 much easily. Instead of hunting for the one wrong variable, we could focus on making our characters as truthfully as possible, capturing every bit of historical nuance. Because that’s the real upside of having better development – you don’t have to fight your tools and instead create a better game.</p>
<p><em>Wishlist Svoboda 1945 <a href="https://store.steampowered.com/app/1076620/Svoboda_1945/" target="_blank" rel="noopener noreferrer">on Steam</a> or <a href="https://www.svoboda1945.com" target="_blank" rel="noopener noreferrer">subscribe to our newsletter</a></em></p>
</div>


https://www.sickgaming.net/blog/2019/09/...r-our-bed/
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016