More Awesome Than You!

The Bowels of Trogdor => The Small Intestines of Trogdor => Topic started by: J. M. Pescado on 2006 March 01, 22:39:27



Title: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: J. M. Pescado on 2006 March 01, 22:39:27
Ugly little command line tool for quick and easy scanning for immediate hack conflicts for new patches and expansions. If you can't understand the directions, this is too awesome for you.

UPDATE 03/06/06: "Really Working This Time" Edition!

(http://www.moreawesomethanyou.com/zip.gif) hackdiff.zip (http://www.moreawesomethanyou.com/ffs/tools/hackdiff.zip)

Hack Diffing Tool v0.2b
Made by: Flying Fish Systems (J. M. Pescado & Doctor Boris)

Special Thanks To:
Dizzy & disaSims2

Congratulations to: Draklixa!
In Memoriam: Dizzy

INSTRUCTIONS:
hackdiff -d OLDOBJECTSPACKAGE NEWOBJECTSPACKAGE > diff.txt
THEN:
    hackdiff -i diff.txt -f HACKFILEPACKAGE
OR
    dir/s/b *.package > hacks.txt
    hackdiff -i diff.txt -l hacks.txt
If you can't understand this, this tool is too awesome for you!

FEATURES:
Scans old and new objects.packages from patches or new xpacks for differences
in BHAV/BCON/OBJD/OBJf/TTAB/TTAs/STR and spits out an index, then reuses index
to scan hacks.

SIDE EFFECTS:
May cause computer damage, incontinence, explosion of user's head, coma, death,
and/or halitosis.

WARNING:
Do not open, crush, dispose of in fire, put in backwards, short-circuit, or mix
with non-awesome hacks - may explode, leak, or catch fire, resulting in injury
and/or death.


Title: Re: Hack Diffing Tool!
Post by: twojeffs on 2006 March 02, 02:27:40
Excellent. This will certainly speed up the process (and the utter tedium) of manually checking them all.

In the words of her Ingeness: Thank you, this is great! :)


Title: Re: Hack Diffing Tool!
Post by: syberspunk on 2006 March 02, 09:18:50
Awesome! I was going to ask you if I could get a copy of the tool, but didn't t hink to check here. Yay! ;D

I'll try this out when I actually get my copy of OFB, hopefully later this week/soon.

Ste

PS. Anyone know if Crammyboy's still floatin around? And... whats with this

In Memoriam: Dizzy

Is there something you know that we don't? Has dizz officially gone AWOL or are they simply MIA? It did seem like dizz was losing interest. I'm hoping that dizz will resurface when OFB gets a wider distribution.

Ste


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 09:30:59
I hate EPs.


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 10:29:12
Is there something you know that we don't? Has dizz officially gone AWOL or are they simply MIA? It did seem like dizz was losing interest. I'm hoping that dizz will resurface when OFB gets a wider distribution.
My reports indicate that Dizzy was found dead in his home late November or maybe December. The cause of death was not known at the time, but believed to be foul play.


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 10:31:43
Pescado what are you talking about?  No one knows why Dizzy has disappeared and he *didn't* seem to be losing interest, he was working on a project when he vanished.  Yes he could have got ill or died, but we don't know.  If you have suddenly found out something that the rest of us haven't been told yet then please tell us properly.


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 10:36:44
That's all the information I happen to have right now. I can dig around some more if you want.


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 10:39:51
Well, are you sure you're not just getting the chinese whispers version?  I've been asking around a lot, and telling people I haven't seen him anywhere since November and that I am worried.  Now it's possible that speculation has been sparked by this and you're getting the result.  Really I think what I am asking you to make clear is, are you getting some sound information from a source close to him, or are you just hearing distorted rumours finally coming full circle?


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 10:42:33
I consider my sources to be reasonably sound: Their information has always been reliable unless they've been intentionally deceived by someone, so unless Dizzy has faked his own death, he's probably dead. The fact that this information fits established facts suggests that it is true.


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 10:51:27
Ok but bear in mind that none of his fellow contributors at VS knew recently.   I often take this sort of info with a pinch of salt, when I ask myself how such info would be made available.

For example, supposing I were to vanish tomorrow.  In my case, I have my own forums and Peter happens to be a co-admin.  He would probably eventually (when he felt calm enough to post messages) post something saying what had happened to me.

Now if it had happened a year ago, before Peter had joined the Sims community, I can't think how anyone would ever be able to find out why I was missing.   It's not like my ISP would divulge any details.

So in order for anyone to know what happened to Dizzy, one of the following would have to be true:
1) They knew his phone number or address, and someone else in his family replied with the information when they called
2) They knew his full real name and saw something in the newspapers
3) He had a family member or real life friend who was also in contact with the simming community and posted the news.

All the above you would have expected to be discovered earlier in the disappearance rather than later, and become hugely talked about in the community quite quickly.  Like when Jack Woods was involved in the hurricane.


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 10:55:56
All the above you would have expected to be discovered earlier in the disappearance rather than later, and become hugely talked about in the community quite quickly.  Like when Jack Woods was involved in the hurricane.
Well, there is always the rather gruesome and distasteful autoerotic asphyxiation death, which certainly tends to go unmentioned.

And who is Jack Woods?


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 11:00:23
If Dizzy was found dead my guess of cause would be something like a brain infection or tumour.  His last couple of days online he didn't seem to be as sharp as usual, and his last post was just weird.   Sometimes people pick a nickname that refers to a health condition they have.


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 11:12:46
Duh!!!  Well back on topic I went to use this and was having some difficulty composing the command line.  I didn't know what to put for the path to the new Objects.package.   Well, after struggling with it for about 10 minutes, it dawned on me I don't have such a path as I DON'T HAVE THE EP YET!!

/me punches herself in the head


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 11:44:37
/me points and laughs.
Silly Inge.


Title: Re: Hack Diffing Tool!
Post by: syberspunk on 2006 March 02, 13:19:04
Oh my lord...

Can I just highlight the following:

If Dizzy was found dead my guess of cause would be something like a brain infection or tumour.  His last couple of days online he didn't seem to be as sharp as usual, and his last post was just weird.   Sometimes people pick a nickname that refers to a health condition they have.

Duh!!!  Well back on topic I went to use this and was having some difficulty composing the command line.  I didn't know what to put for the path to the new Objects.package.   Well, after struggling with it for about 10 minutes, it dawned on me I don't have such a path as I DON'T HAVE THE EP YET!!

/me punches herself in the head


Hrm... I hope this isn't a sign of anything. I'm afraid stupid is a "health condition" and it seems to be contagious. As in <- I'm with and my apologies if you might have caught it from me. ;D

Wow... I would have thought that only I might be capable of doing something like that. Only... maybe I would cover it up with a little white lie and say I had difficulty testing it out on the NL object.package and an older one, like say from Uni or something. ;)

Ste


Title: Re: Hack Diffing Tool!
Post by: Inge on 2006 March 02, 13:38:39
Well,  ;) none of us is immortal.


Title: Re: Hack Diffing Tool!
Post by: J. M. Pescado on 2006 March 02, 14:12:26
Well,  ;) none of us is immortal.
Yes, but if you kill me, I'll come back from the dead and get you.


Title: Re: Hack Diffing Tool!
Post by: syberspunk on 2006 March 02, 21:59:14
Necromancy is bad, m'kay... ;)

Ste


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: dizzy on 2006 July 27, 08:22:32
What? No source code?


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: J. M. Pescado on 2006 July 27, 09:43:25
What? No source code?
If you reaaaally want it. Lemme go find where I stuffed it and I'll get back to you. I warn you, though. What I do to sourcecode is not as pretty as what happens to sims code.


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: dizzy on 2006 July 28, 02:26:22
Oh, okay. Well, then never mind.  ;D


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: J. M. Pescado on 2006 July 28, 03:11:43
Oh, okay. Well, then never mind.  ;D
Heh, yeah, in contrast with my Sims code, my C sourcecodes are known for being illegible masses of cryptically indecipherable gibberish.


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: Inge on 2008 May 26, 08:42:23
I am not going to say thank you, even though I was impressed with this tool, because I don't want my post deleted.  However, I finally forced myself to deal with the commandline input (I cheated and made a series of three batchfiles called FirstBit, NextBit, and LastBit).   After I got past that hurdle, the thing spoke to me in a quite friendly way "Hello my dear, you might like to have a look at this BHAV in that file".  So it was not an altogether unpleasant experience.   

It didn't however work out that some of them I had already updated or hadn't even made before FT came out.   Is it possible to make the app do something intelligent with comparing last modified date of the hack with the time of creation of the directory containing objects.package?  Or probably simpler, allow a date to be passed on the commandline so you can tell it you only want to know about hacks that have not been modified since that date?


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: J. M. Pescado on 2008 May 26, 20:39:21
It didn't however work out that some of them I had already updated or hadn't even made before FT came out.   Is it possible to make the app do something intelligent with comparing last modified date of the hack with the time of creation of the directory containing objects.package?  Or probably simpler, allow a date to be passed on the commandline so you can tell it you only want to know about hacks that have not been modified since that date?
The BHAV scanner is intentionally agnostic and does not read any of the data, so that it won't vomit if EAxis introduces an unknown format. Also, it doesn't do file dates because I don't know offhand how to retrieve those, and also because file dates are frequently misleading due to time zone issues. Besides, you couldn't possibly have updated something for FT *BEFORE* FT came out. I tend to mark updates by annotating directly onto the output file, putting a mark on the line of each BHAV as I examine or update it to indicate what I did to it in brief.

Finally, I often misuse this tool to search for a specifically modified BHAV. If, for instance, I don't know if a specific one of my 200+ hacks has modified a BHAV already or not, I can manually create a diff file by entering B <GROUP> <INSTANCE> and then scan my directories, and it will then find out if I have modified this BHAV in a hack already so I don't create a conflicting hack.


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: Inge on 2008 May 29, 20:39:07
If I have renamed some of the files to .xackage or something so they won't load into the game, can hackdiff still open them using a pattern of \MyHacks\*.?ackage


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: J. M. Pescado on 2008 May 29, 23:27:12
Hackdiff does not care what you name the file. If you feed it a file that is not a package, it will simply barf, probably not prettily. This really isn't made for idiotproofing, the program is written under the assumption you know what you're doing. Just remember the rule: Garbage In, Garbage Out.


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: Inge on 2008 May 30, 07:14:58
Dammit!  I was hoping it would dispose of my potato peelings  :(


Title: Re: Hack Diffing Tool! "Really Working This Time" Edition!
Post by: Inge on 2008 June 18, 09:29:34
As a result of using this tool, I can now announce an enhancement to SimPE that will make updating that little bit more pleasant.

In the BHAV plugin's "Special Buttons" there will be a Compare button.  It offers you a list of all the EPs you have installed and when you pick one, you get a BHAV viewing window with the comparable BHAV from that EP.   So without having to open multiple instances of SimPE or several different packages at the same time, you can see what changed between EPs at the same time as looking at your own modded version.

Also planned is a similar Compare button for BCONs, as well as an Upgrade button for BCONs (adds enough lines plus their current values to cover your latest installed EP)