Bay 12 Games Forum

Please login or register.

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

Author Topic: Truely !!immobile!! creature.  (Read 1185 times)

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Truely !!immobile!! creature.
« on: September 07, 2012, 10:30:46 am »

I've managed to make an immobile creature by giving it a material with FIXED_TEMP:15000.

Try it yourself.

Add this:
Code: [Select]
[USE_MATERIAL_TEMPLATE:STOPPER:STONE_TEMPLATE]
[FIXED_TEMP:15000]
anywhere.

This material won't be used in the creature, but apparently something breaks the movement code. The creature can still shoot webs, breathe fire and use interactions. It could make a real "turret" (I look at you Meph).

I think it's some bug and Toady will eventually fix it, but it won't be necessary after the next release when he separates movement and attack speeds. Until then we can use this "hack".

I also wonder if it's something memory-specific or processor-type-specific. Could you please try it on your PCs and tell me if it works for you too?
« Last Edit: September 09, 2012, 11:35:07 am by Deon »
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

smirk

  • Bay Watcher
    • View Profile
Re: Truely immobile creature.
« Reply #1 on: September 07, 2012, 11:03:36 am »

I have a theory on this.

When Toady did his fire awareness code, he made temp-vulnerable creatures run away from high-temperature squares. I think that a side effect of that was burning creatures standing perfectly still once they lit on fire. And if that's correct, then it's possible that your inclusion of an above-magma-temp tissue in a creature triggers that behavior.

Of course, that's all wild speculation at this point. To the object testing arena!
Logged
When i think of toady i think of a toad hopping arround on a keyboard
also
he should stay out of the light it will dry out his skin
his moist amphibian skin
.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Truely immobile creature.
« Reply #2 on: September 07, 2012, 03:33:36 pm »

This probably works, but why you would use it instead of the [IMMOBILE] token I'm not sure. I guess the only difference between the two would be that these creatures would breed (and light nearby things on fire) while the [IMMOBILE] creatures do not breed and won't light nearby things on fire.
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.

BFEL

  • Bay Watcher
  • Tail of a stinging scorpion scourge
    • View Profile
Re: Truely immobile creature.
« Reply #3 on: September 07, 2012, 03:50:51 pm »

This probably works, but why you would use it instead of the [IMMOBILE] token I'm not sure. I guess the only difference between the two would be that these creatures would breed (and light nearby things on fire) while the [IMMOBILE] creatures do not breed and won't light nearby things on fire.

But don't creatures with [IMMOBILE] still move to charge things? Namely the GIANT SPONGE CHARGING AT URISTMCDOOMED?
Logged
7/10 Has much more memorable sigs but casts them to the realm of sigtexts.

Indeed, I do this.

Telgin

  • Bay Watcher
  • Professional Programmer
    • View Profile
Re: Truely immobile creature.
« Reply #4 on: September 07, 2012, 03:57:01 pm »

They can dodge around too, does this prevent that?
Logged
Through pain, I find wisdom.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Truely immobile creature.
« Reply #5 on: September 07, 2012, 04:12:46 pm »

They won't light things on fire. The said material can be used NOWHERE, it should just be defined within the creature.

I am just sharing this because this may lead to more interesting discoveries. While stuff like this may be fixed in the long run and cannot be a "steady" source of modding techniques, it may provide some temporary unique possibilities.

And yes, they will breed.

I think they still can dodge around and charge, but that's the situation with the current combat system.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Truely immobile creature.
« Reply #6 on: September 07, 2012, 04:56:59 pm »

Perfect. My SCP-038 will no longer zip around at high speeds despite having a speed of 100000.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Truely immobile creature.
« Reply #7 on: September 07, 2012, 05:37:33 pm »

Why not IMMOBILE?
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: Truely immobile creature.
« Reply #8 on: September 07, 2012, 05:43:25 pm »

Immobile things don't set things on fire or breed.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Truely immobile creature.
« Reply #9 on: September 07, 2012, 05:45:54 pm »

Breeding would only be the real thing that this would allow over [IMMOBILE], since it doesn't actually set things on fire as the tissue isn't actually used in the creature.
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.

IamanElfCollaborator

  • Bay Watcher
  • Resident Shipper God and Freyjapiller
    • View Profile
Re: Truely immobile creature.
« Reply #10 on: September 07, 2012, 05:46:43 pm »

Theoretically though, it should work.

smirk

  • Bay Watcher
    • View Profile
Re: Truely immobile creature.
« Reply #11 on: September 07, 2012, 08:35:50 pm »

Testing results: Sorry to disappoint, but it appears that creatures with this addition actually do light things on fire. Other than that, though, they appear to work as Deon describes. Couldn't test breeding capability in the arena, so no data on that.

Test 1: Modded GCS vs modded GCS. They were immobile, as expected, and spammed webbing at each other when sufficiently close together. Maximum firing range seemed to be 5 tiles (4 tiles empty space between creatures), but that might just be normal for GCS. Observed that webbing landing on a square with GCS in it would burn, producing copious amounts of smoke.

Test 2: Modded GCS vs Giant. Spawned creatures 10 tiles from each other. Giant moved towards GCS, with GCS spamming webs at Giant when it moved within range. Giant stopped 2 tiles away from GCS and backed off, as though unable to reach target. No further interaction.
        Test 2a: Took control of Giant and moved to attack GCS. Moving into a tile adjacent to GCS required an alt+move. GCS attacked and immobilized Giant with webs and poison, and many many pages of the Giant melting and then burning ensued before Giant's death.

Test 3: Modded Giant vs. modded Giant. When spawned away from each other, neither moved to attack. When spawned adjacent to each other, each attacked and dodged as normal. However, when dodging resulted in space between each creature, both ceased attacks immediately. No further interaction.

(I also tested GCS by lighting them on fire with magma and dragonfire, and they behaved similarly to the modded versions with the exception of burning to death rather quickly. Don't feel like writing those tests up; they were messy.)
---------------
To sum up, I'm pretty sure this behavior is due to the fire avoidance code. And unfortunately, even though the material isn't actually used in the creature, the fixed temp is. Why the creature doesn't light itself on fire I have no clue. This also means that, if used in fort mode, dwarves would likely refuse to move/chain the creature due to temperature avoidance.

I feel like there's a bug report in here somewhere, but damned if I know where.
Logged
When i think of toady i think of a toad hopping arround on a keyboard
also
he should stay out of the light it will dry out his skin
his moist amphibian skin
.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Truely immobile creature.
« Reply #12 on: September 07, 2012, 08:42:52 pm »

Most likely, the creature generates heat from any material with fixed temperature. I wonder what would happen if you gave it two FIXED_TEMP materials with different temps...

Also, you reminded me of he SCP Foundation for some reason.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Truely immobile creature.
« Reply #13 on: September 08, 2012, 04:03:21 pm »

Also, you reminded me of he SCP Foundation for some reason.

Perfect. My SCP-038 will no longer zip around at high speeds despite having a speed of 100000.

GreatWyrmGold

  • Bay Watcher
  • Sane, by the local standards.
    • View Profile
Re: Truely immobile creature.
« Reply #14 on: September 08, 2012, 04:21:30 pm »

Smirk, not you, Putnam.
Logged
Sig
Are you a GM with players who haven't posted? TheDelinquent Players Help will have Bay12 give you an action!
[GreatWyrmGold] gets a little crown. May it forever be his mark of Cain; let no one argue pointless subjects with him lest they receive the same.
Pages: [1] 2