Rename Liquid Textures #3758

Merged
the-real-herowl merged 12 commits from liquids_rename into master 2023-11-03 00:47:29 +01:00
First-time contributor

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.

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.
Ghost added the
nodes
code quality
enhancement
labels 2023-05-24 10:56:33 +02:00
ancientmarinerdev requested changes 2023-06-13 18:10:06 +02:00
ancientmarinerdev left a comment
Owner

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

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
Contributor
nicu@Nicu-PC:~/.minetest/games/mineclone2$ grep -niR default_water_source_animated.png
mods/ITEMS/mcl_mangrove/init.lua:314:local water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#3F76E4"
mods/ITEMS/mcl_mangrove/init.lua:325:		{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}}
mods/ITEMS/mcl_mangrove/init.lua:330:			name="default_water_source_animated.png",
mods/ITEMS/mcl_mangrove/init.lua:376:water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#0084FF"
mods/ITEMS/mcl_maps/colors.json:4667:  "default_water_source_animated.png": [
mods/ITEMS/mcl_cauldrons/init.lua:70:		water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#0084FF"
mods/ITEMS/mcl_cauldrons/init.lua:75:		water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#3F76E4"
mods/ITEMS/mcl_core/nodes_liquid.lua:74:		{name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
mods/ITEMS/mcl_core/nodes_liquid.lua:79:			name="default_water_source_animated.png",
mods/ENTITIES/mcl_dripping/README.md:24:	texture  = "default_water_source_animated.png",
mods/ENTITIES/mcl_dripping/init.lua:85:	texture  = "default_water_source_animated.png",
tools/Conversion_Table.csv:190:/assets/minecraft/textures/blocks,water_still.png,/mods/ITEMS/mcl_core/textures,default_water_source_animated.png,,,,,,,

mcl_dripping also has a README file that should be updated.

``` nicu@Nicu-PC:~/.minetest/games/mineclone2$ grep -niR default_water_source_animated.png mods/ITEMS/mcl_mangrove/init.lua:314:local water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#3F76E4" mods/ITEMS/mcl_mangrove/init.lua:325: {name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=5.0}} mods/ITEMS/mcl_mangrove/init.lua:330: name="default_water_source_animated.png", mods/ITEMS/mcl_mangrove/init.lua:376:water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#0084FF" mods/ITEMS/mcl_maps/colors.json:4667: "default_water_source_animated.png": [ mods/ITEMS/mcl_cauldrons/init.lua:70: water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#0084FF" mods/ITEMS/mcl_cauldrons/init.lua:75: water_tex = "default_water_source_animated.png^[verticalframe:16:0^[multiply:#3F76E4" mods/ITEMS/mcl_core/nodes_liquid.lua:74: {name="default_water_source_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}} mods/ITEMS/mcl_core/nodes_liquid.lua:79: name="default_water_source_animated.png", mods/ENTITIES/mcl_dripping/README.md:24: texture = "default_water_source_animated.png", mods/ENTITIES/mcl_dripping/init.lua:85: texture = "default_water_source_animated.png", tools/Conversion_Table.csv:190:/assets/minecraft/textures/blocks,water_still.png,/mods/ITEMS/mcl_core/textures,default_water_source_animated.png,,,,,,, ``` `mcl_dripping` also has a README file that should be updated.
Ghost requested review from ancientmarinerdev 2023-06-15 09:33:33 +02:00
Contributor

tools/Conversion_Table.csv also has to be updated.

`tools/Conversion_Table.csv` also has to be updated.
Author
First-time contributor

I have done that, but why is there a conflict with the target branch now?

I have done that, but why is there a conflict with the target branch now?

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 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.
Author
First-time contributor

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?

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?

As his changed it, and yours, it doesn't know what is the correct change.

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.

>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? 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? >As his changed it, and yours, it doesn't know what is the correct change. 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.

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?

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?

As his changed it, and yours, it doesn't know what is the correct change.

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.

> >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? > > 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? > > >As his changed it, and yours, it doesn't know what is the correct change. > > 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.
Author
First-time contributor

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 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 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.

> 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>

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>
Author
First-time contributor

But how can you even do something like that? Don't you need to "log in" or something among the lines of that?

But how can you even do something like that? Don't you need to "log in" or something among the lines of that?

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

> 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
Ghost force-pushed liquids_rename from f46c7d3aac to 3347e9b42b 2023-06-20 17:14:26 +02:00 Compare
Ghost added 1 commit 2023-06-20 17:23:58 +02:00
Author
First-time contributor

@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.

@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-real-herowl added the
Testing / Retest
label 2023-10-07 09:59:10 +02:00
the-real-herowl removed the
Testing / Retest
label 2023-10-08 17:40:07 +02:00
the-real-herowl approved these changes 2023-11-03 00:40:09 +01:00

The lines changed in README.md are from CRLF to LF, so approved.

The lines changed in `README.md` are from CRLF to LF, so approved.
the-real-herowl merged commit ce403b9245 into master 2023-11-03 00:47:29 +01:00
the-real-herowl deleted branch liquids_rename 2023-11-03 00:47:32 +01:00
ancientmarinerdev added this to the 0.85.0 - Fire and Stone milestone 2023-11-03 15:11:24 +01:00
Sign in to join this conversation.
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#3758
No description provided.