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

decomp: merge all s6-* remappings and finish training-obs | villagep-obs | lavatube-obs | rolling-robber | snow-obs #1018

Merged
merged 15 commits into from
Dec 29, 2021

Conversation

xTVaser
Copy link
Member

@xTVaser xTVaser commented Dec 15, 2021

Closes #910

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1580812697

  • 12 of 24 (50.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.0008%) to 54.805%

Changes Missing Coverage Covered Lines Changed/Added Lines %
decompiler/IR2/Env.cpp 12 24 50.0%
Totals Coverage Status
Change from base Build 1575589473: -0.0008%
Covered Lines: 40813
Relevant Lines: 74470

💛 - Coveralls

@xTVaser xTVaser changed the title decomp: merge all s6-* remappings and finish training-obs | villagep-obs | lavatube-obs | rolling-robber decomp: merge all s6-* remappings and finish training-obs | villagep-obs | lavatube-obs | rolling-robber | snow-obs Dec 26, 2021
Copy link
Collaborator

@water111 water111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

partial review, I still have to look at snow-obs, training-obs, and villagep-obs


(deftype darkecobarrel (darkecobarrel-base)
((self-override darkecobarrel :offset 28)
(spawn-array (array handle) :offset-assert 192)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this might be an array int64 but I'm not 100% sure...

(if (and (> (-> self cur-spawn) 0) (< gp-1 (the-as int (-> self spawn-array (+ (-> self cur-spawn) -1)))))
(+! gp-1 (the-as int (darkecobarrel-cycle-time)))
)
(let ((gp-2 (- gp-1 (the-as int (-> self spawn-array (-> self cur-spawn))))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would make more sense as int

(defstate darkecobarrel-spawner (darkecobarrel)
:trans
(behavior ()
(let ((gp-1 (mod (darkecobarrel-base-time) (the-as int (darkecobarrel-cycle-time)))))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and darkecobarrel-cycle-time would return int as well

(set! (-> obj flags) (logior #x2000000 (-> obj flags)))
(let ((v0-2 'heat))
(set! (-> obj attack-event) v0-2)
(the-as ripple-wave-set v0-2)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd guess this function returns none

(defbehavior robber-find-ground robber ()
(let ((gp-0 (new 'stack-no-clear 'vector)))
(set! (-> gp-0 quad) (-> self root-override trans quad))
(let ((t2-0 (new 'stack-no-clear 'collide-mesh-cache-tri)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be collide-tri-result

)
)

(defbehavior robber-calc-speed robber ((arg0 float) (arg1 float) (arg2 vector) (arg3 vector) (arg4 symbol))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

arg2 and arg3 should be float I think

Copy link
Collaborator

@water111 water111 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reviewed the rest - as usual just a few small type things

((root-override collide-shape-moving :offset 112)
(max-frame float :offset-assert 176)
(open-sound uint128 :offset-assert 192)
(close-sound uint128 :offset-assert 208)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these two should be sound-name?

(cond
((zero? s3-0)
(set! (-> obj open-sound)
(the-as uint128 (make-u128 (the-as uint #x6e706f2d6e6f74) (the-as uint #x7369702d776f6e73)))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hopefully these will become static-sound-names

@water111 water111 merged commit c6f0c5c into open-goal:master Dec 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[decomp] Creation of s6-n from no where, results in un-compilable code
3 participants