Commit Graph

242 Commits

Author SHA1 Message Date
Cerapter
ce350da473 Moved realisation to start_chat_ticking().
Since the realisation could have been called from two paths that were
previously one and the same (previously, the pre ending was the same as
the text starting -- with the inclusion of non-interrupting preanims,
these became different), in some select cases, the realisation could
have played twice.

As a solution to this, handling realisation is now done when the text
starts ticking, as that guarantees that the realisation happens only
once.
2018-12-18 11:29:06 +01:00
Cerapter
7ce1851ee5 Fixed a bug with the rainbow colour and inline colours.
You can now use all the inline commands when your overall text colour is
rainbow, like with every other overall text colour.
2018-12-18 00:53:23 +01:00
Cerapter
73b6e72ab9 Fix judge buttons not appearing & crash if MS goes down during play.
The former was caused by the position dropdown simply not having code to
make the judge buttons appear. Alongside that, the issue(?) where `/pos
judddd` (or variations) would not put the user in the judge position,
but gave them the buttons anyway.

The latter was caused by a simple mistake. We deleted the Lobby (and the
Courtroom) frequently, however, we never did set its (their) pointer(s)
back to null -- so they pointer to trash data, and the `if (w_lobby !=
nullptr)` part never failed.

This is also now fixed, and deletion of the Lobby or the Courtroom also
brings about the nulling of their pointers.
2018-12-17 11:08:20 +01:00
Cerapter
480db3e585 AO 2.6 bugfixes.
- The `base/` folder's path is now determined based on where the
executable was executed, not where its workspace is.
- Showing custom shownames is now assumed to be `true` by default,
unless the `config.ini` says otherwise.
- The Lobby's listing of servers has now been moved into its constructor
(previously only specifically called by the "Back to Lobby" button).
This makes it list servers even if the user was kicked, banned, or left
due to timeout.
2018-12-16 09:39:21 -06:00
oldmud0
6d1ea9d81f Add big ugly hack to fall back jury/seance backgrounds to witness 2018-12-15 10:56:59 -06:00
Cerapter
410b865bae Changed how the new netcodes are built, so they're properly encoded. 2018-12-14 20:44:22 +01:00
Cerapter
9b8173a1f9 Made case announcement use netcode instead of calling tsuserver commands. 2018-12-14 19:53:53 +01:00
Cerapter
1c6afdce99 Fixed a bug where there would be no sound on Windows during the first start. 2018-12-13 11:38:21 +01:00
Cerapter
c5d983033e Merged some duplicate functions.
Also brought in another function that specifically filters out inline
formatting characters, so that the append IC text function is a bit more
understandable.
2018-12-12 19:46:13 +01:00
Cerapter
941a32d99c Fixed a bug where your chatlog would completely erase if you had a limit of 0.
A limit of zero otherwise means infinite, so no log limit.
2018-12-12 18:55:16 +01:00
oldmud0
1852f92087 Overhaul theme
The only thing missing in this commit is a new background.
I am waiting for a higher-quality version of the AO logo.
2018-11-25 13:24:43 -06:00
oldmud0
5bf5a22833 Fix compile-time issues from merge 2018-11-17 20:12:12 -06:00
oldmud0
b385babf77 Fix case-insensitive paths on Linux (#34)
Closes #9
2018-11-17 19:57:27 -06:00
David Skoland
727c39a1df small fixes and removing compiler warnings 2018-11-16 02:26:47 +01:00
David Skoland
8ffdd2afb8 refactored path functions and added support for case-sensitive filesystems 2018-11-16 02:01:08 +01:00
David Skoland
051c8975ec added case insensitive path function for those filesystems 2018-11-15 23:56:58 +01:00
oldmud0
33cae53665 Merge AOV 2.5.1 into mainline 2018-11-10 23:50:51 -06:00
oldmud0
56ec03a23a Clean up style of merged in code 2018-11-10 23:08:43 -06:00
oldmud0
c7a58f89b1 Initial merge of Case Cafe 1.4.1 into mainline 2018-11-10 12:36:12 -06:00
Cerapter
e8bb1f1e49 Reverted the full stop silence feature.
With 3D characters, it made the game lag too much -- really wasn't worth
it.
2018-11-02 15:15:07 +01:00
Cerapter
a7fa843bd3 Don't fix what's doubly broken: Emote dropdown.
Made it so that emote dropdown only responds to activation, instead of
index changing, i.e., reverted to previous behaviour.

Emote changing already had a failsafe for the emote dropdown index
changing, which activated even when you clicked on the emotes. That made
it so that you'd get the Pre button ticked on emotes that didn't have
'em, and vice versa.
2018-11-02 15:08:39 +01:00
Cerapter
962289793d Added support for the stenographer role in case alerts. 2018-10-23 16:34:39 +02:00
Cerapter
de8badc9a6 Support for case alerts serverside.
- Users can use an ingame button to alert people of cases.
2018-10-23 16:15:15 +02:00
Cerapter
660daf9922 Client can now accept case alerts.
- Settings has a new tab with casing settings.
  - Can set when the game should alert of cases.
- In game tickbox to toggle if you should be alerted of cases.
2018-10-23 14:54:36 +02:00
Cerapter
bbf8d103b3 Changed dropdown menus so they activate even if you click an item in them. 2018-10-23 10:52:59 +02:00
Cerapter
3f41ed1341 Fixed the fullstop-silence bug.
Made it so that characters correctly switch to-and-fro idle / talking
anims during full stops, and don't interrupt non-interrupting pres.
2018-10-23 09:51:53 +02:00
Cerapter
546d3c8970 Moved bassopus stuff to its own function.
Not that it works, so whatever.
2018-10-23 09:33:58 +02:00
Cerapter
265714d9d5 Added support for opus files on Linux. 2018-10-03 21:24:13 +02:00
Cerapter
c17fe46e76 Added the ability to change the showname's colour. 2018-09-24 22:00:16 +02:00
Cerapter
795dea1ad2 Some UI bugfixes in regards to custom client features shown + nonint-pre fixes. 2018-09-23 14:09:10 +02:00
Cerapter
3c07f27be7 Generalised the music extension remover. 2018-09-23 11:19:14 +02:00
Cerapter
21aaa90c44 Made objections not necessarily play a pre, unless you have Pre ticked. 2018-09-20 23:32:32 +02:00
Cerapter
ff0f8c268a Full stops force the idle anim to play. 2018-09-20 23:14:32 +02:00
Cerapter
ab49e69067 Added the ability to give characters custom realisation sounds. 2018-09-20 22:13:03 +02:00
Cerapter
1ea16339e0 ...And the same with the client, too! 2018-09-20 18:46:21 +02:00
Cerapter
b73036724a Rolled all the special IC stuff into one FL packet piece.
So now, a standard CCCC server uses three bonus packets:
`modcall_reason`, `cccc_ic_support` and `arup`.
2018-09-20 16:41:32 +02:00
Cerapter
3de7e346ba Minor fix regarding area's being locked. 2018-09-18 19:01:13 +02:00
Cerapter
c8ae7746b7 Added the ability to name an author / authors for loaded cases. 2018-09-17 19:12:01 +02:00
Cerapter
99d2894ab3 Added the ability to set a default status and a CM doc for loaded cases. 2018-09-17 17:52:27 +02:00
Cerapter
41e12d304e /load_case command to quickly load cases. 2018-09-15 20:37:17 +02:00
Cerapter
29c91e63ea The IC chatlog can now show both name and showname, and can be exported.
- Toggle the 'Custom shownames' tickbox to switch between real names and
custom shownames.
- Type `/save_chatlog` in the OOC to export your IC chatlog into a file.
- Exporting the chatlog will append the date and time of the message,
too.
2018-09-15 12:35:01 +02:00
Cerapter
d54064d892 Server messages are now coloured differently. 2018-09-15 03:33:10 +02:00
Cerapter
fcd8f5b5ab Areas can now be spectatable, too.
- Makes it so that people can join, but can't type IC unless invited.
- The CM can set it with `/area_spectate`.
2018-09-15 02:33:18 +02:00
Cerapter
c1c042b93d Revert "Removed the dependency on bass.dll."
This reverts commit fe955d6923.
2018-09-15 01:42:44 +02:00
Cerapter
8006d40d14 Fixed bugs regarding noninterrupting pres.
- They are now actually non-interrupting when an interjection is played.
- Realisation now happens at the start of the message if the pre is
non-interrupting.
2018-09-15 01:16:28 +02:00
Cerapter
b33d0b0a3c Lowered the prosecutor / defence characters, so they don't float above some desks. 2018-09-07 10:02:35 +02:00
Cerapter
93cd2ad374 Non-interrupting pres. 2018-09-05 17:21:27 +02:00
Cerapter
78c339869d Inline text now also obey misc rules. 2018-09-05 02:25:04 +02:00
Cerapter
12727fcf7f misc folder given purpose as the 'default' for shouts and chatboxes.
- Default bubbles.
- Default shout sounds.
- Custom chatbox.
- Custom colours for the chatbox.
- No need to have duplicate files of bubbles and shouts all over the
character folders.
2018-09-05 02:07:23 +02:00
Cerapter
adfe21afd6 Added jur and sea positions. 2018-09-04 22:45:07 +02:00