Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 7 8 [9] 10 11 ... 13

Author Topic: Procedural content creation: Random plant creation script  (Read 35978 times)

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: Procedural content creation: Random plant creation script
« Reply #120 on: June 14, 2011, 03:25:55 pm »

By the way, I would like to suggest that the price of a plant's seeds should at least partially map to the price of the plant itself (I'm pretty sure that in-game most seeds cost half as much as the plant)

Nope, all seeds in vanilla DF cost one dorfbuck each.

That's only because all of the SEED materials have [MATERIAL_VALUE:1] - increase the value, and seeds get more expensive.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #121 on: July 21, 2011, 11:14:00 am »

As a bit of a diversion, I've adapted this script for a somewhat different area. Work in progress examples:


There's a lot more to be done - I haven't even added attacks yet or tested things in game, but I thought I share.
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #122 on: July 21, 2011, 11:37:43 am »

Is this supposed to close after it creates plant_random and nothing happens?
Logged
Dwarf Fortress: Threats of metabolism.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Procedural content creation: Random plant creation script
« Reply #123 on: July 21, 2011, 11:39:14 am »

Is this supposed to close after it creates plant_random and nothing happens?

Yes.  That's what it does - it creates a raw file containing procedurally generated plants and then exits.  You can then copy that file into your game raws, or open it and manually copy over the plants you like.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #124 on: July 21, 2011, 11:40:51 am »

No, I mean that it closed right after it created plant_random.
When I looked inside, it just had
Code: [Select]
plant_random

[OBJECT:PLANT]
in it.
Logged
Dwarf Fortress: Threats of metabolism.

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Procedural content creation: Random plant creation script
« Reply #125 on: July 21, 2011, 11:42:36 am »

When the program runs, it should open a dialog box asking for a directory.  Navigate to your raw/objects folder in your DF install, and select that directory.  It won't do anything useful unless you first show it where the DF raws are located.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #126 on: July 21, 2011, 11:51:42 am »

It just generated a cactus with a blood-cough syndrome.
What.
Logged
Dwarf Fortress: Threats of metabolism.

Vorthon

  • Bay Watcher
  • Now with 50% more pointless rambling!
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #127 on: July 21, 2011, 05:45:52 pm »

As a bit of a diversion, I've adapted this script for a somewhat different area. Work in progress examples:


There's a lot more to be done - I haven't even added attacks yet or tested things in game, but I thought I share.

Post the script when you get it finished, please.
Logged

Aiur

  • Escaped Lunatic
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #128 on: July 21, 2011, 10:38:43 pm »

I've noticed that a lot of the liquid and powder extracts are severely undervalued compared to the default plants, which have material values of 20+. Any way to change the script to get closer to these? Some variation would be appreciated, of course.
Logged

Knight Otu

  • Bay Watcher
  • ☺4[
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #129 on: July 22, 2011, 01:05:36 pm »

Post the script when you get it finished, please.
When I get things going my way, certainly.
Logged
Direforged Original
Random Raw Scripts - Randomly generated Beasts , Vermin, Hags, Vampires, and Civilizations
Castle Otu

jaxy15

  • Bay Watcher
  • Adept Modder
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #130 on: July 28, 2011, 12:26:42 pm »

We need a procedural reptile creation thingy.
Logged
Dwarf Fortress: Threats of metabolism.

frodo0800

  • Bay Watcher
  • Son of Ilúvatar
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #131 on: July 28, 2011, 01:50:53 pm »

it's possible to create poisonous oils?
Logged

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Procedural content creation: Random plant creation script
« Reply #132 on: July 28, 2011, 01:51:44 pm »

Yes, although I don't think they really do anything.  Ingested poisons don't seem to work at the moment, so you'd have to get them in or on the target some other way.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.

frodo0800

  • Bay Watcher
  • Son of Ilúvatar
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #133 on: July 28, 2011, 02:11:06 pm »

just wondering...
poisonous rape cactus soap
Logged

frodo0800

  • Bay Watcher
  • Son of Ilúvatar
    • View Profile
Re: Procedural content creation: Random plant creation script
« Reply #134 on: July 28, 2011, 02:19:56 pm »

WOW need to post this
Spoiler (click to show/hide)


              [PREFSTRING:islands] this tree only grow on islands?
Logged
Pages: 1 ... 7 8 [9] 10 11 ... 13