Bay 12 Games Forum

Please login or register.

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

Author Topic: Putnam's DFHack scripts  (Read 118997 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #135 on: March 25, 2013, 02:34:42 pm »

So leaving travel mode doesn't restart the SC_WORLD_LOADED?

Dang. Wonder how that could be fixed...

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #136 on: March 25, 2013, 04:52:01 pm »

Any ideas how to fix syndrome stacking?
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #137 on: March 25, 2013, 04:58:31 pm »

yeah, make sure your syndromes have an end time of 155 or so.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #138 on: March 25, 2013, 05:00:38 pm »

any suggestions how to make a spell with longer cooldown than 150?  or is it just simpler to use itemsyndrome only for spells with a permanent effect / short cooldown?

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #139 on: March 25, 2013, 05:04:10 pm »

Cooldown? Oh, you mean wait period? Hmm. Didn't actually think of the fact that it may actually reset the wait period on reapplication of the syndrome.

smakemupagus

  • Bay Watcher
  • [CANOPENDOORS]
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #140 on: March 25, 2013, 05:08:19 pm »

mmm, no, actually if you use wait period 500 you do stack up multiple applications of the syndrome

syndrome 450 phases etc
syndrome 300 phases etc
syndrome 150 phases etc

but if you have CDI:(cast some spell) you still can only actually cast it every 500 ticks.
If the syndrome stacking isn't a bad thing per se then it is working fine for my purposes.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #141 on: March 25, 2013, 05:09:25 pm »

Yeah, that's an issue. The problem is that I can't figure out how to prevent stacking. I was actually trying to figure that out a little while ago, but I found nothing.

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #142 on: March 25, 2013, 05:15:49 pm »

Yeah, that's an issue. The problem is that I can't figure out how to prevent stacking. I was actually trying to figure that out a little while ago, but I found nothing.
Get existing syndrome and add to its time? Although afaik as I know you need to set all the effects or something.

Deon

  • Bay Watcher
  • 💀 💀 💀 💀 💀
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #143 on: March 25, 2013, 05:17:29 pm »

yeah, make sure your syndromes have an end time of 155 or so.
I know Putnam, I know. I still randomly get multiple stacks which is weird. It's easy to test: make a clothing which adds speed, remove that SC_WORLD_LOADED check (commented out) and run around. Soon you will see that your speed keeps rising.
Logged
▬(ஜ۩۞۩ஜ)▬
✫ DF Wanderer ✫ - the adventure mode crafting and tweaks
✫ Cartographer's Lounge ✫ - a custom worldgen repository

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #144 on: March 25, 2013, 05:19:18 pm »

Yeah, that's the issue. To check if the syndrome is already affecting the creature, I would have to check every individual effect the creature has and see if all of the effects together make an effect that happens to be the same as the syndrome it's going to add--and even that may cause some problematic circumstances.

The SC_WORLD_LOADED check being removed causes it? That's... actually really odd. Huh.

Warmist

  • Bay Watcher
  • Master of unfinished jobs
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #145 on: March 25, 2013, 05:27:36 pm »

what about syndrome type?
yup just checked. unit.syndromes[0].type is the id of df.global.world.raws.syndromes.all
Edit3: or better df.syndrome.find(syndrome_id).
edit4: unit.syndrome->unit.syndromes
« Last Edit: March 25, 2013, 05:30:30 pm by Warmist »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #146 on: March 25, 2013, 05:29:22 pm »

unit.syndrome?

derp

Mrhappyface

  • Bay Watcher
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #147 on: March 25, 2013, 06:05:54 pm »

Hey Putnam! Got any ideas how I can use your utilites for these augmentations I cooked up?
Spoiler (click to show/hide)
Logged
This is Dwarf Fortress. Where torture, enslavement, and murder are not only tolerable hobbies, but considered dwarfdatory.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities(!!)
« Reply #148 on: March 25, 2013, 06:07:58 pm »

Hmm...

Helmets!

Spatters on armor?

Also, Deon, next version should somewhat fix that issue by having the initial timeout be one tick instead of 150--after that, it should be every 150 ticks, AFAIK.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Putnam's DFHack modder's utilities
« Reply #149 on: March 25, 2013, 07:06:29 pm »

New version of Itemsyndrome is out. Fixes Deon's stacking issue.
Pages: 1 ... 8 9 [10] 11 12 ... 44