Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Technical question: Multiple wagons  (Read 2668 times)

Impending Doom

  • Bay Watcher
  • has gone stark raving mad!
    • View Profile
Technical question: Multiple wagons
« on: January 27, 2009, 09:09:42 pm »

Just a quick modding question: If I add several additional types of wagon to the [CREATURE_EQUIPMENT] file, will the merchant's wagons be picked from the list at random? Or will the RNG just pick the first one on the list?

Example: The idea is to go along with a post-apocalyptic mod. Namely, I am trying to make caravans consist of a random hodgepodge of ramshackle vehicles, like technicals, hummers, etc.

So, will it work?
Logged
Quote from: Robert A.Heinlein
Violence, naked force, has settled more issues in history than has any other factor, and the contrary opinion, that violence has never solved anything, is wishful thinking at its worst.

Kashyyk

  • Bay Watcher
  • One letter short of a wookie
    • View Profile
Re: Technical question: Multiple wagons
« Reply #1 on: January 28, 2009, 03:33:00 pm »

Test it, and tell us what happens. As far as I can recall no one has done this before.
Logged

ZeroGravitas

  • Bay Watcher
    • View Profile
Re: Technical question: Multiple wagons
« Reply #2 on: January 29, 2009, 02:26:52 pm »

My bet is on none of them being used because the use of wagons is hard-coded.
Logged

woose1

  • Bay Watcher
  • Yay for bandwagons!
    • View Profile
Re: Technical question: Multiple wagons
« Reply #3 on: January 29, 2009, 07:15:55 pm »

My bet is on none of them being used because the use of wagons is hard-coded.
Teh wagons are not hardcoded.
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Technical question: Multiple wagons
« Reply #4 on: January 29, 2009, 07:20:15 pm »

I can tell you exactly what will happen.  The wagon type will be picked randomly.  How do I know this?  It happens just about every time a caravan comes in one of my LEGO mod forts.  The wagon type added in is called an airship.  Doesn't fly though.

Different things may happen if you experiment with biome tags.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Technical question: Multiple wagons
« Reply #5 on: January 29, 2009, 08:33:54 pm »

Yeah, I have it be picked randomly with my metal wagons that hold a lot more. Biomes might restrict the race, but what would happen if they couldn't bring a wagon, and would it be determined by the parent civilization or your fort?
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Warlord255

  • Bay Watcher
  • Master Building Designer
    • View Profile
Re: Technical question: Multiple wagons
« Reply #6 on: January 30, 2009, 02:27:20 pm »

Do your metal wagons show up in different colors?
Logged
DF Vanilla-Spice Revised: Better balance, more !!fun!!
http://www.bay12forums.com/smf/index.php?topic=173907.msg7968772#msg7968772

LeadfootSlim on Steam, LeadfootSlim#1851 on Discord. Hit me up!

DennyTom

  • Bay Watcher
  • !!Urist!!
    • View Profile
Re: Technical question: Multiple wagons
« Reply #7 on: January 30, 2009, 03:20:18 pm »

does this affect embark? or you still and allways get that one clasic wagon at start?
Logged
It is so much easier to measure life in experience points...

Mephisto

  • Bay Watcher
    • View Profile
Re: Technical question: Multiple wagons
« Reply #8 on: January 31, 2009, 12:12:43 am »

Your embark wagon isn't a creature, unlike the others. Unless someone says otherwise, I would assume it's hardcoded.
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Technical question: Multiple wagons
« Reply #9 on: January 31, 2009, 01:30:32 am »

Do your metal wagons show up in different colors?

No, but that is because I didn't think to change the color tag, so I don't know if the color is hardcoded or not.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

chaoticag

  • Bay Watcher
  • All Natural Pengbean
    • View Profile
Re: Technical question: Multiple wagons
« Reply #10 on: January 31, 2009, 08:56:27 am »

Your embark wagon isn't a creature, unlike the others. Unless someone says otherwise, I would assume it's hardcoded.
This might be up for grabs, as it doesn't get destroyed, but scuttled. I'm pretty sure it is hard-coded but I have my doubts on it.
Logged

LegoLord

  • Bay Watcher
  • Can you see it now?
    • View Profile
Re: Technical question: Multiple wagons
« Reply #11 on: January 31, 2009, 10:58:42 am »

You get three logs from the embark wagon and one log from the creature wagon.  I think they're hard-coded, the constructed ones.
Logged
"Oh look there is a dragon my clothes might burn let me take them off and only wear steel plate."
And this is how tinned food was invented.
Alternately: The Brick Testament. It's a really fun look at what the bible would look like if interpreted literally. With Legos.
Just so I remember

Lord_Frodo

  • Bay Watcher
  • The crazy in the corner
    • View Profile
Re: Technical question: Multiple wagons
« Reply #12 on: January 31, 2009, 11:25:36 am »

Do your metal wagons show up in different colors?

No, but that is because I didn't think to change the color tag, so I don't know if the color is hardcoded or not.
I believe that it is harcoded. I tried to add metal wagons as well, with a grey color. when the dwarves brought one along it was still brown like the wooden wagons.
Logged
Even the cutest things can be endearing when on fire. ~ Cajoes
GENERATION 26:
The first time you see this, copy it into your signature on any forum and add 1 to the generation. Social experiment.

Flaede

  • Bay Watcher
  • Beware the Moon Creatures.
    • View Profile
Re: Technical question: Multiple wagons
« Reply #13 on: January 31, 2009, 10:38:38 pm »

Do your metal wagons show up in different colors?

No, but that is because I didn't think to change the color tag, so I don't know if the color is hardcoded or not.
I believe that it is harcoded. I tried to add metal wagons as well, with a grey color. when the dwarves brought one along it was still brown like the wooden wagons.

Does this mean I can't make green wagon sized sea turtles? :-\
Ah well.
Logged
Toady typically doesn't do things by half measures.  As evidenced by turning "make hauling work better" into "implement mine carts with physics".
There are many issues with this statement.
[/quote]