Tuesday, October 28, 2008

Vecset Prototype

I recently completed the design specs for the Vecset prototype. The next step is to finish debugging the Python code which I wrote some weeks ago, and that code will someday be the Vecscript code editor. When that's done I intend to post to the OLPC mailing lists (games and devel), advertising that I hope to team up with a Python programmer. That programmer's main role is to develop the Linux version of the Vecset prototype, and then building on that prototype to implement Vecset for the XO Laptop. While that programmer is working on the prototype, I will be developing in Java the Vecscript compiler (Vecscript is the built-in scripting language of the Windows version of Vecset). When the prototype is finished, I will translate relevant portions of that code, developing the Java/Windows version of the prototype.

Thursday, October 9, 2008

Vecset for the XO

This evening I intend to post a new project announcement on the OLPC Games mailing list for Vecset (which used to be Treenimation). That mailing list is subscribed to by developers of games for the XO Laptop. One Laptop Per Child (OLPC) is manufacturing millions of $175 XO Laptops for schoolchildren in developing countries. A scaled-down version of Vecset will be compatible with the XO Laptop. This version will use Python instead of my own Vecscript as its built-in scripting language, and will not support playing games over the Internet. You can still play multiplayer games with other nearby XO users, over its wireless network.

This weekend I intend to finish debugging my Python code for what will someday become the Vecset Code Editor, and then start translating it into Java. I'm a newbie when it comes to programming in Java. I'm most comfortable programming in Delphi, and I learned Python programming a few months ago.

Saturday, September 20, 2008

Java

Today I installed Java (which is free) and created my hello-world app (newbie tip: a "hello world" program is the simplest possible program, which simply displays a message chosen by the programmer and contained in the "hello world" program).

I like Java and I'm going to use it instead of Python to develop Vecset for Windows. Vecset will not run under Linux and will not run on the XO Laptop. Vecset will be closed source, not open source.

If Vecset is successful, I hope to sign up at least 1000 paying members/gamers, each of whom pays $15/year, and at least 200 paying members/developers, each of whom pays $30/year: gross income = $21,000/year or $1750/month.

Only gamers who are members can own real estate in Vecset World, and only game developers who are members can have customizable game rooms, located in the game building of their choice (game developers who are not members get the default game room in the default game building). Gamers who are members can store stuff, such as game-related info, in their virtual homes.

Anyone can roam the streets, buildings, and game rooms of Vecset World, logged on as a guest. Also, guests can kibitz games in progress. To play a game, you must register first, entering your name, email address, and screen name. You don't need to download anything to play games, as all games run in your web browser. To create games, you must download the Vecset IDE (game editor).

Monday, September 15, 2008

VECSET

The Treenimation project has a new name: Virtual Environment Construction Set, or VECSET. When the development of Vecset is completed, users will be able to play games created using Vecset in their browsers. Users of the XO Laptop will also be able to play games with other XO Laptop users using its wireless networking capabilities.

The next steps in the development of Vecset are as follows:
  1. Finish debugging the newly added classes in the Code
    Editor
  2. Upload Python source code to Vecset.net
  3. Write an OLPC wiki for Vecset
  4. Apply to OLPC for project hosting
  5. Post a help-wanted notice on the OLPC Games mailing list
  6. Continue implementing the Vecset shell

New Vecset Business Model:

Everyone can play/create games for free. Those who elect to become members (paying $15/year, or $30/year for game developers) can own places to live (and store game-related info) and customizable game rooms. Game developers who are non-members get a generic game lobby, located in the default game building (depending on its genre), and they can't customize it very much. So Vecset is a lot like Second Life.

Unlike Second Life, the outer environment (when the user is not in a game) is 2-dimensional, consisting of 2 rectangular windows side-by-side (split screen). One window is always an overhead view, and the other window is split into 2 windows: left-side/right-side, or front/rear. The user uses the cursor keys to go forward (up arrow), left, right, stop (down arrow), or make a 180-degree turn (down arrow while stopped). Pressing Enter carries out the default primary user action, and pressing Space carries out the default secondary user action. Pressing Tab highlights the next command in an onscreen menu. Clicking the mouse in the non-overhead view toggles between left/right and front/rear. Ctrl+Left Arrow and Ctrl+Right Arrow rotates the overhead view 90 degrees in the given direction.

Monday, February 4, 2008

Past, Present, and Future

I am currently getting down to the nitty-gritty of Python coding (I am a novice when it comes to Python programming). The Treenimation module I am currently implementing is called the TIL Loader. Its function is to take as its input the output of the Treescript Compiler (which is a text file), and to convert it into an in-memory program tree, which can then be processed by the Treenimation Runtime. (TIL stands for Treenimation Intermediate Language.) What follows is a roadmap of where I've been before, where I am now, and where I hope to be in the future, in regards to Treenimation development.

For newcomers to this blog, OLPC stands for One Laptop Per Child, a non-profit organization which aims to distribute millions of $175 laptops to schoolchildren in developing countries. Each laptop (called an XO Laptop) is Linux-based, includes Python (a free programming language), and comes equipped with wireless, peer-to-peer networking.

Past:


  1. Design Treescript programming language
  2. Design board-game components
  3. Design animation components
  4. Create web site documenting the Treenimation project
  5. Implement the Delphi version of the TIL Loader
  6. Start this blog
  7. Announce Treenimation project to OLPC Games mailing list
  8. Purchase XO Laptop ("give 1, get 1": buy a laptop and at the same time donate another laptop to OLPC)
  9. Install Linux on my home computer
  10. Install Windows version of Python on home computer
  11. Install PyGTK and Glade on home computer
  12. Write "Hello, world" program in Python (an ultra-simple program that does very little, but it works)
  13. Modify above program to display the user interface of the Delphi version of the TIL Loader
  14. Create basic classes of in-memory program tree using Python, for the TIL Loader
  15. Lay the foundations for the heavy-duty Python coding necessary to implement the TIL Loader
  16. Implement the core functionality of the TIL Loader
  17. Temporarily change the page size constant from 1000 to 50, in order to test the multipage functionality of the TIL Loader
  18. Translate the Delphi code which handles user input of arrow keys (to traverse the program tree) into Python
  19. Implement the non-core functionality of the TIL Loader
  20. Update web site: both Treescript and Python can be used to create games
  21. Install PyGTK and Glade for Linux on home computer
  22. Port TIL Loader from Windows to Linux (hopefully I can reuse my 3 Python source code files without modification)

Present:

  1. Apply to OLPC for web hosting of Treenimation project (application not yet processed)
  2. Advertise on the OLPC Games mailing list the position of Chief Linux Developer, which is basically an unpaid position, but if Treenimation eventually makes money, the Chief Linux Developer will receive 10 percent of the gross income of Treenimation.net
  3. Write the detailed job description of the Chief Linux Developer, who will implement the Treenimation Integrated Development Environment (TIDE), or code editor, including the design specs of the TIDE, and post it on the Treenimation web site: http://www.treenimation.net/
  4. Hire the Chief Linux Developer, Jake Beard

Future:

  1. Sugarize the Linux version of the TIL Loader, enabling it to run on the XO Laptop
  2. Work on Treenimation development at least 16 hours/week (6 hours on the weekend, mostly on Sunday, 6 hours on Thursday, 2 hours on Tuesday, and a total of 2 hours on Monday, Wednesday, and Friday evenings)
  3. Implement the Treenimation Runtime
  4. Implement the Treescript Compiler
  5. Build the Treenopolis web site, a destination for users of Treenimation (both game developers and game players)
  6. Implement the rating/membership system, whereby avid gamers who need to know their ratings/rankings in every game they play are charged an annual membership fee of $24 (all XO Laptop users play for free)
  7. Donate 25 percent of gross income of Treenimation.net to OLPC
  8. Start version 2.0 of Treenimation, which adds support for animated games (not just multiplayer board games)
  9. Advertise Treenimation.net on PBeM Server mailing list (Play By eMail, a site for email-based board games boasting 2000 members)
  10. Implement Treescript versions of PBeM games developed by Cameron Browne, and pay him royalties

Monday, January 7, 2008

Goals of Treenimation

The following goals can also be found on the Treenimation web site, under Introduction > Overview > Goals.

The all-encompassing goal of Treenimation is ease of use. Here are the other goals, in descending order of importance:

  1. The income from avid gamers, who are charged $24/year, exceeds expenses, such as web hosting fees, enabling Treenimation.net to donate a percentage of the profits to OLPC.
  2. OLPC kids (One Laptop Per Child, see http://www.laptop.org), with minimal support from their teachers, can use Treenimation to create drag-and-drop multiplayer board games.
  3. Non-programming adults and teens can easily use Treenimation to create drag-and-drop multiplayer board games, without being coached by Treenimation gurus and/or tech support.
  4. Non-programming high school students and undergraduates can learn Treescript as a first programming language more easily than any other Graphical User Interface (GUI) programming tool.
  5. Programming novices (who are already familiar with at least one other GUI programming tool) can master Treescript in one month or less, on their own, with little or no coaching from Treenimation gurus and/or tech support.
  6. Advanced programmers can master Treescript as easily as falling off the proverbial log, unlike most existing GUI programming tools.
  7. A vibrant Treenimation community blossoms, consisting of game developers and game players from all around the world and including OLPC users.

Sunday, December 16, 2007

Designed GUI of TIL Loader

Today I used Python, PyGtk and Glade to design the form (screen layout) of the TIL Loader. I have already implemented the TIL Loader in Delphi. The next step is to translate it from Object Pascal (Delphi) into Python.

I now have both Linux and Windows installed on my home computer. I installed the Mozilla Thunderbird email client, which is now working. Also I successfully modified the "grub.conf" file to boot up Windows by default. So things are moving along nicely.

Monday, December 10, 2007

Installed Linux

Yesterday and early this morning I burned the DVD and installed Linux on my home computer. It went (surprisingly) fairly smoothly. There are still 3 issues outstanding:
  1. I want to change the boot loader's default operating system from Linux to Windows.
  2. Every time I log in to Linux, I must remove and reinsert the Bluetooth thing so I can use my cordless mouse/keyboard. Luckily I can use one of the USB ports on the front of my computer to make this task easier.
  3. I can receive but not send email. I emailed tech support but this is still an issue. I intend to ditch my email client and download Mozilla Thunderbird.

I guess the next order of business would be for me to get busy learning the Python programming language and PyGtk, in both Windows and Linux environments.

Monday, November 12, 2007

Ordered XO Laptop

I just invested $400 in my Treenimation project, by ordering an XO Laptop (and donating one at the same time). So there's no turning back now, I'm committed to learning Python, PyGtk, Sugar, and Linux (or I will have wasted all that money). The next steps are to translate my TIL Loader into Python, and then install Linux/Sugar on a separate partition on my home computer. Later I must bring my computer to work so I can install our development tools on it (so I can work from home, only going in to the office on Mondays and Wednesdays).

Sunday, November 11, 2007

All in Python

Please disregard my previous post. I am not going to use Delphi to implement part of Treenimation. Instead, I am implementing both the Windows and Linux versions of Treenimation in Python. This month I intend to acquire an XO Laptop, which I will use to test the Linux version of Treenimation. The To-Do list in my previous post, Working from Home, is still valid, except I can skip Step 4 (I don't need Partition Magic).

Friday, November 2, 2007

Dual Treenimation Versions

I plan to implement the Treenimation Runtime in Python for both the Windows and Linux versions. However, I intend to maintain 2 versions of Treenimation Builder (the part that lets you create your own games): the full Windows version will be written in Delphi, and the less feature-rich Linux/XO version will be written in Python.

Implementation Phases:

  1. Translate TIL Loader from Delphi to Python
  2. Install Linux/Python/PyGtk/Sugar etc.
  3. Port TIL Loader from Windows to Linux
  4. Implement Windows version of Treenimation Runtime using Python/PyGtk
  5. Port Treenimation Runtime to Linux
  6. Implement Treescript Compiler using Delphi
  7. Implement Linux version of Treescript Compiler using Python
  8. Add animation capability to Treenimation Runtime using PyGame
  9. Implement Windows version of Treenimation Integrated Development Environment (TIDE) using Delphi
  10. Implement more limited Linux version of TIDE using Python
  11. Start building the Treenopolis web site (City of Games) for Windows/Linux

So after Phase 6 is completed, Windows users will be able to create games (using the text editor of their choice), and XO users will be able to play those games, but won’t be able to create their own games until after Phase 7 is completed.

I’m still in the early stages of learning Python. It seems like a nice language but it’s a lot different from the Object Pascal/Java/C#-style languages that I’m used to. The Treescript Compiler is perhaps the hardest part of Treenimation to implement. Being able to use a familiar tool (Delphi) for that job seems less intimidating to me. That's how I rationalize it, anyway.

Phase 4 is a big job. Maybe by the time I complete that phase I will be confident enough in Python to ditch Delphi and just use Python to implement Treenimation Builder.

Friday, October 26, 2007

Working from Home

Yesterday my boss approved my request to work from home 3 days a week, and only go in to the office on Mondays and Wednesdays. So now I'll have a lot more time to work on Treenimation. But before I start working from home, I must set up my home computer with all our development tools, as well as install a Linux partition so I can develop the Linux version of Treenimation along with the Windows version.

I'm almost finished reading the Python tutorial, and this weekend I hope to begin translating the part of Treenimation I call the TIL Loader from Object Pascal into Python.

Benefits of working from home:
  1. More time to work on Treenimation
  2. Save money (don't need a car)
  3. Less hassle (won't have a car to worry about)
  4. More environmentally friendly (no more driving to work)
  5. Healthier lunches (fewer McDonald's/Wendy's meals)
  6. More exercise (going for walks in my neighbourhood)

To Do List:

  1. Go to http://www.laptop.org/ and find out which version of Linux they recommend
  2. Find out space requirements of Linux, Python, PyGtk, Sugar, etc.
  3. Download Linux and burn it onto DVDs
  4. Buy Partition Magic
  5. Back up my home computer's data onto a CD
  6. Make partitions for Linux and Windows XP
  7. Install Linux at home
  8. Bring my computer to work (it already has Delphi 4)
  9. Copy C:\Bdev (over 10 GB) from my work computer to my home computer
  10. Step 9 will take several hours
  11. Install Delphi 6 and all our development tools
  12. Take computer home (sometime in November)
  13. Start working from home 3 days a week
  14. Install XO Laptop emulator on Linux partition
  15. Translate TIL Loader from Object Pascal into Python
  16. Port TIL Loader to Linux/Sugar/XO Laptop
  17. Apply to OLPC for web hosting

Sunday, October 21, 2007

Navigation Keys

There exist 3 text-entry modes in the Treescript code editor:

  1. Free Form
  2. Structure Editor
  3. Code Menu

Pressing Esc toggles between Free Form and Structure Editor modes. Typing a question mark (?) enters Code Menu mode (except within comments and string literals; to enter Code Menu mode from inside those, press Ctrl+?). Pressing F1 displays context-sensitive help in all modes.

Structure Editor: a bottom-level token (e.g. a keyword, identifier, operator, or constant) or an entire list is often highlighted. Using the Shift key in conjunction with the Up/Down Arrow keys, it is possible to select more than one token/list at a time.

  • Esc - enter Free Form mode
  • Up Arrow - go to previous list element
  • Down Arrow - go to next list element
  • Left Arrow - go to parent list
  • Right Arrow - go to first child element (if none, display text cursor following current bottom-level token)
  • Shift+Up/Down Arrow - select a range of tokens/lists
  • Printable Char. - insert token/list, display text cursor
  • Backspace - undo insertion of previous printable char.
  • Delete - delete current token/list
  • Enter - display text cursor, insert space after cursor
  • Space - display text cursor, insert space before cursor
  • Ctrl+Enter – if at end of line, append blank line (otherwise break line into 2 lines)

Code Menu: a popup menu above or below text cursor (and including text cursor) is displayed. The contents of this menu include all valid code elements in the context of the text cursor (ignoring anything after the text cursor).

  • Esc - show/hide code menu
  • Up Arrow - move selection up
  • Down Arrow - move selection down
  • Left Arrow - go to parent code menu (if none, exit Code Menu mode)
  • Right Arrow - go to lower-level code menu
  • Enter - go to lower-level code menu (if none, select current menu item, and display new code menu following token/list just inserted)
  • Space - go to lower-level code menu (if none, select current menu item and exit Code Menu mode)
  • Printable Char. - incrementally select matching menu item
  • Backspace - undo operation of previous printable char.
  • Question Mark - exit Code Menu mode

Hello, World!

Several weeks ago I used Delphi (a tool I have been using at work for 11 years) to program the very first part of Treenimation to be implemented: the TIL Loader. Later I created my OLPC project wiki, and I was advised that I should use Python instead of Delphi to implement Treenimation. Yesterday I downloaded/installed Python, PyGtk, and Glade, and wrote my first Python Hello-World-style program. This little program displays 2 buttons. If you click on the 1st button, it displays its label in the main Python window (the shell). If you click on the 2nd button, it changes the label of the 1st button to a different value. If you click on the 2nd button again, it changes the 1st button back to its original value. This afternoon I'm going to go through the Python tutorial and learn the basics of Python programming. Soon I'm going to translate the TIL Loader into Python, and then I'm going to apply to OLPC for web hosting.

One Laptop Per Child

Treenimation has 2 target platforms: Windows and OLPC (Linux). OLPC is a project which aims to distribute millions of $175 laptops to schoolchildren in developing countries. Each laptop is equipped with Linux, Python (a free programming language), and wireless peer-to-peer networking. So kids can use Treenimation to create their own board games, and play them with their friends. Every OLPC project has an OLPC wiki. Please click on Treenimation to visit my wiki.

Welcome

Welcome to Mike's Treenimation blog. I am Mike Hahn, the founder of Treenimation.net, which is the future home of the Treenimation software tool (now under development). Treenimation allows you to create web-based (real-time) and email-based multiplayer board games. Subsequent versions of Treenimation will add support for games with 2D animation (and ultimately 3D animation). Treenimation is based on a powerful yet easy-to-learn, object-oriented, built-in scripting language called Treescript. Non-programmers can create drag-and-drop games, and both novice and advanced programmers can use Treescript to add functionality to these games. Treenimation will run on both Windows and Linux platforms.

This blog is meant to document the design process and implementation process of Treenimation. I have been working on the design process of Treenimation (albeit very sporadically) for over 10 years. Recently I have begun to implement Treenimation for Windows, using Python and PyGtk.