Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Ah, I feel like I'm going crazy. I know I saw in a rpy file there was a way to add a new contact in without having them there originally from the start but now I can't find it to reference. Could you provide the code again, please? I feel bad that I keep bugging you with such little things :(

Its in this comment thread :) Scroll up a little ^ 

(2 edits)

Just to add, ive created some helper functions to add a member, remove a member, and rename a member. Will be in the next release, so should be a lot easier soon :) If there's anything else you're struggling with, please let me know

I'd rather add helper functions for common use cases than have people getting frustrated :)

Oh no. I didn't mean the change the name. I meant let's say you start off with two contacts in the beginning, but then you make a friend later and want to add them in as a contact. names are changed to fit my story but i believe the original names were mc and kesash and this was supposed to add them in as a new contact

$ cliff_kiana_conversation['members']["mc"] = {"disable_messaging": False, "profile":"test/mc_profile.png"}

Yea if you had a phone with the name 'mc' that should add that conversation as a contact to that phone, the example is in the chat with sarah, the one about group chats

So just to make sure I understand, this code is how to create a new contact in an already made conversation? Maybe I wasn't clear with my intentions, but what I'm trying to do is create a new solo contact with their own unique conversation, not adding them into an existing conversation. And not changing the name either.

If youre making a new conversation you use the kps_build_conversation, and each member of it you use kps_member (or member if its a version before i added all the kps prefixes)