Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Angry Lawyer

Pages: 1 2 [3] 4 5 ... 7
31
DF Modding / Re: New Utility project: Random language generator
« on: August 13, 2008, 09:52:14 am »
I've got half of one in C++ that I coded.  I worked through generating a batch of syllables based on weightings for all the letters, and then randomly sticking them together.

One day I'll tidy it up and release it.

-Angry Lawyer

32
Spoiler (click to show/hide)
Om nom nom.

-Angry Lawyer

33
If you don't import a map for Savagery, DF will use it's own random generator for it.

-Angry Lawyer

34
New version released - it now handles most standard image formats, and might even support different resolutions, as I'm now using the proper .NET bitmap tools.  Resizing now should work flawlessly.

-Angry Lawyer

35
It's a bug in how I handle images - every program has it's own foibles about what to do after the end of an image, I think.

Still, I've refactored the code to use .NET's image handling, which is safer, handles things other than .BMP, and actually works.

Sea level in DF is 100.  So, if you want a certain pixel to be the lowest point of land possible, find out its colour and subtract it from 100 and set that to be the offset.  So if you want the lowest beach to be at colour 33, set your offset to 77.  Bam, anything less than 33 is water, anything equal above becomes dry land.

I'll release a new version later on.

-Angry Lawyer

36
Generally it was on a whim (and because I'm pretty new to .NET so didn't know how deep the standard components went) and because I wanted to prove to myself that I could figure out how, but I'll probably move onto the standard imaging methods.  If I can find out what they are, at least.

Edit:  I'll try and get a new version out by the end of the week.

-Angry Lawyer

37
Yeah, I think the resizing code's a little off.

Workaround - resize your bitmaps to the final required size externally.

If people send me their maps and the settings they're using, I'll debug it for next release.

-Angry Lawyer

38
Wait... The map is fucked up looking, something has gone terribly wrong: http://img231.imageshack.us/my.php?image=worldmapregion110501km9.png
When I gen a world with the elevation only this doesn't happen.

Weird.  Wanna send me the sources you're using and the steps/parameters you used to create that?  From first guess, it's from not enough of an offset on elevation - try plumbing in 89 into the height offset.

-Angry Lawyer

39
I've uploaded an updated version which fixes a few dangerous bugs and makes it .NET 2.0 compatible.

Please report bugs and feature requests here, or I'll end up making the bugs bigger for the next release.

-Angry Lawyer

40
British Isles:

http://dffd.wimbli.com/file.php?id=415

Toady fixed the half-evil ocean bug in the last update, I think.

-Angry Lawyer

41
DF Dwarf Mode Discussion / Re: I don't know this game anymore
« on: August 09, 2008, 05:38:23 am »
You're playing as Goblins - goblins are active in all months as far as I know.  Your parent civ will visit you at their first active season, I think.

-Angry Lawyer

42
DF General Discussion / Re: Calculation for Woodcutting rate
« on: August 09, 2008, 05:20:38 am »
This is like the crap that advertising firms put into newspapers under the guise of "science", and giving science a bad name. D:

-Angry Lawyer

43
Refactoring of code, possible (limited) editing of existing world_gen.txt maps, sliders to set world minimums and stop the infinite reject problem, support for more than just 24bit images, and stuff.  After that, I'm likely to go back to the language generator I never finished.

Sounds good. Will you add an option for keeping the settings from an other param set? It would be nice to be able to overwrite the map without having all the other options overwritten as well.

Oh. And you should check which file the settings are written to. I accidentally wrote my settings to dwarffortress.exe. I don't think that was smart..
I knew I missed something out!

-Angry Lawyer

44
Sure thing, I'll do it tomorrow morning.

-Angry Lawyer

45
Jim Adkins laughs at your feeble attempts at world generation.

Spoiler (click to show/hide)

Ha ha ha ha ha.

-Angry Lawyer

Pages: 1 2 [3] 4 5 ... 7