chrisrx / dungeonfs Goto Github PK
View Code? Open in Web Editor NEWA FUSE filesystem and dungeon crawling adventure game engine
License: BSD 2-Clause "Simplified" License
A FUSE filesystem and dungeon crawling adventure game engine
License: BSD 2-Clause "Simplified" License
Using
make deps
make
results in the following error
Building ...
cmd/dungeonfs/main.go:8:2: cannot find package "github.com/ChrisRx/dungeonfs/cmd/dungeonfs/command" in any of:
/usr/lib/go/src/github.com/ChrisRx/dungeonfs/cmd/dungeonfs/command (from $GOROOT)
/home/konstantinos/go/src/github.com/ChrisRx/dungeonfs/cmd/dungeonfs/command (from $GOPATH)
make: *** [Makefile:7: build] Error 1
probably because of the usage of remote import path as using
go get -u github.com/ChrisRx/dungeonfs
successfully builds a binary at $GOPATH/bin
which though doesn't work.
stephen@developer:~/gitwork/dungeonfs$ make deps
../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h
Makefile:10: recipe for target 'deps' failed
make: *** [deps] Error 2
stephen@developer:~/gitwork/dungeonfs$ apt-file search textflag.h
golang-src: /usr/share/go/src/cmd/ld/textflag.h
stephen@developer:~/gitwork/dungeonfs$ sudo apt-get install golang-src
Reading package lists... Done
Building dependency tree
Reading state information... Done
golang-src is already the newest version.
golang-src set to manually installed.
The following packages were automatically installed and are no longer required:
gdbserver libasn1-8-heimdal libgssapi3-heimdal libhcrypto4-heimdal
libheimbase1-heimdal libheimntlm0-heimdal libhx509-5-heimdal
libkrb5-26-heimdal libroken18-heimdal libwind0-heimdal
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 265 not upgraded.
stephen@developer:~/gitwork/dungeonfs$ make deps
../../gocode/src/golang.org/x/sys/unix/asm_linux_amd64.s:8 6a: No such file or directory: textflag.h
Makefile:10: recipe for target 'deps' failed
make: *** [deps] Error 2
This is on debian 8 jessie amd64
I'm running Ubuntu 16.04 and I installed the golang
package. When I use the instructions in the README I get
$ go get github.com/ChrisRx/dungeonfs...
package github.com/ChrisRx/dungeonfs...: cannot expand ... in "github.com/ChrisRx/dungeonfs..."
Am I missing a required package?
Is it possible to "meet" other players? I assume that fuseFS will work locally but I was wondering about that.
I can't execute dungeonfs.
Compiling (go get -u -v "git://github.com/ChrisRx/dungeonfs.git/..."
) went well. But as soon as I execute dungeonfs mount -d /tmp/dungeon/
I get
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x7d5833]
goroutine 1 [running]:
github.com/ChrisRx/dungeonfs/cmd/dungeonfs/command.runMountCommand(0xc420098b40, 0xc4200cee80, 0x1, 0x2)
/tmp/yaourt-tmp-tilman/aur-dungeonfs/src/go/src/github.com/ChrisRx/dungeonfs/cmd/dungeonfs/command/mount.go:53 +0x713
github.com/spf13/cobra.(*Command).execute(0xc420098b40, 0xc4200cece0, 0x2, 0x2, 0xc420098b40, 0xc4200cece0)
/tmp/yaourt-tmp-tilman/aur-dungeonfs/src/go/src/github.com/spf13/cobra/command.go:647 +0x234
github.com/spf13/cobra.(*Command).ExecuteC(0xaf98e0, 0xc4200edf78, 0x0, 0xc420098d80)
/tmp/yaourt-tmp-tilman/aur-dungeonfs/src/go/src/github.com/spf13/cobra/command.go:733 +0x339
github.com/spf13/cobra.(*Command).Execute(0xaf98e0, 0xc4200edf68, 0x2)
/tmp/yaourt-tmp-tilman/aur-dungeonfs/src/go/src/github.com/spf13/cobra/command.go:692 +0x2b
main.main()
/tmp/yaourt-tmp-tilman/aur-dungeonfs/src/go/src/github.com/ChrisRx/dungeonfs/cmd/dungeonfs/main.go:21 +0x95
OS: Arch Linux x64
Go: go1.8.1
I'd like to make a more advanced dungeon and I wonder how it is possible to create multiple routes to a room.
As a directory structure I would create something like this:
.
└── room1
└── room2
├── room3
│ └── room4
│ └── room5
│ ├── room2 -> ../../..
│ └── room6
└── room5 -> room3/room4/room5
where room1/room2/room5
is a symbolic link to room1/room2/room3/room4/room5
and room1/room2/room3/room4/room5/room2
is a symlink to room1/room2
.
I tried to define this dungeon with the following yaml:
dir:Root:
description: "A poorly lit hallway proceeds you to the north."
adjacent:
- room1
contains:
- README
dir:room1:
description: "you're in room 1"
adjacent:
- room2
dir:room2:
description: "you're in room 2"
adjacent:
- room3
- room5
dir:room3:
description: "you're in room 3"
adjacent:
- room4
dir:room4:
description: "you're in room 4"
adjacent:
- room5
dir:room5:
description: "you're in room 5"
adjacent:
- room2
- room4
- room6
dir:room6:
description: "you're in room 6!"
adjacent:
- room5
I know this creates a loop, but makes it possible to write not so linear games. I seems that a room structure like this results an infinite loop in the code as my CPU load jumped to 100% when I tried to mount this test level.
Hello there,
Do you think it may be possible to add some motivation to the main readme as to why the project was started? It may perhaps be of interest to some people who may find it.
Thanks for reading!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.