Download Latest Version Alt release.zip (18.7 MB)
Email in envelope

Get an email when there's a new version of Sun-RPI

Home
Name Modified Size InfoDownloads / Week
README.txt 2012-10-30 2.3 kB
Alt release.zip 2012-10-27 18.7 MB
sun.zip.arj 2012-10-24 3.1 MB
Totals: 3 Items   21.8 MB 0
Foreword: This readme is a work in progress. Thus, it will be improved on in the future. Also note that there are some changes  below that will be reflected in the next release. If there's anything you'd like to add to the Readme, please contact me. Also, please feel free to start a discussion or submit a ticket if you need help with an issue. Last updated 10/29/12 -YourCyborg

Steps:
Edit /src/Makefile
Add -lcrypt to the end of LDLIBS 
Change the INCLUDE = and LIBDIRS lines to match your system.
Basically, if make fails, try to 'locate x' and add it to the list. Mine ended up looking like this:
INCLUDE = -I/usr/include/mysql/ -I/usr/include/openssl/ -I/usr/bin/ 

LIBDIRS = -L/home/matthew/Desktop/darksunmudd/pp/lib -L/usr/lib -L/lib/mysql -L/usr/share/gdb/auto-load/usr/lib/ -L/usr/lib/mysql -L/lib -L/usr/lib/gcc/i686-redhat-linux/4.7.2/

Edit structs.h to match your configuration.
Make sure and scroll down to take a look at line 2993 dflt_dir

If you're using a new version of MySQL (I don't know what the line is here, but you can see what version a .sql file was made with by opening it), you'll need to edit darksun.sql, darksun2.sql, and darksun3.sql
Delete the first two lines that aren't commented out in darksun.sql (I think).
Rreplace all TYPE=MyISAM with ENGINE=MyISAM in all three MySQL files. Use search and replace to do this for you. If you're editing with Sublime Text, this can be done by pressing ctrl+h
Create three databases. To create a database, get into mysql by typing 'mysql -u root' and then 'create database darksun;'
Once there are three seperate databases, close that window and open up another terminal.
Import the sql file into your database using
mysql -u darksun -p darksun < darksun.sql 
#      (username) (dbase name) (file name)
You will have to do this three times, once for each database you created for the relevant .sql file.

Once everything has been made, it's time to make ds.startup an executable. 'chmod u+x ds.startup'
Do the same thing to darksun in /bin/
Go back to ds.startup/, then './ds.startup'
If you get a message like the below in /log/ (sort by newest to oldest),
chdir: No such file or directory
you probably need to adjust your directories in structs.h some more. Make sure you took a look at line 2993
Source: README.txt, updated 2012-10-30