DFHack / df-structures

Dwarf Fortress data structure descriptions
https://github.com/DFHack/dfhack
115 stars 81 forks source link

setup_character_info.skill_points_remaining value is always 10 #469

Open lizelive opened 2 years ago

lizelive commented 2 years ago

https://github.com/DFHack/df-structures/blob/a04727cc4ec350399ce4d2ded4425f33c50cea50/df.viewscreen.xml#L2677

in my testing it is always 10 for some reason.

lethosor commented 2 years ago

What OS and architecture (64/32-bit) are you using?

lizelive commented 2 years ago

windows 11 x64

lethosor commented 2 years ago

Which screen are you looking at? setup_character_info is used both in the fortress (viewscreen_setupdwarfgamest) and adventurer (viewscreen_setupadventurest) screens. In fortress mode, it appears to be correct:

image

[lua]# ~scr.dwarf_info[0].skill_points_remaining
7
[lua]# ~scr.dwarf_info[1].skill_points_remaining
10

Maybe this field is just unused in adventure mode?

lizelive commented 1 year ago

Windows 11 x64

On Mon, Jul 25, 2022, 10:20 PM Alan @.***> wrote:

What OS and architecture (64/32-bit) are you using?

— Reply to this email directly, view it on GitHub https://github.com/DFHack/df-structures/issues/469#issuecomment-1195015393, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJS2V4ZBUQPNAEYZ2PUIDFDVV5YQDANCNFSM54UEGZLQ . You are receiving this because you authored the thread.Message ID: @.***>

lethosor commented 1 year ago

@lizelive you had already answered that question. My more recent question is: are you in fortress mode or adventure mode?