'Save world as morph file' problems?
Ned Konz
ned at bike-nomad.com
Sat Apr 21 17:21:29 UTC 2001
On Saturday 21 April 2001 10:18, Fleeberz at aol.com wrote:
> When I do a "save world as morph file" from the "changes" menu, I get this
> cryptic error message:
>
> MatrixTransform2x3(Object)>>doesNotUnderstand:
> ReferenceStream(DataStream)>>writeWordLike:
> ReferenceStream(DataStream)>>nextPut:
> FlashCharacterMorph(Morph)>>storeDataOn:
> ReferenceStream(DataStream)>>writeInstance:
> ...
> <bunch-o-stuff-snipped>
> ...
> WorldState>>doOneCycleFor:
> PasteUpMorph>>doOneCycle
> [] in Project class>>spawnNewProcess
> [] in BlockContext>>newProcess
>
> Anyone have clues about this? No, I don't even know what I'm doing, but the
> balloon for this "changes" menu item suggested that it would be an
> interesting experiment.
It appears to be broken. I posted the enclosed change set to the list earlier
but it hasn't been added to the update stream.
See if this change set helps you.
--
Ned Konz
currently: Stanwood, WA
email: ned at bike-nomad.com
homepage: http://bike-nomad.com
-------------- next part --------------
'From Squeak3.1alpha of 7 March 2001 [latest update: #3848] on 28 March 2001 at 1:39:10 pm'!
"Change Set: MatrixTransformStoreOnFix-nk
Date: 28 March 2001
Author: Ned Konz
This allows MatrixTransform2x3 (and TTSampleStringMorph)
instances to be stored on and read from a stream."!
!MatrixTransform2x3 methodsFor: 'storing' stamp: 'nk 3/28/2001 13:26'!
writeOn: aByteStream
(WordArrayForSegment withAll: self) writeOn: aByteStream! !
!MatrixTransform2x3 class methodsFor: 'instance creation' stamp: 'nk 3/28/2001 13:28'!
newFromStream: aByteStream
| wa newMe |
wa _ WordArray newFromStream: aByteStream.
newMe _ self new.
1 to: 6 do: [ :i | newMe basicAt: i put: (wa at: i) ].
^newMe! !
More information about the Squeak-dev
mailing list
|