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

Serverside Rui #95

Merged
merged 11 commits into from
Nov 5, 2022
Merged

Serverside Rui #95

merged 11 commits into from
Nov 5, 2022

Conversation

uniboi
Copy link
Contributor

@uniboi uniboi commented Oct 21, 2022

Add documentation for RUI which was added with R2Northstar/NorthstarMods#435

Closes #65

@uniboi
Copy link
Contributor Author

uniboi commented Oct 21, 2022

images aren't showing and idk why

@F1F7Y F1F7Y mentioned this pull request Oct 21, 2022
@SenorGeese SenorGeese mentioned this pull request Oct 21, 2022
Copy link
Member

@F1F7Y F1F7Y left a comment

Choose a reason for hiding this comment

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

Looks good

Copy link
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Adding additional example code next to the docs @F1F7Y provided is dope af <3

I'd just update them so they (roughly) produce the output shown in the GIFs. Doesn't need to be super accurate but at least the text should be the same IMO ^^

docs/source/reference/northstar/serversiderui.rst Outdated Show resolved Hide resolved
docs/source/reference/northstar/serversiderui.rst Outdated Show resolved Hide resolved
docs/source/reference/northstar/serversiderui.rst Outdated Show resolved Hide resolved
docs/source/reference/northstar/serversiderui.rst Outdated Show resolved Hide resolved
docs/source/reference/northstar/serversiderui.rst Outdated Show resolved Hide resolved
@GeckoEidechse
Copy link
Member

Discord link to (incomplete) list of RUI images: https://discord.com/channels/920776187884732556/1001559004889223258/1001559007623921694

(Not needed for this PR but thought I'd just drop it somewhere to find again and maybe add with new PR)

@SenorGeese
Copy link
Contributor

@uniboi did you make those gifs/pngs?

@uniboi
Copy link
Contributor Author

uniboi commented Oct 21, 2022

no they're from the pr description by @F1F7Y

@SenorGeese
Copy link
Contributor

Time to learn how to do this custom RUI so i can get my own gifs. Looks like they work with just a local mod so that's good.

@uniboi
Copy link
Contributor Author

uniboi commented Oct 21, 2022

I posted a demo mod in the serverside Rui pr

@SenorGeese
Copy link
Contributor

Found a bug, dummy related, probably more related to desync though.

I was making the the examples for implementation of Geckos suggestions.

I was adjusting timings and added more messages. I changed the RUI_TEST_DURATION to 5.

Bug Evidence

415-5

NSSendPopUpMessageToPlayer( player, "These are a little difficult to see." ); This is the only function with the string with "These are a little difficult to see".

File

rui_demo.txt

Converted to .txt via rename because github doesn't like .nut files.

What I think ig

Starting at line 32, we send line 32 func, since CONST is 5 sec, skips over line 36 func, but keeps the func, the game uses the function being SendInfoMessage, but because the wait being only 3 seconds, the script moved onto line 40 but ignores the PopUpMessage function and just usings it's string. Idk anything though so.

@SenorGeese
Copy link
Contributor

@F1F7Y sorry to do this to you ig ^
goodnight

@F1F7Y
Copy link
Member

F1F7Y commented Oct 23, 2022

  1. What
  2. Probably better to make an issue on NorthstarMods to not clutter up this convo

@GeckoEidechse
Copy link
Member

Found a bug, dummy related, probably more related to desync though.

Uh, what exactly is the bug? It skips a message or what?

I was making the examples for implementation of Geckos suggestions.

Just FYI, I suggested updating the text to match the GIFs, not the other way round cause that's easier than having to redo all the GIFs :P

@SenorGeese
Copy link
Contributor

The bug is that is using the string from a PopUp message but uses the InfoMessage function.
NSSendPopUpMessageToPlayer( player, "These are a little difficult to see." ); this is SendPopUpMessage, not what displayed in my game being SendInfoMessage
That is the bug @F1F7Y and @GeckoEidechse

and Gecko. I'd rather update the gifs too because the original gifs seemed too random and all over the place. I can probably do that instead if i have to though.

@F1F7Y
Copy link
Member

F1F7Y commented Oct 23, 2022

The bug is that is using the string from a PopUp message but uses the InfoMessage function. NSSendPopUpMessageToPlayer( player, "These are a little difficult to see." ); this is SendPopUpMessage, not what displayed in my game being SendInfoMessage That is the bug @F1F7Y and @GeckoEidechse

and Gecko. I'd rather update the gifs too because the original gifs seemed too random and all over the place. I can probably do that instead if i have to though.

So basically what's described here: R2Northstar/NorthstarMods#524

@SenorGeese
Copy link
Contributor

SenorGeese commented Oct 23, 2022

It's a little unclear but looks like the same issue, yes.

@emma-miler
Copy link
Member

@GeckoEidechse since you were the one reviewing this before, can you give me a quick status report on this PR?

@GeckoEidechse
Copy link
Member

@GeckoEidechse since you were the one reviewing this before, can you give me a quick status report on this PR?

No update. Still waiting on @uniboi to implement requested changes.

@SenorGeese
Copy link
Contributor

Okay well I got around the bug. Info messages are just buggier than the rest.
Here is the script I'll be getting the new gifs/images from.
rui_demo.nut.txt

uniboi and others added 2 commits November 4, 2022 20:11
Co-authored-by: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>
Copy link
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

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

Good enough for me. Ready to merge from my side.

@laundmo laundmo merged commit 9a15eba into R2Northstar:main Nov 5, 2022
@SenorGeese
Copy link
Contributor

Should I still update it with my/the better examples?

@laundmo
Copy link
Member

laundmo commented Nov 5, 2022

Sure, feel free to make a new PR - mainly wanted to get this merged for #100

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Document serverside RUI
6 participants