Skip to content

Conversation

@Measurity
Copy link
Collaborator

@Measurity Measurity commented Dec 22, 2025

Purpose

Comparing two different instances of same game entities to more easily see differences. The data is sorted on name & type so it matches line-by-line.

Example

Prawnsuit State.txt

image

Feedback would be appreciated if this is something useful for debugging and/or if the format should be different. Eg changing to JSON for jq tool compatibility. Although for multi line values (like matrices) it's gonna look ugly in JSON...

@github-actions
Copy link

Test Results

245 tests  ±0   244 ✅ ±0   7s ⏱️ -1s
  1 suites ±0     1 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 4a41aee. ± Comparison against base commit 579cd60.

@Coding-Hen
Copy link
Collaborator

You have a if (str.Contains("\n")) and the followed by a replace for \r\n to be \n, would it not make sense to have this contains look for this as you might find \n but no occurrences of \r\n exist

@Measurity
Copy link
Collaborator Author

You have a if (str.Contains("\n")) and the followed by a replace for \r\n to be \n, would it not make sense to have this contains look for this as you might find \n but no occurrences of \r\n exist

If it's a \n in the value, I take it to mean a new line should be there. But \r\n is used on Windows based text, so I flatten to \n to ensure no left over \r characters. If I did the contains on \r\n I'll miss Unix based new lines.

@Coding-Hen
Copy link
Collaborator

Understood, you are just trying to handle both cases. My mistake I assumed you were just trying to handle windows only

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.

2 participants