Commit Graph

90 Commits

Author SHA1 Message Date
Barra Ó Catháin fde867d25b Noted that GNU Guile is now required to build SilverMUD. 2023-04-14 21:35:38 +01:00
Barra Ó Catháin adfba9afe4 Documented /shout in Player's Guide 2023-04-14 21:34:27 +01:00
Barra Ó Catháin db00fc94a8 Why not both a REPL and a REPL server? 2023-04-13 03:00:28 +01:00
Barra Ó Catháin 70bdb879bf Remove debugging message. 2023-04-13 02:51:06 +01:00
Barra Ó Catháin a9c600219f Replaced the Guile REPL with a Guile REPL server for Emacs glory. 2023-04-13 02:42:22 +01:00
Barra Ó Catháin 7118d8e3d7 Add "shout" as an example of a scheme procedure. 2023-04-13 02:26:36 +01:00
Barra Ó Catháin f1673754bf Fix a typo in the makefile. 2023-04-13 02:26:12 +01:00
Barra Ó Catháin c032aa7dad Fix a segfault that happens when a client fails a handshake. 2023-04-13 02:25:43 +01:00
Barra Ó Catháin b3ef4c1bb9 Added a basic-functions scheme file.
I'll need a consistent way to load these files.
Perhaps I actually need a proper build system now.
Autotools, here we come?
2023-04-12 23:29:57 +01:00
Barra Ó Catháin 35b3e939f1 Fixed typo that causes the compile to fail. 2023-04-12 22:24:38 +01:00
Barra Ó Catháin 7b266bfc51 Enable readline for Guile and enable Guile for the game logic thread 2023-04-11 23:41:28 +01:00
Barra Ó Catháin 701335c236 Squashed version of:
Altered some header files to prevent cycles confusing LSP

Switched to correct ncurses function for just printing a string.

Make cleaning manual in the makefile. It's getting bigger.

Squash the warning about strncpy.

Added LSP shtuff to the gitignore
2023-04-11 15:22:40 +01:00
Barra Ó Catháin 3419ef1804 Added scheme_create_area and scheme_create_path. 2023-04-11 13:27:54 +01:00
Barra Ó Catháin c9e19364d7 Switched from _exit to exit in the sigintHandler.
Not sure why I ended up with _exit. Perhaps an unlucky keypress, but it's the incorrect function to use in this case.
2023-04-11 11:56:57 +01:00
Barra Ó Catháin b5f2f44fcc Improved makefile.
- Makefile now doesn't hardcode gcc. (Whether SilverMUD is compiler agnostic remains to be seen.)
- The first target is now all, which compiles a "release" build.
- General cleanup, removal of duplicate variables, and commenting.
2023-04-11 11:33:36 +01:00
Barra Ó Catháin 7e1a94820d Added gitignore - took a while! 2023-04-11 11:16:29 +01:00
Barra Ó Catháin 6fd7f65326 Made SCM values use snake_case 2023-04-09 23:52:14 +01:00
Barra Ó Catháin ce74a78576 Added /talk to the manual, and added some rules about casing. 2023-04-08 23:23:24 +01:00
Barra Ó Catháin ce54fb8033 Added change-area-name to Scheme, and ensured strings are terminated 2023-04-07 22:49:15 +01:00
Barra Ó Catháin 8d4758bea1 Forgot to add to previous commit. 2023-04-07 22:13:45 +01:00
Barra Ó Catháin fd846c7744 Added change-area-description to the Scheme functions. 2023-04-07 22:13:26 +01:00
Barra Ó Catháin 4696a1ec32 Adedd some comments to schemeintegration.c 2023-04-06 23:09:20 +01:00
Barra Ó Catháin 6b01917c11 Added a message-everyone scheme function. 2023-04-05 21:34:57 +01:00
Barra Ó Catháin adc036a1ae Added create-skill to the Scheme intepreter. 2023-03-25 23:56:25 +00:00
Barra Ó Catháin 8dab8bfd06 Begin adding Scheme intepreretation.
We now have a scheme thread and a interpreter.
2023-03-25 21:38:00 +00:00
Barra Ó Catháin 995a177c37 Increased prompt reprint delay.
- The client's prompt now delays for twice as long to ensure that an updated prompt is displayed next.
2023-03-01 23:14:37 +00:00
Barra Ó Catháin 8f08265c52 Talking messages now appear in the chat log correctly.
- Added logic to properly add the relevant users in the correct order to ensure message delivery.
2023-02-27 20:00:50 +00:00
Barra Ó Catháin 84c20dfdbf Actually fixed it this time, and squashed some warnings. 2023-02-27 17:12:03 +00:00
Barra Ó Catháin f83c03aadf Fixed the name being sent to the wrong user's prompt while talking.
- The talking prompt was being sent to the receiving user, not the sending user.
2023-02-27 17:07:03 +00:00
Barra Ó Catháin 50f4e6c38a Forgot to pull.
Merge branch 'dev' of ssh://dunseverick.ocathain.ie:2222/barra/SilverMUD into dev
2023-02-27 16:39:05 +00:00
Barra Ó Catháin a99296e31e Added a list of players in the area to /look.
- /look now lists the current players in the area.
2023-02-27 16:35:32 +00:00
Barra Ó Catháin 408033d48a Talking now changes the prompt.
- The server will now change the prompt for a user who begins a conversation with another player to that player's name.
2023-02-26 00:16:07 +00:00
Barra Ó Catháin 8814a45c52 ALlowed for the server to change client prompt.
- The server can now send some data in the normally unused "senderName" field for a server mesasge.
- This will be set as the prompt for the client.
2023-02-25 23:04:35 +00:00
Barra Ó Catháin 0add957224 Changed from bzero to memset
- All instances of bzero have been replaced in an effort to make SilverMUD slightly easier to port.
2023-02-25 19:51:47 +00:00
Barra Ó Catháin 26a5496594 Added shouting.
- Players can now use /shout to send a message to the current room while talking.
- No longer adding unnecessary newlines to /talk.
2023-02-20 23:30:41 +00:00
Barra Ó Catháin b3a0345b19 Added initial support for talking.
- /talk now allows you to begin a conversation, given a player name, or end one, given no arguments.
- The client now properly clears previous messages when sending to the server.
- Added talkingWith to playerInfo.
2023-02-19 22:13:06 +00:00
Barry Kane caa792de8d Added the AGPLv3 as the license, and renamed SilverMUD.org. 2023-02-19 11:28:16 +00:00
Barry Kane afedf15c63 Updated the evaluateNextCommand to use a hash instead of strncmp
- Added hashCommand.
- Refactored evaluateNextCommand to use hashCommand to jump to the correct functionality with a switch.
2023-02-19 00:32:03 +00:00
Barry Kane e6a13ed2ac Added a MOTD command-line option to SilverMUD Server.
- Added a message of the day option, -m, to SilverMUDServer.
- Adjusted the character delay to 800 in SilverMUDServer.
2023-02-17 15:05:49 +00:00
Barry Kane 9dabdcfba7 Oops, wrong word. Changed "try" to "talk." 2023-02-16 23:15:02 +00:00
Barry Kane b61520b998 Add non-functional stub for talk.
- Added a message upon running '/talk'. This allows me to see if the command is actually executed.
2023-02-16 23:08:18 +00:00
Barry Kane ff281e5ce6 Increment version number 2023-02-15 22:16:12 +00:00
Barry Kane f5cb3ad16e More cleaning up.
- Brought remaining files in line with style guides, and improved comments.
2023-02-15 22:09:21 +00:00
Barry Kane f31f0c79a5 Cleaned up gamelogic.c/h
- Improved comments to clarify the purpose and usage of the data structures and functions.
- Brought the files in line with the SilverMUD style guide.
2023-02-15 21:43:13 +00:00
Barry Kane c2af4a551a Cleaned up inputoutput.h
- Changed the comments about the data structures to be more descriptive about their function.
2023-02-15 21:30:40 +00:00
Barry Kane c753182827 Cleaned up inputoutput.c.
- Added additional comments in sections functions that were unclear.
- Renamed targetIndex to sentCount, in order to clarify the usage of the variable.
- Linted according to the current SilverMUD style guide.
2023-02-15 21:22:14 +00:00
Barry Kane f411333203 Refactored SilverMUD to use the queue type for command events.
- Removed the old commandQueue type.
- Removed the functions relating to creating, pushing, popping, and peeking the commandQueues.
- Refactored the gameLogicHandler to use a queue type.
2023-02-13 17:23:30 +00:00
Barry Kane 602f177a8f Added some more comments.
- Commented the data structures in areadata.h and gamelogic.h.
2023-02-12 23:32:39 +00:00
Barry Kane d0e4a8f9fc Removed the body of the try command.
- Removed the try command's test functionality to allow for the later implementation of the actual functionality.
2023-02-12 23:13:10 +00:00
Barry Kane 66e0279e78 Commented the data structures in queue.h.
- Commented all the data structures in queue, to make it slightly clearer as to their usage and what they store.
2023-02-11 00:07:30 +00:00