Deprecated: Function set_magic_quotes_runtime() is deprecated in /DISK2/WWW/zweistein.cz/devdiary/textpattern/lib/txplib_db.php on line 14 Fate of Heroes Developer diary A project that I never really gave up on. tag:devdiary.zweistein.cz,2005:00a484dcf4873229879f728f4df923dd Textpattern 2010-08-07T17:18:50Z Zwei zwei2stein@gmail.com http://devdiary.zweistein.cz/ Zwei 2010-08-07T17:09:44Z 2010-08-07T17:18:49Z Aiming trouble tag:devdiary.zweistein.cz,2010-08-07:00a484dcf4873229879f728f4df923dd/0ecca426ca995eb3559c4d6e9a63dfe5 I replaced my old CDMA commection with WiFi some time ago. While pretty much everything improved, WiFi is a bit troubling: distance from AP and building as well as some growth in path make it fairly unreliable (as in, when it rains or when cat climbs tree, signal gets interrupted.)

Anyway, precise aiming of directional antena is lot of fun if your field of vision is obsured. You need to check signal strength and move a bit, wait, recheck strength, move aiditional degree.

But hey, it can be fun coding excercise and let computer give you neat beedback.

First, WiFi router propably has http interface, what about reading and parsing it for signal strength? Check.

Next, how to report connection strength to user? What about tone, lets use midi and control pitch of note with signal strength!

Here we go: Signal.java

Now you have auditory feedback you need to aim and if you are really good, you can swing antena to play something. Possibly.

]]>
Zwei 2010-07-12T06:51:41Z 2010-07-12T06:56:12Z Randomly generated roguelike maps arrived, pt2 tag:devdiary.zweistein.cz,2010-07-12:00a484dcf4873229879f728f4df923dd/776e47b45dbb2743baf61c8aa5645b51 I have discovered ingeious article about generating random levels with cellular automata. It worls like charm:

Now, from its looks it seems quite radom, but it makes wonderfull caverns, swamps and forests.

]]>
Zwei 2010-06-28T12:30:00Z 2010-06-28T12:46:06Z Dwarf Fortress SoudSense tag:devdiary.zweistein.cz,2010-06-28:00a484dcf4873229879f728f4df923dd/2264353054e2f87156de5cd772f5b255 Dwarf Fortress is game that has intriguing and rich gameplay, but which lacks polish. One of things it lacks is sound engine and sfx, situational music and such goodies.

Of course, it has goregous menu and game music, but when it rains, i would like to hear rain in background.

So, I went ahead and started SoundSense project (a not-so-clever name derived from StoneSense.)

Basic idea is simple: game logs amouncements and messages to file. In order to start listening to events, you just have to read new lines and react to them. Message gets matched to pattern and sound linked to pattern gets played.

Simple, powerfull.

Create Commons licensed music and sounds are suprisingly abundant on net and easily found in high quality.

]]>
Zwei 2010-06-25T08:53:28Z 2010-06-25T09:01:45Z Milestones are fun, part 7.875 tag:devdiary.zweistein.cz,2010-06-25:00a484dcf4873229879f728f4df923dd/9f8e68924bf02b313ab7391ce1bafd5c Did a bit work on it again:

Skills, Abilities and Attributes are working again. Targetting screen works like a charm :)

Resulting GUI code got quite pretty as result and while backend is also much cleaner, it could use some work (it once again became spagetti quite fast, but there are eat solutions).

What is left is Inventory, Statistics screen and Dialogue.

]]>
Zwei 2010-05-25T12:31:47Z 2010-05-25T12:39:12Z Milestones are fun, part 7.75 tag:devdiary.zweistein.cz,2010-05-25:00a484dcf4873229879f728f4df923dd/744d11bf31522ca430b1c38b8be43e3b … And were back.

Slow progress was made to get everything back to working state: Gui is now way more segregated from “engine” and theoretically, it is possible to save several “sessions” interacting in same world as well as remote message dispatching with TCP/IP. Result? MMOness (Add grind and its thousands of hours of fun!).

There are losses, of couse: Pretty much only thing working now is movement and picking up items (I think. They disappear when pick message is sent.). That is going to be a bit more work ahead.

Overall, I have not given up on this yet :)

]]>