Title: Custom globals Post by: Inge on 2007 December 14, 11:08:27 I just wanted to ask Pescado and other hackers here if they have created new custom globals (BHAVs and other resources) and what range they have used. This is probably as important to note as keeping the GUIDs unique :)
I have started using the range 0x0900 for BHAVs Title: Re: Custom globals Post by: J. M. Pescado on 2007 December 14, 11:31:13 Nein. Custom globals is something I avoid at all cost. My preferred method is to use RTBN 2 or 3 to invoke code on a control object by BHAV using a Global RTBN name instead. Certain versions of the game engine (NL is a known culprit) will randomly go down in flames if you even mention high-numbered globals, whether or not they exist. You don't even have to run them, the mere MENTION of it anywhere in the code, even if it is never, ever, invoked, may send the entire game down in flames, CTD/BSOD style. Extremely unstable engine.
Title: Re: Custom globals Post by: Inge on 2007 December 14, 11:46:19 Well, it didn't have that effect on my users fortunately, or on Jase's (it just kills kittens) :) RTBN doesn't work too well in a test tree. Glad to hear you avoid them though, it leaves me more numbers to pick from :D
Title: Re: Custom globals Post by: J. M. Pescado on 2007 December 14, 11:49:31 Well, it didn't have that effect on my users fortunately, or on Jase's (it just kills kittens) :) RTBN works fine in a test tree. The entire "Plugin Social" runs on RTBNs in test and execution trees.RTBN doesn't work too well in a test tree. Glad to hear you avoid them though, it leaves me more numbers to pick from :D Help yourself. :PTitle: Re: Custom globals Post by: dizzy on 2007 December 15, 05:23:19 Ouch. I wouldn't use custom globals again. Debug hell. You're welcome to it Inge, but don't say we didn't warn you.
Title: Re: Custom globals Post by: Inge on 2007 December 15, 09:55:17 PJSE is a bit (lot) more helpful than it used to be about that. At one time if you had someone's hacked globals or semis in your Downloads folder, you'd end up viewing or importing those - because of course they were overrides - and you would not know. Now PJSE tells you you're viewing an override and offers you the chance to see and use the original instead.
Title: Re: Custom globals Post by: dizzy on 2007 December 15, 16:15:15 It isn't just the way SimPE works that is problematic. There are many times when I work on something ordinary where through 3 or 4 revisions, I make only subtle changes that should not affect the logic of the code, but somehow manages to work differently anyway. Were I doing that to a custom Global or custom PersonGlobal, I doubt the code would work consistently at all.
Title: Re: Custom globals Post by: Inge on 2007 December 15, 16:47:58 Well, presumably you attempt to only have one unique instance of that instance in your downloads at any time? And if Maxis didn't have one by the same number anyway, I can't see how it could be running the wrong BHAV. I mean you take out your old versions first before installing the latest, don't you?
Title: Re: Custom globals Post by: dizzy on 2007 December 16, 01:03:40 The problem is not conflicts. The problem, I think, is that you can't count on the state of the VM even for ordinary modifications. It goes without saying that WTF type problems will show up with the type you're proposing to do.
Title: Re: Custom globals Post by: Inge on 2007 December 16, 23:46:15 Why have you got that blue horseshoe thing instead of the bonfires?
Title: Re: Custom globals Post by: J. M. Pescado on 2007 December 17, 01:55:12 New Senate icon.
Title: Re: Custom globals Post by: Inge on 2007 December 17, 09:17:48 That's a bit dignified and serious for MATY isn't it? Whatever next, Kewian with a cute toddler avatar?
|