<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">

    <title type="text">Stu&apos;s Rusty Bucket</title>
    <subtitle type="text">Stu&apos;s Rusty Bucket:Mind the gap between the keyboard and the chair</subtitle>
    <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/index/" />
    <link rel="self" type="application/atom+xml" href="http://www.mega-tokyo.com/blog/index.php/site/atom/" />
    <updated>2008-05-14T12:23:40Z</updated>
    <rights>Copyright (c) 2008, Stu</rights>
    <generator uri="http://www.pmachine.com/" version="1.6.2">ExpressionEngine</generator>
    <id>tag:mega-tokyo.com,2008:05:13</id>


    <entry>
      <title>Mandolin</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/mandolin/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2391</id>
      <published>2008-05-13T14:36:00Z</published>
      <updated>2008-05-13T14:52:58Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Life"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Life/"
        label="Life" />
      <category term="Personal"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Personal/"
        label="Personal" />
      <content type="html"><![CDATA[
        <p>I got a new mandolin on the weekend (thanks Nan-nan!), to replace the one I had that didnt quite work. The previous one had some frets inlaid really deeply to the point you couldnt hit some notes without the strings hitting other frets, no matter how high the bridge was set, it was a cheap mando, unfortunately this time, was not even suitable for learning on.
</p>
<p>
The new one is a Ibanez M511SBS, all solid woods, no ply or such, and yes, I checked all the frets, this one is good to go. Now I just have to get back up to speed and start learning again. You can see Joy&#8217;s Alvarez MD90 in the background.
<br />
I do need to tighten the nut on the armrest but apart from that&#8230;
</p>
<p>
<img src="http://www.mega-tokyo.com/blog/images/uploads/IMG_0374.JPG" style="border: 0;" alt="image" width="800" height="600" />
<br />

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Quest Journals</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/quest_journals/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2390</id>
      <published>2008-05-06T17:13:00Z</published>
      <updated>2008-05-06T17:15:41Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>In between drawing some arms and legs (see previous post), Ive been doing some testing on the PSP. Its amazing the little things that show up on there that don&#8217;t on the PC. (Porting is not an exact science). I found a couple of really stupid errors, obvious things that really only manifest on the PSP because of how its control pad reacts. Auto repeat is not good in menus, dialogues and quest journals).
</p>
<p>
Speaking of quest journals, my roguelike has one and I&#8217;m thinking of implementing it to augment the current quest journal, only not as verbose as my roguelike.
</p>
<p>
Right now the quest journal just shows given but not completed quests which you can page through and then completed quests. Each screen has the option to quit out or go to next item. I need to change it to use &#8216;X&#8217; to quit out or directional pad to scroll through the items instead of buttons to page through&#8230;
</p>
<p>
Thats the basic quest journal, but I want to add something like a game notes. Not something the player can edit but something the game tracks and shows you, example;
</p>
<p>
On 4th of Foo, year 1203 The Party defeated foobar the great
<br />
On 8th of Bar, year 1249 Pinky was turned to stone
<br />
On 8th of Bar, year 1249 Foozle died from poisoning
<br />
On 30th of Zot, year 1253 Baz was recruited to the party
<br />
On 30th of Zot, year 1255 The party accepted the quest to find the hold grail
<br />
On 24th of Bar, year 1376 The party entered a moongate
</p>
<p>
Now the roguelike is more verbose (detailing on move X you did Y etc), but we dont need that kind of granularity. I think the journal notes would be recording bigger events. Not every combat the party undertook but used more as a memoir type thing and using a book type interface drawn with good old pale yellowing paper.
</p>
<p>
mmm&#8230; if I should be able to adapt my CNC code&#8230;
</p>
<p>
mmmm Thinking some more I don&#8217;t know if it would really offer anything up to the game. It makes sense in the roguelike but this kind of journal, I dont know for a traditional CRPG....
</p>
<p>
Think I&#8217;ll stick to the quest journal.
</p>
      ]]></content>
    </entry>

    <entry>
      <title>The Combat Front</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/the_combat_front/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2389</id>
      <published>2008-05-02T15:54:00Z</published>
      <updated>2008-05-02T16:19:58Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>Not a lot of updates on the Fishguts front. Minor minor things really.
</p>
<p>
I&#8217;m going to split out all the combat sprites into their own sprite sheets rather than bung them all onto one large sheet. Its a minimal help for memory consumption and means I can make several versions of the same sprite and not feel guilty about having them all in memory in the one sprite sheet.
</p>
<p>
I&#8217;m still debating (though 95% sold on the below idea) paperdolling to a limited extent, only because the player will always be a humanoid size (so no need to account for dwarf / ogre sizes in paper dolling) .
</p>
<p>
1 - Need only draw a couple of same size icons
<br />
2 - Draw a couple of weapons.
</p>
<p>
Each sprite will consist of a couple of primary colours (chest colour, arm, leg, boots, hat etc) that the player can cycle through to select.
</p>
<p>
Once chosen, this sprite will be composed as a flat bitmap and saved as a file on disk, so I don&#8217;t have to recompose it each time we go into combat
</p>
<p>
Lets think it over a bit more.
</p>
<p>
Players icon is composed of;
</p>
<p>
1 - Ready/Guard sprite
<br />
2 - Attack sprite
</p>
<p>
That would consist of;
</p>
<p>
1 - head (bald, hat, short hair, long hair)
<br />
2 - torso
<br />
3 - arm overlay (see below)
<br />
4 - legs
<br />
5 - boots
</p>
<p>
Placement must accommodate any one of
</p>
<p>
1 - One hand weapon only
<br />
2 - One hand weapon and shield
<br />
3 - Two handed weapon
<br />
4 - Bow
<br />
5 - Staff
<br />
6 - Nothing
</p>
<p>
Now right away I can see that a two handed sword selection doesnt mesh with anything else so separate arm overlays will be required&#8230;
</p>
<p>
Each item could have a one or two colour selection.. lets make it a one colour selection, using the &#8216;bright&#8217; colours and I can map in the second colour for shadow/detail as being its &#8216;dark&#8217; alternate.
<br />
(Those that remember the old ANSI colours or 16 colour paint programs will know what I mean by this).
</p>
<p>
Looking over this I have immediately made things more complex than I intended, but I think its a good complexity than forcing the player to always have a preset icon&#8230;
</p>
<p>
Now, in an ideal world, and which I may still implement, is have the player choose his primary colours for torso/arms/legs/boots/head and at the start of combat dynamically create the sprite using whatever selected weapon is on hand. That would require recomposition when changing weapons mid combat&#8230; that shouldnt be too bad since combat is turn based and not realtime&#8230;
</p>
<p>
Time to get back to work-work and stop thinking game development.
<br />

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Bump friendly</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/bump_friendly/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2388</id>
      <published>2008-05-02T15:51:00Z</published>
      <updated>2008-05-02T15:54:11Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Cracks and Crevices"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Cracks and Crevices/"
        label="Cracks and Crevices" />
      <content type="html"><![CDATA[
        <p>I&#8217;ve made the start town &#8216;bump friendly&#8217; now, so if you bump into a guard you wont be summarily wiped out. You can still hit &#8216;a&#8217; to attack and force an encounter but bumping by happenstance wont kill you.
</p>
<p>
I&#8217;m thinking of extending the time give before being kicked out of town, so that the player has more of a chance to see whats in the town than only being able to hit the supply shop first&#8230;
</p>
<p>
Things are slowly progressing nicely toward an 0.5 release
</p>
      ]]></content>
    </entry>

    <entry>
      <title>Chaotic Neutral Human Fighter/Ranger (3rd/2nd Level)</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/chaotic_neutral_human_fighter_ranger_3rd_2nd_level/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2387</id>
      <published>2008-04-29T15:58:00Z</published>
      <updated>2008-04-29T16:04:00Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Computer Gaming"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computer Gaming/"
        label="Computer Gaming" />
      <content type="html"><![CDATA[
        <p>I did the <a href="http://www.easydamus.com/character.html" title="here">What DnD character are you</a> meme (130 odd questions)
<br />
Kinda odd coz thats the character I create in any CRPG that I can play (usually I pick ranger over fighter but dualclassing both is nice). My stats are a bit low :( doh!
</p>
<p>
<b>I Am A:</b> Chaotic Neutral Human Fighter/Ranger (3rd/2nd Level)
<br />
<center>
<br />
<br><br><u>Ability Scores:</u>
<br />
<b>Strength-</b>15
<br />
<b>Dexterity-</b>14
<br />
<b>Constitution-</b>15
<br />
<b>Intelligence-</b>14
<br />
<b>Wisdom-</b>15
<br />
<b>Charisma-</b>11
<br />
</center>
<br />
<br><br><u>Alignment:</u><br><b>Chaotic Neutral</b> A chaotic neutral character follows his whims. He is an individualist first and last. He values his own liberty but doesn&#8217;t strive to protect others&#8217; freedom. He avoids authority, resents restrictions, and challenges traditions. A chaotic neutral character does not intentionally disrupt organizations as part of a campaign of anarchy. To do so, he would have to be motivated either by good (and a desire to liberate others) or evil (and a desire to make those different from himself suffer). A chaotic neutral character may be unpredictable, but his behavior is not totally random. He is not as likely to jump off a bridge as to cross it. Chaotic neutral is the best alignment you can be because it represents true freedom from both society&#8217;s restrictions and a do-gooder&#8217;s zeal. However, chaotic neutral can be a dangerous alignment because it seeks to eliminate all authority, harmony, and order in society.<br>
<br />
<br><u>Race:</u><br><b>Humans</b> are the most adaptable of the common races. Short generations and a penchant for migration and conquest have made them physically diverse as well. Humans are often unorthodox in their dress, sporting unusual hairstyles, fanciful clothes, tattoos, and the like.
<br />
<br><br><u>Primary Class:</u><br><b>Fighters</b> can be many things, from soldiers to criminal enforcers. Some see adventure as a way to get rich, while others use their skills to protect the innocent. Fighters have the best all-around fighting capabilities of the PC classes, and they are trained to use all standard weapons and armor. A fighter&#8217;s rigorous martial training grants him many bonus feats as he progresses, and high-level fighters have access to special melee maneuvers and exotic weapons not available to any other character.
<br />
<br><br><u>Secondary Class:</u><br><b>Rangers</b> are skilled stalkers and hunters who make their home in the woods. Their martial skill is nearly the equal of the fighter, but they lack the latter&#8217;s dedication to the craft of fighting. Instead, the ranger focuses his skills and training on a specific enemy a type of creature he bears a vengeful grudge against and hunts above all others. Rangers often accept the role of protector, aiding those who live in or travel through the woods. His skills allow him to move quietly and stick to the shadows, especially in natural settings, and he also has special knowledge of certain types of creatures. Finally, an experienced ranger has such a tie to nature that he can actually draw on natural power to cast divine spells, much as a druid does, and like a druid he is often accompanied by animal companions. A ranger&#8217;s Wisdom score should be high, as this determines the maximum spell level that he can cast.
<br />
<br><br>Find out <a href='http://www.easydamus.com/character.html' target='mt'>What Kind of Dungeons and Dragons Character Would You Be?</a>, courtesy of Easydamus<br><br>
</p>
<pre>
Detailed Results:

Alignment:
Lawful Good ----- XXXXXXXXXXXXXXX (15)
Neutral Good ---- XXXXXXXXXXXXXXXX (16)
Chaotic Good ---- XXXXXXXXXXXXXXXXX (17)
Lawful Neutral -- XXXXXXXXXXXXXXXXXXXXXX (22)
True Neutral ---- XXXXXXXXXXXXXXXXXXXXXXX (23)
Chaotic Neutral - XXXXXXXXXXXXXXXXXXXXXXXX (24)
Lawful Evil ----- XXXXXXXXX (9)
Neutral Evil ---- XXXXXXXXXX (10)
Chaotic Evil ---- XXXXXXXXXXX (11)

Law &amp; Chaos:
Law ----- XXXXXXX (7)
Neutral - XXXXXXXX (8)
Chaos --- XXXXXXXXX (9)

Good &amp; Evil:
Good ---- XXXXXXXX (8)
Neutral - XXXXXXXXXXXXXXX (15)
Evil ---- XX (2)

Race:
Human ---- XXXXXXXXXXXXXX (14)
Dwarf ---- XXXXXXXX (8)
Elf ------ XXXXXXXXXX (10)
Gnome ---- XXXXXXXX (8)
Halfling - XXXXXXXXXX (10)
Half-Elf - XXXXXXXXXXX (11)
Half-Orc - XX (2)

Class:
Barbarian - (-2)
Bard ------ (-6)
Cleric ---- (-2)
Druid ----- (0)
Fighter --- XX (2)
Monk ------ (-13)
Paladin --- (-21)
Ranger ---- XX (2)
Rogue ----- (-2)
Sorcerer -- (0)
Wizard ---- (0)
</pre>
</p>

      ]]></content>
    </entry>

    <entry>
      <title>High Scores and Tombstones</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/high_scores_and_tombstones/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2386</id>
      <published>2008-04-25T00:52:00Z</published>
      <updated>2008-04-25T00:52:36Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Cracks and Crevices"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Cracks and Crevices/"
        label="Cracks and Crevices" />
      <content type="html"><![CDATA[
        <p>I branched my cnc repo tonight (git checkout -b is sooo nice!) and added highscores for multiplayer goodness. I&#8217;m going to use the same framework for tombstones and display small markers in the park of the last couple of deaths.
</p>
<p>
I can &#8220;trust&#8221; this on unix (my primary development system) but cant really trust it on win32 (everyone runs as administrator so&#8230; shrugs).
</p>

      ]]></content>
    </entry>

    <entry>
      <title>Minor Updates</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/minor_updates/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2385</id>
      <published>2008-04-21T00:14:01Z</published>
      <updated>2008-04-21T00:38:09Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>Honestly, I&#8217;m not doing a lot of work on fishguts lately. Been mostly messing with my language/compiler and my roguelike.
</p>
<p>
I did do some work on cleaning up my quest interface. I split it out into three files, one is just a set of constants, one a set of descriptions and such and the third is the basic routines. This way I can use my quest functions and just include the constants for things that dont requires the mss of loaded text for the quest descriptions.
</p>

      ]]></content>
    </entry>

    <entry>
      <title>Szechuan Chicken</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/szechuan_chicken/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2384</id>
      <published>2008-04-16T18:07:01Z</published>
      <updated>2008-04-16T18:37:08Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Life"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Life/"
        label="Life" />
      <category term="Cooking"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/cooking/"
        label="Cooking" />
      <content type="html"><![CDATA[
        <p>So I went looking for a szechuan chicken recipie online&#8230; I googled, as you do, and started hitting the top 20 or so links. I even hit the first 10 links at places like cooks.com&#8230;
</p>
<p>
<b>NONE</b> used szechuan peppercorns. They all just listed generic garbage like chili peppers or &#8220;cayenne pepper&#8221; to taste. ugh.
</p>
<p>
There is a tonne of &#8220;10 minute&#8221; recipes out there too. Most seem to think rice wine / vinegar is all you need. One of the top links is even a Betty Crocker recipe whose secret ingrediant is&#8230; &#8221;<i>bag (1 lb 5 oz) Green Giant&#174; Create A Meal!&#174; frozen szechuan stir fry meal starter</i>&#8221;. Thats just pure awesomeness. Another mix recreated the zing of Szechuan Chicken with powdered mustard and texas pete hot sauce!
</p>
<p>
I also learnt some new things.
</p>
<p>
- Chinese pea pods = snow peas.
<br />
- Szechuan Chili oil recreates any meal prefixed by Szechuan, aka Szechuan {insert favourite food type here}
<br />
- Barbecue sauce makes for great &#8220;authentic&#8221; recipe&#8217;s.
</p>
<p>
The top rated recipezaar &#8220;Szechuan Chicken&#8221; recipe is basically nothing but rice wine vinegar and has from 13 reviews 4 and 9/10ths out of 5 stars&#8230;  ridiculous.
</p>
<p>
No wonder you cant find good Chinese food in America.
</p>
<p>
I did end up finding a proper recipe which included Tien Tsin Chinese Chile Pepper, Szechuan Peppercorns and Arrowroot Powder&#8230;  at <a href="http://www.thespicehouse.com/recipes/chicken-with-sichuan-peppercorns-recipe" title="The Spice House">The Spice House</a> which is a online seller of exotic spices&#8230; So of course they need something to showcase szechuan peppercorns! 
</p>
<p>
If Joy wouldn&#8217;t kill me because we are in a &#8220;no spending&#8221; mode, I&#8217;d love to spring for some unground peppercorns and the other two aforementioned spices.....
</p>


      ]]></content>
    </entry>

    <entry>
      <title>Financial Meltdown</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/financial_meltdown/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2383</id>
      <published>2008-03-31T15:49:00Z</published>
      <updated>2008-03-31T16:14:23Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Life"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Life/"
        label="Life" />
      <content type="html"><![CDATA[
        <p>I read this article on CNN <a href="http://money.cnn.com/2008/03/31/news/economy/copes/index.htm?cnn=yes" title="Careers vanish after subprime 'free fall'">Careers vanish after subprime &#8216;free fall&#8217;</a>, its a wonderful tale of woe of the family of Kent and Mysti Cope who live in the so impoverished Orange County in California.
</p>
<p>
Lets take some quotes.....
</p>
<blockquote><p>He has been out of work since August when he was laid off</p></blockquote>
<p>
OK, He lost his job and has not found one in&#8230; 7 or 8 months.....
<br />

</p>
<blockquote><p>Today, they&#8217;re trying to get by on his unemployment benefits of about $450 a week, which covers only about an eighth of the basic payments they owe every month.</p></blockquote>

<blockquote><p>For Mysti, 37, all her efforts to find work since she lost her job last May have been futile.</p></blockquote>
<p>
His wife has no job either&#8230; and hasn&#8217;t had one for 11 months&#8230;
<br />

</p>
<blockquote><p>Their home equity line, mortgage, health and life insurance premiums alone cost about $10,000 a month. Still, they are trying to hang onto what they call their dream home with a view of the Pacific Ocean</p></blockquote>
<p>
Awesome! Keeping the dream alive, a mansion on the coast&#8230;
<br />

</p>
<blockquote><p>&#8220;We&#8217;ve used up most of our reserves, cashed in her 401K,&#8221; said Kent. &#8220;We&#8217;re going Mach 1 into a wall. When we run into it, then we&#8217;ve got to decide what to do next.&#8221;</p></blockquote>
<p>
This is the &#8220;we have no plan going forward&#8221; routine, also known as &#8220;we are waiting for something magical to happen and money to fall into our laps!!&#8221;
<br />

</p>
<blockquote><p>And they&#8217;ve made cutbacks: trading in Kent&#8217;s Corvette for a Suburban and getting rid of the gardener,</p></blockquote>
<p>
Awesome, they switched from a gas guzzling corvette to a.. gas guzzling huge ass SUV!
<br />

</p>
<blockquote><p>Since he lost his job, Kent has gotten a real estate license and is trying to start a business selling the rapidly increasing inventory of foreclosed homes in Orange County, Calif. Mysti is trying to build an online business selling jewelry and beachwear, some of which she designs herself.</p></blockquote>
<p>
I know!! Lets get a job selling houses.. that don&#8217;t sell in a market that is thrashing around and wallowing in its death throes! Awesome decision there Kent. You go Mysti (Is that her porn actress name or something?), just think how many sea shell necklaces and self designed bikini&#8217;s you need to sell to make that 10k minimum a month.
<br />

</p>
<blockquote><p>&#8220;The media has somewhat tarnished the subprime industry and all the employees, and portrayed them as being dishonest,&#8221; she said. &#8220;We&#8217;re not dishonest. Not everybody was a bad borrower. Not every company was a bad lender.&#8221;</p></blockquote>
<p>
Yes yes, its all the fault of the media Mysti, thats why you cant get a job.
</p>
<p>
Must be tough living in Orange County, CA and needing to make 10k a month to pay your mortgage and health insurance.
</p>
<p>
They obviously didn&#8217;t create any kind of safety net with there 2million+ income (they both had a six figure+ income each)&#8230; I mean.. really.. you have a combined two million plus income and you don&#8217;t push jack shit into savings and we are supposed to sympathise how tough life is for folks living in Orange County CA? 
</p>
<p>
Cry me a river.
</p>

<p>

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Using Skills</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/using_skills/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2382</id>
      <published>2008-03-31T14:03:01Z</published>
      <updated>2008-03-31T14:32:52Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>So I know what my frame limiter was&#8230; I had sped time up to test some time triggers, which in essence converted it from 1000 ticks a second to 250. Hence the dropping by 1/4&#8230; Putting this back to 1000 ticks brought me back to 16/17 frames a second&#8230;
</p>
<p>
I double tasked the use option, so now when using an item you can toggle to using a skill! Now I can hunt in forests for food.
</p>
<p>
When using the hunting skill, it scans the tiles around the player, different tiles give different weights to what game can be found. Forests are best, then woodland then grassland. Each tile type has a multiplier, and a bonus is applied if your enclosed in all forest. The scan is a 49 tile block (3x3 around the player). This is calculated into a chance of finding game, making that chance then applies your hunting skill to see if you actually brought down and bagged that game. Passing that, gives a random chance for game type, the rarest gives the most meat, the most common, the least meat, (There are only 3 types of game).
</p>
<p>
Without building big, what I would have liked to implement would be a reference underneath so you couldn&#8217;t hunt more than once in a set area without reducing the amount of game there. IE you couldn&#8217;t farm a set of tiles indefinitely without exhausting them, and over time they would replenish&#8230;  but thats not code I am willing to spend on something I&#8217;m trying hard not to bloat unnecessarily&#8230;
</p>
<p>

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Hacking side effects</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/hacking_side_effects/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2381</id>
      <published>2008-03-24T13:38:00Z</published>
      <updated>2008-03-24T13:51:04Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>I was hacking on a bug last night when I kept getting some odd behaviour in my map code&#8230; Turns out in my coding spree last night I fixed a very very old bug that I had coded a workaround for a very long time ago, and in fixing the root cause broke the work around&#8230;
</p>
<p>
So tonight, depending on time, I need to do some cleanup to remove said workaround. yay!
</p>
<p>
Looking at the solution, makes me wonder why I didn&#8217;t do it right from the beginning.. At least it ts properly fixed now.
</p>
<p>
I need to address a big bottleneck somewhere. I am currently getting about 4 frames per second.. which is horrendously poor and I cant quite see why. I ran the profiler but didn&#8217;t really see anything&#8230; humm..
</p>
<p>
I have a suspicion, based on messing around with the intro code&#8230; will have to branch the code and test this week.
</p>

      ]]></content>
    </entry>

    <entry>
      <title>Random name generation</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/random_name_generation/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2380</id>
      <published>2008-03-21T14:52:00Z</published>
      <updated>2008-03-21T16:55:38Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <content type="html"><![CDATA[
        <p>Ive been poking with some random name generation stuff. Nothing uber fancy or anything.
</p>
<p>
First thing I did was to collect data of the top 100 boys and girls names over several years. Various web sites have lists of these things so its a pretty easy cut and paste to mine them.
</p>
<p>
I then used a ruby script to collate, sort and remove dupes.
</p>
<p>
This gave me 196 (of 500) total unique boys names and 162 (of 500) total unique girls names. You can see most are duplicates. This is also of course very English/American centric I should add.
</p>
<p>
The next task was to break down the names into c/v/cc/vv markers (consonant, vowel etc) of the english speach.
</p>
<p>
Some examples;
</p>
<pre>
vcvcvccvc => alexander == (v, c, v, c, v, cc, v, c)  => (a, l, e, x, a, nd, e, r)
vcccvc => andrew == (v, cc, c, v, c)  => (a, nd, r, e, w)
vccvc => angel == (v, cc, v, c)  => (a, ng, e, l)
vcccvcc => anthony == (v, cc, c, v, cc)  => (a, nt, h, o, ny)
vccvcvv => antonio == (v, cc, v, c, vv)  => (a, nt, o, n, io)
vcccvc => ashton == (v, cc, c, v, c)  => (a, sh, t, o, n)
vvccvc => austin == (vv, cc, v, c)  => (au, st, i, n)

cvccvcv => barbara == (c, v, cc, v, c, v)  => (b, a, rb, a, r, a)
cvccc => betty == (c, v, cc, c)  => (b, e, tt, y)
cvcvccc => beverly == (c, v, c, v, cc, c)  => (b, e, v, e, rl, y)
ccvvccv => brianna == (cc, vv, cc, v)  => (br, ia, nn, a)
ccvccvcc => brittany == (cc, v, cc, v, cc)  => (br, i, tt, a, ny)
ccvvcv => brooke == (cc, vv, c, v)  => (br, oo, k, e)
ccvvcccc => brooklyn == (cc, vv, cc, cc)  => (br, oo, kl, yn)
cvcvccv => cadence == (c, v, c, v, cc, v)  => (c, a, d, e, nc, e)
cvcccc => camryn == (c, v, cc, cc)  => (c, a, mr, yn)
cvccc => carly == (c, v, cc, c)  => (c, a, rl, y)
cvcvc => carol == (c, v, c, v, c)  => (c, a, r, o, l)
cvcvcvcv => caroline == (c, v, c, v, c, v, c, v)  => (c, a, r, o, l, i, n, e)
</pre>
</p>

<p>
Of the 196 boys names this is what I got;
</p>
<pre>
ccvcc = 4
ccvccvc = 7
ccvcvc = 4
cvc = 3
cvcc = 9
cvccc = 5
cvcccvc = 3
cvccvc = 21
cvccvcc = 6
cvccvvc = 3
cvcv = 4
cvcvc = 20
cvcvcc = 7
cvcvvc = 5
cvvc = 6
vcvc = 6
vvcvc = 3
</pre>
</p>
<p>
Girls names were more varied and this is the output of that 162;
</p>
<pre>
ccvccvc = 4
cvcc = 5
cvccc = 8
cvccv = 7
cvccvc = 8
cvccvcc = 4
cvccvcv = 4
cvccvcvv = 3
cvccvv = 4
cvcv = 4
cvcvc = 10
cvcvccc = 4
cvcvccv = 7
cvcvcv = 3
cvcvcvcv = 3
cvcvv = 4
cvvc = 3
cvvcv = 4
cvvcvc = 4
vccv = 3
vcvcv = 4
vcvcvv = 3
</pre>
</p>
<p>
Using another script to use the above tables I randomly generated some names, for example;
</p>
<pre>
pattern = cvcvc   : pupet
pattern = ccvvcc  : stoush
pattern = cvcvcvc : ronafut
pattern = cvcvcvc : nodibol
pattern = cvcvc   : tunen
pattern = cvcvcvc : lejacas
pattern = cvccvcc : kolfift
pattern = ccvvc   : fraes
pattern = cvccvcc : hangold
pattern = ccvvcc  : gruath
pattern = ccvvcc  : skeenk
pattern = ccvvcc  : thouft
pattern = cvccvc  : tolfaj
pattern = cvccvcc : sontunt
pattern = cvcvvc  : toboum
pattern = ccvvc   : skaed
pattern = cvcvcvc : lekajel
pattern = cvccvcc : fathort
pattern = cvcvvc  : gekuat
pattern = cvccvc  : mankos
</pre>
</p>
<p>
Mmm nothing of any real value or even remotely close to existing names from the original list (I was only testing against patterns of 5 or more letters)
</p>
<p>
I should note that I weeded out a lot of things, For example there are no &#8216;q&#8217; or &#8216;qu&#8217; pairings and letters like &#8216;z&#8217; and &#8216;x&#8217; have been removed. Consonant pairings are restricted to things like &#8216;st&#8217;,&#8217;ch&#8217;,&#8217;dr&#8217;,&#8217;sh&#8217; etc and vowel pairings to &#8216;ae&#8217;,&#8217;ou&#8217; etc&#8230;
</p>
<p>
Needs a lot more work. I think what I need to do is weight the combinations and make a dictionary of the first consonant/vowel/combos and then the rest of the combos.
</p>
<p>

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Resizing windows and cleaning up the house</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/resizing_windows_and_cleaning_up_the_house/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2379</id>
      <published>2008-03-20T12:23:00Z</published>
      <updated>2008-03-20T16:57:46Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Cracks and Crevices"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Cracks and Crevices/"
        label="Cracks and Crevices" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>I&#8217;ve spread my self around last night, doing minor work on both CnC and Fishguts.
</p>
<p>
In CnC I built the game to resize the SDL window, and it works quite well, I&#8217;m very surprised, and it only took about 3 lines of C code to make it work. One suckage thing is that SDL clears the buffer so if you resize and hold the mouse down you get a black window until the game redraws the window, but you dont get that message until after you release the mouse button&#8230;
</p>
<p>
In Fishguts news, I&#8217;ve been tidying up my constants, the game uses a lot of constants in the C code and int he Lua code, and basically I have duplicate on the Lua side. I spent last night cleaning a lot up by having them set by the C code when a new Lua State is created, this stops me having to load the same constants in at the top of a script in an include file&#8230; so that is pretty nice.
</p>
<p>
Joy dislocated her shoulder so I&#8217;ve been doing all the baby caring stuff on my own lately which has killed any productivity but thats ok, its what marriage is about, taking care of each other. We are hoping its not a torn rotator cuff, so I might be doing only minor work on CnC + Fishguts for a few more weeks.
</p>
      ]]></content>
    </entry>

    <entry>
      <title>More on Combat maps</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/more_on_combat_maps/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2378</id>
      <published>2008-03-17T16:41:01Z</published>
      <updated>2008-03-17T16:43:48Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>
The internal debate right now is over combat maps.
</p>
<p>
1 - Do I blow up the existing map into the combat map, doing say every tile x3
<br />
2 - Do I load pre-made combat maps
</p>
<p>
Doing 1 is easy and hard at the same time.&nbsp; It reveals the map layout (bad in caves/dungeons, but doesn&#8217;t really matter in towns or overland). The biggest downside is, it magnifies the map. The town maps use a simple tile scale. A door is 1 tile, etc. Suddenly you go into combat and the door is 3 tiles and a room might be 9x9 tiles. It might not sound bad but gives the wrong scale to the map. It sounds a lot more pedantic than it is.
</p>
<p>
One thing I remember doing in Pool of Radiance and Azure Bonds, when your in combat you can see the layout of the dungeon around you, which can be handy (you don&#8217;t see doors tho). The no door thing kinda bothered me, that suddenly in combat they all disappeared, but at the same time, I understood that this is what you get with the break between the map your playing and the combat.
</p>
<p>
Doing number 2 is really simple. I can pre-draw several combat maps, you know the plain grass combat map, the ship to shore type map, the cave map. This is the easiest method, but the downside is, what kind of maps do you have in towns? How do you represent the surroundings in the dungeon, if you have come down a crowded narrow corridor on all sides, you hit the combat map and its a nice open map with nothing like what you are really standing in..
</p>
<p>
I am leaning toward exploding the maps by 3 times right now. I may do some form of anti-aliasing so things are not so blocky in transitions.
</p>
<p>
That leaves randomness. Well except for town maps, all outdoor maps will have a random element, you know, downed tree&#8217;s, logs, rocks, etc. Dungeons and caves will have rocks, puddles and the like.
</p>
<p>
The dilemma there is putting a tree on the map&#8230; This is 2D, so you cant walk &#8216;behind&#8217; the tree. The tree is in effect an obstacle. It wont obstruct view, and you can hide behind it, but should it obstruct missile weapons and magic? Magic is inherently.. magical by nature so you can explain that away. And hiding behind a rock should cover you from missile weapons&#8230;
</p>
<p>
There are a lot of edge cases. Its easy to see why in Ultima III, combat was just a plain grid of tiles, all grass or all floor or something, and your placed on one side, with one group of all-same enemies on the other. The smallest increase in complexity opens up such a can of worms.
</p>

<p>

</p>
      ]]></content>
    </entry>

    <entry>
      <title>Combat</title>
      <link rel="alternate" type="text/html" href="http://www.mega-tokyo.com/blog/index.php/site/combat/" />
      <id>tag:mega-tokyo.com,2008:blog/index.php/site/index/1.2377</id>
      <published>2008-03-17T15:48:01Z</published>
      <updated>2008-03-17T16:10:01Z</updated>
      <author>
            <name>Stu</name>
            <email>yakumo9275@gmail.com</email>
                  </author>

      <category term="Computers"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Computers/"
        label="Computers" />
      <category term="Development"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Development/"
        label="Development" />
      <category term="Fishguts"
        scheme="http://www.mega-tokyo.com/blog/index.php/site/category/Fishguts/"
        label="Fishguts" />
      <content type="html"><![CDATA[
        <p>Now that I finally have a working PSP backend playing nicely for the last week, I nutted out the flow and pseudo code for the combat engine. Looking at the top level flow of 25 lines is nice. It looks so much more do-able than the initial impression.
</p>
<p>
What is it really, but another abuse of the tile engine utilising different sized tiles (1x1, 1x2, 2x1, 2x2).
</p>
<p>
Some of the top level stuff is really basic (initialise the loot list to be empty), to the hard (determine placement of enemy parties on map)&#8230; 
</p>
<p>
Some things are only as hard as you make them for youself. Right now I am still debating if I will &#8216;blow&#8217; up and enlarge the current map into the combat map, or load a predefined map based on the square the party is standing on and the square the enemy is standing on (thus allowing ship to shore etc)&#8230;
</p>
<p>
I&#8217;ll keep mulling the top level and low level descriptions for a while so I can go in and implement it all at once and not have to do huge backtracks because I overlooked something silly or important <img src="http://www.mega-tokyo.com/blog/images/smileys/smile.gif" width="19" height="19" alt="smile" style="border:0;" />
</p>


      ]]></content>
    </entry>


</feed>