More Awesome Than You!

The Bowels of Trogdor => The Small Intestines of Trogdor => Topic started by: dizzy on 2006 October 14, 16:56:09



Title: It's ... dizziness (1.1b)
Post by: dizzy on 2006 October 14, 16:56:09
Here's my latest project I'm hoping I can replace disaSim2 with. This is a python-glade-gtk program that will let you view package files.

Sorry but no searching or dumping searching is a little limited, but is now implemented. I still need to make some minor improvements in the speed of the package handling for that.

Contains a non-functional editor bar and some cosmetic improvements, but is otherwise the same as 1.0w.

EDIT (1.1b): Updated slightly for Bon Voyage. Fixed a few more bugs.

This is also a source-only distribution, but that shouldn't be a problem for you Awesome modders.  ;)

Feel free to criticize, make jokes, or modify to your heart's content. This program is PUBLIC DOMAIN.

Some time between 1.1 and 1.2, I plan to upgrade the requirements of dizziness to the following:

Python 2.5:  http://www.python.org/
GTK+ 2.10.6:  http://gladewin32.sourceforge.net/
PyGTK 2.10.3:  http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.10/pygtk-2.10.3-1.win32-py2.5.exe
PyGObject 2.12.2:  http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.12/pygobject-2.12.2-1.win32-py2.5.exe
PyCairo 1.2.2:  http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/1.2/pycairo-1.2.2-2.win32-py2.5.exe

Feel free to upgrade before then.


Title: Re: It's ... dizziness
Post by: J. M. Pescado on 2006 October 14, 17:08:17
This is definitely more Bowels of Trogdor material than something for general Peasantry.


Title: Re: It's ... dizziness (1.0c)
Post by: dizzy on 2006 October 18, 04:58:32
Actually, this tool is fairly user-friendly at this point. It's still somewhat lacking in certain areas, but it isn't altogether technical. You don't need a CS degree to use it, anyway. ;D


Title: Re: It's ... dizziness (1.0c)
Post by: J. M. Pescado on 2006 October 18, 05:31:19
Disasims is pretty Bowels of Trogdor anyway. :P


Title: Re: It's ... dizziness (1.0d)
Post by: dizzy on 2006 October 19, 03:23:04
Code:
###
# Group = 0x7F028F29, Instance = 0x106B
# Title = Pet - Get In T[0] - % Pet Population
#
# Format = 8009, Params = 0, Locals = 2
# Tree type = 0, Header flag = 0, Tree version = FFFF800B (-32757), Cache flags = 0

     0: Stack Object := 0; true: 1, false: error
     1: Set to Next: person or pet (0x28); true: 3, false: 8
     2: Pet - Is Pet?(Stack Object); true: 4, false: 1
     3: Local 0 += 1; true: 2, false: error
     4: Local 1 += 1; true: 1, false: error
     5: Temp 0 := Local 1; true: 6, false: error
     6: Temp 0 *= 100 (0x64); true: 7, false: error
     7: Temp 0 /= Local 0; true: true, false: error
     8: Local 0 != 0; true: 5, false: false

So, I guess we're limited to 327 total pets?


Title: Re: It's ... dizziness (1.0d)
Post by: twojeffs on 2006 October 19, 06:32:01
Hahahaha. Stupid coders. They have an LUA already written to bypass that overflow problem.


Title: Re: It's ... dizziness (1.0d)
Post by: syberspunk on 2006 October 19, 08:11:38
Heh. It's funny. Apparently their coding dept. doesn't seen to know their heads from their asses. Or what's the better expression? How the head doesn't know wtf the tail is doing or vice versa. They probably don't even have any documentation on the individual BHAVs or primitives and a standard way of coding things or list of BHAVs or primitives to use when doing something typical. ::) They're all like multiple heads running along with their own without consulting each other, with a mish mosh of copying and pasting existing code along with constantly reinventing the wheel. God, what a fraking mess. :P

Ste



Title: Re: It's ... dizziness (1.0d)
Post by: J. M. Pescado on 2006 October 19, 09:14:10
Apparently, they also weren't smart enough to realize VERY EARLY ON in the *TS1* design process that 16-bit numbers are very, very limited, and didn't even come up with a solution creative enough such as the old load high/low system. This stupid design move seems to have retained itself to this day, leaving TS2 mired in the 16-bit age when everything else is heading for 64-bit.


Title: Re: It's ... dizziness (1.0d)
Post by: Inge on 2006 October 19, 09:38:39
I think one of their problems is their team keep changing.  As soon as an EP is out, they send most of them (well the actual coders anyway) off to work on another game, leaving only perhaps a small management core who don't know the details of all the calls.  Then when it's time to work on the next EP, the original coders are probably still busy on the other project so they have to get together a new team.


Title: Re: It's ... dizziness (1.0d)
Post by: dizzy on 2006 October 19, 13:15:26
It's weird that they didn't use the Lua for that, but I guess it's no real problem. I think they're counting *instantiated* (i.e. on the lot) pets vs humans.


Title: Re: It's ... dizziness (1.0h)
Post by: dizzy on 2006 October 25, 21:23:19
(http://img67.imageshack.us/img67/1829/dizziness10hwx0.png) (http://imageshack.us)

I think the look+feel is starting to get there.  8)


Title: Re: It's ... dizziness (1.0h)
Post by: twojeffs on 2006 October 25, 21:46:29
Yes, coming along quite nicely. :)


Title: Re: It's ... dizziness (1.0h)
Post by: Inge on 2006 October 26, 09:47:35
It looks easier to use than disasim, anyway.  One of these days I shall collect those windows needs together and try it out.


Title: Re: It's ... dizziness (1.0h)
Post by: twojeffs on 2006 October 26, 14:54:17
It is much more user friendly than disasim, at least once you get all the dependancies downloaded and installed.


Title: Re: It's ... dizziness (1.0h)
Post by: syberspunk on 2006 October 26, 22:06:55
Very nice. It is convenient to have the whole thing in a single window. I dunno you've already considered/included this in your plans... but is it possible to have it so that, when it displays the code, it has hyperlinks to other BHAVs, sort of like how using disaSim would create hyperlinks if you did an html dump. That would be very useful. I was searching for a BHAV using the name from an error log, and it couldn't quite find it... and yet, it was supposed to be in global, and the BHAV that was calling it was also a global. I did a quick scan with my own eyes and I didn't see it either. I could probably eventually find it if I was more thorough, but I'm lazy. :P

Anyhew, awesome work! Great! Thanks for this!

/me mashes the thanks button repeatedly. ;D

Ste


Title: Re: It's ... dizziness (1.0h)
Post by: dizzy on 2006 October 27, 00:37:29
Honestly, I haven't thought much about context-sensitive text, but now that you mention it, it makes a lot of sense.

/me adds that to his todo

As for dependencies, dizziness will work with Ubuntu straight out-of-the-box (which was major plus for me). :D It's only slightly annoying to get those working in Windows.


Title: Re: It's ... dizziness (1.0o)
Post by: dizzy on 2006 November 14, 22:57:43
Now with Lua decoding goodness.  ;D

My decoder is a little easier to read than the SimPe's (and has fewer bugs).


Title: Re: It's ... dizziness (1.0o)
Post by: Inge on 2006 November 15, 10:56:57
Can you adapt it to make a simpe plugin?  I mean the lua decoder?


Title: Re: It's ... dizziness (1.0o)
Post by: dizzy on 2006 November 15, 12:43:17
Can I do it without having to handle any icky Microsoft developer software? It's already in Python, so it shouldn't be too hard to convert to whatever you're using already.


Title: Re: It's ... dizziness (1.0o)
Post by: Inge on 2006 November 15, 12:51:07
Well I could get Peter to take a look at it.   We really need to get more people writing plugins though, as Peter's already up to his neck in ToDo lists I have written for him :)


Title: Re: It's ... dizziness (1.0o)
Post by: J. M. Pescado on 2006 November 15, 12:55:23
Maybe you ought to get away from SimPE. We could have DizzyPE instead. Something less awful than that horrid New SimPE interface, which every coder in the Sims community I've talked to seems to hate.


Title: Re: It's ... dizziness (1.0o)
Post by: Inge on 2006 November 15, 13:07:20
Certainly for linux users and people who are confident to compile their tools from source, a DizzyPE would be a great asset.   We Quaxi-ists are trying to make stuff for the average user :D


Title: Re: It's ... dizziness (1.0o)
Post by: dizzy on 2006 November 15, 13:22:55
I like SimPE's interface fine (even though it's not quite as nice as dizziness).

As for SimPE's Lua decoder, what it really needs is to make the comparison and calling opcodes more readable (i.e. "goto" rather than some lazy PC += x and a nicer expression for equality/less-than/greater-than).


Title: Re: It's ... dizziness (1.0o)
Post by: J. M. Pescado on 2006 November 15, 19:47:16
Certainly for linux users and people who are confident to compile their tools from source, a DizzyPE would be a great asset.   We Quaxi-ists are trying to make stuff for the average user :D
The problem is that the "average user" does not hack things at all. This produces an interface that is thus completely nonfunctional for hacking stuff.


Title: Re: It's ... dizziness (1.1b)
Post by: dizzy on 2007 September 11, 00:26:08
Not that anyone cares, but I just updated this for Bon Voyage (and fixed a couple of bugs).