Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

possible fix script for bug for demanding tribute from guardian entities #5178

Closed
ab9rf opened this issue Jan 9, 2025 · 1 comment · Fixed by #5181
Closed

possible fix script for bug for demanding tribute from guardian entities #5178

ab9rf opened this issue Jan 9, 2025 · 1 comment · Fixed by #5181

Comments

@ab9rf
Copy link
Member

ab9rf commented Jan 9, 2025

Per Putnam, "latest beta has a known crash when demanding tribute from guardian entities (i.e. mythical sites)" and provides the following script

function get_first_civilized_its_probably_dwarf()
  for k,v in ipairs(df.global.world.raws.creatures.all) do
    if v.OCCURS_AS_ENTITY_RACE then return k end
  end
end

local r=get_first_civilized_its_probably_dwarf()

for k,v in ipairs(df.global.world.entities.all) do
  if v.race==-1 then v.race=r end
end

We may want to implement.

@ab9rf ab9rf linked a pull request Jan 9, 2025 that will close this issue
@myk002 myk002 added this to 50.15-r2 Jan 11, 2025
@github-project-automation github-project-automation bot moved this to Todo in 50.15-r2 Jan 11, 2025
@myk002
Copy link
Member

myk002 commented Jan 11, 2025

Fixed in #5181

@myk002 myk002 closed this as completed Jan 11, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in 50.15-r2 Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants