Showing posts with label XML. Show all posts
Showing posts with label XML. Show all posts

Sunday, August 21, 2011

Text Parser Progress and Story Ideas

I finally got around to hammer out some more code today. I think I figured out the Regular Expression stuff so it should be a bit easier writing the next bit of my text parser. So far my parser can read in specific functions with custom arguments in the XML files that will automatically grab relevant information from the game. This is a vital piece for my conditional logic for sorting events that can be activated at any one moment.

Pretty awesome, but its only 1/3 of a single function. Progress is progress though.

In non-code news, I've been thinking about the back story for the game while riding the train. In a forum thread I mentioned that I wanted to put the setting in an ambiguous modern day rural area. The kinda setting you get from My Neighbor Totoro. A place seemingly behind the times due to its rural nature and where strange magical things can happen.
As for the reason for cow girls, I was toying with the idea of a human breast milk craze becoming the natural order in this world, effectively replacing regular dairy over the span of a decade or so. To fill this demand, an ultra corporation effectively gets indentured servitude legalized for gathering "employees" that work full time as human cows. Something mysterious happens and the ultra corporation collapses completely creating a void for the supply of milk and leaves the twisted laws behind. Therefore "organic" farms pop up everywhere trying to fill in the supply while taking advantage of the new slog of workers that either sell themselves or are forced by debt.

Kind of a twisted situation to not have to call the cows slaves, but "indentured servants." I'll take any constructive criticism for this idea and try to improve on it.

Finally, I was thinking that it would be great as part of the player's origin to start with a default cow girl of their choosing which would set the initial theme of the game. The first character I've imagined is Matty, a young, cheerful girl that grew up in the nearby town. She always had a love for the farm life and repeatedly visited the farm you currently use before it was converted from using regular dairy cows. She has a fascination with cows and wants to try and become one herself with your help. The only thing is, that she has hardly anything to work with, being a tiny thing with no curves to speak of or any practical farm hand knowledge despite her love of farms. She offers herself to be your indentured servant with the potential to be a great cow girl for your farm.

More ideas to come.


Pic by Katou Hayabusa

Wednesday, August 17, 2011

Working on XML System and Stuff to Come.

I've been pretty busy with other commitments at the moment but I wanted to share a bit about my tests with XML.  It is looking pretty fantastic right and I plan on dumping a ton of effort into using it as a primary engine component for storing the majority of the game's data. The idea is to steer away from hard coding much of the expandable features of the game such as items, events, flags, attributes, effects, etc and use robust wrappers to account for all the sort of random things a developer would want to make. Want to create a quest line where you can find the legendary potion of the fertility goddess? You will be able to set up a series of events that can land you the rare potion item that gives entirely new attributes or effects that cause your character to grow in any numerous ways. Certainty you can be more creative that that, but that's the goal with this system.

For those inclined, here's a sample of what an item may look like in xml.


<item name = "apple">
<type>food</type>
<price>10</price>
<icon>apple.png</icon>
<effects>
<effect>targetCow.Health + 10</effect>
</effects>
<description>
A delicious red fruit. Known for keeping medical staff at bay.
</description>
</item>

You will be able to add numerous effects as well as custom ones by adding entries into a separate xml file for effects. I'll try to provide a guide for using this stuff once it gets there.

While this XML stuff is great, I'm currently stuck on writing much of the complex parsers needed to read all this random bit of information. I'm knocking my head against the wall a bit, but I've managed to find an opensource string to math expression parser made just for Actionscript 3.0. I also rediscovered something called "RegExp" or Regular Expressions, something I used for finding and replacing specific text in my last game. Apparently it's much more powerful (and convoluted) than I originally thought, and may prove useful to this part of the engine.

Once this is all taken care of, a HUGE part of the game will be done. Still, it will still be time before I start grabbing alpha testers as I haven't even begun getting any actual interfaces yet. Hopefully that will also mean more previews and less walls of text. Time will tell. And if you actually read this far user, I thank you with this awesome image below.


Milk Maid by Gunneko on Pixiv

Saturday, August 13, 2011

Design Phase in Progress

The discussions on the forums have been pretty great.  Many ideas have been tossed around and the game concept is looking much better than what I initially conceived.  I'm also quite pleased to see the excitement for this sort project as that's what I feel pushes developers towards finishing what they started.

Conceptually, I see this game looking similar to Daisy Strike's Other World game with the multiple characters being trained simultaneously at a single home, but our big feature is transformations over time.  In other words, all sorts of weight gain and body expansion, and a few body modifications.  Early versions of the game will use merely text and unspecific images, but I imagine getting something as awesome as the paper dolls Daisy Strike is using with all the various stages of growth. That will depend if I ever get some dedicated artist on board, but that's something to think about for a later time.

For now, I'm still wrestling with some design choices, like what activities to have, what sort of cow girl job specifications to use, and even the exact setting.  I'm also testing out some game engine features by experimenting with stuff using XML files for loading content and some other not so fancy things.

Lastly, I want to keep this project pretty open and transparent, so I'm seeing about getting either a google group or a pbworks site, and see if I can get a subversion server from Assembla or something. I'll see how to give people access at the appropriate times.