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

Checks orders checks password, too. #134

Closed

Conversation

sheckman16
Copy link

This reads game.in and players.in to get the passwords from players.in.

A test in a local game ran as shown below. The local game contained game.in, players.in, and orders.3. Players.in had a password for faction 3 of "mypassword". Orders.3 specified a password of "notmypassword". The orders checker detects the error. When the password in orders.3 is changed to "mypassword", the orders checker reports no errors.

L$ ls
game.in orders.3 players.in
L$ grep -A2 'Faction (3)' players.in
Name: Faction (3)
Email: NoAddress
Password: mypassword
L$ cat orders.3
#atlantis 3 "notmypassword"
#end
L$ ../../Atlantis/neworigins/neworigins check orders.3 check.out && cat check.out
Atlantis Engine Version: 5.2.5 (beta)
NewOrigins, Version: 3.0.0 (beta)

Saved Game Engine Version: 5.2.5 (beta)
Saved Rule-Set Version: 3.0.0 (beta)
Reading the regions...
Setting up the neighbors...

*** Error: Incorrect password on #atlantis line. ***
#atlantis 3 "notmypassword"
#end

1 error found!
L$ sed -i s/notmypassword/mypassword/ orders.3
You have new mail in /var/mail/stan
L$ ../../Atlantis/neworigins/neworigins check orders.3 check.out && cat check.out
Atlantis Engine Version: 5.2.5 (beta)
NewOrigins, Version: 3.0.0 (beta)

Saved Game Engine Version: 5.2.5 (beta)
Saved Rule-Set Version: 3.0.0 (beta)
Reading the regions...
Setting up the neighbors...
#atlantis 3 "mypassword"
#end

No errors found.
L$

This reads game.in and players.in to get the passwords from players.in.
Copy link
Member

@artyomtrityak artyomtrityak left a comment

Choose a reason for hiding this comment

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

This PR has plenty of changes seem not related to password check.

@sheckman16
Copy link
Author

sheckman16 commented Sep 16, 2023 via email

Copy link
Member

@artyomtrityak artyomtrityak left a comment

Choose a reason for hiding this comment

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

Please cleanup all non-related changes

@jt-traub
Copy link
Contributor

jt-traub commented May 4, 2024

Adding this change to my branch to clean up some outstanding PRs . Sadly it could not be merged directly due to other conflicting changes which had occurred in the interim. Closing this PR as it is captured in that branch now.

@jt-traub
Copy link
Contributor

jt-traub commented May 5, 2024

Changes are in #186

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.

4 participants