Topic: Controlling Spacedock  (Read 8150 times)

0 Members and 1 Guest are viewing this topic.

NuclearWessels

  • Guest
Re: Controlling Spacedock
« Reply #80 on: February 06, 2004, 08:46:10 am »
Here is the order of stats in the flatfile - but you'll have to check how this lines up with the start of the data sequence in the ship blob (haven't checked if this lines up with the start of the ship blob, or if there are a handful (say 1-9) bytes of other stuff at the beginning of it)

Each of these fields are 1 byte, so two hex digits
Code:

   Right warp total (damaged + undamaged)
   Right warp current
   Left warp total
   Left warp current
   Center warp total
   Center warp current
   Impulse total
   Impulse current
   Apr total
   Apr current
   Bridge total
   Bridge current
   Sensor total
   Sensor current
   Scanner total
   Scanner current
   DamCon total
   DamCon current
   Repair total
   Repair current
   Fwd hull total
   Fwd Hull current
   Aft hull total
   Aft hull current
   Center hull total
   Center hull current
   Tractor total
   Tractor current
   Excess dam total
   Excess dam current
   Transporters total
   Transporters current
        ??? total
        ??? current
   Battery total
   Battery current
   Labs total
   Labs current
   Cargo total
   Cargo current
   Armour total
   Armour  current
   Cloak total
   Cloak current
   Probe total
   Probe current
   Barracks total
   Barracks current

        Then there are 25 pairs, one for each weapons hardpoint,
                Weapons on hardpoint i total
                Weapons on hardpoint i current

         Then we get 11 bytes of ???

         Then a burst covering drones:
         Drone type
         Drone speed
         Drone reloads
         ???
         Drone racks
         ???
         Max drones
         Then 4 bytes of ???
         Current drones
         Then 4 bytes of ???

         Heh, then it gets a little tricky
         For each of the 25 hardpoints, there are 4 entries of 2 bytes each
               current number of drones in the hardpoint
               current number of racks in the hardpoint
               size/type of drone rack in the hardpoint
               and 2 bytes of ???

        Then we get a big chunk of ???
        However, 325 bytes past the RWtotal, we get
              Shuttles max, then
              Shuttles curr

   Then another glorious whack of ???,
             until, 440 bytes past the RWtotal, we get
   Marines max
        Marines current
        Marines current again?
        Tbombs max
        Tbombs current
        Tbombs current again?
        Spares max
        Spares current
        Spares current again?

        Finally, we get the information on the four fighter bays
        For each bay:
               Total fighters in the bay
                Current fighters in the bay
                Default number of fighters in the bay
                One byte of ????
                4 bytes telling you how long the string for the fighter type is
                      followed by the actual fighter type currently loaded (e.g.  H-Hornet-1 or whatever)
                 4 bytes telling how long the string for the default fighter type is
                       followed by the default fighter type for that bay (from the shiplist)




loads o' fun
dave
 

Bonk

  • Guest
Re: Controlling Spacedock
« Reply #81 on: February 06, 2004, 04:56:06 pm »
Cool Dave that ought to help some. But I have some really neato cool real work to do, and RDSL starts tomorrow!!! Aggh! "It never rains around here..."

 
Quote:

 And "Ship Cache Vector" Determines the "Stats" of the ship?  




The shipcachevector blob is in the servcharacter table and describes the ships in the possesion of the character.

i.e. If I change the Owner of a ship in the ship table to my character's ID, I do not get the ship. The shipcachevector blob for my character record must also be edited to show that I own the ship. (Thus I have passed them through the biditem table to make the ship actually owned by the character - as recommended by DarkElf...) It would be nice not to have to use the biditem table and instant purchases however, for the reasons mentioned.

All the appropriate "stats" for each ship are stored in the ship table in the "Damage", "Stores" and "Officers" blobs. (oh how I wish they were in linked tables of their own...) The remaining information for each ship that is necessary is gathered from the shiplist when needed I imagine.

 
Quote:

 Yes, all the ships in the shipyard appear exactly like player owned ships, they just have no owner id associated with them (the owner id is probably 0 in the table IIRC)




Correct, except that the state of the blobs will differ for player and AI owned ships as they are dmaged and resupplied etc...
(useful to decode the blob structures, this is how weve done most of it - by comparing the unowned ship to ships we've damaged or supplied to various states... - [we refers to txtanker, UDF_Intruder and I]... search on those usernames here for more info and I sincerely apologise for the fact that a search on the Anonymous username will be of no assistance... )

I will gather and post the blob structure work from those threads and correspondence shortly...  

some threads with hints and some data:
http://forums.taldren.com/ubbthreads/showflat.php?Cat=&Board=UBB2&Number=14992
(just remembered the pertinence of the OpenShipBids blob in the servcharacter table here too...)
« Last Edit: February 06, 2004, 05:22:45 pm by Bonk »