Skip to content

Commit

Permalink
version 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
surrim committed Apr 8, 2023
1 parent 9733b16 commit 648bcda
Show file tree
Hide file tree
Showing 24 changed files with 106 additions and 87 deletions.
85 changes: 46 additions & 39 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
# moos 2.1

moos 2.1 has been modified by surrim. Original work by mensi and CABAListic.

## Changes for 2.1.0.2064
* fixed problem with special chars, disabled multi byte strings
* restoring the window size should work now

## Changes for 2.1.0.3062
* polish translation fixed (thanks to advance)
* end of line is now CR LF in translation files so you can edit them with notepad

## Changes for 2.1.0.3061
* Fixed bug with restoring invalid window positions
* welcome message is now replacing all "<*>" with white color code
* no check for "EarthNet Beta Server"
* fixed whois dialog
* generating login message without third invalid unsigned int (bugfix)
* edidted sizers and spaces
* text background color fixed
* fixed default path for language files

## Changes for 2.1.0.3055
* Rebuild with latest compiler and libs (GCC 4.5.0, wxWidgets 2.9.1, zlib 1.2.5)
* Fixed bug with restoring window position

## Changes for 2.1.0.3053
* Position will be restored
* No channels (e.g. #MoonNet) for autocomplete

## Changes for 2.1.0.3052
* Some fixes in polish.ini made by Winter

## Changes for 2.1.0.3051
* Some fixes for Linux
* EXE is compressed with UPX
* New Readme Link
* Some fixes in hungarian.ini made by Tas

# moos 2.2
* rewritten login code
* default "server" setting for moos.ini, server default ports
* default server is now netserver2150.insideearth.info, port 17171
* added CMake files, thanks to Vollkornwurst
* build targets fixed
* version updated to 2.2

## Changes for 2.1.0.2064
* fixed problem with special chars, disabled multi byte strings
* restoring the window size should work now

## Changes for 2.1.0.3062
* polish translation fixed (thanks to advance)
* end of line is now CR LF in translation files so you can edit them with notepad

## Changes for 2.1.0.3061
* Fixed bug with restoring invalid window positions
* welcome message is now replacing all "<*>" with white color code
* no check for "EarthNet Beta Server"
* fixed whois dialog
* generating login message without third invalid unsigned int (bugfix)
* edidted sizers and spaces
* text background color fixed
* fixed default path for language files

## Changes for 2.1.0.3055
* Rebuild with latest compiler and libs (GCC 4.5.0, wxWidgets 2.9.1, zlib 1.2.5)
* Fixed bug with restoring window position

## Changes for 2.1.0.3053
* Position will be restored
* No channels (e.g. #MoonNet) for autocomplete

## Changes for 2.1.0.3052
* Some fixes in polish.ini made by Winter

## Changes for 2.1.0.3051
* Some fixes for Linux
* EXE is compressed with UPX
* New Readme Link
* Some fixes in hungarian.ini made by Tas

## moos 2.1
* moos 2.1 has been modified by surrim. Original work by mensi and CABAListic.

2 changes: 1 addition & 1 deletion language/english.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ view=View
[translations/menus/help]
onlinereadme=Online Readme
mailbugs=Mail Bugs
about=About Moos 2.1...
about=About Moos 2.2...
[translations/menus/moos]
loginas=Login as...
logout=Logout
Expand Down
2 changes: 1 addition & 1 deletion language/german.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ view=Ansicht
[translations/menus/help]
onlinereadme=Online Readme
mailbugs=Bugs melden
about=Über Moos2.1...
about=Über Moos2.2...
[translations/menus/moos]
loginas=Einloggen als...
logout=Ausloggen
Expand Down
2 changes: 1 addition & 1 deletion language/hungarian.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ view=Nézet
[translations/menus/help]
onlinereadme=Internetes olvassel
mailbugs=E-mail a programhibákról
about=Moos 2.1 ről
about=Moos 2.2 ről
[translations/menus/moos]
loginas=Bejelentkezés mint...
logout=Kijelenkezés
Expand Down
2 changes: 1 addition & 1 deletion language/polish.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ view=Widok
[translations/menus/help]
onlinereadme=Sieciowy przewodnik
mailbugs=Powiadom o błędzie
about=O programie Moos 2.1...
about=O programie Moos 2.2...
[translations/menus/moos]
loginas=Zaloguj jako...
logout=Wyloguj
Expand Down
2 changes: 1 addition & 1 deletion language/russian.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ view=Просмотр
[translations/menus/help]
onlinereadme=Онлайн справка
mailbugs=Сообщить о баге
about=Справка о Moos 2.1
about=Справка о Moos 2.2
[translations/menus/moos]
loginas=Войти как...
logout=Выйти
Expand Down
14 changes: 7 additions & 7 deletions moos22.cbp
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="moos21" />
<Option title="moos22" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/debug/moos21" prefix_auto="0" extension_auto="0" />
<Option output="bin/debug/moos22" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/debug" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -22,7 +22,7 @@
</Linker>
</Target>
<Target title="Release">
<Option output="bin/release/moos21" prefix_auto="0" extension_auto="0" />
<Option output="bin/release/moos22" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/release" />
<Option type="0" />
<Option compiler="gcc" />
Expand All @@ -42,7 +42,7 @@
</ExtraCommands>
</Target>
<Target title="Debug (MinGW32)">
<Option output="bin/debug-mingw32/moos21.exe" prefix_auto="0" extension_auto="0" />
<Option output="bin/debug-mingw32/moos22.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/debug-mingw32" />
<Option type="0" />
<Option compiler="mingw32" />
Expand All @@ -61,7 +61,7 @@
</Linker>
</Target>
<Target title="Release (MinGW32)">
<Option output="bin/release-mingw32/moos21.exe" prefix_auto="0" extension_auto="0" />
<Option output="bin/release-mingw32/moos22.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/release-mingw32" />
<Option type="0" />
<Option compiler="mingw32" />
Expand All @@ -86,7 +86,7 @@
</ExtraCommands>
</Target>
<Target title="Debug (MinGW64)">
<Option output="bin/debug-mingw64/moos21.exe" prefix_auto="0" extension_auto="0" />
<Option output="bin/debug-mingw64/moos22.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/debug-mingw64" />
<Option type="0" />
<Option compiler="mingw64" />
Expand All @@ -105,7 +105,7 @@
</Linker>
</Target>
<Target title="Release (MinGW64)">
<Option output="bin/release-mingw64/moos21.exe" prefix_auto="0" extension_auto="0" />
<Option output="bin/release-mingw64/moos22.exe" prefix_auto="0" extension_auto="0" />
<Option object_output="obj/release-mingw64" />
<Option type="0" />
<Option compiler="mingw64" />
Expand Down
8 changes: 4 additions & 4 deletions src/base.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down Expand Up @@ -38,7 +38,7 @@ const wxString MoosApp::CONFIG_FILE(wxT("moos.ini"));

bool MoosApp::OnInit() {
wxImage::AddHandler(new wxPNGHandler);
MainFrame *win=new MainFrame(wxT("moos2.1"), wxDefaultPosition, wxSize(720, 480));
MainFrame *win=new MainFrame(wxT("moos2.2"), wxDefaultPosition, wxSize(720, 480));
win->Show();
SetTopWindow(win);
return true;
Expand Down Expand Up @@ -173,7 +173,7 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si
font.SetChosenFont(tmp);
font.EnableEffects(false);
SetBackgroundColour(wxColour(212, 208, 200));
chatHistory=wxT("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"><html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-16LE\"><title>moos2.1</title><style type=\"text/css\">body{background-color:#1F3038; color:#8C9FBB}pre{font-family:\"ms sans serif\", sans-serif;}</style></head><body><pre>");
chatHistory=wxT("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"><html><head><meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-16LE\"><title>moos2.2</title><style type=\"text/css\">body{background-color:#1F3038; color:#8C9FBB}pre{font-family:\"ms sans serif\", sans-serif;}</style></head><body><pre>");

moosMenu=new wxMenu;
moosMenu->Append(ID_MAINWIN_LOGIN_AS, langIni->Read(wxT("translations/menus/moos/loginas"), wxT("Login as...")));
Expand Down Expand Up @@ -210,7 +210,7 @@ MainFrame::MainFrame(const wxString& title, const wxPoint& pos, const wxSize& si
helpMenu->Append(ID_MAINWIN_ONLINEREADME, langIni->Read(wxT("translations/menus/help/onlinereadme"), wxT("Online Readme")));
helpMenu->Append(ID_MAINWIN_MAILBUGS, langIni->Read(wxT("translations/menus/help/mailbugs"), wxT("Mail Bugs")));
helpMenu->AppendSeparator();
helpMenu->Append(ID_MAINWIN_ABOUT, langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.1...")));
helpMenu->Append(ID_MAINWIN_ABOUT, langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.2...")));

menuBar=new wxMenuBar;
menuBar->Append(moosMenu, langIni->Read(wxT("translations/menus/moos"), wxT("Moos")));
Expand Down
2 changes: 1 addition & 1 deletion src/base.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
18 changes: 9 additions & 9 deletions src/connection.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down Expand Up @@ -35,7 +35,7 @@ static std::string compressMessage(const std::string& message) {
uLongf compressedMessageSize = 1000;
std::string compressedMessage(compressedMessageSize, '\0');
if (compress((Bytef*)compressedMessage.data(), &compressedMessageSize, (const Bytef*)message.data(), message.size()) != Z_OK) {
wxMessageDialog(nullptr, wxT("compression error"), wxT("moos2.1"), wxOK | wxCENTRE | wxICON_ERROR).ShowModal();
wxMessageDialog(nullptr, wxT("compression error"), wxT("moos2.2"), wxOK | wxCENTRE | wxICON_ERROR).ShowModal();
}
return compressedMessage.substr(0, compressedMessageSize);
}
Expand Down Expand Up @@ -83,7 +83,7 @@ void MainFrame::OnConnectionLost() {
if (socket->IsConnected()) {
socket->Close();
}
if (InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"), langIni->Read(wxT("translations/dialogtext/reconnect"), wxT("Connection lost. Try to reconnect?")), 1).ShowModal()==wxID_YES) {
if (InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"), langIni->Read(wxT("translations/dialogtext/reconnect"), wxT("Connection lost. Try to reconnect?")), 1).ShowModal()==wxID_YES) {
loginAs(
loginName,
loginPassword,
Expand Down Expand Up @@ -179,7 +179,7 @@ void MainFrame::OnIncomingData() {
* ... and handle the incomming data depending on that state instead
* of the first char ("/" or "$"), and "guessing the state".
* This is implemented in moos3 but needs classes; Rewriting
* many parts of moos2.1 would end up in another moos3...
* many parts of moos2.x would end up in another moos3...
*/
}
uint32_t serverIdentifierSize = readU32(cbufferpos); cbufferpos += 4;
Expand Down Expand Up @@ -226,25 +226,25 @@ void MainFrame::OnIncomingData() {
auto contentlen = readU32(cbufferpos); cbufferpos += 4;
auto content = readString(cbufferpos, contentlen); cbufferpos += contentlen;
if (content == "translateInvalidCharactersInName") {
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"), langIni->Read(wxT("translations/dialogtext/illegalusername"),
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"), langIni->Read(wxT("translations/dialogtext/illegalusername"),
wxT("Error: Your user name contains invalid characters"))).ShowModal();
moosIni->DeleteGroup(wxT("accounts/") + Base64Encode(loginName));
loginName = wxEmptyString;
} else if (content == "translateInvalidUserName") {
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"),
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"),
langIni->Read(wxT("translations/dialogtext/userdoesntexist"), wxT("Error: Invalid user name"))).ShowModal();
moosIni->DeleteGroup(wxT("accounts/") + Base64Encode(loginName));
loginName = wxEmptyString;
} else if (content == "translateInvalidPassword") {
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"),
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"),
langIni->Read(wxT("translations/dialogtext/wrongpassword"), wxT("Error: Invalid password"))).ShowModal();
moosIni->DeleteEntry(wxT("accounts/") + Base64Encode(loginName) + wxT("/password"), false);
} else if (content == "translateAlreadyLogIn") {
moosIni->Write(wxT("accounts/") + Base64Encode(loginName) + wxT("/password"), Base64Encode(loginPassword, true));
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"),
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"),
langIni->Read(wxT("translations/dialogtext/allreadyloggedin"), wxT("Error: The user is already logged in"))).ShowModal();
} else {
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.1"), wxString(content.data(), wxConvISO8859_1, content.size())).ShowModal();
InfoDialog(this, langIni, font.GetChosenFont(), wxT("moos2.2"), wxString(content.data(), wxConvISO8859_1, content.size())).ShowModal();
moosIni->DeleteGroup(wxT("accounts/") + Base64Encode(loginName));
loginName = wxEmptyString;
}
Expand Down
2 changes: 1 addition & 1 deletion src/enums.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
26 changes: 19 additions & 7 deletions src/helpmenu.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand All @@ -22,19 +22,31 @@
#include <wx/fileconf.h>

void MainFrame::OnOnlineReadme(wxCommandEvent& WXUNUSED(event)) {
wxLaunchDefaultBrowser(wxT("https://old.surrim.org/?moos"));
wxLaunchDefaultBrowser(wxT("https://surrim.org/moon-project/moos.html"));
}

void MainFrame::OnMailBugs(wxCommandEvent& WXUNUSED(event)) {
wxLaunchDefaultBrowser(wxT("mailto:moosbugs@arcor.de?subject=moosbugs"));
wxLaunchDefaultBrowser(wxT("mailto:moosbugs@surrim.org?subject=moosbugs"));
}

void MainFrame::OnAbout(wxCommandEvent& WXUNUSED(event)) {
InfoDialog(this, langIni, font.GetChosenFont(), langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.1...")),
InfoDialog(this, langIni, font.GetChosenFont(), langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.2...")),
wxT(R"raw(
MoonNet Omnipresent Observation System 2.1.1
moos2.1 is an Inside Earth Operations application (www.insideearth.de) written by mensi ([email protected]), modified by surrim.
MoonNet Omnipresent Observation System 2.2
moos is an Inside Earth Operations application (www.insideearth.de)
written by mensi ([email protected]), modified by surrim.
This program is freeware WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
moos is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
moos is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with moos. If not, see <http://www.gnu.org/licenses/>.
)raw")).ShowModal();
}
2 changes: 1 addition & 1 deletion src/infodialog.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
2 changes: 1 addition & 1 deletion src/infodialog.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
2 changes: 1 addition & 1 deletion src/inputdialog.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
2 changes: 1 addition & 1 deletion src/inputdialog.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
2 changes: 1 addition & 1 deletion src/moosmenu.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
4 changes: 2 additions & 2 deletions src/settingsmenu.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down Expand Up @@ -113,7 +113,7 @@ void MainFrame::OnSelectLanguage(wxCommandEvent& WXUNUSED(event)) {
settingsMenu->SetLabel(ID_MAINWIN_SELECT_LANGUAGE, langIni->Read(wxT("translations/menus/settings/selectlanguage"), wxT("Select Language...")));
helpMenu->SetLabel(ID_MAINWIN_ONLINEREADME, langIni->Read(wxT("translations/menus/help/onlinereadme"), wxT("Online Readme")));
helpMenu->SetLabel(ID_MAINWIN_MAILBUGS, langIni->Read(wxT("translations/menus/help/mailbugs"), wxT("Mail Bugs")));
helpMenu->SetLabel(ID_MAINWIN_ABOUT, langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.1...")));
helpMenu->SetLabel(ID_MAINWIN_ABOUT, langIni->Read(wxT("translations/menus/help/about"), wxT("About Moos 2.2...")));
menuBar->SetMenuLabel(0, langIni->Read(wxT("translations/menus/moos"), wxT("Moos")));
menuBar->SetMenuLabel(1, langIni->Read(wxT("translations/menus/user"), wxT("User")));
menuBar->SetMenuLabel(2, langIni->Read(wxT("translations/menus/view"), wxT("View")));
Expand Down
2 changes: 1 addition & 1 deletion src/tools.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2011-2017 surrim
/* Copyright 2011-2023 surrim
*
* This file is part of moos.
*
Expand Down
Loading

0 comments on commit 648bcda

Please sign in to comment.