It's time again for another month-apart update.
This time, I am able to say that NOT EVERYTHING IS BROKEN ANYMORE. I was able to essentially remake Mega-Risk and get everything locked within the vaults of source control. Over Spring Break, I was able to get a theoretically correct multiplayer setup going, but was forced to stop when, after getting all the code to compile, I could not make the in-game server list show any servers.
So I decided to get a settings system working. It may not have been made obvious in previous posts, but customization is a huge part of Mega-Risk. In real-life games, the rules are often tinkered with from game to game (and sometimes mid-game as well). Everything from the ability to trade territory cards to the number of troops that can be raised in a single turn to existence of unbreakable alliances are all things that are decided upon in each and every game. As such, I've been trying to figure out a fast and easy way to implement an ENORMOUS amount of game settings, with the ability to add more whenever we need to without any headaches.
My prayers were answered in the form of spreadsheets. Luckily for me, Unreal Engine supports the use of Excel Sheets to create data tables*. After a long night of getting the required framework in, I had pretty much created a system in which a central 'Settings Sheet' can be used to hold every single game setting in Mega-Risk. Even better, I found out I can edit this sheet in-engine once it's been imported into Unreal for the first time.
Actually hooking this data up to a set of variables took a bit longer. To get into the details, I had to make a set of menus that categorizes all settings into a neat little settings screen and then have every setting correlate to a variable in my GameInstance (basically a place where all settings and game-wide data is kept).
Thankfully, this system seems to be working now and I can try to get multiplayer working. Well, when I say that I mean I can now help my partner with the problem he's having with source control so he can try and solve the problem because I can't figure it out for the life of me.
All-in-all, Mega-Risk is chugging along at a steady-ish pace and I think we're almost ready to make all the fun, cool stuff like actual gameplay soon. ;D
Showing posts with label Bugs. Show all posts
Showing posts with label Bugs. Show all posts
Monday, April 11, 2016
It feels like it's been longer than a month
Monday, March 14, 2016
Progress update: everything is broken
HELLO AGAIN, any and all who read this! It's been over a month, so I figured I'd give a status update. As the title mentions, everything is, once again, broken. How broken, you ask? Well, let me tell you.
Over the last month, I've learned a very valuable lesson: if you EVER mess around with your UE4 project files using Windows Explorer, there's a good chance you will permanently and irredeemably break your project so bad that it will either never compile again or the project will be unable to load.
After implementing basic forms of all of the infrastructural files in C++, I received some very weird compile errors. After some searching, the only help I could find was a suggestion that I delete some of the folders in my project, namely Build and Saved. I'm not 100% sure what these do, but I think Build handles all the files that are generated when the project is built/compiled and Saved is mainly backups and whatnot.
SO, I deleted these two under the impression that it was similar to clearing my cache.
I was very wrong.
On my next build, I got even more errors and suddenly Unreal would not load the project, giving me a minimal crash report for which there was no help. Frustrated, I deleted the entire project (I hadn't put too much work into it at this point) and started over.
This process repeated itself to some extent over the following weeks. One time, I was even able to get the Invasion mechanics coded before it flopped and burned.
Over the past two weeks, most of my time has been spent working on a research paper for my history class (school is still a thing that exists) and trying to find some scholarships to apply for. Mega-Risk was not opened at all during that time.
I'm back now, and I'm going to try to get this puppy stable and not running into a pit of spikes like a rapid Super Meat Boy every ten seconds.
Wish me luck.
Over the last month, I've learned a very valuable lesson: if you EVER mess around with your UE4 project files using Windows Explorer, there's a good chance you will permanently and irredeemably break your project so bad that it will either never compile again or the project will be unable to load.
After implementing basic forms of all of the infrastructural files in C++, I received some very weird compile errors. After some searching, the only help I could find was a suggestion that I delete some of the folders in my project, namely Build and Saved. I'm not 100% sure what these do, but I think Build handles all the files that are generated when the project is built/compiled and Saved is mainly backups and whatnot.
SO, I deleted these two under the impression that it was similar to clearing my cache.
I was very wrong.
On my next build, I got even more errors and suddenly Unreal would not load the project, giving me a minimal crash report for which there was no help. Frustrated, I deleted the entire project (I hadn't put too much work into it at this point) and started over.
This process repeated itself to some extent over the following weeks. One time, I was even able to get the Invasion mechanics coded before it flopped and burned.
Over the past two weeks, most of my time has been spent working on a research paper for my history class (school is still a thing that exists) and trying to find some scholarships to apply for. Mega-Risk was not opened at all during that time.
I'm back now, and I'm going to try to get this puppy stable and not running into a pit of spikes like a rapid Super Meat Boy every ten seconds.
Wish me luck.
Sunday, May 3, 2015
Invasion (mostly) works!
Yes, you read that right. I've finally gotten Invasion, the cornerstone mechanic of any Risk game, to a somewhat working state. I say somewhat because, basically, I can't get the game to compare more than one set of dice per roll.
To put this into perspective, say the game rolls [6, 4, 2] for the attacker and [6, 1] for the defender. Because of the bug, the game will compare the two highest rolls (the 6s) but afterwards it won't move on to compare the second highest numbers (the 4 and the 1). It will instead compare the two highest numbers twice. This causes nearly all invasions to bring both the defender and attacker's troop counts down into the single digits most every time.
I'd probably have been able to fix this over the past couple days, but I've been trying and failing to reinstall Windows onto my new SSD and I'm the sort of person who is unable to focus on anything once he comes across a difficult problem.
Hopefully I can get this thing to work soon so I can go back to Mega-Risk dev.
To put this into perspective, say the game rolls [6, 4, 2] for the attacker and [6, 1] for the defender. Because of the bug, the game will compare the two highest rolls (the 6s) but afterwards it won't move on to compare the second highest numbers (the 4 and the 1). It will instead compare the two highest numbers twice. This causes nearly all invasions to bring both the defender and attacker's troop counts down into the single digits most every time.
I'd probably have been able to fix this over the past couple days, but I've been trying and failing to reinstall Windows onto my new SSD and I'm the sort of person who is unable to focus on anything once he comes across a difficult problem.
Hopefully I can get this thing to work soon so I can go back to Mega-Risk dev.
Subscribe to:
Posts (Atom)