Permalink
Browse files

0.2.0 rc2 (#46)

* Updated WorldBase
* Add ace_landblock table for instance objects
* Add ace_object_inventory for weenies to generate
* Add weenieHeaderFlags2 column to ace_object
* Add weenieHeaderFlags2 data for exported weenies
* Removed instanced objects from database
* Restructured folders
* Add instance pointers to ace_landblock
* Add wielded objects to weenie inventory
* Add objects to be sold by vendors to weenie inventory
  • Loading branch information...
LtRipley36706 committed Aug 27, 2017
1 parent e1033d8 commit 515f831baf22073ddb43c04bbe761637b4c13562
Showing 6,738 changed files with 326,406 additions and 6,885,699 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -17,6 +17,43 @@ USE `ace_world`;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `ace_landblock`
--
DROP TABLE IF EXISTS `ace_landblock`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ace_landblock` (
`instanceId` int(10) unsigned NOT NULL AUTO_INCREMENT,
`landblock` int(5) GENERATED ALWAYS AS ((`landblockRaw` >> 16)) VIRTUAL,
`weenieClassId` int(10) unsigned NOT NULL,
`preassignedGuid` int(10) unsigned DEFAULT NULL,
`landblockRaw` int(10) unsigned NOT NULL,
`posX` float NOT NULL,
`posY` float NOT NULL,
`posZ` float NOT NULL,
`qW` float NOT NULL,
`qX` float NOT NULL,
`qY` float NOT NULL,
`qZ` float NOT NULL,
PRIMARY KEY (`instanceId`),
UNIQUE KEY `instanceId_UNIQUE` (`instanceId`),
UNIQUE KEY `preassignedGuid_UNIQUE` (`preassignedGuid`),
KEY `fk_lb_weenie_idx` (`weenieClassId`),
CONSTRAINT `fk_weenie_lb` FOREIGN KEY (`weenieClassId`) REFERENCES `ace_weenie_class` (`weenieClassId`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ace_landblock`
--
LOCK TABLES `ace_landblock` WRITE;
/*!40000 ALTER TABLE `ace_landblock` DISABLE KEYS */;
/*!40000 ALTER TABLE `ace_landblock` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ace_object`
--
@@ -29,6 +66,7 @@ CREATE TABLE `ace_object` (
`aceObjectDescriptionFlags` int(10) unsigned NOT NULL,
`weenieClassId` int(10) unsigned NOT NULL,
`weenieHeaderFlags` int(10) unsigned DEFAULT NULL,
`weenieHeaderFlags2` int(10) unsigned DEFAULT NULL,
`physicsDescriptionFlag` int(10) unsigned DEFAULT NULL,
`currentMotionState` text,
PRIMARY KEY (`aceObjectId`),
@@ -99,6 +137,34 @@ LOCK TABLES `ace_object_generator_link` WRITE;
/*!40000 ALTER TABLE `ace_object_generator_link` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ace_object_inventory`
--
DROP TABLE IF EXISTS `ace_object_inventory`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ace_object_inventory` (
`aceObjectId` int(10) unsigned NOT NULL DEFAULT '0',
`weenieClassId` int(10) unsigned NOT NULL DEFAULT '0',
`destinationType` tinyint(5) NOT NULL DEFAULT '0',
`palette` tinyint(5) NOT NULL DEFAULT '0',
KEY `fk_Inventory_AceObject_idx` (`aceObjectId`),
KEY `fk_Inventory_Weenie_idx` (`weenieClassId`),
CONSTRAINT `fk_Inventory_AceObject` FOREIGN KEY (`aceObjectId`) REFERENCES `ace_object` (`aceObjectId`) ON DELETE CASCADE,
CONSTRAINT `fk_Inventory_Weenie` FOREIGN KEY (`weenieClassId`) REFERENCES `ace_weenie_class` (`weenieClassId`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ace_object_inventory`
--
LOCK TABLES `ace_object_inventory` WRITE;
/*!40000 ALTER TABLE `ace_object_inventory` DISABLE KEYS */;
/*!40000 ALTER TABLE `ace_object_inventory` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `ace_object_palette_change`
--
@@ -669,4 +735,4 @@ SET character_set_client = @saved_cs_client;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-08-05 19:16:23
-- Dump completed on 2017-08-27 15:45:35
@@ -0,0 +1,184 @@
/* Spawn instances found in ace_landblock */
USE `ace_world`;
DELIMITER $$
DROP PROCEDURE IF EXISTS spawn_instances_while_loop$$
CREATE PROCEDURE spawn_instances_while_loop()
BEGIN
SET @instanceCount = 0;
SET @i = 1;
SELECT COUNT(*) FROM ace_landblock INTO @instanceCount;
WHILE @i < @instanceCount DO
SET @weenieClassId = 0;
SET @preassignedGuid = 0;
SET @landblockRaw = 0;
SET @posX = 0;
SET @posY = 0;
SET @posZ = 0;
SET @qW = 0;
SET @qX = 0;
SET @qY = 0;
SET @qZ = 0;
SELECT weenieClassId,
preassignedGuid,
landblockRaw,
posX,
posY,
posZ,
qW,
qX,
qY,
qZ
FROM ace_landblock WHERE instanceId = @i
INTO @weenieClassId, @preassignedGuid, @landblockRaw, @posX, @posY, @posZ, @qW, @qX, @qY, @qZ;
DROP TEMPORARY TABLE IF EXISTS tmp;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_animation_change WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_animation_change SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_generator_link WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_generator_link SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_inventory WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_inventory SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_palette_change WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_palette_change SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_attribute WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_attribute SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_attribute2nd WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_attribute2nd SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_bigint WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_bigint SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_book WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_book SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_bool WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_bool SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_did WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_did SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_double WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_double SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_iid WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_iid SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_int WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_int SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_spell WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_spell SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_properties_string WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_properties_string SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
SET SQL_SAFE_UPDATES = 0;
CREATE TEMPORARY TABLE tmp SELECT * from ace_object_texture_map_change WHERE aceObjectId = @weenieClassId;
UPDATE tmp SET aceObjectId = @preassignedGuid;
INSERT INTO ace_object_texture_map_change SELECT tmp.* FROM tmp;
DROP TEMPORARY TABLE tmp;
SET SQL_SAFE_UPDATES = 1;
INSERT INTO ace_position
(aceObjectId,
positionType,
landblockRaw,
posX,
posY,
posZ,
qW,
qX,
qY,
qZ)
VALUES
(@preassignedGuid, 1, @landblockRaw, @posX, @posY, @posZ, @qW, @qX, @qY, @qZ);
SET @i = @i + 1;
END WHILE;
END$$
DELIMITER ;
CALL spawn_instances_while_loop();
DROP PROCEDURE IF EXISTS spawn_instances_while_loop;
@@ -1,8 +1,8 @@
INSERT INTO ace_weenie_class (`weenieClassId`, `weenieClassDescription`)
VALUES (4, 'admin');
INSERT INTO `ace_object` (`aceObjectId`, `aceObjectDescriptionFlags`, `weenieClassId`, `weenieHeaderFlags`, `currentMotionState`, `physicsDescriptionFlag`)
VALUES (4, 5242892, 4, 8388630, 'AAA9AGYAAAAHAA0ABEEAQAAAwD8=', 104451);
INSERT INTO `ace_object` (`aceObjectId`, `aceObjectDescriptionFlags`, `weenieClassId`, `weenieHeaderFlags`, `weenieHeaderFlags2`, `currentMotionState`, `physicsDescriptionFlag`)
VALUES (4, 5242892, 4, 8388630, NULL, 'AAA9AGYAAAAHAA0ABEEAQAAAwD8=', 104451);
INSERT INTO `ace_object_properties_string` (`aceObjectId`, `strPropertyId`, `propertyValue`)
VALUES (4, 1, '+Moosier');
Oops, something went wrong.

0 comments on commit 515f831

Please sign in to comment.