Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 [3]

Author Topic: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)  (Read 24461 times)

Davion

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator
« Reply #30 on: May 22, 2009, 04:39:13 pm »

Awesome, it's fun to mess around with even in this state
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #31 on: May 22, 2009, 11:16:35 pm »

I'm not sure how well it will work in non-windows computers. Tell me about any problems you'll encounter etc.

Just a quick tip, from a fellow java programmer: be careful about how you detect/handle newlines. Remember that Windows/DOS uses "\n\r" (or it it "\r\n"? idr), linux uses only "\n" and Mac uses "\r" (AFAIK, it might have changed with OS X).

A few years ago i was writing a text-based adventure/RPG, did most of the work on linux. Then re-booted to windows and tried it there, at first it worked, but when i converted one of the "raws" (so to speak) to win/dos format i started getting wierd string-match errors. it was because of invisible "\r"s.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

Random832

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #32 on: May 23, 2009, 12:50:05 am »

Just a quick tip, from a fellow java programmer: be careful about how you detect/handle newlines. Remember that Windows/DOS uses "\n\r" (or it it "\r\n"? idr), linux uses only "\n" and Mac uses "\r" (AFAIK, it might have changed with OS X).

There isn't a TextReader class that takes care of all that for you? I mean, even C has magic newline handling if you use the standard functions.
Logged

SolarShado

  • Bay Watcher
  • Psi-Blade => Your Back
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #33 on: May 23, 2009, 01:14:02 pm »

I read that it was supposed to do that automaticly, without any special coding on the programmer's part. It didn't.

But yeah, i'm sure there's a class or something that'll do it for you. StringTokenizer might do it. My problem was partly because i didn't gave internet access at the time (counldn't look stuff up) and partly because i rather enjoyed reinventing the wheel, so to speak. I probably wouldn't have looked it up if i could. Haven't done much programming lately. Besides, I've got my 12-sidedregular polygon, why switch to an actual wheel now?  ;D

Also, i stubbornly made my own hash-table implementation so i wouldn't have to be constantly casting my objects back to strings. *shrug* it was fun, and it worked. I think i may be a fan of programming the hardway... except i still use java. not C or assembler.
Logged
Avid (rabid?) Linux user. Preferred flavor: Arch

qwertyuiopas

  • Bay Watcher
  • Photoshop is for elves who cannot use MSPaint.
    • View Profile
    • uristqwerty.ca, my current (barren) site.
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #34 on: May 23, 2009, 03:39:18 pm »

It does so automatically UNLESS you open the file for BINARY reading.
The diffrence between "r" and "rb".

At least I think that's it.
Logged
Eh?
Eh!

varkarrus

  • Bay Watcher
  • Insanity and a knife go well together.
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #35 on: May 23, 2009, 07:54:02 pm »

I think it would be nice if there was some kind of graphics stockpile and raw folder so you could make new graphics. I've been addicted to playing as Yuan-tis in dwarf fortress (modded race; think elves but not as sissy)
Logged
Dip Stick! The newest candy! Just dip it, then lick it!
Or try FUBAR! The best chocolate bar ever!
And you can't eat them, either, sadly. Even though it'd make sieges so much more fun; dwarves lining the walls, drooling and carrying sharp knives and forks, ready for the upcoming meals.

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #36 on: May 07, 2010, 02:54:13 pm »

Hi
if you are still developing, drop me a PM.

i am trying something with pydfhack - DF memory reading tool.
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

Djohaal

  • Bay Watcher
  • [PREFSTRING:Utter Insanitiy]
    • View Profile
    • My deviantart
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #37 on: May 07, 2010, 02:56:57 pm »

Epic almost one year necro!  :o
Logged
I really want that one as a "when". I want "grubs", and "virgin woman" to turn into a dragon. and monkey children to suddenly sprout wings. And I want the Dwarven Mutant Academy to only gain their powers upon reaching puberty. I also have a whole host of odd creatures that only make sense if I divide them into children and adults.

Also, tadpoles.

Shiv

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #38 on: May 07, 2010, 05:16:29 pm »

not really a necro when it's still relevant to the post at hand (and not just some "awesome idea!" blurb)
Logged
I still don't think I'm crazy enough to play this game properly.

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #39 on: May 07, 2010, 05:43:36 pm »

first pass:
- generated one file per every dwarf in running DF
- each file has correct first name and sex of dwarf
- this is rendered by java app.
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.

SpartanSnip3r

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #40 on: July 17, 2010, 04:07:00 am »

first pass:
- generated one file per every dwarf in running DF
- each file has correct first name and sex of dwarf
- this is rendered by java app.

Hmmm... so wait, does your program also create pictures of the Dwarfs? or were you hoping to merge the two projects?

Either way: I want a Dwarf Portrait Generator!
Logged

Petr Ga

  • Bay Watcher
    • View Profile
Re: Dwarftraitist - A Dwarf Portrait Creator (version 0.1)
« Reply #41 on: July 19, 2010, 02:11:07 am »

first pass:
- generated one file per every dwarf in running DF
- each file has correct first name and sex of dwarf
- this is rendered by java app.

Hmmm... so wait, does your program also create pictures of the Dwarfs? or were you hoping to merge the two projects?

Either way: I want a Dwarf Portrait Generator!


it was more like a pipe between dwarf portraitist and df, using dfhacks with python module

I stopped doing on that for two reasons:
  • python in dfhack is still more like an experiment than full oportunity
  • there was near zero request

I can pass source files if anyone wants
Logged
2: Give RMs a gas syndrome that causes RMs only to breed profusely.
Pages: 1 2 [3]