More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 21, 22:48:15

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  The Bowels of Trogdor
| |-+  The Small Intestines of Trogdor
| | |-+  New "54" format TTABs
0 Members and 3 Chinese Bots are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: New "54" format TTABs  (Read 16584 times)
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
New "54" format TTABs
« on: 2006 October 21, 07:58:03 »
THANKS THIS IS GREAT

Peter is going to start updating PJSE today to accept format 54 TTABs.   To save some time though, has anyone here already deciphered their format and would share with us?
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: New "54" format TTABs
« Reply #1 on: 2006 October 21, 10:10:50 »
THANKS THIS IS GREAT

I haven't found anything. Not even sure what benefit they have over the oldstyle format, since I was able to retrofit a terlet to be pet-enabled just fine...
I would surmise they pointlessly scrambled things around just to be nuisances, like when they made the 8009s that they now use ubiquitously, despite the fact that there's no benefit to them except a field that is basically never used. Waste of space.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #2 on: 2006 October 21, 10:23:23 »
THANKS THIS IS GREAT

Well it is already looking a bit stupid even before we've worked it out.  There are only 5 agegroup settings in it, and I think they stuck the animal stuff into a separate matrix.  But this theory could change...
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #3 on: 2006 October 21, 11:21:39 »
THANKS THIS IS GREAT

Oh, no it's not that bad after all.  What you do get with this format is a per-menu item count of agegroups for the motives matrix.  Those that were not intended to be autonomous now have zero agegroup count - ie no motive matrix at all.  That means for those formats, PJSE needs to offer another field for agegroup count, to enable you to populate the matrix if you want to make some options autonomous that Maxis had non-autonomous.

Later:  Pets interactions don't appear on the TTABs of the objects they use.  Dogs and Cats columns of the TTAB motives are not used - we think so far.

Later still:  Yes they do!!  Lol whoever made this menu format was having a very jolly time on something Cheesy
« Last Edit: 2006 October 21, 14:15:34 by Inge » Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #4 on: 2006 October 21, 19:41:09 »
THANKS THIS IS GREAT

Where's my avatar gone?

Anyway this is the TTAB 54 info:

The 0x07 or 0x08 (at 0x4c) refers to number of entries in the menu in both formats

Each line has VARIES bytes starting from Action BHAV.  It used to be strictly 0x2EA in 4E format

Non-matrix data per line
------------------------
Format54 has has lost the 28 bytes that used to be the count of motive rows but has gained 8 bytes, comrised as follows: Just before the matrix data for each line is a 4-byte count of how many agegroups there are for the humans.  We have seen up to 5.  After the human matrix date there is a  group of 4 bytes saying how many animal agegroups or equivalent there are.  We have seen up to 8

Matrix data per line
--------------------

Human matrix
------------
Broken down by agegroup.  The first 4 bytes of the motiveperagegroup says how many motive lines are in the matrix - which is equivalent to the highest numbered motive dealt with.  The in between ones are padded with zeroes if not required.

Each field (min,typ,delt) is still 2 bytes.


Animal Matrix
-------------
Works pretty much like the human grid except there are an unknown 4 bytes after the motive count in each grouping.  Any ideas?



I was gonna write this up in the Wiki but it's all full of dword and float rubbish and I can't wtrite it like that.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #5 on: 2006 October 21, 20:01:40 »
THANKS THIS IS GREAT

8 animal age groups? I thought animals only had 3 max.
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #6 on: 2006 October 21, 20:06:02 »
THANKS THIS IS GREAT

As far as I am aware, as the game is played, there is kitten/puppy, adult, elder.   However, there are definitely at least 8 groupings similar to the column groups for human sim ages, which are populated with motives tests for "sit" on sofas.   We are not totally sure there won't be an example with more, although we're assuming it's highly unlikely.

Maybe cats and dogs have a separate set each, and perhaps one or two for wolves? or Werewolves?
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #7 on: 2006 October 21, 20:10:03 »
THANKS THIS IS GREAT

Oh I see. That makes sense. The way it goes is most likely this:

Adult Dog, Elder Dog, Adult Small Dog, Elder Small Dog, Adult Cat, Elder Cat, Puppy, Kitten (not necessarily in that order)
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #8 on: 2006 October 21, 20:19:38 »
THANKS THIS IS GREAT

Ah yes, that fits
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #9 on: 2006 October 23, 10:04:57 »
THANKS THIS IS GREAT

Dizzy - you managed to work out this TTAB format yet?  We're stuck!
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #10 on: 2006 October 23, 19:50:32 »
THANKS THIS IS GREAT

What are you stuck on?
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #11 on: 2006 October 23, 22:04:00 »
THANKS THIS IS GREAT

Well the human motive table for each line is fine, there are 4 bytes saying how many agegroups and then per agegroup 4 byte saying how many motives (which is always just up to the motive affected, and then it cuts off).  There are 6 bytes per motive for humans.   That all adds up right, then the animal motive table starts.   It has 4 bytes which usually has "8" in it - which ties in nicely with the number of age/species column groupings.  Then each agegroup has a 4-byte field which matches nicely with the motive we'd expect to be adderssed by that object.   After that it goes horribly wrong because there seem to be senseless and inconsistent numbers of bytes  per agegroup.   For example, relax on the condo does not have the same number of bytes per age/species group as relax on the pet bed.   We can't find a way to predict how many bytes there are to a menu line any longer.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #12 on: 2006 October 24, 00:51:15 »
THANKS THIS IS GREAT

* dizzy makes a note to look into this more deeply

EDIT: FWIW here's a sorted dump file.

* dump2.txt.zip (42.74 KB - downloaded 473 times.)
« Last Edit: 2006 October 24, 02:11:20 by dizzy » Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #13 on: 2006 October 24, 08:56:42 »
THANKS THIS IS GREAT

Thanks I am taking a look at that now, though so far I haven't had a eureka moment...

A few hours later:  I've got the "eur" of eureka...   Thanks to this dump file and being able to move bits about to line them up and compare, something is emerging as a pattern.  Smiley
« Last Edit: 2006 October 24, 11:36:10 by Inge » Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #14 on: 2006 October 24, 12:03:48 »
THANKS THIS IS GREAT

This *could* be the "eka".   These start from after what would appear on the "settings" tab, which was too long to clutter this post with.   I have iterated once into each nest and another iteration would start from the next animal agegroup (at first tab depth)

0000 0000  no human agegroups
0800 0000  8 animal agegroups
   0F00 0000  animal motive count for first agegroup
      0000 0000
      0000 0000
      0000 0000
      0400 0000  four elements of 6 bytes in this motive
         0000 0000 0000 0000 0000 0000 0000 0000 0000 3200 0A00 1E00
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0000 0000
      0400 0000  four elements of 6 bytes in this motive
         0000 0000 0000 0000 0000 0000 0000 0000 0000 2800 0500 1400


and

0000 0000  human agegroups
0800 0000  animal agegroups
   0200 0000  motive count for first animal agegroup
      0000 0000
      0500 0000  five elements of 6 bytes in this motive
         2D00 2300 2800 0000 0000 0000 0000 0000 0000 0000 0000 0000 FBFF 0500 0000


Assuming the above is accurate, we just need to know what the counted elements of the advert represent.   I suppose there must be training stuff in there as well as needs.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #15 on: 2006 October 24, 18:03:45 »
THANKS THIS IS GREAT

Could be some decay values cross-referenced or something like that.  Tongue

I'll just toss this bit of Lua code out and see what everybody thinks:

Code:
PetTraits = {}
PetTraits.Gifted = 1
PetTraits.Doofus = 2
PetTraits.Hyper = 3
PetTraits.Lazy = 4
PetTraits.Independant = 5
PetTraits.Friendly = 6
PetTraits.Aggressive = 7
PetTraits.Cowardly = 8
PetTraits.Pigpen = 9
PetTraits.Finicky = 10
PetDecayIndices = {PersonData["Decay Hunger per Day"], PersonData["Decay Comfort per Day"], PersonData["Decay Bladder per Day"], PersonData["Decay Energy per Day"], PersonData["Decay Hygiene per Day"], PersonData["Decay Social per Day"], PersonData["Decay Fun per Day"], PersonData["Decay Scratch-Chew per Day"]}
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #16 on: 2006 October 24, 18:10:40 »
THANKS THIS IS GREAT

We picked those up for the C7 flag fields ok.  But as far as the menu adverts are concerned those shouldn't need to take up any more data space than the personality types for the human ads - delta and type.  Anyway once we get those displaying ok in simpe, it will be easier for everyone to come up with ideas for what they mean.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: New "54" format TTABs
« Reply #17 on: 2006 October 24, 18:11:45 »
THANKS THIS IS GREAT

Which will be soon, hopefully.  Wink
Logged

Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #18 on: 2006 October 24, 18:27:39 »
THANKS THIS IS GREAT

The plugin is having to be completely rewritten to cope with flexible length data unfortunately.  We got spoilt by the many preceding formats all in fixed byte chunks.   In a little while I can release a version with the extra persondata etc in and a non-crashing TTAB 54 display - that only shows the header!   In a day or two there should be a working format 54 with editable human and readonly animal data.  Hopefully by the end of the weekend it will be read-write.  I said to Peter in future we'll book his holidays for when an EP is due out, but for now unfortunately he'll be short of time till the weekend.
Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Inge
Round Mound of Gray Fatness
Senator
*
Posts: 4320


Senator Emeritus. Oh hold on, I am still a senator


View Profile WWW
Re: New "54" format TTABs
« Reply #19 on: 2006 October 24, 20:57:52 »
THANKS THIS IS GREAT

Well he got the debug version out a bit quicker than I thought.   You can't actually edit the animal motives on this version, but you can find out what they say at least without having to do a hexdump.   This version is only recommended for tech-heads or adventurous souls:  http://www.simlogical.com/externally_accessible/pjse.coder.plugin-Debug-20061024-2142.zip

Logged


\"They\'re here, on the forum. A question riddled, spoiler giving, speculative cancer of sim evil\" -- redearth, Snooty Sims, 2009
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.088 seconds with 20 queries.