Tried Trunk, so many changes, few quetions


Ask fellow adventurers how to stay alive in the deep, dark, dangerous dungeon below, or share your own accumulated wisdom.

Spider Stomper

Posts: 233

Joined: Saturday, 18th February 2012, 04:40

Post Friday, 1st April 2016, 23:15

Tried Trunk, so many changes, few quetions

Hey all!

So I tried Trunk since it sais quote "New option: autofight_warning, disabling autofight (tab) if successive commands are received too quickly. Should be helpful in cases of lag or accident."
I have played v.0.16-a0-2097 until now and was hoping this would fix the lagg problems I had had since the changes to coding. Not sure what command to write behind, tried a few and come to the conclusion it must be a number. But what does the # represent?

I also noticed my old init files is really outdated. No items, except Bread Rations are now on auto_pickup.
In fact, could someone send me an init file with a bit more advanced mechanisms (like auto-Stop when a Fiend comes into view, or auto-picking up Potions of Blood if you play Vampire) and i´ll work from there?
Or better yet - just give me some pointers what to remove and to add? (´ll post my current one at the bottom, it´s more or less Sandmans old init)

Any help appreciated!
  Code:
      Init file

autofight_warning = 20
hp_warning = 25
greedy_sacrificeable
auto_sacrifice = true
travel_delay = -99
explore_delay = -99
tile_full_screen = true
runrest_ignore_monster ^= fish:3
autofight_stop = 60
good_random = true

force_more_message += You have finished your manual of
force_more_message = Space bends around you
force_more_message += sticky flame hits you(.|!)
force_more_message += scroll.*catch
force_more_message += potion.*shatter
force_more_message += fiend.*come
force_more_message += skill increases to level
force_more_message += Flails skill increases.*20
force_more_message += You hear the.*



##############
# Autopickup #
##############

pickup_thrown = true
pickup_mode = single

autopickup_exceptions +=<dart
autopickup_exceptions +=<javelin
autopickup_exceptions +=<needle
autopickup_exceptions +=<sling bullet
autopickup_exceptions +=<stone
autopickup_exceptions +=<throwing net
autopickup_exceptions +=<tomahawk



autopickup = $?!:"/%|\
ae := autopickup_exceptions


ae += useless_item
ae += (amulet|ring|rod|tome) of
ae += scrolls? of (amnesia|curse|noise|torment)
ae += potions? of (brilliance|magic|mutation|.*blood)
ae += ring? of (strength|slaying|protection|dexterity|intelligence)
(mutation|paralysis|.*poison|slowing|decay|degeneration|magic)
ae += <staves
ae += <books
ae += <manuals

 
: local branch = you.branch()
: if branch == "Pan" or branch:find("Zig") then
autopickup = $

Eae += <wand of (heal wounds|hasting|teleportation)
ae += <scrolls? of (acquirement|fog|holy|identify|lignification|recharging|remove)
ae += <scrolls? of (blinking|enchant|magic|brand)
ae += <potions? of (beneficial|cure mutation|experience|porridge)
ae += <potions? of (curing|restore abilities)
ae += <legendary deck
ae += <manuals
: end

: if you.race() ~= "Vampire" then
ae += potions? of.*blood
: end

: if you.god() == "Nemelex Xobeh" then
ae += <deck
: end

{
local function autopickup(it, name)
    if it.artefact then
        return false
    end
    local class  = it.class(true)
    if class == "armour" then
        local good_slots = {cloak="Cloak", helmet="Helmet",
                            gloves="Gloves", boots="Boots"}
        st, _ = it.subtype()
        if good_slots[st] ~= nil and
           items.equipped_at(good_slots[st]) == nil then
            return true
        end
    end
    if class == "weapon" then
        if name:find("demon") or
           name:find("quick") or
           name:find("double") or
           name:find("triple") or
           name:find("eveningstar") or
           name:find("distortion") then
            return false
        end
    end
    if class == "missile" then
        if name:find("curare") then
            return false
        end
    end
    return false
end

add_autopickup_func(autopickup)
}

##########
# Travel #
##########

level_map_title = true
show_travel_trail = false
ignore := runrest_ignore_message
ignore =

# Annoyances
ignore += Jiyva gurgles merrily
ignore += Jiyva appreciates your sacrifice
ignore += Jiyva says: Divide and consume
ignore += You hear.*splatter
ignore += You feel.*sick
ignore += disappears in a puff of smoke
ignore += engulfed in a cloud of smoke
ignore += standing in the rain
ignore += engulfed in white fluffiness
ignore += safely over a trap
ignore += A.*toadstool withers and dies
ignore += toadstools? grow
ignore += You walk carefully through the
ignore += grinding sound
ignore += contamination has completely
ignore += chunks of flesh in your inventory.*rotted away
ignore += lightning rod has recharged
ignore += your breath back
ignore += Your transformation is almost over
ignore += You smell something.*
ignore += Magic Restored
ignore += Your transformation is almost over
ignore += Something in your.*
ignore += You are feeling.*
ignore += Eating.*
ignore += This raw.*
ignore += You are no.*
ignore += You start.*
ignore += One of your.*
ignore += You continue.*
ignore += Ugh.*
ignore += There is a.*




runrest_ignore_poison  = 2:10
runrest_ignore_monster += butterfly:1


# Expiring effects

ignore += pray:
ignore += talk:
ignore += talk_visual:
ignore += friend_spell:
ignore += friend_enchant:
ignore += friend_action:
ignore += sound:


#############
# Interface #
#############
equip_unequip = true
allow_self_target = no
easy_confirm = all
confirm_butcher = never
auto_eat_chunks = true
auto_drop_chunks = yes
autofight_throw_nomove = false
show_inventory_weights = true
show_gold_turns = true
show_game_turns = true
default_manual_training = true
skill_focus = true
small_more = false


# Spellcasting spam reduction by monqy
{
local function generic_cast_spell(cmd)
  crawl.mpr('<cyan>Cast which spell?</cyan>')
  crawl.flush_prev_message()
  crawl.process_keys(cmd)
end

function cast_spell()
  generic_cast_spell('z')
end

function force_cast_spell()
  generic_cast_spell('Z')
end
}


###############
# Keybindings #
###############

#########
# Notes #
#########
dump_message_count = 30
dump_order  = header,hiscore,stats,misc,mutations,skills,spells,inventory
dump_order += screenshot,monlist,messages,action_counts,vaults,notes,kills
note_hp_percent = 10

###############
# Spell slots #
###############

#################
# Miscellaneous #
#################
char_set = unicode
show_player_species = true
note_all_skill_levels = true


# Features
cset_unicode = item_gold:£
cset_unicode = cloud:#
feature = explore horizon {.,,green}
feature = (closed|runed|sealed) door {+,,}

# Glyph todo:
# Steal st_'s 'p'eople?
# Classed draconians on q?
# All ghosts on W, corporeal undead on z?
# Bugs on B, flying bugs on y.

# Quadruped hybrids
mon_glyph = hippogriff:Q
mon_glyph = manticore:Q
mon_glyph = griffon:Q
mon_glyph = sphinx:Q

# Dwarves
mon_glyph = Wiglaf:lightcyan g
mon_glyph = Jorgrun:lightmagenta g
mon_glyph = dwarf:lightgreen g
mon_glyph = deep dwarf:lightblue g

# Derived undead
mon_glyph = small zombie:brown Z
mon_glyph = small skeleton:lightgrey Z
mon_glyph = small simulacrum:ice Z

# Others
mon_glyph = ice beast:ice Y
mon_glyph = sky beast:mutagenic Y
mon_glyph = boggart:magenta i
mon_glyph = dancing weapon:7
mon_glyph = greater mummy:lightmagenta M
mon_glyph = ancient lich:lightmagenta L
mon_glyph = hellion:lightred 2

# Sensed monsters
mon_glyph = tough sensed monster:lightred
mon_glyph = nasty sensed monster:red



Slime Squisher

Posts: 395

Joined: Monday, 28th April 2014, 19:50

Post Saturday, 2nd April 2016, 01:17

Re: Tried Trunk, so many changes, few quetions

The number after autofight_warning is in milleseconds (thousandths of a second).

The way you have it set now, pressing tab more than 50 times per second will trigger the warning, so you probably want to raise it quite a bit higher (try 200 perhaps).

re: rc files: you probably want to grab MarvinPA's: http://crawl.develz.org/configs/trunk/MarvinPA.rc. It looks like your current file is based off of an older version of it anyways.

Ziggurat Zagger

Posts: 4055

Joined: Tuesday, 10th January 2012, 19:49

Post Saturday, 2nd April 2016, 06:09

Re: Tried Trunk, so many changes, few quetions

To fix your autopickup, remove the "return false" statements from your armour autopickup, I think.

Spider Stomper

Posts: 233

Joined: Saturday, 18th February 2012, 04:40

Post Saturday, 2nd April 2016, 08:46

Re: Tried Trunk, so many changes, few quetions

crate wrote:To fix your autopickup, remove the "return false" statements from your armour autopickup, I think.

Hey, I removed all "return false" and that fixed it, yay ;)

I´m gonna donwload Marvin PA´s as well, just to see if I can learn some new commands. I actually used to play with a very slimmed down version of Marvin PA´s init file like two years ago.

Regarding the autofight_warning the higher the number I put the more the screen is flooded with "You should not fight recklessly!" actually making it only worse. I tried some low # like 10 but it feels that same way as when playing without it - still lagging. Still hoping they will fix the lagg eventually. :roll:

Anyways; Thx guys, appreciated :D
Last edited by graffen69 on Monday, 15th August 2016, 21:30, edited 1 time in total.

Halls Hopper

Posts: 79

Joined: Monday, 28th January 2013, 15:25

Post Wednesday, 6th April 2016, 13:10

Re: Tried Trunk, so many changes, few quetions

If you set autofight_warning to 100, crawl will stop you if there is less than 100 milliseconds between two tabs command.
So if you are a little to heavy on the tab key or if a lag causes a bunch of tab command, it'll help.

The primary idea was to stop you from holding tab down in console mode (in tile mode you can juste set tile_key_repeat_delay to 0)
User avatar

Shoals Surfer

Posts: 311

Joined: Wednesday, 15th August 2012, 07:13

Post Wednesday, 6th April 2016, 22:56

Re: Tried Trunk, so many changes, few quetions

Oh bugger I thought autofight_warning was how you got low_hp warnings at higher levels of HP
Spoiler: show
Psst, hey kid... you like roguelikes?

Halls Hopper

Posts: 79

Joined: Monday, 28th January 2013, 15:25

Post Friday, 8th April 2016, 13:28

Re: Tried Trunk, so many changes, few quetions

That's autofight_stop

Return to Dungeon Crawling Advice

Who is online

Users browsing this forum: No registered users and 19 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.