AKS DataBasis

CentrED => Support => Topic started by: Zankin on June 05, 2010, 11:20:05 AM

Title: Really new to the whole.. CentrED thing.
Post by: Zankin on June 05, 2010, 11:20:05 AM
Hello! I've been designing a few buildings on a localized server using a custom map. I am looking to simply test the new building out on a localized RunUO server however I'm running into an issue of the map not updating. This is what I'm doing in order to try and save the map:

My UO directory is C:Users<username>DesktopUltima Online 2D Client

Here is the CentrED.ini code:

<?xml version="1.0"?>
<CEDConfig Version="3">
  <Port>2597</Port>
  <Map>
    <Map>map0.mul</Map>
    <StaIdx>staidx0.mul</StaIdx>
    <Statics>statics0.mul</Statics>
    <Width>768</Width>
    <Height>512</Height>
  </Map>
  <Tiledata>tiledata.mul</Tiledata>
  <Radarcol>radarcol.mul</Radarcol>
  <Accounts>
    <Account>
      <Name>Danamoth</Name>
      <PasswordHash>c68087d487343fb8f973b49ee53f267f</PasswordHash>
      <AccessLevel>255</AccessLevel>
      <LastPos x="2768" y="2000"/>
      <Regions/>
    </Account>
  </Accounts>
  <Regions/>
</CEDConfig>

1) Start cedserver, extracted to the UO directory.
2) Start CentrED, and use the UO directory "C:Users<username>DesktopUltima Online 2D Client" to take files from.
3) Edit the map.
4) Go to Administration -> Flush -> Shutdown
5) I start the RunUO server (the code for the datapath is below)

using System;
using System.IO;
using Microsoft.Win32;
using Server;

namespace Server.Misc
{
public class DataPath
{
/* If you have not installed Ultima Online,
* or wish the server to use a separate set of datafiles,
* change the 'CustomPath' value, example:
*
* private const string CustomPath = @"C:Program FilesUltima Online";
*/

        private static string CustomPath = @"C:Users<username>DesktopUltima Online 2D Client";

6) I start Razor, and use the UO directory to pull the map.
7) I log in using the owner account and find the map I had when I first loaded CentrED before editing anything.

Help! I've tried a lot of different things. The only thing I can think of is that CentrED is saving the files (or is supposed to be saving the files) in another directory other than the UO directory. Other than that I have no clue. I've tried looking in C:Users<username>AppDataLocalCentrED, however it is nowhere to be found.

I appreciate your help in advance!
Title: Re: Really new to the whole.. CentrED thing.
Post by: Hitman on June 08, 2010, 11:36:30 PM
One thing you could check is, if the file time changes after you close cedserver. If not, then they got not written to.
Title: Re: Really new to the whole.. CentrED thing.
Post by: Zankin on June 15, 2010, 02:00:17 AM
It worked when I ran both programs as Administrator. Otherwise it wasn't writing to the file.

Thanks!
Title: Re: Really new to the whole.. CentrED thing.
Post by: Hitman on June 15, 2010, 01:05:55 PM
Strange, since it is in your home directory, it should work without. But at least it works now :-)