Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Worldbuilder MTurk task #290

Closed
wants to merge 1,424 commits into from
Closed

Worldbuilder MTurk task #290

wants to merge 1,424 commits into from

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented May 6, 2022

Overview

Initial stubs towards creating a task for the worldBuilder on MTurk. We'll certainly need to use a specially curated list of workers for this task once it's running, but first things first is to actually get it running. This PR is the skeleton, with the two main parts left being updating the worldbuilder frontend copy here to route within a task and have access to the API, and work on the backend to hook the API up to the model.

Usage

python run_task.py

Next steps

@JustinPinero

  • First things first is to wire the WorldBuilder into this task. Right now things aren't displaying just yet, mostly because I just dropped the page views into a task. I think the right next step is going to be to implement the BuilderRouter using an in-memory ReactRouter such that we can have (virtual) paths again.
  • After that's together, the next step will be wiring up the data again. As people are building a world, we should be storing this locally in the mephisto task frame, this way when they submit we can submit to the mephisto job.
  • Once this part is wired up, we can start wiring to the model-in-the-loop API. I've created an api object in the app. The arguments this API expects are written up in run_task.py. In all cases we'll need a room_graph - we'll have to work with Alex to ensure that the format we're passing here is what we need.

@Alex-Gurung

  • Once you're back I've left a number of stubs in run_task.py - these can be configured with the Agent in common_sense_utils.py to generate what we're looking for. We should discuss here and agree on the format so that we can pass the right things in through the frontend.

JustinPinero and others added 30 commits May 3, 2021 13:38
added Character header to soulspawn event
added character map util function for default character emojis
JustinPinero and others added 20 commits February 11, 2022 15:05
* Creating example builder script for story agents project

* Writing play map example script
adding common sense + world builder code
* added gameplay task view

* added gameplay task view

* fixed message transmission in both gameapp reducer and task redux-slice

* removed boilerplate

* placed topmessage function at top of reducer
* First worker login test

* Updating preauth to send context to target node, using salted hash
* disconnected instruction modal from GamePage

* removed instructional modal
* Adding flags to determine new players

* Adding tutorial components, first pass

* Transition from tutorial to main world seamlessly

* Creating tutorial script

* add models that maintain identity

* override model

* New secure cookies

* New secure cookies, correctly

* Bugfix for tests

* More tutorial content

Co-authored-by: Kurt Shuster <[email protected]>
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 6, 2022
@JackUrb JackUrb changed the base branch from main to worldbuilder-update May 6, 2022 20:48
* added redux

* added player world slice

* building modals, added modal slice to redux state

* Connected modal redux state to world row icons

* added create world button, styled homepage buttons and layout

* building editworldpage, added stat block, added nav buttons for editworldpage, added selected world to redux state

* styling modals, connected modal content to selected world redux state

* added world edit routes

* connected EditWorldFrame buttons to navigation

* added breadcrumbs component

* added buttongroups component

* fixed side navigation

* added sidebar component

* added sidebar feature slice, built sidebar

* fixed edit world sections, added general table, added dummydata

* added filter to search bar

* building rooms page, added bread crumb, added 2 generate fields

* added slider component

* added slider and button toggle to room form

* added map to map page, added properly structured dummy-data to act as backend

* added rooms, objectsm, and characters redux slices

* Added new map components, tile, grid, utils, building tile, connected page to redux store

* worldbuilder map rework, fetching and sorting room data in map page lifecycle

* added border calculator

* added and tested grid data generator and room checker utility functions

* rebuilt grid and map components without using grid-layout library

* fixing dimensions on tiles

* styling paths

* added sidebar, connected sidebar to selectedroom slice, connected tile click handler to sidebar and select room slice

* connected advanced edit to basiceditmodal

* added numberbuttoninput to tool bar

* added and connected floor selector

* added neighbor props to tile component, set conditional rendering for tile paths

* refactoring typeahead tokenizer

* fixed tokenizer

* various map fixes, added character route, added cog click route, connected redux state to edit details character and object sections

* fixed centering of map

* added extra columns and rows at beginning and end of both axis of map

* fixed starting position with new grid data

* Fixing tile color update function

* fixing color change state

* Fixed local storage update, refactored add, delete, update reducer actions, tested map update and save, removed console logs

* fixed color selection, added direct updates to draft on tile click when in color mode

* added id generation to character, room, and object creation

* fixed simple additions for basic edit for both characters and items

* built advanced edit pages, fixed slider and generate forms, fixing path update bug on map component

* fixed map loading error

* began styling tiles, fixing path update bug:

* fixed breadcrumbs, fixed local storage, added add room feature, added delete room feature, added create and delete buttons to quick edit, fixed tokenizer clearing selected tokens on room change

* fixed edit room switch on creation, fixed edit room rerender on deletion, added map-slice, fixed position change on updates

* fixed add character clearing list bug

* fixed delete functions and associated state changes for both room and objects or characters, fixed sorting for tokenizer options, fixed tokenizer node creation

* updated grid data generator helper function to include above and below floors

* added footer and stair components to tile

* fixed wiring for advanced room editor

* connected advanced edit forms to state

* added inlinetext insert component to character and object pages

* fixed breadcrumbs

* set object prefix defaults and plural defaults

* added character prefix state and defaults

* added and tested nested delete util function to edit objects page

* added content remover helper function

Co-authored-by: Jack Urbanek <[email protected]>
Base automatically changed from worldbuilder-update to main May 6, 2022 20:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants