[Current Forum ] [Archive 2003 - 2005]
[Register]  [Profile]  [Preferences]  [Search]
[Private messages]  [Memberslist]  [FAQ]  [Login]
Subsim Radio Room Forum Index » » Sub Command » » Importing and Exporting in latest Luger SCEdit
Author Importing and Exporting in latest Luger SCEdit
XabbaRus


Joined: Feb 28, 2002
Posts: 2792
Posted: 2002-04-10 08:50   
OK If I've understood the readme right I cna now do this.

Create a new ship class. Then export it and only it.

Import a new ship class made by some one else.

This feature obviates the need to send someone a complete database right?

Also it means I can incorporate someone elses changes ie Gator's and still keep any of my own mods. This is of course ignoring bugginess for now. I just want to understand the theory.
_________________

Project 971


  View Profile of XabbaRus   Goto the website of XabbaRus   ICQ status       Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-04-10 09:26   
Hi


Actually, I have just been trying a few Exports and Imports with 1.0.7,3...and it seems to be working fine.

I had tried with previous versions...and it got a bit sticky.

I'm gonna try a big Import/Export and see what happens.

I'll check back later.


Cheers
Tom

_________________
He Who Will Not Risk Cannot Win


[ This Message was edited by: Thomasew on 2002-04-10 10:33 ]


  View Profile of Thomasew      Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-04-10 11:03   
Hi

No.....it's still getting a little mixed up somewhere.

I export 2 Objects from my main database....Seawolf, which is an old object, but I have changed all of it's sensors, and created new ones. I also exported a new object...the Brandenburg, which has default sensors. Export goes fine.

When I Import to a default 1.05 database, the Seawolf seems fine....but the Brandenburg has a couple of it's sensors jumbled up. What is weird, is that it is now using some of the Seawolf's new sensors....even though the record numbers are different. e.g. The Brandenburg uses sensor '0008: Active Intercept' in my database. The Seawolf uses sensor '0107: AN/WLR-9 AIR'.

SO, when I import the Seawolf and the Brandenburg, the Brandenburg now uses the same 'Active Intercept' sensor as the Seawolf i.e. AN/WLR-9 etc. But, sensor '0008: Active Intercept' is the same in my database, as it is in the default database. Very Odd. No Sensor numbers changed...so, why does it suddenly want to use a different sensor.

I'll have to do some more tests.

Cheers
Tom

_________________
He Who Will Not Risk Cannot Win

[ This Message was edited by: Thomasew on 2002-04-10 13:24 ]


  View Profile of Thomasew      Edit/Delete This Post   Reply with quote
serpent46


Joined: Feb 28, 2002
Posts: 61
From: Bielefeld, Germany
Posted: 2002-04-10 17:36   
Hello Tom, Xabba
the logic behind import is very complicated and confusing even to me

In general, the app will fist lookup the f.e. Sensor Index of the ToBeImported Object in the Old DB.
If found, it will compare the OldSensors's name with the new Sensors's name.
If the index and the names are identical, the ToBeImported Sensor is assumed to be the 'same' as the Sensor in the old DB.
(If not, it is considered as NEW, also if the index wasn't found in the old db)

Now the app has to validate if the actual Sensor-Data has been changed, it compares the old recordset with the new one. If any byte differs, the old Sensor will be marked as modified and will be replaced with the new one. (if not, nathing will be done)

The whole procedure gets really nasty, if it comes to f.e. entities, which don't have a unique name.
At the moment the app doesn't do any further checkings on entities; still looking for a conveniant solution to compare entity data...

Tom,
concerning the Sensor problem, I would need your modded DB to narrow down the problem.

btw.
during my test right now, I encountered some strange probs, with the filename to be saved to. Will look into this right now and fix it...

Ciao
Ludger


  View Profile of serpent46   Email serpent46        Edit/Delete This Post   Reply with quote
Thomasew


Joined: Feb 28, 2002
Posts: 1898
From: Bluewater Bay, South Africa
Posted: 2002-04-11 00:36   
Hi Ludger

I found the problem....and 'it is' to do with the 'Unique Name'. Many of the Sensors that I added, only have their 'Display Names' changed....not their 'Unique Names'. Many of the sensors can be essentially the same 'Type' of sensor.....but with varying capabilities, and, obviously...different display names.....as it is the 'Display Name' that is used during game play.

It would seem that if you Import an 'Object', that uses a 'Sensor', where there is more than one sensor with the same 'Unique' name....then it defaults to using the last one in the list.

In some cases, if you create 3 or 4 sensors with the same 'Unique' name (different display names) in one database, and then Import from another database, where it also has 3 or 4 sensors with the same 'Unique' name (but, also, totally different display names) the import can overwrite the 'New' display names on the existing database....because it is not looking at the 'Display Name'.

According to the documentation, 'Record Sets' are referenced by their Record Number....and not...Record Name. Is it, in fact, referenced by both? i.e. Unique Record No. and Unique Record Name?

Thanks

Cheers
Tom
_________________
He Who Will Not Risk Cannot Win


  View Profile of Thomasew      Edit/Delete This Post   Reply with quote
serpent46


Joined: Feb 28, 2002
Posts: 61
From: Bielefeld, Germany
Posted: 2002-04-11 04:22   
Yes Tom,
you are right.

Scedit uses a 'simple' Name-Map, which is build up at loadtime. This Map
stores the Name of an Item in relation to the Items index.
If a name is duplicate, the last index will be replaced.

Maybe I could solve the Sensor problem by comparing the combination of the display name
and the unique name. Entities then would be considered the same, if the combination of Name and the Ship No. is the same. ShipClasses then would be considered the same, if the combination
of Name and the related countryname would be eual.

Hm, looks like there is still some work to do...

Ciao
Ludger


  View Profile of serpent46   Email serpent46        Edit/Delete This Post   Reply with quote
Lock this Topic Move this Topic Delete this Topic
Powered by phpBB Version 1.4.4
Copyright © 2000 - 2001 The phpBB Group

phpBB Created this page in 0.036169 seconds.