Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • openmw openmw
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 833
    • Issues 833
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 31
    • Merge requests 31
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenMWOpenMW
  • openmwopenmw
  • Issues
  • #5835
Closed
Open
Issue created Feb 04, 2021 by M MZ@zelazko

OpenMW doesn't accept negative values for NPC's hello, alarm, fight, and flee

Example video: https://streamable.com/pe9vqw

When negative value is typed in console it returns zero. When used in script it inverts the value to the positive integer.

More info from discord: https://discord.com/channels/260439894298460160/262662689489158145/806701947737866300

https://discord.com/channels/260439894298460160/262662689489158145/806830513498226688

Evil EyeToday at 5:16 AM Looks like instances save modified AI data in ACDT as ints. If I set an NPC's hello or alarm to -763, it retains that value but a new instance will spawn with a positive value equal to a narrowing conversion of the negative value. The ESS importer contains a partial definition of the ACDT subrecord, but it appears to be incorrect

I tested the version from the EvilEye's pipeline and it works. Both script and console can set negative Ai values. :)

Edited Feb 04, 2021 by M MZ
Assignee
Assign to
Time tracking