Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 265 266 [267] 268 269 ... 373

Author Topic: DFHack 0.34.11 r3  (Read 1388680 times)

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3990 on: June 11, 2013, 07:19:53 pm »

No. Sorry, just realized that my earlier code is shit and won't actually work as intended. Use the init.lua version.

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3991 on: June 11, 2013, 07:24:30 pm »

OK, I'll assume that if I switch the contents of that file the rest will work then :-)
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3992 on: June 11, 2013, 07:25:58 pm »

[double post, sorry]
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3993 on: June 11, 2013, 07:27:10 pm »

Switch?

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3994 on: June 11, 2013, 07:28:52 pm »

Use the code you've called 'init.lua' as a file called "fixgrowthbug.lua" in hack/scripts, with a dfhack.init entry "fixgrowthbug enable" (is that unecessary now?)
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

catvanbrian

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3995 on: June 11, 2013, 07:30:04 pm »

how do I create a specific poison with the dfhack createitem command?
Logged

catvanbrian

  • Bay Watcher
    • View Profile
DFHack 0.34.11 r3
« Reply #3996 on: June 11, 2013, 07:32:16 pm »

how do I create a specific poison using dfhack createitem command
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3997 on: June 11, 2013, 07:37:00 pm »

Use the code you've called 'init.lua' as a file called "fixgrowthbug.lua" in hack/scripts, with a dfhack.init entry "fixgrowthbug enable" (is that unecessary now?)

Save the code called "init.lua" into a file called "init.lua" in the raw folder and all of the individual save folders' raw folder.

PeridexisErrant

  • Bay Watcher
  • Dai stihó, Hrasht.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3998 on: June 11, 2013, 07:41:04 pm »

Well, that seems anticlimatic!  Thanks, done, will upload new LNP release now. 
Logged
I maintain the DF Starter Pack - over a million downloads and still counting!
 Donations here.

CaptainArchmage

  • Bay Watcher
  • Profile Pic has Changed! Sorry for the Delay.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #3999 on: June 11, 2013, 08:38:57 pm »

I loaded up the save with the init.lua file in the raws. I don't get any readout on load in the DFHack terminal. Is this OK?
Logged
Given current events, I've altered my profile pic and I'm sorry it took so long to fix. If you find the old one on any of my accounts elsewhere on the internet, let me know by message (along with the specific site) and I'll fix. Can't link the revised avatar for some reason.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4000 on: June 11, 2013, 08:40:02 pm »

Is it in raw, NOT raw/objects?

CaptainArchmage

  • Bay Watcher
  • Profile Pic has Changed! Sorry for the Delay.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4001 on: June 11, 2013, 08:44:26 pm »

Is it in raw, NOT raw/objects?

It is in raw. It is one of the four files or folders in the folder of the save, and the only one that is a file and not a folder. I was thinking DFhack would say some file was loaded or function was executed.
Logged
Given current events, I've altered my profile pic and I'm sorry it took so long to fix. If you find the old one on any of my accounts elsewhere on the internet, let me know by message (along with the specific site) and I'll fix. Can't link the revised avatar for some reason.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4002 on: June 11, 2013, 09:12:52 pm »

Ah, then it's working. Hehe. I keep forgetting to include notifications...

CaptainArchmage

  • Bay Watcher
  • Profile Pic has Changed! Sorry for the Delay.
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4003 on: June 11, 2013, 09:24:31 pm »

Ah, then it's working. Hehe. I keep forgetting to include notifications...

How do you do notifications?
Logged
Given current events, I've altered my profile pic and I'm sorry it took so long to fix. If you find the old one on any of my accounts elsewhere on the internet, let me know by message (along with the specific site) and I'll fix. Can't link the revised avatar for some reason.

Kurik Amudnil

  • Bay Watcher
    • View Profile
Re: DFHack 0.34.11 r3
« Reply #4004 on: June 12, 2013, 01:29:23 am »

...
Add a special case.

if (unit.relations.birth_time < 0) then result = -1
else result = (unit.relations.birth_time % 10)

or

result = (unit.relations.birth_time < 0) ? -1 : (unit.relations.birth_time % 10)

I have an update for my ruby version using a change to the if statement as suggested by 0x517A5D to make the code easier to understand by removing the ambiguity over the debatable interpretations over how modulus should function with negative numbers.

I gave it a usage help string and configurable repeat time (default of once a month).  It notifies when it makes a fix.  I wrote the help string with the intention of saving the file in hack/scripts/fix/growthbug.rb


If we have a better name for it, I am open to that.  I thought it would be best to put the script in the fix directory.  I would consider using the suggested name fixgrowthbug except I don't want to conflict with the lua version.
Pages: 1 ... 265 266 [267] 268 269 ... 373