Minecraft PC IP: play.cubecraft.net

Blom

Forum Expert
Sep 12, 2018
643
2,259
349
MinerWare Town
www.cubecraft.net
Pronouns
He/Him
Hey! Parkour suggestion real quick:

I found it weird that no one pointed this out before. I thought I had myself, but I hadn't. In parkour (simple on java, easy on bedrock), there is this map called Desert. However, there is also a map called Desert in hard on java and impossible on bedrock. I suggest to change the easy/simple one to Oasis. this to avoid confusion, its not impacting anyone drastically and it would still fit the map perfectly. Thanks a lot

No, this is not me coming back to the forums, but for these kind of suggestions you still need the community vote, something with suggestions idk, but ill leave it here and be gone again. cya!
 

Laura

Dedicated Member
Verified
Jan 16, 2018
183
1,251
204
33
Space
Pronouns
She/Her
I want to preface this by saying I'm not commenting on whether this should or shouldn't be done. Well, ok I am, I think it should be done, but...

I think this is a good opportunity to show how little changes like this aren't as simple as people think they are.
Having worked extensively on parkour, I still get fever dreams know a lot about how it works.
There's a quick and bad way to implement this, or there's a long, difficult, but correct way to do this.

The map name acts as an id, linking it to a bunch of different places; databases, user stats, translation strings, world files, and others. And one database which has the display name "Desert" in it.

Option 1: Just change the display name. Rename it in the database, so it's just that one name which gets sent to menus which gets changed.
This is bad practice. Because if someone in the future tries to find stats related to players who played this map, or need to change the medal times for it, or what modifiers there are... They're going to need to know that Oasis is actually still called Desert in all the systems. Making this discovery on your own is not guaranteed for someone new working with it.

Option 2: Replace the name in ALL locations.
Ok, let's say you trawl the databases which tells the game what the times are for each medals, the available modifiers database, the name in the world file for it, and some other places. Sure now it works as a map called Oasis, but you've now broken how it loads each player's best times and completed medals. Because player stats are saved with the map name as an ID. Do you see now how this becomes an issue?
You've now got to run an update query on all 14 million (yes it's really that big) user's data in the stats databases, renaming just those specific parkour level stats times to a different name. That can take hours, and you cannot do it without creating a backup of all that data first... Which also takes hours, and therefore money.
But, this is the correct way to do it.

So should they do this? Probably.
Will they? Probably not, unless they do it the bad way. XD
 

Mr Jii Gamer

Dedicated Member
Jun 10, 2022
1,262
1,318
164
Algérie
youtube.com
Pronouns
He/Him
Hey! Parkour suggestion real quick:

I found it weird that no one pointed this out before. I thought I had myself, but I hadn't. In parkour (simple on java, easy on bedrock), there is this map called Desert. However, there is also a map called Desert in hard on java and impossible on bedrock. I suggest to change the easy/simple one to Oasis. this to avoid confusion, its not impacting anyone drastically and it would still fit the map perfectly. Thanks a lot

No, this is not me coming back to the forums, but for these kind of suggestions you still need the community vote, something with suggestions idk, but ill leave it here and be gone again. cya!
Yes i agree with you i have see it a long time ago but i thing it is normal but they should rename it like you said
 

Blom

Forum Expert
Sep 12, 2018
643
2,259
349
MinerWare Town
www.cubecraft.net
Pronouns
He/Him
I want to preface this by saying I'm not commenting on whether this should or shouldn't be done. Well, ok I am, I think it should be done, but...

I think this is a good opportunity to show how little changes like this aren't as simple as people think they are.
Having worked extensively on parkour, I still get fever dreams know a lot about how it works.
There's a quick and bad way to implement this, or there's a long, difficult, but correct way to do this.

The map name acts as an id, linking it to a bunch of different places; databases, user stats, translation strings, world files, and others. And one database which has the display name "Desert" in it.

Option 1: Just change the display name. Rename it in the database, so it's just that one name which gets sent to menus which gets changed.
This is bad practice. Because if someone in the future tries to find stats related to players who played this map, or need to change the medal times for it, or what modifiers there are... They're going to need to know that Oasis is actually still called Desert in all the systems. Making this discovery on your own is not guaranteed for someone new working with it.

Option 2: Replace the name in ALL locations.
Ok, let's say you trawl the databases which tells the game what the times are for each medals, the available modifiers database, the name in the world file for it, and some other places. Sure now it works as a map called Oasis, but you've now broken how it loads each player's best times and completed medals. Because player stats are saved with the map name as an ID. Do you see now how this becomes an issue?
You've now got to run an update query on all 14 million (yes it's really that big) user's data in the stats databases, renaming just those specific parkour level stats times to a different name. That can take hours, and you cannot do it without creating a backup of all that data first... Which also takes hours, and therefore money.
But, this is the correct way to do it.

So should they do this? Probably.
Will they? Probably not, unless they do it the bad way. XD
I know it is not as easy as it sounds, I wish it was... would've made QoL changes so much easier in general.

Though this brings up a couple of questions: If it is called 'Desert' in the system, I am curious how stuff works if two maps have the same labeling. I suppose to some extend this already makes it a practical nightmare to make any changes on either of the maps, as one desert is not the other desert.

Secondly, why was this implemented this way in the first place? was the original desert just forgotten, ignored, or didn't it matter for data and was it therefore just the best fitting name for the map?

It will take time to implement such feature, thus I don't expect Ziax to put someone on just changing all entities of 'Desert' to 'Oasis', but let's say Parkour is getting a random update, adding new modifiers, new maps, new system, who knows what will be added or changed. Wouldn't this mean all the lines of the coding have to be checked anyway? if that's the case, then wouldn't it be possible to change all those lines?

This is something for the long run, but if parkour is getting an update, the hours you have to put into this specific change can probably almost be voided compared to the entire update. Obviously, Laura, you know way more about this than I ever will, so I would love to hear your thoughts on this for sure. Not only for this suggestion to get through, but also just for my understanding of your fever dreams knowledge of the working field.

Thanks for your response anyhow, you never fail to amaze us with your activity and involvement in the community <3
 
  • Like
Reactions: Thjis

Laura

Dedicated Member
Verified
Jan 16, 2018
183
1,251
204
33
Space
Pronouns
She/Her
I know it is not as easy as it sounds, I wish it was... would've made QoL changes so much easier in general.

Though this brings up a couple of questions: If it is called 'Desert' in the system, I am curious how stuff works if two maps have the same labeling. I suppose to some extend this already makes it a practical nightmare to make any changes on either of the maps, as one desert is not the other desert.

Secondly, why was this implemented this way in the first place? was the original desert just forgotten, ignored, or didn't it matter for data and was it therefore just the best fitting name for the map?

It will take time to implement such feature, thus I don't expect Ziax to put someone on just changing all entities of 'Desert' to 'Oasis', but let's say Parkour is getting a random update, adding new modifiers, new maps, new system, who knows what will be added or changed. Wouldn't this mean all the lines of the coding have to be checked anyway? if that's the case, then wouldn't it be possible to change all those lines?

This is something for the long run, but if parkour is getting an update, the hours you have to put into this specific change can probably almost be voided compared to the entire update. Obviously, Laura, you know way more about this than I ever will, so I would love to hear your thoughts on this for sure. Not only for this suggestion to get through, but also just for my understanding of your fever dreams knowledge of the working field.

Thanks for your response anyhow, you never fail to amaze us with your activity and involvement in the community <3

No worries, I'll answer what I can. ☺️

1) It doesn't just use the name. It pairs the name with the difficulty (easy_barn_1, simple_mobs_4, etc) as the key.
So the stats will have both an easy_desert_# and a hard_desert_# to be able to tell them apart.
Basically the game talks to the stats databases and goes "Give me [player]'s best times and medals for the map [easy_desert_2]" so it can load in your stats. But you change the map name, now it's going "Give me [player]'s best times and medals for the map [easy_oasis_2]", which the database then goes "I don't have any stats with that key for that player... They must not have completed that level."
This is why you'd need to rename +14 million user stats too.

2) I don't know who originally coded it this way, but in all honesty it's not a bad way by any means. It works really well for what it needs to do. The way it's made allows for a lot of things to be done, but renaming levels wasn't one of these things. It's like how a tractor engine is amazing for torque and durability, it's just not been designed for speed.
Why two desert names? Probably the builder making the levels just didn't realise there was already a desert in a different difficulty, but the system could handle it fine so it didn't matter.

3) Ideally no. When you put someone on an update you don't want them reviewing and updating all the code. If a Dev has been tasked with adding in, say, 3 new maps and 2 new modifiers, then time should only be spent making and testing those, not the whole parkour codebase.
They should just need to add in the respective map info into the databases, and spend time coding how the new modifiers affect the players.
Of course, if you're a Dev and you're knee deep in a project and you see something which can be done better and won't take up too much time, then yeh you should improve the code, but rewriting or just reviewing all the code for a game takes way too long.

But for this specific thing, renaming a map, the code isn't the problem. As I said the issue lies with renaming all the user stats. You cannot rename that many without backing up the database first, because if something goes wrong during the update you're running, you've now deleted all that user data...
 
  • Like
Reactions: Blom and Thjis
Members Online

Team online

Latest profile posts

Eli
Time to disappear into Hogwarts Legacy for the next 3 business days.
Eli wrote on NADER KANAAN's profile.
Happy Birthday!!!
if you saw the post below, 👇 i can make anyone one, just link a skin file or your ign and i can skin grab it. also list a background color.
@jamesthesignificant went with the same theme and colors, let me know if you want changes or something completely different :]
Untitled_Artwork.jpeg
Amacchi wrote on SupremeMortal's profile.
Happy bday!!! 🎉
Top Bottom