saving list references (George please look)

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

From the other topic I talked about the various things you can do with lists.

The only problem is that objSetData destroys this information (ie changes in one part of a list can effect other parts and changes to a list will change lists that was made from it). Can we have a function or change the current data functions to preserve how a list would normally act?

A simple way to test this is to put these lines in the console.

(set "savelist" '(a b c))
(objsetdata gplayership "savelist" savelist)
(lnkremove savelist 0 nil)
(objgetdata gplayership "savelist")

and as you can see the savelist in the ship isn't effected.
Crying is not a proper retort!
Post Reply