Need a simple suggestion for my experiment

108 views
Skip to first unread message

GCB

unread,
Jan 3, 2022, 10:28:44 PM1/3/22
to oTree help & discussion
Hello everyone, 

I'm trying to merge two applications where players should enroll in one of each based on their randomly assigned IDs. 

1.One way to do that is basically merge two apps and define payoffs and represent relevant pages to players based on their IDs, however, I believe that this is not the most elegant way considering the efficiency both in coding process and when I upload the application to webserver. 

2.Another way is to pick players based on IDs in the first app and then assign one of the applications to relevant IDs ( which specifies their roles), this way is much simpler and more elegant I believe, BUT even if I save the IDs in first app and then  pick the relevants to enroll in 2nd app, there will be a waiting page for 1st app to finish. Rather than that, I would like to make them play simultenaously as soon as they enter the 1st app and enroll in one of the two apps. Is there any way to make both application work simultenaously for different players. 

Any suggestion on 1 or 2 ...

best.

Shiyu ZHANG

unread,
Jan 4, 2022, 6:59:13 AM1/4/22
to oTree help & discussion
Hi,

  One solution I am thinking about is to configure the app_sequence in your session to be ['app1', 'app2'], then set 'wait_for_all_groups = False' in your waiting page and modify the function 'is_displayed' to allow the players assigned to the 2nd APP to skip the pages in the 1st APP, without requiring players in 1st APP to wait.

Best,
Jake ZHANG

GCB

unread,
Jan 8, 2022, 10:54:16 PM1/8/22
to oTree help & discussion
Thanks Jake,

Actually I can pass the relevant players to the 2nd app using "app_after_this_page", so later on, I think that won't be an issue to define their payoffs from the 1st app (they are just recipients of the money in the first app, PARTICIPANT_FILEDS would do it perfectly I believe). But now the issue is to prevent others to go through the following (2nd app).  So I only want them to see their own payoffs which only occurs in the 1st app, and that of their partners (colleagues actually, who do the same task, both are senders of the money). So preventing unwanted particpants (senders) to go through the 2nd app would do trick I guess...

Best.

Cem. 
Reply all
Reply to author
Forward
0 new messages