Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: itemsyndrome causes CTD  (Read 1254 times)

tenshi99

  • Bay Watcher
    • View Profile
itemsyndrome causes CTD
« on: November 03, 2013, 06:56:54 pm »

masterwork 4c/windows

itemsyndrome script sometimes crashing df. it do it on specific time.
so we have two workaround "itemsyndrome disable" and temporarily remove script. pass danger time and return back
i wish to remove it completly but not sure what it does exactly

p.s. using  "itemsyndrome debug2on" i can say it crashing on check specific unit items. always on same place
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: itemsyndrome causes CTD
« Reply #1 on: November 03, 2013, 10:21:24 pm »

It would be nice to know which specific ones. It's probably spawned units.

Also, update itemsyndrome to this version.

tenshi99

  • Bay Watcher
    • View Profile
Re: itemsyndrome causes CTD
« Reply #2 on: November 04, 2013, 01:57:49 am »

sometimes its caravan guard(not on spawn). sometimes no
yes i tried this version. no change
maybe its my side fault. i just want to share my workaround
if you want i can share my fortress save just a second before CTD

UPD: looks like i identified the problem. imho its crashing when unit despawned in the middle of check
« Last Edit: November 04, 2013, 03:48:42 am by tenshi99 »
Logged

Another

  • Bay Watcher
    • View Profile
Re: itemsyndrome causes CTD
« Reply #3 on: November 04, 2013, 09:02:50 am »

It would be nice to know which specific ones. It's probably spawned units.

Also, update itemsyndrome to this version.
Btw, I see that line 58 in that file is still in the wrong order. And line 32 of last revision could be marginally improved if "not material" check was inserted before attempt to access material.material (lazy logical evaluation in lua means that the second argument of "or" is not evaluated if the first one returns true).
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: itemsyndrome causes CTD
« Reply #4 on: November 04, 2013, 05:09:19 pm »

There's already a far more updated version around that works about... well, it's innumerably faster, given that it no longer runs on an algorithm that can be based on the number of units in the map.

The issue is that the version requires DFHack 0.34.11-r4, which isn't quite out yet.

Urist McTeellox

  • Bay Watcher
    • View Profile
Re: itemsyndrome causes CTD
« Reply #5 on: November 07, 2013, 12:18:29 am »

There's already a far more updated version around that works about... well, it's innumerably faster, given that it no longer runs on an algorithm that can be based on the number of units in the map.

The issue is that the version requires DFHack 0.34.11-r4, which isn't quite out yet.

Just to check, with the link given above, we can drop this into an existing 4c distribution just fine? The comments on that gist mention 0.34.11-r4, but I presume r3 is what's bundled with MWDF 4c?

Many thanks,

~ T
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: itemsyndrome causes CTD
« Reply #6 on: November 07, 2013, 12:31:24 am »

The link I gave is fully compatible with 4c.

Urist McTeellox

  • Bay Watcher
    • View Profile
Re: itemsyndrome causes CTD
« Reply #7 on: November 07, 2013, 12:35:47 am »

Thank you muchly! <3
Logged