ship mod

    • New

      hey i got this mod id guess but not sure how to work itheres the php and tpl

      PHP Source Code

      1. <?php
      2. require_once('includes/classes/class.ManageShip.php');
      3. class ShowShipPage extends AbstractPage
      4. {
      5. function __construct()
      6. {
      7. parent::__construct();
      8. }
      9. public function show(){
      10. global $USER, $PLANET, $LNG, $UNI, $CONF;
      11. $max_upgrades_devices = MAX_UPGRADES_DEVICES;
      12. $res2 = $GLOBALS['DATABASE']->query("SELECT * FROM ".SHIPS." WHERE owner_id = ".$USER['id'].";");
      13. if($GLOBALS['DATABASE']->numRows($res2) == 0){
      14. $SQL = "INSERT INTO ".SHIPS." SET
      15. `ship_name` = 'Nave',
      16. `ship_destroyed` = 'N',
      17. `owner_id` = '".$USER['id']."',
      18. `hull` = 0,
      19. `engines` = 0,
      20. `power` = 0,
      21. `computer` = 0,
      22. `sensors` = 0,
      23. `beams` = 0,
      24. `torp_launchers` = 0,
      25. `torps` = 0,
      26. `shields` = 0,
      27. `armor` = 0,
      28. `armor_pts` = 10,
      29. `cloak` = 0,
      30. `credits` = 1000,
      31. `galaxy` = 1,
      32. `system` = 1,
      33. `ship_ore` = 0,
      34. `ship_organics` = 0,
      35. `ship_goods` = 0,
      36. `ship_energy` = 100,
      37. `ship_colonists` = 0,
      38. `ship_fighters` = 10,
      39. `ship_damage` = 0,
      40. `turns` = 1200,
      41. `on_planet` = 'N',
      42. `dev_warpedit` = 0,
      43. `dev_genesis` = 1,
      44. `dev_beacon` = 0,
      45. `dev_emerwarp` = 0,
      46. `dev_escapepod` = 'N',
      47. `dev_fuelscoop` = 'N',
      48. `dev_minedeflector` = 0,
      49. `turns_used` = 0,
      50. `last_login` = '0000-00-00 00:00:00',
      51. `last_kami` = '0000-00-00 00:00:00',
      52. `last_sofa` = '0000-00-00 00:00:00',
      53. `ship_kills` = 0,
      54. `ship_deaths` = 0,
      55. `rating` = 0,
      56. `score` = 0,
      57. `points` = 0,
      58. `team` = 0,
      59. `team_invite` = 0,
      60. `planet_id` = 0,
      61. `preset1` = 0,
      62. `preset2` = 0,
      63. `preset3` = 0,
      64. `preset4` = 0,
      65. `preset5` = 0,
      66. `trade_colonists` = 'Y',
      67. `trade_fighters` = 'N',
      68. `trade_torps` = 'N',
      69. `trade_energy` = 'Y',
      70. `cleared_defences` = ' ',
      71. `dev_lssd` = 'N';";
      72. $GLOBALS['DATABASE']->query($SQL);
      73. }
      74. $res = $GLOBALS['DATABASE']->query("SELECT * FROM ".SHIPS." WHERE owner_id = ".$USER['id'].";");
      75. $playerinfo = $GLOBALS['DATABASE']->fetch_array($res);
      76. $shiptypes[0]= "ship-1.gif";
      77. $shiptypes[1]= "ship-2.gif";
      78. $shiptypes[2]= "ship-3.gif";
      79. $shiptypes[3]= "ship-4.gif";
      80. $shiptypes[4]= "ship-5.gif";
      81. $shiptypes[5]= "ship-6.gif";
      82. $shiptypes[6]= "ship-7.gif";
      83. $shiptypes[7]= "ship-8.gif";
      84. $shipavg = Manage_Ship::get_avg_tech($playerinfo, "ship");
      85. if ($shipavg < 10)
      86. $ship_image = 0;
      87. elseif ($shipavg < 15)
      88. $ship_image = 1;
      89. elseif ($shipavg < 20)
      90. $ship_image = 2;
      91. elseif ($shipavg < 25)
      92. $ship_image = 3;
      93. elseif ($shipavg < 30)
      94. $ship_image = 4;
      95. elseif ($shipavg < 35)
      96. $ship_image = 5;
      97. elseif ($shipavg < 40)
      98. $ship_image = 6;
      99. elseif ($shipavg < 45)
      100. $ship_image = 7;
      101. else
      102. $ship_image = 7;
      103. $holds_used = $playerinfo['ship_ore'] + $playerinfo['ship_organics'] + $playerinfo['ship_goods'] + $playerinfo['ship_colonists'];
      104. $holds_max = Manage_Ship::NUM_HOLDS($playerinfo['hull']);
      105. $armor_pts_max = Manage_Ship::NUM_ARMOR($playerinfo['armor']);
      106. $ship_fighters_max = Manage_Ship::NUM_FIGHTERS($playerinfo['computer']);
      107. $torps_max = Manage_Ship::NUM_TORPEDOES($playerinfo['torp_launchers']);
      108. $energy_max = Manage_Ship::NUM_ENERGY($playerinfo['power']);
      109. $escape_pod = ($playerinfo['dev_escapepod'] == 'Y') ? 'yes' : 'no';
      110. $fuel_scoop = ($playerinfo['dev_fuelscoop'] == 'Y') ? 'yes' : 'no';
      111. $lssd = ($playerinfo['dev_lssd'] == 'Y') ? 'yes' : 'no';
      112. if($playerinfo['dev_escapepod'] == 'N')
      113. {
      114. $escape_pod_warning = '<span class="ship-component-warning-span">CRITICAL COMPONENT NOT INSTALLED</span>';
      115. }
      116. if($playerinfo['dev_minedeflector'] == '0')
      117. {
      118. $mine_deflector_warning = '<span class="ship-component-warning-span">WARNING YOU HAVE NO MINEDEFLECTORS</span>';
      119. }
      120. if($playerinfo['dev_emerwarp'] == '0')
      121. {
      122. $emergancy_warp_warning = '<span class="ship-component-warning-span">WARNING NO EMERGENCY WARPS INSTALLED</span>';
      123. }
      124. /*
      125. Ship Strength compares components vs what your carrying, e.g.torp launchers vs torpedoes carrying.
      126. */
      127. $componenet_strength = $playerinfo['power'] + $playerinfo['torp_launchers'] + $playerinfo['armor'] + $playerinfo['computer'];
      128. $componenet_strength = $componenet_strength/4;
      129. $strength_total = Manage_Ship::percent($playerinfo['armor_pts'],$armor_pts_max) + Manage_Ship::percent($playerinfo['ship_fighters'],$ship_fighters_max) + Manage_Ship::percent($playerinfo['torps'],$torps_max) + Manage_Ship::percent($playerinfo['ship_energy'],$energy_max);
      130. $strength_total = $strength_total / 4;
      131. $this->tplObj->assign_vars(
      132. array(
      133. 'ship_image' => $shiptypes[$ship_image],
      134. 'character_name' => $USER['username'],
      135. 'ship_name' => $playerinfo['ship_name'],
      136. 'credits' => Manage_Ship::NUMBER($playerinfo['credits']),
      137. 'fsl_hull' => Manage_Ship::filter_ship_levels($playerinfo['hull']),
      138. 'max_hull' => ($playerinfo['hull']/$max_upgrades_devices)*100,
      139. 'l_level' => "Level:", //$l_level,
      140. 'hull' => $playerinfo['hull'],
      141. 'fsl_engines' => Manage_Ship::filter_ship_levels($playerinfo['engines']),
      142. 'max_engines' => ($playerinfo['engines']/$max_upgrades_devices)*100,
      143. 'engines' => $playerinfo['engines'],
      144. 'fsl_power' => Manage_Ship::filter_ship_levels($playerinfo['power']),
      145. 'max_power' => ($playerinfo['power']/$max_upgrades_devices)*100,
      146. 'power' => $playerinfo['power'],
      147. 'fsl_computer' => Manage_Ship::filter_ship_levels($playerinfo['computer']),
      148. 'max_computer' => ($playerinfo['computer']/$max_upgrades_devices)*100,
      149. 'computer' => $playerinfo['computer'],
      150. 'fsl_sensors' => Manage_Ship::filter_ship_levels($playerinfo['sensors']),
      151. 'max_sensors' => ($playerinfo['sensors']/$max_upgrades_devices)*100,
      152. 'sensors' => $playerinfo['sensors'],
      153. 'fsl_armor' => Manage_Ship::filter_ship_levels($playerinfo['armor']),
      154. 'max_armor' => ($playerinfo['armor']/$max_upgrades_devices)*100,
      155. 'armor' => $playerinfo['armor'],
      156. 'fsl_shields' => Manage_Ship::filter_ship_levels($playerinfo['shields']),
      157. 'max_shields' => ($playerinfo['shields']/$max_upgrades_devices)*100,
      158. 'shields' => $playerinfo['shields'],
      159. 'fsl_beams' => Manage_Ship::filter_ship_levels($playerinfo['beams']),
      160. 'max_beams' => ($playerinfo['beams']/$max_upgrades_devices)*100,
      161. 'beams' => $playerinfo['beams'],
      162. 'fsl_torp_launchers' => Manage_Ship::filter_ship_levels($playerinfo['torp_launchers']),
      163. 'max_torp_launchers' => ($playerinfo['torp_launchers']/$max_upgrades_devices)*100,
      164. 'torp_launchers' => $playerinfo['torp_launchers'],
      165. 'fsl_cloak' => Manage_Ship::filter_ship_levels($playerinfo['cloak']),
      166. 'max_cloak' => ($playerinfo['cloak']/$max_upgrades_devices)*100,
      167. 'cloak' => $playerinfo['cloak'],
      168. 'escape_pod_warning' => $escape_pod_warning,
      169. 'escape_pod' => $escape_pod,
      170. 'lssd' => $lssd,
      171. 'fuel_scoop' => $fuel_scoop,
      172. 'fsl_shipavg' => Manage_Ship::filter_ship_levels($shipavg),
      173. 'max_shipavg' => ($shipavg/$max_upgrades_devices)*100,
      174. 'shipavg' => Manage_Ship::NUMBER($shipavg, 2),
      175. 'fsl_componenet_strength' => Manage_Ship::filter_ship_levels($componenet_strength),
      176. 'strength_total' => $strength_total,
      177. 'per_ship_energy' => Manage_Ship::percent($playerinfo['ship_energy'],$energy_max),
      178. 'ship_energy' => Manage_Ship::NUMBER($playerinfo['ship_energy']),
      179. 'energy_max' => Manage_Ship::NUMBER($energy_max),
      180. 'per_holds_used' => Manage_Ship::percent($holds_used,$holds_max),
      181. 'holds_used' => Manage_Ship::NUMBER($holds_used),
      182. 'holds_max' => Manage_Ship::NUMBER($holds_max),
      183. 'ship_organics' => Manage_Ship::NUMBER($playerinfo['ship_organics']),
      184. 'ship_ore' => Manage_Ship::NUMBER($playerinfo['ship_ore']),
      185. 'ship_goods' => Manage_Ship::NUMBER($playerinfo['ship_goods']),
      186. 'ship_colonists' => Manage_Ship::NUMBER($playerinfo['ship_colonists']),
      187. 'per_armor_pts' => Manage_Ship::percent($playerinfo['armor_pts'],$armor_pts_max),
      188. 'armor_pts' => Manage_Ship::NUMBER($playerinfo['armor_pts']),
      189. 'armor_pts_max' => Manage_Ship::NUMBER($armor_pts_max),
      190. 'per_ship_fighters' => Manage_Ship::percent($playerinfo['ship_fighters'],$ship_fighters_max),
      191. 'ship_fighters' => Manage_Ship::NUMBER($playerinfo['ship_fighters']),
      192. 'ship_fighters_max' => Manage_Ship::NUMBER($ship_fighters_max),
      193. 'per_torps' => Manage_Ship::percent($playerinfo['torps'],$torps_max),
      194. 'torps' => Manage_Ship::NUMBER($playerinfo['torps']),
      195. 'torps_max' => Manage_Ship::NUMBER($torps_max),
      196. 'dev_beacon' => $playerinfo['dev_beacon'],
      197. 'dev_warpedit' => $playerinfo['dev_warpedit'],
      198. 'dev_genesis' => $playerinfo['dev_genesis'],
      199. 'emergancy_warp_warning' => $emergancy_warp_warning,
      200. 'dev_emerwarp' => $playerinfo['dev_emerwarp'],
      201. 'mine_deflector_warning' => $mine_deflector_warning,
      202. 'dev_minedeflector' => $playerinfo['dev_minedeflector'],
      203. )
      204. );
      205. $this->display("page.ship.default.tpl");
      206. }
      207. }
      208. ?>
      Display All
    • New

      HTML Source Code

      1. </div>
      2. <div class="ship-lvl ship-divider-bottom">({$armor_pts} / {$armor_pts_max})</div>
      3. </div>
      4. </div>
      5. <div class="ship-stats-component">
      6. <div class="ship-component-name"> Caças</div>
      7. <div class="ship-component-bars">
      8. <div class="ship-progress">
      9. <div class="ship-bar ship-0" style="width:{$per_ship_fighters}%">&nbsp;</div>
      10. <div class="ship-component-warning"></div >
      11. </div>
      12. <div class="ship-lvl ship-divider-bottom">({$ship_fighters} / {$ship_fighters_max})</div>
      13. </div>
      14. </div>
      15. <div class="ship-stats-component">
      16. <div class="ship-component-name"> Torpedos</div>
      17. <div class="ship-component-bars">
      18. <div class="ship-progress">
      19. <div class="ship-bar ship-0" style="width:{$per_torps}%">&nbsp;</div>
      20. <div class="ship-component-warning"></div >
      21. </div>
      22. <div class="ship-lvl ship-divider-bottom">({$torps} / {$torps_max})</div>
      23. </div>
      24. </div>
      25. <div class="ship-stats-component ship-divider-top">
      26. <div class="ship-group-title ">DISPOSITIVOS</div>
      27. </div>
      28. <div class="ship-stats-component">
      29. <div class="ship-component-name"> Estandarte Espacial</div>
      30. <div class="ship-storage-quantity">{$dev_beacon}</div>
      31. </div>
      32. <div class="ship-stats-component">
      33. <div class="ship-component-name"> Editor de Saltos</div>
      34. <div class="ship-storage-quantity">{$dev_warpedit}</div>
      35. </div>
      36. <div class="ship-stats-component">
      37. <div class="ship-component-name"> Torpedos Genesis</div>
      38. <div class="ship-storage-quantity">{$dev_genesis}</div>
      39. </div>
      40. <div class="ship-stats-component">
      41. <div class="ship-component-name"> Dispositivo de Salto de Emergencia</div>
      42. <div class="ship-storage-quantity">{$emergancy_warp_warning} {$dev_emerwarp}</div>
      43. </div>
      44. <div class="ship-stats-component">
      45. <div class="ship-component-name"> Defletores de Minas</div>
      46. <div class="ship-storage-quantity">{$mine_deflector_warning} {$dev_minedeflector}</div>
      47. </div>
      48. </div>
      49. </div>
      50. </div>
      51. </div>
      52. </div>
      53. {/block}
      Display All
    • New

      You need to create the database queries and create the Manage_Ship function file
      Xterium: The Game
      War Of Alliance: The Game
      Antaris-Legacy: The Game
      Ogame RD: The Game - Coming Soon
      Erevolution: The Game - Coming Soon


      I do only fix 2moons default errors with the help of this forum. Dedicated support can be asked via email to support[@]xterium.space.
    • New

      SQL-Query

      1. is it correct to create the tables based on $SQL = "INSERT INTO ".SHIPS." SET
      2. `ship_name` = 'Nave',
      3. `ship_destroyed` = 'N',
      4. `owner_id` = '".$USER['id']."',
      5. `hull` = 0,
      6. `engines` = 0,
      7. `power` = 0,
      8. `computer` = 0,
      9. `sensors` = 0,
      10. `beams` = 0,
      11. `torp_launchers` = 0,
      12. `torps` = 0,
      13. `shields` = 0,
      14. `armor` = 0,
      15. `armor_pts` = 10,
      16. `cloak` = 0,
      17. `credits` = 1000,
      18. `galaxy` = 1, `system` = 1,
      19. `ship_ore` = 0,
      20. `ship_organics` = 0,
      21. `ship_goods` = 0,
      22. `ship_energy` = 100
      23. `ship_colonists` = 0,
      24. `ship_fighters` = 10,
      25. `ship_damage` = 0,
      26. `turns` = 1200,
      27. `on_planet` = 'N',
      28. `dev_warpedit` = 0,
      29. `dev_genesis` = 1,
      30. `dev_beacon` = 0,
      31. `dev_emerwarp` = 0,
      32. `dev_escapepod` = 'N',
      33. `dev_fuelscoop` = 'N',
      34. `dev_minedeflector` = 0,
      35. `turns_used` = 0,
      36. last_login` = '0000-00-00 00:00:00',
      37. `last_kami` = '0000-00-00 00:00:00',
      38. `last_sofa` = '0000-00-00 00:00:00',
      39. `ship_kills` = 0,
      40. `ship_deaths` = 0,
      41. `rating` = 0,
      42. `score` = 0,
      43. `points` = 0,
      44. `team` = 0,
      45. `team_invite` = 0,
      46. `planet_id` = 0,
      47. `preset1` = 0,
      48. `preset2` = 0,
      49. `preset3` = 0,
      50. `preset4` = 0,
      51. `preset5` = 0,
      52. `trade_colonists` = 'Y',
      53. `trade_fighters` = 'N',
      54. `trade_torps` = 'N',
      55. `trade_energy` = 'Y',
      56. `cleared_defences` = ' ',
      57. `dev_lssd` = 'N';" ;
      Display All
    • New

      Russoll wrote:

      is it correct to create the tables based on $SQL = "INSERT INTO ".SHIPS." SET
        1. `ship_name` = 'Nave',
        2. `ship_destroyed` = 'N',
        3. `owner_id` = '".$USER['id']."',
        4. `hull` = 0,
        5. `engines` = 0,
        6. `power` = 0,
        7. `computer` = 0,
        8. `sensors` = 0,
        9. `beams` = 0,
        10. `torp_launchers` = 0,
        11. `torps` = 0,
        12. `shields` = 0,
        13. `armor` = 0,
        14. `armor_pts` = 10,
        15. `cloak` = 0,
        16. `credits` = 1000,
        17. `galaxy` = 1,
        18. `system` = 1,
        19. `ship_ore` = 0,
        20. `ship_organics` = 0,
        21. `ship_goods` = 0,
        22. `ship_energy` = 100,
        23. `ship_colonists` = 0,
        24. `ship_fighters` = 10,
        25. `ship_damage` = 0,
        26. `turns` = 1200,
        27. `on_planet` = 'N',
        28. `dev_warpedit` = 0,
        29. `dev_genesis` = 1,
        30. `dev_beacon` = 0,
        31. `dev_emerwarp` = 0,
        32. `dev_escapepod` = 'N',
        33. `dev_fuelscoop` = 'N',
        34. `dev_minedeflector` = 0,
        35. `turns_used` = 0,
        36. `last_login` = '0000-00-00 00:00:00',
        37. `last_kami` = '0000-00-00 00:00:00',
        38. `last_sofa` = '0000-00-00 00:00:00',
        39. `ship_kills` = 0,
        40. `ship_deaths` = 0,
        41. `rating` = 0,
        42. `score` = 0,
        43. `points` = 0,
        44. `team` = 0,
        45. `team_invite` = 0,
        46. `planet_id` = 0,
        47. `preset1` = 0,
        48. `preset2` = 0,
        49. `preset3` = 0,
        50. `preset4` = 0,
        51. `preset5` = 0,
        52. `trade_colonists` = 'Y',
        53. `trade_fighters` = 'N',
        54. `trade_torps` = 'N',
        55. `trade_energy` = 'Y',
        56. `cleared_defences` = ' ',
        57. `dev_lssd` = 'N';"
          ;

      Yes, you should create a table with those stuff.
    • New

      nice stuff, mod is for 1.7.3 or older you can see at the call of the mysql
      for this mod you need to do a sql tabe called uni1_ship
      with the code u have, but little different.
      1. $shiptypes[0]= "ship-1.gif";
      2. $shiptypes[1]= "ship-2.gif";
      3. $shiptypes[2]= "ship-3.gif";
      4. $shiptypes[3]= "ship-4.gif";
      5. $shiptypes[4]= "ship-5.gif";
      6. $shiptypes[5]= "ship-6.gif";
      7. $shiptypes[6]= "ship-7.gif";
      8. $shiptypes[7]= "ship-8.gif";

        u need this gifs or others with same name
        change the mysql

        i like the code, its clean and shortend, so good it needs no documentation. good code!
        there is something missing, the connection to the fleetsystem.

        with this mod you can seen diffent shipparts, but they are not integraded into the fleetcalculations, as far as i can see they are not even changable.
        also there should be some css for the classes in the template.

        missing parts:
        intergration in calculation
        part for getting and equiping items(forms php etc. this seems to just show the ship and its parts.)
        the css

        so this mod is just showing something, without impact on the game, as far as i can understand the code.
        look for this file class.ManageShip.php propably in includes/classes/


    • New

      the sql looks like this :

      SQL-Query

      1. -- Table structure for table `uni1_ships`
      2. --
      3. DROP TABLE IF EXISTS `uni1_ships`;
      4. /*!40101 SET @saved_cs_client = @@character_set_client */;
      5. /*!40101 SET character_set_client = utf8 */;
      6. CREATE TABLE `uni1_ships` (
      7. `ship_id` int(10) unsigned NOT NULL AUTO_INCREMENT,
      8. `ship_name` char(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL,
      9. `ship_destroyed` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      10. `owner_id` int(10) unsigned NOT NULL,
      11. `hull` tinyint(3) unsigned NOT NULL DEFAULT '0',
      12. `engines` tinyint(3) unsigned NOT NULL DEFAULT '0',
      13. `power` tinyint(3) unsigned NOT NULL DEFAULT '0',
      14. `computer` tinyint(3) unsigned NOT NULL DEFAULT '0',
      15. `sensors` tinyint(3) unsigned NOT NULL DEFAULT '0',
      16. `beams` tinyint(3) unsigned NOT NULL DEFAULT '0',
      17. `torp_launchers` tinyint(3) NOT NULL DEFAULT '0',
      18. `torps` bigint(20) NOT NULL DEFAULT '0',
      19. `shields` tinyint(3) unsigned NOT NULL DEFAULT '0',
      20. `armor` tinyint(3) unsigned NOT NULL DEFAULT '0',
      21. `armor_pts` bigint(20) NOT NULL DEFAULT '0',
      22. `cloak` tinyint(3) unsigned NOT NULL DEFAULT '0',
      23. `credits` bigint(20) NOT NULL DEFAULT '0',
      24. `galaxy` int(10) unsigned NOT NULL DEFAULT '0',
      25. `system` int(10) unsigned NOT NULL DEFAULT '0',
      26. `ship_ore` bigint(20) NOT NULL DEFAULT '0',
      27. `ship_organics` bigint(20) NOT NULL DEFAULT '0',
      28. `ship_goods` bigint(20) NOT NULL DEFAULT '0',
      29. `ship_energy` bigint(20) NOT NULL DEFAULT '0',
      30. `ship_colonists` bigint(20) NOT NULL DEFAULT '0',
      31. `ship_fighters` bigint(20) NOT NULL DEFAULT '0',
      32. `ship_damage` smallint(5) NOT NULL DEFAULT '0',
      33. `turns` smallint(4) NOT NULL DEFAULT '0',
      34. `on_planet` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      35. `dev_warpedit` smallint(5) NOT NULL DEFAULT '0',
      36. `dev_genesis` smallint(5) NOT NULL DEFAULT '0',
      37. `dev_beacon` smallint(5) NOT NULL DEFAULT '0',
      38. `dev_emerwarp` smallint(5) NOT NULL DEFAULT '0',
      39. `dev_escapepod` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      40. `dev_fuelscoop` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      41. `dev_minedeflector` bigint(20) NOT NULL DEFAULT '0',
      42. `turns_used` int(10) unsigned NOT NULL DEFAULT '0',
      43. `last_login` datetime DEFAULT NULL,
      44. `last_kami` datetime DEFAULT NULL,
      45. `last_sofa` datetime DEFAULT NULL,
      46. `ship_kills` int(11) NOT NULL DEFAULT '0',
      47. `ship_deaths` int(11) NOT NULL DEFAULT '0',
      48. `rating` int(11) NOT NULL DEFAULT '0',
      49. `score` int(11) NOT NULL DEFAULT '0',
      50. `points` int(11) NOT NULL DEFAULT '0',
      51. `team` int(11) NOT NULL DEFAULT '0',
      52. `team_invite` int(11) NOT NULL DEFAULT '0',
      53. `planet_id` int(10) unsigned NOT NULL DEFAULT '0',
      54. `preset1` int(11) NOT NULL DEFAULT '0',
      55. `preset2` int(11) NOT NULL DEFAULT '0',
      56. `preset3` int(11) NOT NULL DEFAULT '0',
      57. `preset4` int(11) NOT NULL DEFAULT '0',
      58. `preset5` int(11) NOT NULL DEFAULT '0',
      59. `trade_colonists` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y',
      60. `trade_fighters` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      61. `trade_torps` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'N',
      62. `trade_energy` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y',
      63. `cleared_defences` tinytext CHARACTER SET utf8 COLLATE utf8_unicode_ci,
      64. `dev_lssd` enum('Y','N') CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'Y',
      65. PRIMARY KEY (`ship_id`)
      66. ) ENGINE=MyISAM AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
      67. /*!40101 SET character_set_client = @saved_cs_client */;
      68. --
      69. -- Dumping data for table `uni1_ships`
      70. --
      71. LOCK TABLES `uni1_ships` WRITE;
      72. /*!40000 ALTER TABLE `uni1_ships` DISABLE KEYS */;
      73. INSERT INTO `uni1_ships` (`ship_id`, `ship_name`, `ship_destroyed`, `owner_id`, `hull`, `engines`, `power`, `computer`, `sensors`, `beams`, `torp_launchers`, `torps`, `shields`, `armor`, `armor_pts`, `cloak`, `credits`, `galaxy`, `system`, `ship_ore`, `ship_organics`, `ship_goods`, `ship_energy`, `ship_colonists`, `ship_fighters`, `ship_damage`, `turns`, `on_planet`, `dev_warpedit`, `dev_genesis`, `dev_beacon`, `dev_emerwarp`, `dev_escapepod`, `dev_fuelscoop`, `dev_minedeflector`, `turns_used`, `last_login`, `last_kami`, `last_sofa`, `ship_kills`, `ship_deaths`, `rating`, `score`, `points`, `team`, `team_invite`, `planet_id`, `preset1`, `preset2`, `preset3`, `preset4`, `preset5`, `trade_colonists`, `trade_fighters`, `trade_torps`, `trade_energy`, `cleared_defences`, `dev_lssd`) VALUES
      74. (1, 'Nave', 'N', 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 1000, 1, 1, 0, 0, 0, 100, 0, 10, 0, 1200, 'N', 0, 1, 0, 0, 'N', 'N', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Y', 'N', 'N', 'Y', ' ', 'N'),
      75. (2, 'Nave', 'N', 1106, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 1000, 1, 1, 0, 0, 0, 100, 0, 10, 0, 1200, 'N', 0, 1, 0, 0, 'N', 'N', 0, 0, '0000-00-00 00:00:00', '0000-00-00 00:00:00', '0000-00-00 00:00:00', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Y', 'N', 'N', 'Y', ' ', 'N');
      76. /*!40000 ALTER TABLE `uni1_ships` ENABLE KEYS */;
      77. UNLOCK TABLES;
      Display All
    • New

      where is this mod from? what functions shall it have? we can reproduce the rest of the mod, but we first need to know, what exactly it shall do.

      wow as i can see the mod seems to do its own fight with its own ships, like a standalone, the fleetsystem is not touched at all. im still not sure what it is, seems like some missionsmod or something.

      as said, nice clean peace of code :D
    • New

      mimikri wrote:

      where is this mod from? what functions shall it have? we can reproduce the rest of the mod, but we first need to know, what exactly it shall do.
      this mod was include in a xterium version.......

      i think the main for this was that you can use it for attacking ...... as you can see ther is an option for fortress.......

      in my game are fortress planets for capturing ...... so i gues that the ship mod will work with it ......
      you cant change anything ( name of the ship etc. )
    • New

      that is the same what i hae running .....

      some bugs are clean now .... but there is so mutch todo ........

      I like this design ......
      my ally system is differend ... what i have is with ally bank ( not the same what other have ) and ally forum ( it is not extern )