Rename Liquid Textures #3758
No reviewers
Labels
No Label
#P1 CRITICAL
#P2: HIGH
#P3: elevated
#P4 priority: medium
#P6: low
#Review
annoying
API
bug
code quality
combat
commands
compatibility
configurability
contribution inside
controls
core feature
creative mode
delayed for engine release
documentation
duplicate
enhancement
environment
feature request
gameplay
graphics
ground content conflict
GUI/HUD
help wanted
incomplete feature
invalid / won't fix
items
looking for contributor
mapgen
meta
mineclone2+
Minecraft >= 1.13
Minecraft >= 1.17
missing feature
mobile
mobs
mod support
model needed
multiplayer
Needs adoption
needs discussion
needs engine change
needs more information
needs research
nodes
non-mob entities
performance
player
possible close
redstone
release notes
schematics
Skyblock
sounds
Testing / Retest
tools
translation
unconfirmed
mcl5
mcla
Media missing
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: VoxeLibre/VoxeLibre#3758
Loading…
Reference in New Issue
No description provided.
Delete Branch "liquids_rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request renames the textures of water and lava to more closely follow the MineClone 2 naming convention.
The code has also been changed to now reflect these new names.
I'm not seeing changes in the colours or the csv file. Please search the file name in the whole project and ensure you catch them all. Thanks
mcl_dripping
also has a README file that should be updated.tools/Conversion_Table.csv
also has to be updated.I have done that, but why is there a conflict with the target branch now?
Looking at the diff, you've changed every line. I'm wondering if the line endings have been auto changed. Are you using windows? What program did you use to change them?
https://stackoverflow.com/questions/1552749/difference-between-cr-lf-lf-and-cr-line-break-types
Not sure if this is playing a part:
https://stackoverflow.com/questions/10418975/how-to-change-line-ending-settings
When Smokey changed it, he only changed 1 line:
https://git.minetest.land/MineClone2/MineClone2/pulls/3783/files
As his changed it, and yours, it doesn't know what is the correct change.
I used the
Find & Replace
function of WPS Spreadsheets to replace those lines. I don't know of any better way to work with .csv files. Did that somehow mess those lines up?How would I go about fixing this? I used to just revert the conflicting changes, merge master into this branch, and then add the changes back again, but since merging master into pull request branches seems like a no-no, I don't really know how to go about doing this now.
2 ways. Before you start, backup your branch:
git checkout -b branch_name_bak
An interactive rebase is how I would personally do it.
git checkout master
git pull origin master
git checkout <branc_name>
git rebase -i master
Then find the commit which has you altering that file, and delete that line (it'll be removed from history) and the conflict no longer exists. Next time you push, you'll have to do a force push as you've rewritten history locally and it'll need to be reflected on our repository branch (git prevent history rewrite without a force push for safety reasons):
git push -f <branch_name>
From an ease perspective, first thing is revert your commit. Pull from master (not ideal, but you need Smokey's change on your branch) and deal with any conflict manually if there is one. Then make your change on the file as a raw text file. Maybe open in notepad (a csv isn't strictly a spreadsheet, it's values separated by commas) or something that doesn't alter the formatting, and search for the image name and change it there. If I squash this commit, it'll probably delete those character changes from history.
I have never used Git to do things in MineClone 2, so if someone knows of any good command-line Gitea tutorials or some sort of better GUI to commit things, feel free to suggest these.
I've told you the commands. A GUI just does those commands with pretty buttons. If there are any you don't understand, search for it, or ask, and I'll explain.
The more you understand git, the more confident you are to solve those problems and it feels good.
It may seem tricky at first and there is a little learning curve at first, once you learn it, you'll understand it and how to get yourself out of most problems.
This is all git stuff. Gitea is just a server hosting a remote git repo like Github or Gitlab is. You create the pr's on it, but under the covers, it's all git.
For example, update your local master:
git checkout master
git pull origin master
Checkout your branch:
git checkout <branc_name>
Rebase your commits on your branch on top of master (-i = interactive, where you can reorder them, squash them, delete them from history like they never happened (a revert is actually a change, and a change back), fixup (squash while retaining the oldest commit message).
git rebase -i master
Push your branch to the remote repo (-f = force, and you should never do this unless you have rewrote history, if you rebase on a branch with 3 commits, those 3 commits get played on top of master with new commit hashes. The force says I know those old commits are no longer needed as the new ones are intentional, please replace them):
git push -f <branch_name>
But how can you even do something like that? Don't you need to "log in" or something among the lines of that?
When you clone a repo, it'll be cloned in read only. You can alter your local copy all your wish without authorisation as it's your copy, but when you push to origin (our gitea instance), you will need to authorise.
You have 2 choices. If you cloned as https and you can type a password every time you push etc. or otherwise you can generate a SSH key and upload it to Gitea from Settings -> SSH / GPG Keys and that will be used as authorisation. There is a link on that page to the github guides on the topic that are pretty good:
https://docs.github.com/en/authentication/connecting-to-github-with-ssh
f46c7d3aac
to3347e9b42b
@ancientmarinerdev I have finally figured this stuff out somewhat with the help of
git-cola
and some tutorials. This should hopefully be okay to merge now.The lines changed in
README.md
are from CRLF to LF, so approved.