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

Corrected orthographe of part of Glob2. #85

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

stephanemagnenat
Copy link
Contributor

@stephanemagnenat stephanemagnenat commented Apr 29, 2023

This corrects the orthography of part of Glob2 in order to make it more comfortable to work with, and makes using IDE with integrated spell-checking less visually distracting. It also removes some French-ism ;-)

Note that, to limit merge conflict, this does not change:

  • file names,
  • section names in Glob2 text data format,
  • SGSL function names.

@stephanemagnenat stephanemagnenat force-pushed the fix/orthograph branch 3 times, most recently from 5068f32 to 62fbac2 Compare April 29, 2023 10:19
@stephanemagnenat stephanemagnenat changed the title Corrected ortograph of some core classes. Corrected orthographe of some core classes. Apr 29, 2023
@stephanemagnenat
Copy link
Contributor Author

Adding more classes, including libGAG.

@stephanemagnenat stephanemagnenat changed the title Corrected orthographe of some core classes. Corrected orthographe of part of Glob2. Apr 30, 2023
@stephanemagnenat
Copy link
Contributor Author

This looks ready to be merged from my side. I tested a bit and saw no regression, but it would be good if others would test a bit as well!

@Quipyowert2
Copy link
Contributor

Quipyowert2 commented May 2, 2023

I have reviewed libgag/ and everything in src/ in alphabetical order up to but not including Unit.h. Tomorrow after work or maybe on Wednesday I can review some more.

What I've found is that in Minimap.cpp the variable pPolIndex should probably be pColIndex and also a possible logic bug: src/SGSL.cpp:405 should be t=GameGUI::HighlightForbiddenZoneOnPanel, but it highlights free workers instead. Also, S_LOOSE should be S_LOSE.

Also, there was a Unicode problem in RessourcesTypes.h where a private use character was used for an è (e with grave accent) in the spelling of Luc-Olivier's name. After this change, the accented e character shows up as a Unicode character 0xFFFD in both GitHub web review UI and in Visual Studio Code. The raw hexadecimal in the file is "EF BF BD", which seems to be private use characters which are not supported on my laptop. Please consider amending the commit that introduced that change to undo that change; the other change in that file looks fine.

@Quipyowert2
Copy link
Contributor

Quipyowert2 commented May 4, 2023

I have reviewed some more files yesterday before work and tonight. Currently at src/YOGClientMapDownloadScreen.cpp. Only 726 more changes to review :/. I think I'll have some time after work Thursday or Friday or on the weekend to finish reviewing.

@stephanemagnenat
Copy link
Contributor Author

Thank you very much for doing that!

Copy link
Contributor

@Quipyowert2 Quipyowert2 left a comment

Choose a reason for hiding this comment

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

Finished reviewing.

My review notes:

TODO: finish reviewing PR #85.
2023-04-30 PR #85 review progress: src/GameGUI.h:135 reviewed for about 10 hours
2023-05-01 PR #85 review progress: src/Unit.h reviewed for 11 hours
2023-05-02 PR #85 review progress: src/Version.h:61 reviewed for about half an hour
2023-05-03 PR #85 review progress: src/YOGClientMapDownloadScreen.cpp reviewed for an hour.
(skipped YOGClient.cpp)
2023-05-04 PR #85 review progress: src/YOGServerRouterPlayer.cpp reviewed for an hour and 15 minutes.
(finished reviewing YOGClient.cpp)

Number of remaining changes to review

git diff stephanemagnenat/master..pull85 --stat | awk '{print $3, $1}' | perl -ne 'chomp;print "$_\n" if m/^\d+ (.*)$/ && $1 gt "src/YOGClientLobbyScreen.h"' | awk '{print $1}' | perl -E 'use List::Util "sum";my @numbers = map {chomp;$_} <>;say sum @numbers'

src/YOGClientPlayerListManager.h "This will return the list of players on hosted on the server." extra "on" here?
src/Utilities.cpp strmlen doesn't seem to be documented.
SGSL.cpp:405 There seems to be a bug here. Forbidden zone should be highlighted but instead t is set to HighlightWorkersWorkingFreeStat instead of HighlightForbiddenZoneOnPanel
SGSL.cpp:634 S_LOOSE should be S_LOSE.
OverlayAreas.cpp:139 Pythagorean theorem?

NetMessage.h:1564,1565 why a double private: modifier here?
NetMessage.cpp cool trick in NetSendGamePlayerInfo::downloadToGameHeader
NetMessage.cpp:3126 (NetSendReteamingInformation::operator==) shouldn't this method use dynamic_cast instead of typeid?

MapGenerator.h:55 voronoi?

Building::isHardSpaceForBuilding what is tltn variable? "type level to next"?
Game::executeOrder why the m in oMcf is capitalized?

PR#85 src/Building.cpp:2530 loop could be replaced with std::accumulate. Also, possible division by zero if type->maxResources array is full of zeroes.

SGSL is the old scripting language in the game; USL is the new one.

algae is limited by near underground? Explorers can attack?

libgag/src/StringTable.cpp Outdated Show resolved Hide resolved
src/AICastor.cpp Outdated Show resolved Hide resolved
src/AICastor.cpp Outdated Show resolved Hide resolved
src/AIEcho.h Outdated Show resolved Hide resolved
src/AIEcho.h Outdated Show resolved Hide resolved
src/YOGServerPlayer.cpp Outdated Show resolved Hide resolved
@@ -90,7 +90,7 @@ class YOGServerPlayer
NeedToSendServerInformation,
///Means its waiting for a login attempt by the client.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should probably be "it's waiting".

else if(type==MNetRequestDownloadableMapList)
{
shared_ptr<NetRequestDownloadableMapList> info = static_pointer_cast<NetRequestDownloadableMapList>(message);
server.getMapDatabank().sendMapListToPlayer(server.getPlayer(playerID));
}
//This recieves
//This receives
Copy link
Contributor

Choose a reason for hiding this comment

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

"This receives..." what? Oh, a message asking to upload a map.

@@ -291,7 +291,7 @@ void YOGServerPlayer::update()
sendMessage(info);
}
}
//This recieves a cancel to a file upload
//This receives a cancel to a file upload
Copy link
Contributor

Choose a reason for hiding this comment

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

Something along the lines of "This receives a message saying to cancel a file upload" would be better grammatically.

@@ -64,7 +64,7 @@ class YOGServerRouterAbortCommand : public YOGServerRouterAdministratorCommand
};


///This command causes a router to disconnect from the server and turn off once all clients disconnecty
///This command causes a router to disconnect from the server and turn off once all clients disconnected
Copy link
Contributor

Choose a reason for hiding this comment

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

How about "once all clients have disconnected"?

Copy link
Contributor

@Quipyowert2 Quipyowert2 left a comment

Choose a reason for hiding this comment

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

Finished reviewing.

Review Notes

TODO: finish reviewing PR #85.
2023-04-30 PR #85 review progress: src/GameGUI.h:135 reviewed for about 10 hours
2023-05-01 PR #85 review progress: src/Unit.h reviewed for 11 hours
2023-05-02 PR #85 review progress: src/Version.h:61 reviewed for about half an hour
2023-05-03 PR #85 review progress: src/YOGClientMapDownloadScreen.cpp reviewed for an hour.
(skipped YOGClient.cpp)
2023-05-04 PR #85 review progress: src/YOGServerRouterPlayer.cpp reviewed for an hour and 15 minutes.
(finished reviewing YOGClient.cpp)

Number of remaining changes to review

git diff stephanemagnenat/master..pull85 --stat | awk '{print $3, $1}' | perl -ne 'chomp;print "$_\n" if m/^\d+ (.*)$/ && $1 gt "src/YOGClientLobbyScreen.h"' | awk '{print $1}' | perl -E 'use List::Util "sum";my @numbers = map {chomp;$_} <>;say sum @numbers'

src/YOGClientPlayerListManager.h "This will return the list of players on hosted on the server." extra "on" here?
src/Utilities.cpp strmlen doesn't seem to be documented.
SGSL.cpp:405 There seems to be a bug here. Forbidden zone should be highlighted but instead t is set to HighlightWorkersWorkingFreeStat instead of HighlightForbiddenZoneOnPanel
SGSL.cpp:634 S_LOOSE should be S_LOSE.
OverlayAreas.cpp:139 Pythagorean theorem?

NetMessage.h:1564,1565 why a double private: modifier here?
NetMessage.cpp cool trick in NetSendGamePlayerInfo::downloadToGameHeader
NetMessage.cpp:3126 (NetSendReteamingInformation::operator==) shouldn't this method use dynamic_cast instead of typeid?

MapGenerator.h:55 voronoi?

Building::isHardSpaceForBuilding what is tltn variable? "type level to next"?
Game::executeOrder why the m in oMcf is capitalized?

PR#85 src/Building.cpp:2530 loop could be replaced with std::accumulate. Also, possible division by zero if type->maxResources array is full of zeroes.

SGSL is the old scripting language in the game; USL is the new one.

algae is limited by near underground? Explorers can attack?

@stephanemagnenat stephanemagnenat force-pushed the fix/orthograph branch 4 times, most recently from bbf2189 to c7bb44d Compare October 9, 2024 09:44
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.

3 participants