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

Added controls for most debug features and improved some #44

Open
wants to merge 11 commits into
base: old_main
Choose a base branch
from

Conversation

Yanis002
Copy link
Collaborator

This PR adds controls in config_debug_controls.h for most debug features, also I improved a bit some of them, for instance I translated everything from the camera debugger, though the display is a bit glitched (but it works properly), I'd like to make further improvements to each features in the future™

The camera debugger has A LOT of controls, that's why I put them at the end of the file otherwise it'd be awful to read imo, also I was lazy and didn't worked on the audio debugger yet, hence the draft state (just wanted to open a PR to get some opinions on things to improve)

Anyway, I hope you like it 👍

Copy link
Contributor

@Dragorn421 Dragorn421 left a comment

Choose a reason for hiding this comment

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

random remarks in passing
(feel free to ignore)

GfxPrint_Init(&printer);
GfxPrint_Open(&printer, newDList);
AudioDebug_Draw(&printer);
newDList = GfxPrint_Close(&printer);
GfxPrint_Destroy(&printer);
}
#endif
Copy link
Contributor

Choose a reason for hiding this comment

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

you can keep the variables here:

#ifdef ...
{
  s32 variable;

  ...
}
#endif

btw "pad" is unused, can be removed

Copy link
Collaborator Author

@Yanis002 Yanis002 Jan 16, 2023

Choose a reason for hiding this comment

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

I saw that kind of syntax in graph.c I believe and I was wondering if it was acceptable C syntax

Copy link
Contributor

Choose a reason for hiding this comment

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

yes {} is just a block. in if () {} the {} isn't special syntax tied to the if, it just wraps some code under a single block that is the single thing below the if

include/config/config_debug_controls.h Outdated Show resolved Hide resolved
#define EVENT_EDITOR_CONTORLLER_PORT CONTROLLER_PORT_1

// Set to true to use a button combo
#define EVENT_EDITOR_BTN_COMBO true
Copy link
Contributor

Choose a reason for hiding this comment

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

imo this sounds like it would be a BTN_ combination, not a boolean

Copy link
Collaborator Author

@Yanis002 Yanis002 Jan 16, 2023

Choose a reason for hiding this comment

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

I need to cleanup some of the names yeah, this should be like EVENT_EDITOR_USE_BTN_COMBO

@Yanis002 Yanis002 marked this pull request as ready for review September 3, 2023 13:56
@Yanis002
Copy link
Collaborator Author

Yanis002 commented Sep 3, 2023

won't work on this more than that so marking as ready to review I guess, haven't tested since but I merged master and fix the typo

@Yanis002 Yanis002 changed the title (Draft) Added controls for most debug features and improved some Added controls for most debug features and improved some Sep 3, 2023
@Yanis002 Yanis002 requested a review from ariahiro64 September 8, 2023 14:43
@Yanis002 Yanis002 added the waiting for review Waiting for a contributor to review the pull request label Sep 8, 2023
@Trueffeloot
Copy link

Reviewing this will take a bit longer I'll tell when I'm done

Copy link

@Trueffeloot Trueffeloot left a comment

Choose a reason for hiding this comment

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

There were a few compiler errors but nothing big so no problem. I'll be checking for functionality in-game now

src/overlays/actors/ovl_player_actor/z_player.c Outdated Show resolved Hide resolved
src/code/z_debug.c Outdated Show resolved Hide resolved
@Trueffeloot
Copy link

I'm currently testing with every debug feature activated to ensure everything at all works so I won't be able to always tell which debugger could cause the respective problem

Issue 1: Texture Flickering in Scenes that use "Box Textures"
image
image
I assume this might have something to do with either the camera debugger or the cs debugger? Will need to see

Update: I commented out the audio debugger. That one's causing a lot of problems it seems and i think it's unfinished

Issue 2: Inventory not Drawing and stuttering sounds
image
This is because of the audio debugger

Issue 3: Opening up the Map Select collides with opening up the Camera Debugger
Camera Debugger gets activated by pressing L + R and Map Select by pressing L + R + Z. We have to get something new here.

That's probably not it. Didn't test everything, I will continue later on

@Yanis002 Yanis002 added the main branch The PR targets the master branch label Sep 12, 2023
@Yanis002 Yanis002 changed the base branch from master to main September 23, 2023 11:15
@Yanis002 Yanis002 added waiting for author Waiting for the author to answer questions, do changes, ... 1.0 The PR targets HackerOoT v1.0 and removed waiting for review Waiting for a contributor to review the pull request main branch The PR targets the master branch labels Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.0 The PR targets HackerOoT v1.0 waiting for author Waiting for the author to answer questions, do changes, ...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants