Giter Site home page Giter Site logo

the-forest's Introduction

The Forest (v2)

The code behind The Forest, a dynamic, living Gather map.

Also a great example of a simple mod built with the Gather API!

setup

prereq: have NodeJS and npm installed

run npm install

put your API key in a file named api-key.ts like so:

export const API_KEY = "your-api-key-here";

replace the SPACE_ID and MAP_ID in index.ts with your own

first time: comment in cleanSlate() at the bottom of index.ts to do the initial map setup, but after that just run runForest()

running

npm run start

the-forest's People

Contributors

npfoss avatar nsheaps avatar

Stargazers

Dan Acristinii avatar Eric Wroble avatar Dex avatar Anand avatar  avatar NaotoTanaka avatar Will Stenzel avatar Kenzo Wada avatar Junho Yeo avatar Daniel Ehrhardt avatar Chris Celaya avatar JasonY avatar Akumetsu avatar Julian Pistorius avatar dgo2dance avatar Noelia Martínez avatar Leonard Choo avatar Daniel Law avatar Chad Nehemiah avatar  avatar RK Aranas avatar Kyuhyeon Lee avatar Patrick S. avatar  avatar  avatar

Watchers

Juan Lopes avatar Kumail Jaffer avatar Gianluca Esposito avatar David Orr avatar James Cloos avatar Jinen Kamdar avatar Donald Wong avatar  avatar Dale Inverarity avatar Aaron Cohen avatar Matthew Newsom avatar Alasdair Young avatar spen avatar  avatar Jordan Maduro avatar Andrew Smith avatar Colin Fortuner avatar Michael Silver avatar Joao Ruschel avatar Néstor Bermúdez avatar Johnny Opao avatar Kirat avatar Daniel Braverman avatar Akshaj Kadaveru avatar Bryan Phelps avatar Justin avatar Victor Zhou avatar  avatar Phillip Wang avatar Emily Hu avatar Linda Dong avatar Daniel Kim avatar Brett avatar Vassilios Kaxiras avatar Justin Yu avatar Patrick S. avatar

the-forest's Issues

deployable on-prem?

Hi,

gather.town is great! I was wondering whether it's in a shape to be deployed on our own infra?

runForest() not working anymore

`PS C:\dev\the-forest-main> npm run start

[email protected] start
tsc -b && node dist/index.js

connecting to suY2OoD5EMoWb6X7\eplorationDays
connected? true
doing regrowth
C:\dev\the-forest-main\dist\index.js:162
for (var _key in game.partialMaps[MAP_ID].objects) {
^

TypeError: Cannot read properties of undefined (reading 'objects')
at Timeout._onTimeout (C:\dev\the-forest-main\dist\index.js:162:51)
at listOnTimeout (node:internal/timers:564:17)
at process.processTimers (node:internal/timers:507:7)

Node.js v19.0.0`

			$case: "mapSetObjects",
			mapSetObjects: {
				mapId: MAP_ID,
				objects: {
					[treeId]: {
						type: 0,
						normal: BLANK,
						customState: "hole",
						_tags: [], // smh we're going to hopefully get rid of this soon but for now you just have to include it with setObject actions, sorry
					},
				},
			},
		});```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.