forked from tbamud/tbamud
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
tbaMUD Development Update #13
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Different coders/IDEs over the years have left the formatting a mess - I've performed "by hand" formatting for consistency and readability. - An auto-formatter was used on a "per selection" basis to reduce the potential for bugs. - Due to the lack of automated testing capabilities, changes have been limited to mostly white space.
Fixed bug in do_omove where object could be moved to NOWHERE room.
changed do_dgoload to do_oload for consistency.
- Fixed missing int declaration in do_Xdoor commands
Create build.yml (tbamud#117)
Fixed formatting for readability. Indentations should be correct. Tested on fresh install. It does compile. Room descriptions display properly.
Tbamud master
Added new cedit option for choosing JSON files Added messages.json
… ROOMFLAG to not see any of the room contents - Fixed erroneous 'else' statement which was causing double up of room descriptions and automap.
Added zone 450 to world for purpose of testing
"It worked on my machine..."
…mented an 'on the fly' conversion system.
…xclusively allocated directly above.
- Fixed bug where fight message was being saved in wrong slot
Updated jsIOn to allow for better handing of in value tabs, quotes and newlines. Added a comment to dg_scripts where valgrind found an issue. WIll investigate later.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
Minor
Ongoing
Major
I wrote a JSON converter for C which can be found here in my github called jsIOn.c and added it to the tbamud core. This is the most significant addition to the code, but it is mostly abstract and doesn't touch anything except potentially lib/misc/messages. The purpose of this was to offer the option of converting our current file system into a JSON compatible format for the benefit of importing/exporting it into third-party applications. As it currently stands, to ensure stability, it only touches lib/misc/messages, it only activates by toggling the CEDIT option in the operation options menu, and it leaves the original messages file intact.
Obviously no one gets excited over the arranging letters and numbers in a different way, but the ease of importing/exporting the data makes third party applications so much more feasible now.
And now you can alter, inspect, create data through a python script, send it to a web app for manipulation, or whatever your heart desires. Just 3 lines of code.
Additionally, there is also a new scripts folder in the base directory. I've added a dirty python script which, if your JSON messages are enabled & created, will do an assessment of your messages for potential issues and write them to a JSON report AND create a mobile friendly HTML document for easy viewing of the report. Probably took 10-15 minutes.
Finally, although there are a lot of changes, in the name of stability and reliability, I've kept most everything relatively surface or made it opt-in.