Code Monkey home page Code Monkey logo

Comments (2)

KYSXD avatar KYSXD commented on August 22, 2024

Yet another data id:

In CMDRECV_stop.cpp the following data address are:

0x00665580 = u16* orders_dat_requirement_offsets[0xbd] in orders_dat namespace

0x0066558E - orders_dat_requirement_offsets[OrderId::ReaverStop];
0x006655E8 - orders_dat_requirement_offsets[OrderId::CarrierStop];
0x00665582 - orders_dat_requirement_offsets[OrderId::Stop];

0x0066FF60 - u32 dat_req_last_error

0x00514CF8 - orders_dat_requirements[]

Orders.dat unused2 is "secondary order"
(Debug/Assert only)
Orders.dat unused3 is "Non-subunit"
(Debug only)
Orders.dat unused5 is "Subunit can use"
(Debug only)
Orders.dat unused12 is "Order requires moving"

Also:

0049A480 = CanTargetSelf() // esi Unit *unit, edx order - PS: A hook for this would be cool

from gptp-for-vs2008.

BoomerangAide avatar BoomerangAide commented on August 22, 2024

Thank you for your help, Version 4.103 include most of that.
I renamed the function and put the full code in the helper for CanTargetSelf.
I didn't make a hook because receive_command() was the only function calling this, so changes in the helper would change everything (though it may be better to just create conditions where the result is assumed true for a combination of unitId and orderId, and not call the function at all in this kind of circumstances).

from gptp-for-vs2008.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.