More Awesome Than You!
Welcome, Guest. Please login or register.
2024 April 28, 23:14:34

Login with username, password and session length
Search:     Advanced search
540270 Posts in 18066 Topics by 6513 Members
Latest Member: Linnie
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Troubles with tokens
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Troubles with tokens  (Read 3750 times)
ScoobyDoo
Corpulent Cretin
*
Posts: 146


View Profile
Troubles with tokens
« on: 2007 December 05, 10:35:43 »
THANKS THIS IS GREAT

Has anyone seen this: I create a token, I do a force error and the log shows the token, however when I save the lot and re-enter it, the token no longer exists on the sim?

Edit: what difference is there between using the save button and saving using the return to neighborhood ("do you want to save before....?")?  It doesn't save the token with the save button, but does with the return to hood.  Undecided
« Last Edit: 2007 December 05, 12:19:23 by ScoobyDoo » Logged
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Troubles with tokens
« Reply #1 on: 2007 December 06, 00:30:08 »
THANKS THIS IS GREAT

Maybe it doesn't like the type of token you're creating. I haven't seen that problem with visible memory or personal inventory tokens, so I must assume you're doing something it doesn't like.
Logged

ScoobyDoo
Corpulent Cretin
*
Posts: 146


View Profile
Re: Troubles with tokens
« Reply #2 on: 2007 December 06, 01:21:10 »
THANKS THIS IS GREAT

The Add token of guid is non-visible, non-memory. 

I can create the token and it does show up when I do a force error, but the game doesn't seem to save it when leaving the lot.  BTW does it matter that the object that created the token is destroyed and recreated?  (it's crammys penis mod)
« Last Edit: 2007 December 06, 01:26:57 by ScoobyDoo » Logged
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26281



View Profile
Re: Troubles with tokens
« Reply #3 on: 2007 December 06, 01:32:46 »
THANKS THIS IS GREAT

You do not need to create any object before adding a token of that GUID. You are probably simply doing it wrong, but without more specific details of what you're doing, there's not much we can do to help. Manage Inventory is fussy.
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.
ScoobyDoo
Corpulent Cretin
*
Posts: 146


View Profile
Re: Troubles with tokens
« Reply #4 on: 2007 December 06, 03:10:27 »
THANKS THIS IS GREAT

Heres the package at this point in time: http://scoobydoo.freespacemods.net/Problems/Downloads.rar

The controller is crammy's own work, from what i can tell, it creates and removes it when necessary.  The token for the accessory is created once the user makes some changes to the accessory itself. From what I can tell, the controller doesn't touch the accesory's token, instead it has it's own token.

YES!!!!!!! I believe I've found the bug. In order not to conflict with crammys original tokens, i re-guid my token.  Course makes sense now... the engine didn't see the guid of the token in the list of guids for accesories, objectes...etc so it simply decided to leave it out. I'll just have to give my first token entry a unique number like 1000, so I can detect if I'm reading in the old crammy token or my new entries.


Btw Pescado, would you or some very bhav knowledgeable person, go through my code when I've basically finished it, so I know I haven't made a really bad mistake?  When I'm done I'll write up a Word doc commenting the code.  (Oh how I wish there was a comment bhav)
« Last Edit: 2007 December 06, 07:31:53 by ScoobyDoo » Logged
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Troubles with tokens
« Reply #5 on: 2007 December 06, 08:37:58 »
THANKS THIS IS GREAT

There are comment types, but as they very rarely appear from Maxis, they could not properly be reverse-engineered (which is what we're forced to do in order to mod anything).

As for QA, that's easy. If it goes boom then you did something wrong or Maxis added some more crap to their already bloated and heavily inconsistent arbitrary syntax.
Logged

J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26281



View Profile
Re: Troubles with tokens
« Reply #6 on: 2007 December 06, 08:39:27 »
THANKS THIS IS GREAT

There are comment types, but as they very rarely appear from Maxis, they could not properly be reverse-engineered (which is what we're forced to do in order to mod anything).
A TRUE Klingon warrior does not comment his code!
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.
ScoobyDoo
Corpulent Cretin
*
Posts: 146


View Profile
Re: Troubles with tokens
« Reply #7 on: 2007 December 06, 09:23:09 »
THANKS THIS IS GREAT

It's sorta like Perl... write once, read never   Cheesy
Logged
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.071 seconds with 20 queries.