Tuesday, 24 January 2012

DarkBasic and Notepad++

Syntax highlighting is my #1 requirement from an editor.  If anyone else wants to view DarkBasic source code in Notepad++, you can use the following UDL to get most of the way there.

  1. Save the XML below to "something.xml". If you mouse over the top right hand corner of the highlighted source area, you can find buttons that let you view the source and copy/paste it.
  2. Open "User-Defined Dialogue" in the view menu.
  3. Dock it.
  4. Click on the "Import" button and select the saved XML file.
  5. Close any open DarkBasic files and reopen them to ensure they get the hightlighting (needed? dunno).

    
        
            
            
            
        
        
            000000
            
            
            ' - ! " # $ % & ( ) * , . / : ; ? @ [ \ ] ^ { | } ~ + < = >
             1 2 0`
            dim as dword for to rng rnd sync on rate skipsyncmode set display mode desktop width height autocam hide next position inc prepare matrix texture trim make object box sphere update add delete rotate limb offset do loop if endif else text end curvevalue camera point constant function create bitmap endfunction ink get image save and or write memblock from atanfull sin cos circle wrapvalue mouse color backdrop aspect tile show mesh
            
            
            
        
        
            
            
            
            
            
            
            
            
            
            
            
            
            
            
        
    

Oh Darkbasic..

If you're looking for a Basic and are tired of having your time wasted by all other kinds of broken and disfunctional software, do not try DarkBasic.

They do offer DarkBasic Professional for free download, but good luck locating it on their website between the myriad of different products and add-ons for sale, and the huge amounts of advertisement.


Still, it's free.  Let's give it a shot.  Write some code.


And it compiles.  But enjoy it, chances are that is an accidental successful compilation.  Make a change, and suddenly you get a "Compilation Failed (Syntax Errors)".  What does this mean?  Where are the syntax errors?  Beats me.

I've compiled newly entered source code successfully, made a trivial and undoubtedly correct change, and then gotten a failed compile.  Then reverted the changes, and the compilation continues to fail!  Searching the DarkBasic forums yields helpful suggestions like reinstalling DarkBasic.

One potential source of problems is that DarkBasic creates new projects under "Program Files" on Windows 7.  Then it has no write access and seems to still manage to compile and run (falling back to the temp directory), although leaving a broken project if any at all.  But this is actually good, because it is the only way to be able to edit a DarkBasic project without getting the mystical compilation failures after the first change to the code..

I hear FreeBasic is pretty good.

Monday, 23 January 2012

Roguelike MUD progress

Starting up my MUD framework today for the first time in a long time, I forgot where I was at.  My telnet client of choice, Windows Telnet, no longer works reliably.. at least on a Chinese language Windows 7 computer.


Is there still a reason to support Windows Telnet?

Wider accessibility is one reason, so that people with older computers who already use it for other MUDs can continue to use it.  At one point in the past, Kavir analysed the connections to his MUD and came up with a quick rundown of how many users were using which client.  The rundown is somewhat lacking and I am not convinced it is correct enough to be representative, there's no Windows Telnet, and the large number of "Unknown" needs to be dealt with.

I think I'll leave it for now.  A better investment would be a web-based client.