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

DMX support, "Advanced" tab, Stagekit toggle #670

Merged
merged 8 commits into from
Feb 10, 2024

Conversation

TheFatBastid
Copy link
Contributor

Added scan (dmx over ethernet) support. Added an advanced settings tab. Added ability to turn off the stage kit.
Haukcode.sACN is now MIT licensed.

@EliteAsian123
Copy link
Member

Seems like sACN does have a NuGet package with a license. Can you confirm that this is the same package, and if so, attempt to use it via NuGetForUnity instead of importing the files?

https://www.nuget.org/packages/Haukcode.sACN

@TheFatBastid
Copy link
Contributor Author

Seems like sACN does have a NuGet package with a license. Can you confirm that this is the same package, and if so, attempt to use it via NuGetForUnity instead of importing the files?

https://www.nuget.org/packages/Haukcode.sACN

Same thing. He just added the license today when I e-mailed him. :) The difference being that I removed all the reading code, as YARG won't be receiving anything so about 10k lines, if that weight doesn't matter I'll try the package.

Copy link
Member

@EliteAsian123 EliteAsian123 left a comment

Choose a reason for hiding this comment

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

Thanks, this is pretty awesome! Just a few styling and one important thing and this should be good!

Assets/Script/Integration/Sacn/SacnController.cs Outdated Show resolved Hide resolved
Assets/Script/Integration/Sacn/SacnController.cs Outdated Show resolved Hide resolved
Assets/Script/Integration/StageKit/StageKitGameplay.cs Outdated Show resolved Hide resolved
Assets/Script/Integration/Sacn/SacnController.cs Outdated Show resolved Hide resolved
Assets/Script/Integration/Sacn/SacnController.cs Outdated Show resolved Hide resolved
_sendClient = new SACNClient(senderId: AcnSourceId, senderName: ACN_SOURCE_NAME,
localAddress: SACNCommon.GetFirstBindAddress().IPAddress);

InvokeRepeating(nameof(Sender), 0, TIME_BETWEEN_CALLS);
Copy link
Member

Choose a reason for hiding this comment

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

InvokeRepeating is unoptimized if I remember correctly, and it's annoying to deal with, you should probably just use a timer within the Update method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I attempted a few different things for this, unitask, timers, etc and they all seemed to be more erratic than InvokeRepeating. The sacn converter that receives these messages (from YARG) had an incoming fluctuating fps 27 - 46, whereas the InvokeRepeating gave it a rock solid 44. I'll try other methods again.

m_FloatArgument: 0
m_StringArgument:
m_BoolArgument: 0
m_CallState: 2
m_OnSubmit:
Copy link
Member

Choose a reason for hiding this comment

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

Haven't looked at this in Unity yet, so it's hard to tell; is this change intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Probably not. I don't even know what kind of change that is. Only thing I did with InputField is added 8 of them to the DMX prefab.

@EliteAsian123
Copy link
Member

Same thing. He just added the license today when I e-mailed him. :) The difference being that I removed all the reading code, as YARG won't be receiving anything so about 10k lines, if that weight doesn't matter I'll try the package.

Overall, I'd recommend packages when possible, so things aren't a pain to update.

@TheFatBastid
Copy link
Contributor Author

Same thing. He just added the license today when I e-mailed him. :) The difference being that I removed all the reading code, as YARG won't be receiving anything so about 10k lines, if that weight doesn't matter I'll try the package.

Overall, I'd recommend packages when possible, so things aren't a pain to update.

image
:(

@EliteAsian123
Copy link
Member

Damn okay, in which case we don't have much of a choice

@RileyTheFox
Copy link
Collaborator

You could ask if the package's framework targets can be updated. It should have no issues being listed for .NET Standard 2.1 if it's set to target .NET 7.

https://learn.microsoft.com/en-us/dotnet/standard/net-standard?tabs=net-standard-2-1

@EliteAsian123
Copy link
Member

Yeah if you could do that that'll be great; I'd rather not include a bunch of library files unless absolutely necessary.

@EliteAsian123 EliteAsian123 changed the base branch from dev to all-settings-tab February 10, 2024 20:23
@EliteAsian123 EliteAsian123 merged commit ae940da into YARC-Official:all-settings-tab Feb 10, 2024
EliteAsian123 added a commit that referenced this pull request Feb 11, 2024
…ies (#682)

* DMX support, "Advanced" tab, Stagekit toggle (#670)

* DMX support

Added scan (dmx over ethernet) support. Added an advanced settings tab. Added ability to turn off the stage kit.

* fixed var names

* Moved things to correct spots

* Refactored into a MonoSingleton

* Added README to note changes

---------

Co-authored-by: EliteAsian <29520859+EliteAsian123@users.noreply.github.com>

* Fix some things up

* Make it so settings don't use tab in unlocalized name

* Started "All Settings" menu

* Split up advanced settings into their own categories and added some more buttons

* Fixed a small bug that Jaden would totally fine 10 seconds after this update releases

* Updated setting category view to concept

* Updated search bar

* Updated placeholder text styling

* Added basic search functionality

* Limit number of results

* Fixed scrolling on scroll views

* Make the search results clickable

* Added more icons

* Prevent SacnController from initializing twice

---------

Co-authored-by: TheFatBastid <tfb@sof.ws>
@TheFatBastid TheFatBastid deleted the sacn branch February 13, 2024 21:54
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.

3 participants