I finally published the source code, it work in Unity3d Pro. For the server you need to compile only “server”, for the game - “lobby” level and level with the planet.
Server IP is set in “lobby” in some object (this is the latest version of the source, the end of February, but I don’t remember to which object =).
http://dl.dropbox.com/u/17286522/SpaceSim.unitypackage
This package may contain extraneous files that are not related to the project: D
And sorry for bad coding style - some scripts were in the process of writing…
Server uses MySQL database.
Dump:
-- phpMyAdmin SQL Dump -- version 2.10.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 29, 2011 at 06:30 PM -- Server version: 5.0.51 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `fl` -- -- -------------------------------------------------------- -- -- Table structure for table `accounts` -- CREATE TABLE `accounts` ( `login` varchar(25) character set cp1251 NOT NULL, `password` varchar(32) character set cp1251 NOT NULL, `date` date NOT NULL, UNIQUE KEY `login` (`login`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- -- Dumping data for table `accounts` -- INSERT INTO `accounts` VALUES ('budu_kratok', '39a93237cdb55916d3b36222833e6fff', '2011-01-28'); INSERT INTO `accounts` VALUES ('mike', '18126e7bd3f84b3f3e4df094def5b7de', '0000-00-00'); INSERT INTO `accounts` VALUES ('1', 'c4ca4238a0b923820dcc509a6f75849b', '0000-00-00'); INSERT INTO `accounts` VALUES ('mikeventris', 'd8578edf8458ce06fbc5bb76a58c5ca4', '0000-00-00'); INSERT INTO `accounts` VALUES ('MrSmile', '202cb962ac59075b964b07152d234b70', '0000-00-00'); INSERT INTO `accounts` VALUES ('wintech', 'b8e1ba53626663c3569d5caa1bbab36d', '0000-00-00'); INSERT INTO `accounts` VALUES ('nekronys', 'eaaceea840968709eee17b71dc8c9cd6', '2011-02-07'); INSERT INTO `accounts` VALUES ('alley', '686a23c44fc9a652c7eb6c04e6d749da', '0000-00-00'); INSERT INTO `accounts` VALUES ('dazavr', '939b6c8e1ccedb26c8249336740dd01d', '0000-00-00'); -- -------------------------------------------------------- -- -- Table structure for table `characters` -- CREATE TABLE `characters` ( `id` int(11) NOT NULL auto_increment, `accName` varchar(25) character set cp1251 NOT NULL, `inSpace` tinyint(1) NOT NULL default '0', `systemName` varchar(25) character set cp1251 NOT NULL, `name` varchar(256) character set cp1251 NOT NULL, `shipName` varchar(256) character set cp1251 NOT NULL default 'li_elite', `posx` float NOT NULL, `posy` float NOT NULL, `posz` float NOT NULL, `rotx` float NOT NULL, `roty` float NOT NULL, `rotz` float NOT NULL, `armor` float NOT NULL, `field` float NOT NULL, `cargo` mediumtext character set cp1251 NOT NULL, UNIQUE KEY `name` (`name`), KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ; -- -- Dumping data for table `characters` -- INSERT INTO `characters` VALUES (1, 'budu_kratok', 1, 'show', 'admin', 'li_cruise', 2463.25, -32.4309, 1345.51, 0.000239529, -0.947132, 0.00066467, 100, 100, '0'); INSERT INTO `characters` VALUES (2, 'mike', 1, 'show', 'mike01', 'li_elite', 2454.59, 129.819, 1392.07, -0.0042644, -0.0435692, -0.000242743, 100, 100, '0'); INSERT INTO `characters` VALUES (3, 'mikeventris', 1, 'show', 'MikeVentris', 'li_elite', 2376.91, 61.6653, 1192.96, 0, 0, 0, 100, 100, '0'); INSERT INTO `characters` VALUES (4, 'MrSmile', 1, 'show', 'MrSmile1', 'li_elite', 2444.91, 135.762, 1386.51, 0.0560174, 0.386282, -0.0216076, 100, 100, '0'); INSERT INTO `characters` VALUES (5, 'wintech', 1, 'show', 'wintech', 'li_dreadnought', 2442.4, 73.6716, 1450.28, -0.127141, 0.973903, -0.0680904, 100, 100, '0'); INSERT INTO `characters` VALUES (6, 'nekronys', 1, 'show', 'nekronys_adm', 'li_elite', 2721.19, 382.038, 1520.38, -0.13164, 0.0187167, 0.192254, 100, 100, '0=0'); INSERT INTO `characters` VALUES (7, 'alley', 1, 'show', 'alley', 'li_elite', 2450.12, 44.3787, 1376.71, -0.612533, 0.108556, -0.123878, 100, 100, '0=0'); INSERT INTO `characters` VALUES (8, 'lagnom', 1, 'show', 'lagnom', 'li_elite', 2534.35, 66.7299, 1377.69, -0.22298, -0.890529, 0.25223, 100, 100, '0=0'); INSERT INTO `characters` VALUES (9, 'dazavr', 0, 'show', 'dazavrOlolo', 'li_elite', 2376.91, 61.6653, 1192.96, 0, 0, 0, 100, 100, '0=0');