Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 ... 330 331 [332] 333 334 ... 360

Author Topic: DFHack 0.43.03-r1  (Read 1078542 times)

Immortal-D

  • Bay Watcher
  • [Not_A_Tree]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4965 on: December 02, 2016, 10:39:07 pm »

I'm sure I saw a command to create colony vermin (defaulting to bees). However, I thought the question was about regular animals rather than vermin or sapients?
Yeah, I'm after normal animals for a bit of !SCIENCE!.  I actually didn't even know that spawning vermin was a thing, lol.

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: DFHack 0.43.03-r1
« Reply #4966 on: December 03, 2016, 09:49:10 am »

Then delete the plant object from the list. Don't forget that there are actually two other lists containing trees (one for dry, one for wet), also you need to delete the tree object itself or you will leak memory.
You'll need to remove it from the matching map_block_column as well (corresponding to its location within your embark region), otherwise the game will probably crash.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4967 on: December 03, 2016, 03:52:27 pm »

Then delete the plant object from the list. Don't forget that there are actually two other lists containing trees (one for dry, one for wet), also you need to delete the tree object itself or you will leak memory.
You'll need to remove it from the matching map_block_column as well (corresponding to its location within your embark region), otherwise the game will probably crash.

It doesn't crash, but it does corrupt the save, so that is something to be very careful with. I think for now I will set aside the tree deletion and work on the other things.
Logged

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4968 on: December 04, 2016, 12:57:33 am »

hmm in other dfhack ideas I wonder if it's possible to remove the site restrictions on building in adventure mode in towns and have it not make a new camp on top of the site either.
Uh, put a tile of paint m lava_flow st 1 sv 0 l 0 underneath you and you can build, but it'll make the campsite still to save your changes.

Hmmm, there's something I'm forgetting that lets this work, but standing on an actual lava flow or in hell (paint m magma btw) works.
« Last Edit: December 04, 2016, 01:07:06 am by Max™ »
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4969 on: December 04, 2016, 02:18:44 am »

hmm in other dfhack ideas I wonder if it's possible to remove the site restrictions on building in adventure mode in towns and have it not make a new camp on top of the site either.
Uh, put a tile of paint m lava_flow st 1 sv 0 l 0 underneath you and you can build, but it'll make the campsite still to save your changes.

Hmmm, there's something I'm forgetting that lets this work, but standing on an actual lava flow or in hell (paint m magma btw) works.
I found a dfhack way to unlock building in adventure mode but doing anything in that mode will spawn a camp.
my question was is there a way to take over the site so the game doesn't make a camp and just save the changes to the site itself.
though this probably requires poking around what connects adv mode building to a site and what not.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4970 on: December 04, 2016, 03:14:37 am »

Which flag/setting/etc unlocks it and I"ll fuck around with it next time I get on to hack around.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4971 on: December 04, 2016, 03:25:01 am »

Which flag/setting/etc unlocks it and I"ll fuck around with it next time I get on to hack around.
oh found it. apperently there an option that allows you to expand the " you can build here zone"
usually it set around 148 but looking into it it seems to span farther
so it's possible to just walk into town and flip a
unk 3124 the menu above the anon 46  or where the timer for building is keeps all the adventure building screen data.
which seems to have a user data stored for sites and what not.

and in there anon 1 -4 controls the size of the build zones
just recently discovered this and pokin around it but it might be possible to expand the adventurer build mode now
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Max™

  • Bay Watcher
  • [CULL:SQUARE]
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4972 on: December 05, 2016, 10:39:45 am »

Oh, I can't even do it because the linux 64 ui_advmode is still missing.
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4973 on: December 06, 2016, 01:28:04 pm »

Then delete the plant object from the list. Don't forget that there are actually two other lists containing trees (one for dry, one for wet), also you need to delete the tree object itself or you will leak memory.
You'll need to remove it from the matching map_block_column as well (corresponding to its location within your embark region), otherwise the game will probably crash.

It doesn't crash, but it does corrupt the save, so that is something to be very careful with. I think for now I will set aside the tree deletion and work on the other things.

This is VERY good to know. I probably need to change my tree limit script!
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4974 on: December 06, 2016, 03:15:45 pm »

Then delete the plant object from the list. Don't forget that there are actually two other lists containing trees (one for dry, one for wet), also you need to delete the tree object itself or you will leak memory.
You'll need to remove it from the matching map_block_column as well (corresponding to its location within your embark region), otherwise the game will probably crash.
It doesn't crash, but it does corrupt the save, so that is something to be very careful with. I think for now I will set aside the tree deletion and work on the other things.

This is VERY good to know. I probably need to change my tree limit script!

Granted I did a few things so I don't know what exactly it was that did it, but somewhere in step 4 and 5 after I saved and quit and tried reloading the save the game just crashed.
Logged

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4975 on: December 06, 2016, 03:35:40 pm »

Regardless, a dangling pointer to a reference I just deleted is a Bad Thing and should be avoided...
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS

Roses

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4976 on: December 06, 2016, 06:21:13 pm »

Then delete the plant object from the list. Don't forget that there are actually two other lists containing trees (one for dry, one for wet), also you need to delete the tree object itself or you will leak memory.
You'll need to remove it from the matching map_block_column as well (corresponding to its location within your embark region), otherwise the game will probably crash.

So looking into this I have gotten a little confused. What exactly are map_block_columns referring to? With a 96x96 embark cite I have 6x6 blocks (since blocks are 16x16). There are then 36 map blocks per z level. The game shows that I do indeed have 36 map block columns, and if I look at the individual columns they all seem to start and end at the correct x,y coordinates. So all of that is good, but when I look at the map_block_columns.plants thats where things get all screwy. It seems the first map_block_column contains all of the plants for the first 3x3 blocks. This trend continues for the entire grid such that for every nine blocks there is only 1 with plant data in it. The table below illustrates what I mean, with the green colored blocks representing the ones with plant data (if you are wondering why the strange numbering scheme that is how DF does it. I assume because this is a 2x2 embark so that each one square on the embark region cooresponds to 3 blocks)

03691215
147101316
258111417
182124273033
192225283134
202326293235
*Note that I messed up the numbering slightly. DF goes down before across so the 9-17 blocks should trade places with the 18-26 blocks

So basically I am just wondering, am I confusing what map_block_columns are, or is it just that only one map_block_column per embark square actually contains the plant data?
Logged

mifki

  • Bay Watcher
  • works secretly...
    • View Profile
    • mifki
Re: DFHack 0.43.03-r1
« Reply #4977 on: December 06, 2016, 07:51:02 pm »

So basically I am just wondering, am I confusing what map_block_columns are, or is it just that only one map_block_column per embark square actually contains the plant data?

I haven't read everything, but here's the code I use. Oh, I mean I don't know why it's so, so it doesn't answer your question, but I confirm that's how it works.

Code: [Select]
                local mapcol = df.global.world.map.column_index[math.floor(x/48)*3][math.floor(y/48)*3]
               
                for i,p in ipairs(mapcol.plants) do
                    if not p.tree_info then
                        local pos = p.pos
                        if pos.x == x and pos.y == y and pos.z == z then
                            --found the plant
                            local plantraw = df.plant_raw.find(p.material)
                            --...
                            break
                        end
                    else
                        --handle trees differently
                    end
                end

Snafu

  • Bay Watcher
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4978 on: December 06, 2016, 07:59:21 pm »

What exactly are map_block_columns referring to? With a 96x96 embark cite I have 6x6 blocks (since blocks are 16x16). [...] It seems the first map_block_column contains all of the plants for the first 3x3 blocks. This trend continues for the entire grid such that for every nine blocks there is only 1 with plant data in it.
Is it possible that trees/branches are 'bleeding over' into your embark (check also Z-levels)?
Logged

Rose

  • Bay Watcher
  • Resident Elf
    • View Profile
Re: DFHack 0.43.03-r1
« Reply #4979 on: December 06, 2016, 10:58:17 pm »

The first map_block_column per embark square has the plant data, and no plants can cross embark square boundaries.

This is because if they were stored per column, they wouldn't be able to cross map_block boundaries.
Logged
Pages: 1 ... 330 331 [332] 333 334 ... 360