Running on Raspberry Pi2 and learning some BASIC Linux

More
7 years 6 days ago #5300 by criz
Hi all,

I came to this website from the Raspberry Pi website board post about running a MUD on the Raspberry Pi. I used to play on a CircleMUD back in 1995 called EliteMUD, so I really like that someone was still working with the old CircleMUD code and updating it, and I figured I'd try it out, if only to reminisce about the old MUD and show my kids how it worked.

I'm a complete Linux newbie so you'll have to forgive if I'm missing something basic.

So far I have:

- logged in as pi
- downloaded the 3.66 zip file into the home/pi directory
- changed to a SU shell: sudo -s
- unzipped the file
- gone into the new tba directory and run ./configure (which seemed fine)
- done the cd src; make and read and accepted the terms
- watched the compiler do its thing after accepting the terms
- gone back up a level to the main directory
- entered ./autorun &

So at this point, I get a session number pop up, something like: [1234]

and then nothing else happens, and I get a CRASH log that has a lot of "file not found" error messages in it.

If I got into bin and ./circle the third line is a FATAL error data directory not found or something along those lines.

I have a feeling I'm missing a fundamental step. Any ideas?

Much appreciated,

Regards,
Criz.

Please Log in or Create an account to join the conversation.

More
7 years 6 days ago #5301 by Rumble
You are doing everything right. Instead of using "./autron &" try "bin/circle" so you can see the bootup sequence and help determine exactly where it is crashing (this should also be in the syslog.CRASH file). Cut and paste your results and we can work from there.

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: criz

Please Log in or Create an account to join the conversation.

More
7 years 6 days ago #5302 by criz
Ok, thanks Rumble! If I use bin/circle I get the following, which doesn't seem to generate a syslog.CRASH file:

root@raspberrypi:/home/pi/tbamud-master# bin/circle
No etc/config file, using defaults: No such file or directory
Using file descriptor for logging.
May 12 20:39:43 :: Loading configuration.
May 12 20:39:43 :: tbaMUD 3.66
May 12 20:39:43 :: Using lib as data directory.
May 12 20:39:43 :: Running game on port 4000.
May 12 20:39:43 :: Finding player limit.
May 12 20:39:43 :: Setting player limit to 300 using rlimit.
May 12 20:39:43 :: Opening mother connection.
May 12 20:39:43 :: Binding to all IP interfaces on this host.
May 12 20:39:43 :: Boot db -- BEGIN.
May 12 20:39:43 :: Resetting the game time:
May 12 20:39:43 :: No time file 'etc/time' starting from the beginning.
May 12 20:39:43 :: Current Gametime: 3H 2D 6M 729Y.
May 12 20:39:43 :: Initialize Global Lists
May 12 20:39:43 :: Initializing Events
May 12 20:39:43 :: Reading news, credits, help, ihelp, bground, info & motds.
May 12 20:39:43 :: Loading spell definitions.
May 12 20:39:43 :: Loading zone table.
May 12 20:39:43 :: 187 zones, 10472 bytes.
May 12 20:39:43 :: Loading triggers and generating index.
May 12 20:39:44 :: Loading rooms.
May 12 20:39:44 :: 12468 rooms, 1296672 bytes.
May 12 20:39:44 :: SYSERR: Format error in roomflags/sector type of room #2
root@raspberrypi:/home/pi/tbamud-master#

If I try the ./autorun & and this happens:

pi@raspberrypi ~/tbamud-master $ sudo -s
root@raspberrypi:/home/pi/tbamud-master# ./autorun &
[1] 6046
root@raspberrypi:/home/pi/tbamud-master# ls
autorun bin config.status log vms_autorun.com
autorun.amiga changelog configure macrun.pl
autorun.cmd cnf doc README.md
autorun.pl config.cache lib src
autorun.sh config.log LICENSE.md syslog.CRASH
[1]+ Done ./autorun

And I get a syslog.CRASH file that looks like this:

autorun starting game Tue May 12 20:43:09 EDT 2015
running bin/circle -q 4000
nohup: ignoring input
No etc/config file, using defaults: No such file or directory
May 12 20:43:09 :: Loading configuration.
May 12 20:43:09 :: tbaMUD 3.66
May 12 20:43:09 :: Using lib as data directory.
May 12 20:43:09 :: Running game on port 4000.
May 12 20:43:09 :: Finding player limit.
May 12 20:43:09 :: Setting player limit to 300 using rlimit.
May 12 20:43:09 :: Opening mother connection.
May 12 20:43:09 :: Binding to all IP interfaces on this host.
May 12 20:43:09 :: Boot db -- BEGIN.
May 12 20:43:09 :: Resetting the game time:
May 12 20:43:09 :: No time file 'etc/time' starting from the beginning.
May 12 20:43:09 :: Current Gametime: 6H 2D 6M 729Y.
May 12 20:43:09 :: Initialize Global Lists
May 12 20:43:09 :: Initializing Events
May 12 20:43:09 :: Reading news, credits, help, ihelp, bground, info & motds.
May 12 20:43:09 :: Loading spell definitions.
May 12 20:43:09 :: Loading zone table.
May 12 20:43:09 :: 187 zones, 10472 bytes.
May 12 20:43:10 :: Loading triggers and generating index.
May 12 20:43:10 :: Loading rooms.
May 12 20:43:10 :: 12468 rooms, 1296672 bytes.
May 12 20:43:10 :: SYSERR: Format error in roomflags/sector type of room #2
Quick boot mode -- rent check supressed.
Using file descriptor for logging.
autoscript terminated Tue May 12 20:43:10 EDT 2015

Please Log in or Create an account to join the conversation.

More
7 years 6 days ago #5303 by Cblake
I like to run it on java.
I drink the java while watching it run

Please Log in or Create an account to join the conversation.

More
7 years 5 days ago #5306 by criz
Just as an update, I got it running on my laptop fine with 3.66 and Cygwin, just wondering why I'm getting that error message on the RPi2 - I'll try a full re-install tonight and I'll post the config files too.

Please Log in or Create an account to join the conversation.

More
7 years 4 days ago #5307 by Rumble
It is crashing while trying to load the rooms so it might be a corrupt World file.
Try "bin/circle -m" to run in mini-mode with only essential World files.

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
7 years 4 days ago #5308 by Rumble
Try "bin/circle -m" to run in mini-World. That error is due to a bad World file.

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
7 years 4 days ago #5309 by criz
Looks like I get the same error - just less rooms in the line above:


root@raspberrypi:/home/pi/tbamud-master# bin/circle -m
No etc/config file, using defaults: No such file or directory
Running in minimized mode & with no rent check.
Using file descriptor for logging.
May 14 22:34:46 :: Loading configuration.
May 14 22:34:46 :: tbaMUD 3.66
May 14 22:34:46 :: Using lib as data directory.
May 14 22:34:46 :: Running game on port 4000.
May 14 22:34:46 :: Finding player limit.
May 14 22:34:46 :: Setting player limit to 300 using rlimit.
May 14 22:34:46 :: Opening mother connection.
May 14 22:34:46 :: Binding to all IP interfaces on this host.
May 14 22:34:46 :: Boot db -- BEGIN.
May 14 22:34:46 :: Resetting the game time:
May 14 22:34:46 :: No time file 'etc/time' starting from the beginning.
May 14 22:34:46 :: Current Gametime: 23H 31D 8M 729Y.
May 14 22:34:46 :: Initialize Global Lists
May 14 22:34:46 :: Initializing Events
May 14 22:34:46 :: Reading news, credits, help, ihelp, bground, info & motds.
May 14 22:34:46 :: Loading spell definitions.
May 14 22:34:46 :: Loading zone table.
May 14 22:34:46 :: 3 zones, 168 bytes.
May 14 22:34:46 :: Loading triggers and generating index.
May 14 22:34:46 :: Loading rooms.
May 14 22:34:46 :: 111 rooms, 11544 bytes.
May 14 22:34:46 :: SYSERR: Format error in roomflags/sector type of room #2

Please Log in or Create an account to join the conversation.

  • zusuk
  • zusuk's Avatar
  • Offline
  • Elite Member
  • Elite Member
  • LuminariMUD Developer
More
7 years 3 days ago #5310 by zusuk
You try a new copy of the code (or at least of the /lib files)? Sure seems like something is whacky.

If I was in your situation I'd try:

-Re-download the codebase
-You can add some more output to the syslog to find out what is causing the error (it is in the function void parse_room(FILE *fl, int virtual_nr), in db.c).
-You can look at index.mini in the lib/world/ directory to see what zones load with the -m flag, and then check those individual room files for formatting errors

Good luck man, sorry it has been a headache so far for you :)

Website
www.luminariMUD.com

Main Game Port
luminariMUD.com:4100
The following user(s) said Thank You: criz

Please Log in or Create an account to join the conversation.

More
7 years 3 days ago #5313 by Rumble
Yes, that error is just a simple formatting problem in the Word files. Re-download the World files. Or try deleting everything in the 2.wld file except for the zone information... first 4 lines I think? and leave the termination character. Look at or create an empty zone for an example.

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: criz

Please Log in or Create an account to join the conversation.

More
7 years 3 days ago #5314 by criz
Ok - I made some headway - firstly after running in mini-mode, and deleting room#2 from the 0.wld file, I got a string error on the 30.mob file, character #3002 (the midgaard grocer). So I replaced the 30.mob file with the same one from stock CircleMUD and tbaMUD finally booted! Don't know if this makes sense to anyone or not, but hopefully it's useful to someone lol.

Switch back to standard circle boot, I got more .wld file errors in different places, so I suspect I'd continue to get them at different places and could probably just copy all the stock zones and mob files from circle and it would be fine. Wonder if there's a problem or something not functioning after tbaMUD compiles on the Rpi2 that's not allowing to recognize certain flags?

Please Log in or Create an account to join the conversation.

More
7 years 2 days ago #5315 by Rumble
Thanks, it sounds like it has an issue reading in the World files, maybe a certain character it can not parse or is used as a special/command character? I'll look at the room and mob and see if we can narrow it down. Thanks for the feedback. Is pi working well as a MUD platform?

Rumble
The Builder Academy
tbamud.com 9091
This email address is being protected from spambots. You need JavaScript enabled to view it.
The following user(s) said Thank You: criz

Please Log in or Create an account to join the conversation.

More
7 years 1 day ago #5316 by criz
Yes I have to say it seems to be running well with the stock circle mud, and seemed fine when I had tbamud running too. Obviously I haven't hit it with more than and handful of connections. It also runs Minecraft regular server and pocket server versions decently too, drawing distance on those is somewhat limited, but for $35 it does the job!

Please Log in or Create an account to join the conversation.

More
7 years 12 hours ago #5317 by Kyle
I really hope you mean 35 dollars per year? :P

If you mean per month you should be demanding excellence!

Please Log in or Create an account to join the conversation.

More
7 years 11 hours ago #5319 by criz
I meant the cost of the raspberry pi itself!

Please Log in or Create an account to join the conversation.

More
7 years 6 hours ago #5320 by Cblake
Vons
4.99
nice and fresh
made daily

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #5347 by AshlarTaltos
Bump... has any headway been made here?

I'm having the same issues, and can't get tbaMUD to boot without stripping everything down and running with no areas.
Would enjoy being able to properly try out the mud!

Constant errors just like above, if I remove the offending parts from the mob, zone or whatever - a new one just comes up further down the line.

As I said - I can make it run, but with basically %20 of the included files.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #5348 by thomas
have you tried to debug scientifically?

Remove JUST the mob it is complaining about, to see if it's the file as such.
Verify the line endings (highly probable cause).
Alter the strings for just this mob to somethings altogether different.

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #5349 by AshlarTaltos
As much as I can, I have tried to debug scientifically, yes.
I followed the thread. I've googled as much as I can. I've tried
removing the *room* that throws the error. Then the one after that,
and again. Then began on the mobs that threw an error. And again.
Ad nauseum.

As of now, I have it running, sort of. After removing 7 world files and 14 mobs.
As I said, it would just be nice to use all of tbaMUD, and not just the stuff that
happens to work. Fresh install of os, fresh install of tbaMUD. Compiler errors about
variables that are set, but not used (a lot of them), then this problem.

As far as I can tell, it's a problem with the way the actual mud reads those files,
as the same issues tend to happen with stock Circle files. So as much as I would
like to go through and fix all the incorrect parts, I could more easily get a different
base that will run properly on ARM.

I'll just use it broken and fix it myself. At least I can guarantee a working
product that way. Thanks!

Please Log in or Create an account to join the conversation.

More
6 years 10 months ago #5350 by thomas
So it happens on and off, for the same files?

Please Log in or Create an account to join the conversation.

Time to create page: 0.198 seconds