Groups and sims in them being unique
19 years 1 month ago #18589
by Joco
Groups and sims in them being unique was created by Joco
I thought I would share this in case someone else gets bitten by it.
In the POG help file on groups it says
"Groups are primarily an unordered collection of unique hsims sequentially stored in an array structure ..."
I have highlighted the key phrase. The handles must be unique. So you might thing (as I did) that this means unique within a group. So therefore I can have a sim handle in multiple groups. WRONG!
I have tested this and a sim handle must be unique across ALL groups.
See the log from my little proof:
SCRIPT: [unknown] <
Proof 2 START
>
SCRIPT: [unknown] t1 grp sim count = 0
SCRIPT: [unknown] t2 grp sim count = 0
SCRIPT: [unknown] <
add sim to t1
>
SCRIPT: [unknown] t1 grp sim count = 1
SCRIPT: [unknown] t2 grp sim count = 0
SCRIPT: [unknown] <
add same sim to t2
>
SCRIPT: [unknown] t1 grp sim count = 0
SCRIPT: [unknown] t2 grp sim count = 1
SCRIPT: [unknown] <
Proof 2 END
>
In the POG help file on groups it says
"Groups are primarily an unordered collection of unique hsims sequentially stored in an array structure ..."
I have highlighted the key phrase. The handles must be unique. So you might thing (as I did) that this means unique within a group. So therefore I can have a sim handle in multiple groups. WRONG!
I have tested this and a sim handle must be unique across ALL groups.
See the log from my little proof:
SCRIPT: [unknown] <
Proof 2 START
>
SCRIPT: [unknown] t1 grp sim count = 0
SCRIPT: [unknown] t2 grp sim count = 0
SCRIPT: [unknown] <
add sim to t1
>
SCRIPT: [unknown] t1 grp sim count = 1
SCRIPT: [unknown] t2 grp sim count = 0
SCRIPT: [unknown] <
add same sim to t2
>
SCRIPT: [unknown] t1 grp sim count = 0
SCRIPT: [unknown] t2 grp sim count = 1
SCRIPT: [unknown] <
Proof 2 END
>
Please Log in or Create an account to join the conversation.
- GrandpaTrout
- Offline
- King of Space
19 years 4 weeks ago #13906
by GrandpaTrout
Replied by GrandpaTrout on topic Groups and sims in them being unique
Much pain has been caused by this. I think the information is worth a post in the cool POG tricks thread. Tricks you can do with POG or tricks POG plays on you, are equally welcome.
Please Log in or Create an account to join the conversation.