PDA

View Full Version : WordBuilder 2.0



Alfar
02-14-2010, 03:50 PM
It's been a while since I fired up a new thread, but I'm still working on WordBuilder.

For version 2, I've reworked the dictionary and translator, and I'm very interested in feedback on those, but of course also on the application in general.

Download at http://whee.dk/wordbuilder/WordBuilder20.msi

Requires Windows and .NET framework 3.5sp1.

Documentation for the rules language at http://whee.dk/?page_id=65

Any questions, feel free to contact me.

Mettius
02-28-2010, 12:59 PM
What does worldbuilder do? I may be dense, but it isn't obvious to me from the blog page.
Is this a name generator?

Alfar
02-28-2010, 02:02 PM
Yes, well... a word generator. Generating names is one use for it. It also has a dictionary and translation function, so the words you generate can be stored with a meaning and such.

I've used it to populate a town with people as well, generating names and assigning occupations and such.

ravells
02-28-2010, 04:52 PM
And it rocks! I highly suggest you give it a try!

Alfar
03-06-2010, 03:10 PM
Thanks Ravs ;)

New version up:

http://whee.dk/wordbuilder/WordBuilder20.msi

In this version:
- fixed apply, so it will not loop endlessly if you branch inside your apply.
- fixed parser, so it allows multiple spaces between tokens.
- added rules picker to the code editor. Generate words to update the list.
- added search (ctrl+f) to the code editor.
- improved syntax highlighting, though performance is still not good with scripts over 1700 lines - this seems to be a general problem with the control I'm using. Might have to switch it *shudder*

Oh, and I've thrown the code into a github:

http://github.com/alfar/WordBuilder

Here you should be able to witness the mess of code that runs the WordBuilder app. I think most of the back-end parts are reasonable enough, but the UI. Ack. I have some refactoring to do.

ravells
03-06-2010, 03:25 PM
Must, must get back to this....it is on my To Do list!!!

cfds
03-18-2010, 05:46 AM
Looks great and very useful, but I just wanted to give it a try but realized that it needs .Net-Framework (what I could have read here in this thread..). Looks like I have to have a look at the code and build something suitable myself...
But great work nontheless.

Alfar
03-18-2010, 05:22 PM
Looks great and very useful, but I just wanted to give it a try but realized that it needs .Net-Framework (what I could have read here in this thread..). Looks like I have to have a look at the code and build something suitable myself...
But great work nontheless.

Well, if you're on a non-windows system, I am working on a version that'll run under mono, so it should be possible to have it working in a linux setup or whatever. Would that be interesting?

su_liam
03-19-2010, 02:15 AM
Yes. Yes it would.

Alfar
03-23-2010, 05:15 PM
Ok, I've taken my first stab at a mono-compatible tool. Turns out I couldn't get MonoDevelop to build my VB code for some reason... So now I've spent some time converting the most important bits of code to C#, and it looks like I'm able to compile and run under mono.

What I have at the moment is a command line tool:


monowordbuilder <file_name>[ -v][ -r <starting_rule> <amount>]*

Which outputs a number of generated words, either just the root word or the larger output which contains marks and branches (using the -v argument).

If you don't enter any rules at the command line, it'll use the defaults you've set up in the .wordo file using the StartingRule directive. If there are none, it'll default to generating the 'root' rule 100 times.

Oh, and I've no idea how to package it, so if anyone's able to help out there, that'd be great. The source code is available at github (http://github.com/alfar/WordBuilder/tree/mono-wb/monowordbuilder/).

KingdomAlion
04-09-2010, 10:41 PM
Wondering if made for macintosh? I have MacBook. and i much want to use.

Alfar
04-10-2010, 12:05 AM
A version that should be able to run under MacOS X is in the works.

I don't have a mac, so I don't have any way to test for it specifically, though.

Alfar
04-15-2010, 07:34 AM
Ok, I guess Im just about ready for folks to try this thing out.

http://whee.dk/wordbuilder/monowordbuilder.zip

Copy the contents of the zip into a directory of your choice and run it using:

Windows: doubleclick gtkwordbuilder.exe.

Mac/Linux: in a terminal, run the command mono gtkwordbuilder.exe

You will need an install as well. On the mono web page, you can find instructions for your operating system: http://www.go-mono.com/mono-downloads/download.html

Windows users will be able to run this with GTK# for .NET, a pretty small download.

Id love to hear about your experiences with trying this version out on non-windows systems.

ravells
04-15-2010, 01:31 PM
You are the bomb, Alfr! I now have a few books with tables of roots of English / Scottish / Welsh placenames which should go into worldbuilder as a lexicon file. If I don't have the time to do them, can I scan them and send them to you?

Best

Ravs

Alfar
04-15-2010, 01:42 PM
Heh - I suppose you could try, see what happens ;)

I might try to run them through some OCR software, at least, see what I can get out of them.

My main focus will be on the actual application, of course - it still has a lot of things I need to put in.

cfds
04-16-2010, 04:32 AM
Ah, I should look more often into this forum. I will test it as soon as I get home.

[Edit] Ok, works with Ubuntu 9.??

Alfar
04-16-2010, 04:25 PM
Alright! That's one person that got it working, other than me on my Windows XP using .NET Framework and the separate GTK# download.

cfds, have you had a chance to play with the app other than checking that it runs? Any opinions?

ravells
06-21-2010, 01:45 PM
I've created two wordbuilder files this afternoon. One which will generate street names based on medieval professions for cities and the other a village / town / city name generator based on English toponymy roots. If I add to them I'll post the updates here.

Alfar, once you've finished laughing at my feeble coding skills feel free to polish it up!

Best

Ravs

Alfar
07-08-2010, 04:01 PM
Ravs, that's pretty cool!

I've just tried it out in my new WordBuilder 3.0.0, which has syntax highlighting and new syntax features (c-style brackets and ; line endings if you want, or python-style blocks where the indentation level decides when the block ends) - Apart from a small issure with the new parser (it doesn't allow blank lines in the translate command), they work beautifully.

Check out the release here: http://whee.dk/?p=229