hermeticum/README.md

48 lines
2.9 KiB
Markdown
Raw Normal View History

2022-07-08 06:08:37 +00:00
hermeticum is the next version of [tildemush](https://github.com/vilmibm/tildemush): a full rewrite of the alpha release.
there are two major differences: Go instead of Python and Lua instead of a from-scratch scripting language for game objects.
Otherwise, this is a pretty faithful implementation of what tildemush was planned to be (and mostly implemented in the alpha).
## but why
the alpha version of tildemush does work! you can script objects and make rooms and do all sorts of things. Unfortunately, it:
- gets laggy with any real number of users
- has memory leaks
- consists of very poorly abstracted spaghetti code
- has a half-implemented client
2022-12-30 05:16:20 +00:00
- is extremely hard to add to
2022-07-08 06:08:37 +00:00
- has a very brittle, very fragile, 100% hacks scripting language for game objects
- has a very inelegant and inefficient system for handling revisions to game objects code
I feel very strongly that a total rewrite is necessary. I also feel very strongly that Go is a better choice for this kind of application than Python.
2022-12-30 05:16:20 +00:00
## new stuff from tildemush
2022-07-08 06:08:37 +00:00
- API is grpc/protobuff based
2022-12-30 05:16:20 +00:00
- client uses `tview` which I find more pleasant to work with than `urwid`
- WITCH is powered by https://github.com/yuin/gopher-lua
- a much simpler approach to script editing
- I'm going to take a much simpler approach to scripts than I did in tildemush: objects just get one text column for their script with no revision tracking.
- this can totally change in the future but I don't think it's necessary for a beta
- "cron" system: WITCH scripts will respond to a "tick" event and decide if enough time has passed for them to re-call their callback.
- "global chat" since it is my hope that hermeticum can largely supercede IRC on https://tilde.town , I intend to have an always available global chat in a pane in the client so users can feel like a part of a "main" while still wandering around and exploring rooms.
- "loudness" system. this is not fully designed yet, but events should be "audible" in a regressed way for objects that are contained by things contained in a room where a verb is executed.
2022-07-08 06:08:37 +00:00
## the name though
the name "tildemush" has never quite sat right with me. I don't know why. I'm a
lot more pleased with `hermeticum`, which describes what it is I'm really
inspired by when it comes to MU* engines: the spaces a mind can create to store
wisdom. I like the idea of mapping these mental spaces into a computer.
## docs
I haven't moved over any design docs or notes or anything like that. Refer to the tildemush repo for that kind of stuff.
2022-12-30 05:16:20 +00:00
## development
- to regenerate the API code: `protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/hermeticum.proto`
- database connection currently hardcoded to a postgresql database called `hermeticum` owned by `vilmibm` who has pw `vilmibm`. if you want to hack on this locally, update the call to `NewDB` accordingly. Eventually this will be handled via environment variables.