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

2.8.5 #246

Merged
merged 57 commits into from
Aug 21, 2020
Merged

2.8.5 #246

Show file tree
Hide file tree
Changes from 54 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
dbde914
Bundle QtApng on Windows
oldmud0 May 17, 2020
c9b9822
CI: Copy qapng.dll to correct location
oldmud0 May 18, 2020
bc4fd2b
CI: Don't use dynamic QtApng on Windows
oldmud0 May 19, 2020
4f8367b
CI: Fix YAML syntax error
oldmud0 May 19, 2020
8989c4f
CI: Update Dockerfile
oldmud0 May 19, 2020
7754175
CI: use simpler release script
oldmud0 May 20, 2020
2cf5a04
wasabi_program.sh: use bash instead of sh
oldmud0 May 20, 2020
8a4d5e8
CI: install more dependencies for publish job
oldmud0 May 20, 2020
5a023e3
CI: npm install before running script
oldmud0 May 20, 2020
07e1127
Fix current_display_speed overflow (#232)
likeawindrammer Aug 4, 2020
6305180
Fix music display disappearing on theme reload (#233)
likeawindrammer Aug 4, 2020
0ce60d6
Fix not using custom chatbox's colors (#228)
likeawindrammer Aug 5, 2020
b04b22b
Update Russian translation (excl. courtroom UI) (#239)
schastev Aug 6, 2020
593e9d7
Miscellaneous changes to CI scripts
oldmud0 Apr 17, 2019
e88f885
Merge master with some older CI changes
oldmud0 Aug 13, 2020
8b44d4a
Only regenerate the area list once per ARUP packet
Aug 16, 2020
102ca4d
Create brushes for area list once
Aug 16, 2020
0020863
Check for custom realization sound when using effects list
Aug 16, 2020
11250e1
Ensure consistent behavior in IC log, clarify showname logic, and def…
Aug 16, 2020
079ce93
Remove clientside doublepost checking
Aug 16, 2020
3460474
Merge pull request #245 from scatterflower/realization_fix
mposs00 Aug 16, 2020
cd3ddfe
Update brushes on theme reload
Aug 16, 2020
de6a2ba
Merge pull request #244 from scatterflower/is241
mposs00 Aug 16, 2020
507180d
Clean up logic in handle_chatmessage()
Aug 16, 2020
42d9396
Fix improper bolding behavior due to malformed string literal
Aug 16, 2020
a316933
Merge pull request #250 from scatterflower/boldfix
mposs00 Aug 16, 2020
5c6dad8
Merge branch '2.8' into ic_fixes
mposs00 Aug 16, 2020
e546ead
Merge pull request #1 from scatterflower/ic_fixes
mposs00 Aug 16, 2020
1c5b097
further cleanup of chat handler
Aug 16, 2020
95725eb
fix incorrect emote modifier
Aug 16, 2020
3c031db
fix check for negative char_id
Aug 16, 2020
4b7efc8
allow -1 charid for system messages
Aug 16, 2020
89aa821
Merge pull request #251 from scatterflower/2.8
mposs00 Aug 16, 2020
8712ed3
Don't hang IC due to invalid emote mod
Aug 16, 2020
c5f8fc8
make suggested changes from code review
Aug 17, 2020
1bbfd71
Merge pull request #253 from scatterflower/2.8
mposs00 Aug 17, 2020
ae7c36e
use proper syntax to instansiate qbrush
Aug 17, 2020
359cad7
use shownames in log properly
Aug 17, 2020
ecb0ee4
clang format
Aug 17, 2020
c24ecc3
Merge pull request #254 from scatterflower/2.8
mposs00 Aug 17, 2020
da00208
Do not update colors in log for each IC message
Aug 17, 2020
4ada75a
fix statement after break; from case
Aug 17, 2020
3c13a68
Merge pull request #255 from scatterflower/2.8
mposs00 Aug 17, 2020
475a572
Improved blankposting (#256)
Crystalwarrior Aug 18, 2020
76af6c0
CI: Pin Linux target to Ubuntu 16.04 (Qt 5.9.5)
oldmud0 Aug 18, 2020
d10ad44
CI: Build QtApng on Linux
oldmud0 Aug 18, 2020
a9ca555
CI: Fix nested base folders in artifact
oldmud0 Aug 18, 2020
c984c57
Update themes reference
likeawindrammer Aug 19, 2020
cef0ebc
IC log rewrite (#259)
Crystalwarrior Aug 19, 2020
9eb0f53
Reset BASS when switching devices; drop Qt Multimedia support (#262)
mposs00 Aug 19, 2020
7cd0fa0
version bump to 2.8.5
Aug 20, 2020
5e1474f
Merge some various CI changes
oldmud0 Aug 20, 2020
a7a33eb
Update themes submodule
oldmud0 Aug 20, 2020
accca95
Rename serverlist.txt -> serverlist.sample.txt
oldmud0 Aug 20, 2020
385f476
gitignore: Ignore base/serverlist.txt
likeawindrammer Aug 21, 2020
894abc0
Translations: Update Spanish
likeawindrammer Aug 21, 2020
af1e760
Translations: Update Portuguese
likeawindrammer Aug 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
51 changes: 31 additions & 20 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ stages:

cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- lib/

variables:
DEBIAN_FRONTEND: noninteractive
Expand All @@ -15,7 +13,7 @@ before_script:
- echo Current working directory is $(pwd)

build linux x86_64:
image: ubuntu
image: ubuntu:18.04
stage: build
tags:
- docker
Expand All @@ -34,15 +32,15 @@ build linux x86_64:
- clang --version

# Extract BASS
#- mkdir bass
#- cd bass
#- curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
#- unzip bass.zip
#- cp x64/libbass.so ../lib
#- curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus.zip
#- unzip bassopus.zip
#- cp x64/libbassopus.so ../lib
#- cd ..
- mkdir bass
- cd bass
- curl http://www.un4seen.com/files/bass24-linux.zip -o bass.zip
- unzip bass.zip
- cp x64/libbass.so ../lib
- curl http://www.un4seen.com/files/bassopus24-linux.zip -o bassopus.zip
- unzip bassopus.zip
- cp x64/libbassopus.so ../lib
- cd ..

# Extract Discord RPC
- mkdir discord-rpc
Expand All @@ -53,21 +51,32 @@ build linux x86_64:
- cd ..

# Extract QtApng
- mkdir qtapng
- cd qtapng
- curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_gcc_64_5.12.0.tar.xz -o apng.tar.xz
- tar -xvf apng.tar.xz
- cp gcc_64/plugins/imageformats/libqapng.so ../lib
#- mkdir qtapng
#- cd qtapng
#- curl -L https://github.com/Skycoder42/QtApng/releases/download/1.1.0-5/build_gcc_64_5.12.0.tar.xz -o apng.tar.xz
#- tar -xvf apng.tar.xz
#- cp gcc_64/plugins/imageformats/libqapng.so ../lib
#- cd ..

# Build QtApng
- git clone https://github.com/Skycoder42/QtApng
- cd QtApng
- qmake -spec linux-clang
# Don't make examples - they're not compatible with Qt 5.9
- make -j4 sub-src
#- make sub-src-install_subtargets
- cp plugins/imageformats/libqapng.so ../lib
- cd ..

# Build
- qmake -spec linux-clang "DEFINES += DISCORD QTAUDIO"
- qmake -spec linux-clang "DEFINES += DISCORD"
- make -j4

# Post-processing
- upx --lzma -9 --force bin/Attorney_Online
artifacts:
paths:
- lib/
- bin/

build windows i686:
Expand Down Expand Up @@ -109,19 +118,21 @@ build windows i686:
- ls lib

# Build
- /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD BASSAUDIO"
- /opt/mxe/usr/${TARGET_SPEC}/qt5/bin/qmake "DEFINES += DISCORD"
- make -j4

# Post-processing
- upx --lzma -9 --force bin/Attorney_Online.exe
artifacts:
paths:
- lib/
- bin/

# Base folder
.deploy_base: &deploy_base |
mkdir base
cp -a ../base/ base/
rm -rf base/themes/_Unadapted/
rm base/themes/.gitattributes base/themes/.git

# Miscellaneous files
.deploy_misc: &deploy_misc |
Expand Down
34 changes: 7 additions & 27 deletions Attorney_Online.pro
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ QT += core gui widgets network
TARGET = Attorney_Online
TEMPLATE = app

VERSION = 2.8.4.0
VERSION = 2.8.5.0
Copy link
Contributor

Choose a reason for hiding this comment

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

😎


INCLUDEPATH += $$PWD/include
DESTDIR = $$PWD/bin
Expand All @@ -22,35 +22,15 @@ contains(DEFINES, DISCORD) {
LIBS += -ldiscord-rpc
}

# Uncomment to enable the BASS audio engine
# (Recommended for Windows)
# DEFINES += BASSAUDIO

contains(DEFINES, BASSAUDIO) {
LIBS += -lbass
LIBS += -lbassopus
}

# Uncomment to enable the Qt audio engine
# (Recommended for non-Windows platforms)
# DEFINES += QTAUDIO

contains(DEFINES, QTAUDIO) {
QT += multimedia
}

AUDIO_DEFINES = $$find(DEFINES, BASSAUDIO) $$find(DEFINES, QTAUDIO)
count(AUDIO_DEFINES, 0) {
warning("No audio system selected. Your build will not have audio.")
}

count(AUDIO_DEFINES, 2) {
error("More than one audio system selected.")
}
# As of 2.8.5, BASS and BASSOPUS are required for all platforms. Qt Multimedia
# is no longer an option due to outdated code and lack of versatility.
# Download at un4seen.com and place the DLLs in the "lib" and "bin" folders.
DEFINES += BASSAUDIO
LIBS += -lbass
LIBS += -lbassopus

macx:LIBS += -framework CoreFoundation -framework Foundation -framework CoreServices


CONFIG += c++14

RESOURCES += resources.qrc
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion base/themes
Submodule themes updated 83 files
+ AceAttorney 2x/chat.png
+ AceAttorney 2x/chat_arrow.gif
+ AceAttorney 2x/chatbig.png
+ AceAttorney 2x/chatblank.png
+ AceAttorney 2x/chatmed.png
+121 −125 AceAttorney 2x/courtroom_design.ini
+6 −6 AceAttorney 2x/courtroom_fonts.ini
+36 −0 AceAttorney 2x/courtroom_stylesheets.css
+ AceAttorney 2x/courtroombackground.png
+ AceAttorney 2x/igiari-cyrillic.ttf
+ AceAttorney 2x/music_display.png
+ AceAttorney 2x/placeholder.png
+ AceAttorney 2x/px_Arial_8pt.ttf
+ AceAttorney/Igiari.ttf
+0 −10 AceAttorney/courtroom_config.ini
+1 −1 AceAttorney/courtroom_fonts.ini
+ AceAttorney/igiari-cyrillic.ttf
+ AceAttorney/px_Arial_8pt.ttf
+ DRRetribution/Thumbs.db
+ DRRetribution/V3/ClassTrialEND.wav
+ DRRetribution/V3/ClassTrialSTART.wav
+ DRRetribution/V3/DRV3Gloom.wav
+ DRRetribution/V3/guilty.gif
+ DRRetribution/V3/notguilty.gif
+ DRRetribution/V3/nsdstart.gif
+ DRRetribution/V3/question.gif
+0 −56 DRRetribution/_alt_courtroom_fonts.ini
+ DRRetribution/arrow_left.png
+ DRRetribution/arrow_right.png
+ DRRetribution/chat.png
+ DRRetribution/chatbig.png
+ DRRetribution/chatblank.png
+ DRRetribution/chatmed.png
+0 −8 DRRetribution/courtroom_sounds.ini
+ DRRetribution/courtroombackground.png
+ DRRetribution/crossexamination.gif
+ DRRetribution/crossexamination.pdn
+ DRRetribution/crossexamination.png
+ DRRetribution/custom.png
+ DRRetribution/custom_selected.png
+0 −28 DRRetribution/design.ini
+ DRRetribution/emote_selected.png
+ DRRetribution/evidence_appear_left.gif
+ DRRetribution/evidence_appear_right.gif
+ DRRetribution/evidence_background.png
+ DRRetribution/evidence_background_private.png
+ DRRetribution/evidence_overlay.png
+ DRRetribution/evidence_overlay_private.png
+ DRRetribution/evidence_selector.png
+ DRRetribution/evidencebackground.png
+ DRRetribution/evidenceoverlay.png
+ DRRetribution/guilty.gif
+ DRRetribution/guilty.png
+ DRRetribution/guilty_on.png
+0 −17 DRRetribution/lobby_design.ini
+ DRRetribution/notguilty.gif
+ DRRetribution/notguilty.png
+ DRRetribution/notguilty_on.png
+ DRRetribution/present.png
+ DRRetribution/present_disabled.png
+ DRRetribution/realization.png
+ DRRetribution/realization_pressed.png
+ DRRetribution/sdr2/ClassTrialEND.wav
+ DRRetribution/sdr2/ClassTrialSTART.wav
+ DRRetribution/sdr2/DRannouncement.wav
+ DRRetribution/sdr2/cycle.wav
+ DRRetribution/sdr2/guilty.gif
+ DRRetribution/sdr2/investigation.wav
+ DRRetribution/sdr2/nonstop.wav
+ DRRetribution/sdr2/notguilty.gif
+ DRRetribution/testimony.gif
+ DRRetribution/testimony.png
+ DRRetribution/tnlib_panel_button.png
+ DRRetribution/tnlib_panel_button_pressed.png
+ DRRetribution/witnesstestimony.gif
+ DRRetribution/witnesstestimony.png
+2 −2 KFO 2x Theme/courtroom_design.ini
+ KFO 2x Theme/placeholder.png
+11 −11 KFO 2x Widescreen/courtroom_design.ini
+ KFO 2x Widescreen/placeholder.png
+0 −10 default/courtroom_config.ini
+2 −2 default/courtroom_design.ini
+0 −118 default/meme.ini
29 changes: 21 additions & 8 deletions include/aoapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
#include "datatypes.h"
#include "discord_rich_presence.h"

#include "bass.h"
#include "bassopus.h"

#include <QApplication>
#include <QFile>
#include <QSettings>
Expand All @@ -23,9 +26,6 @@
#include <QScreen>
#include <QStringList>
#include <QTextStream>
#ifdef QTAUDIO
#include <QAudioDeviceInfo>
#endif

class NetworkManager;
class Lobby;
Expand Down Expand Up @@ -202,7 +202,8 @@ class AOApplication : public QApplication {

// Returns the value of whether custom chatboxes should be a thing.
// from the config.ini.
// I am increasingly maddened by the lack of dynamic auto-generation system for settings.
// I am increasingly maddened by the lack of dynamic auto-generation system
// for settings.
bool is_customchat_enabled();

// Returns the value of the maximum amount of lines the IC chatlog
Expand All @@ -213,14 +214,20 @@ class AOApplication : public QApplication {
// or downwards (vanilla behaviour).
bool get_log_goes_downwards();

// Returns whether the log should separate name from text via newline or :
bool get_log_newline();

// Get spacing between IC log entries.
int get_log_margin();

// Returns whether the log should have a timestamp.
bool get_log_timestamp();

// Returns the username the user may have set in config.ini.
QString get_default_username();

// Returns the audio device used for the client.
QString get_audio_output_device();
#ifdef QTAUDIO
QAudioDeviceInfo QtAudioDevice;
#endif

// Returns whether the user would like to have custom shownames on by default.
bool get_showname_enabled_by_default();
Expand Down Expand Up @@ -433,10 +440,16 @@ class AOApplication : public QApplication {
// The file name of the log file in base/logs.
QString log_filename;

void initBASS();
static void load_bass_opus_plugin();
static void CALLBACK BASSreset(HSTREAM handle, DWORD channel, DWORD data,
void *user);
static void doBASSreset();

private:
const int RELEASE = 2;
const int MAJOR_VERSION = 8;
const int MINOR_VERSION = 4;
const int MINOR_VERSION = 5;

QString current_theme = "default";

Expand Down
8 changes: 0 additions & 8 deletions include/aoblipplayer.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#ifndef AOBLIPPLAYER_H
#define AOBLIPPLAYER_H

#if defined(BASSAUDIO)
#include "bass.h"
#include "bassopus.h"
#elif defined(QTAUDIO)
#include <QSoundEffect>
#endif

#include "aoapplication.h"

Expand Down Expand Up @@ -35,11 +31,7 @@ class AOBlipPlayer {

void set_volume_internal(qreal p_volume);

#if defined(BASSAUDIO)
HSTREAM m_stream_list[5];
#elif defined(QTAUDIO)
QSoundEffect m_blips;
#endif
};

#endif // AOBLIPPLAYER_H
8 changes: 0 additions & 8 deletions include/aomusicplayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
#define AOMUSICPLAYER_H
#include "file_functions.h"

#if defined(BASSAUDIO)
#include "bass.h"
#include "bassopus.h"
#elif defined(QTAUDIO)
#include <QMediaPlayer>
#endif

#include "aoapplication.h"

Expand Down Expand Up @@ -44,12 +40,8 @@ public slots:
// Channel 1 = ambience
// Channel 2 = extra
// Channel 3 = extra
#if defined(BASSAUDIO)
HSTREAM m_stream_list[4];
HSYNC loop_sync[4];
#elif defined(QTAUDIO)
QMediaPlayer m_stream_list[4];
#endif
};

#endif // AOMUSICPLAYER_H
6 changes: 6 additions & 0 deletions include/aooptionsdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ class AOOptionsDialog : public QDialog {
QCheckBox *ui_downwards_cb;
QLabel *ui_length_lbl;
QSpinBox *ui_length_spinbox;
QLabel *ui_log_newline_lbl;
QCheckBox *ui_log_newline_cb;
QLabel *ui_log_margin_lbl;
QSpinBox *ui_log_margin_spinbox;
QLabel *ui_log_timestamp_lbl;
QCheckBox *ui_log_timestamp_cb;
QFrame *ui_log_names_divider;
QLineEdit *ui_username_textbox;
QLabel *ui_username_lbl;
Expand Down
8 changes: 0 additions & 8 deletions include/aosfxplayer.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
#ifndef AOSFXPLAYER_H
#define AOSFXPLAYER_H

#if defined(BASSAUDIO)
#include "bass.h"
#include "bassopus.h"
#elif defined(QTAUDIO)
#include <QSoundEffect>
#endif

#include "aoapplication.h"

Expand Down Expand Up @@ -37,11 +33,7 @@ class AOSfxPlayer {

const int m_channelmax = 5;

#if defined(BASSAUDIO)
HSTREAM m_stream_list[5];
#elif defined(QTAUDIO)
QSoundEffect m_stream_list[5];
#endif
};

#endif // AOSFXPLAYER_H
8 changes: 4 additions & 4 deletions include/chatlogpiece.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ class chatlogpiece {
public:
chatlogpiece();
chatlogpiece(QString p_name, QString p_showname, QString p_message,
bool p_song,int color);
QString p_action,int color);
chatlogpiece(QString p_name, QString p_showname, QString p_message,
bool p_song, int color, QDateTime p_datetime);
QString p_action, int color, QDateTime p_datetime);

QString get_name();
QString get_showname();
QString get_message();
bool is_song();
QString get_action();
QDateTime get_datetime();
QString get_datetime_as_string();
int get_chat_color();
Expand All @@ -27,9 +27,9 @@ class chatlogpiece {
QString name;
QString showname;
QString message;
QString action;
QDateTime datetime;
int color;
bool p_is_song;
};

#endif // CHATLOGPIECE_H