# Modding Developers

**URL:** https://forums.moddingtree.com/c/modding-help/5.md?page=1

[Latest](https://forums.moddingtree.com/latest.md) · [Categories](https://forums.moddingtree.com/categories.md) · [Tags](https://forums.moddingtree.com/tags.md)

**Page:** 2

---

## [Adding multiplayer cursors to Profectus](https://forums.moddingtree.com/t/adding-multiplayer-cursors-to-profectus/1694)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 1\
**Last updated:** [February 9, 2025, 6:46pm UTC](https://forums.moddingtree.com/t/adding-multiplayer-cursors-to-profectus/1694 "2025-02-09T18:46:51Z")

</div>

This is how you can have a board where people’s cursors appear on other players’ screens. This can add a sense of togetherness that can add to the experience of some games. By default the code here will also allow users …

---

## [Adding web sockets support to Profectus](https://forums.moddingtree.com/t/adding-web-sockets-support-to-profectus/1692)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [February 3, 2025, 10:12pm UTC](https://forums.moddingtree.com/t/adding-web-sockets-support-to-profectus/1692 "2025-02-03T22:12:12Z")

</div>

Web sockets are pretty straight-foward, and using something like socket.io is probably overkill for the client-side. Here’s a basic file you can just throw in the src/game folder (I named the file socket.ts) to use web s…

---

## [Upgrade cost currency change](https://forums.moddingtree.com/t/upgrade-cost-currency-change/1639)

<div class="topic-metadata">

**Author:** [@tekpixels](https://forums.moddingtree.com/u/tekpixels)\
**Replies:** 1\
**Last updated:** [January 6, 2025, 12:31pm UTC](https://forums.moddingtree.com/t/upgrade-cost-currency-change/1639 "2025-01-06T12:31:27Z")

</div>

(i blabber a lot here skip to bottom for tl;dr) So for my game (who’s update has been on hiatus for almost a year now) I added a special side layer that I called “Meta” which contains various upgrades concerning the pla…

---

## [How do i make this work](https://forums.moddingtree.com/t/how-do-i-make-this-work/1654)

<div class="topic-metadata">

**Author:** [@AntekGamingPL](https://forums.moddingtree.com/u/AntekGamingPL)\
**Replies:** 1\
**Last updated:** [January 5, 2025, 9:56pm UTC](https://forums.moddingtree.com/t/how-do-i-make-this-work/1654 "2025-01-05T21:56:58Z")

</div>

10 × (1 + Current Level) × (1.12 ^ Current Level) how do i do it in tmt? (buyable)

---

## [How to make an upgrade permanently unlocked?](https://forums.moddingtree.com/t/how-to-make-an-upgrade-permanently-unlocked/1379)

<div class="topic-metadata">

**Author:** [@iiiaaa123](https://forums.moddingtree.com/u/iiiaaa123)\
**Replies:** 13\
**Last updated:** [January 1, 2025, 12:53am UTC](https://forums.moddingtree.com/t/how-to-make-an-upgrade-permanently-unlocked/1379 "2025-01-01T00:53:06Z")

</div>

I have an upgrade in the first layer (call it A) that unlocks an upgrade in the second layer (call it B). Unfortunately, everytime I do a 2nd-layer-reset, upgrade A get removed, and therefore B dissapears until I buy A a…

---

## [Profectus board feature](https://forums.moddingtree.com/t/profectus-board-feature/1656)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [December 25, 2024, 5:11pm UTC](https://forums.moddingtree.com/t/profectus-board-feature/1656 "2024-12-25T17:11:14Z")

</div>

Profectus has had a Board feature to allow for a pannable, zoomable canvas of nodes and links. In 0.7 it got changed from a feature to an entire system. The new system is very robust, but not trivial to convert old Board…

---

## [Adding query params support to Profectus](https://forums.moddingtree.com/t/adding-query-params-support-to-profectus/1658)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [December 26, 2024, 4:52pm UTC](https://forums.moddingtree.com/t/adding-query-params-support-to-profectus/1658 "2024-12-26T16:52:40Z")

</div>

This is a patch you can apply to Profectus to add support for registering query parameters that will either call a function according to their value, or automatically update a ref (so long as that ref is a string, number…

---

## [Changing the size of a layer node](https://forums.moddingtree.com/t/changing-the-size-of-a-layer-node/1631)

<div class="topic-metadata">

**Author:** [@JanexTheHero1](https://forums.moddingtree.com/u/JanexTheHero1)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 8:55pm UTC](https://forums.moddingtree.com/t/changing-the-size-of-a-layer-node/1631 "2024-12-30T20:55:54Z")

</div>

In my mod there is a layer that is very important and I want to know if I can make its size larger in the display. Is this possible? I think I have seen it done in other people’s mods…

---

## [Using the bonus mixins on repeatables and challenges](https://forums.moddingtree.com/t/using-the-bonus-mixins-on-repeatables-and-challenges/1648)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [December 16, 2024, 12:46pm UTC](https://forums.moddingtree.com/t/using-the-bonus-mixins-on-repeatables-and-challenges/1648 "2024-12-16T12:46:14Z")

</div>

As of Profectus 0.7, decorators got replaced with mixins and wrappers. Since mixins require creating or extending a feature, and the bonus decorators became a mixin, I wanted to share exactly how to extend the repeatable…

---

## [Layer doesn't reset its required layer point](https://forums.moddingtree.com/t/layer-doesnt-reset-its-required-layer-point/1564)

<div class="topic-metadata">

**Author:** [@accmadeforquestions](https://forums.moddingtree.com/u/accmadeforquestions)\
**Replies:** 0\
**Last updated:** [September 8, 2024, 11:49am UTC](https://forums.moddingtree.com/t/layer-doesnt-reset-its-required-layer-point/1564 "2024-09-08T11:49:05Z")

</div>

I’m currently making a remake of my failed tree: the geome-tree dash, and I want to know if it is a good idea to make a layer reset require a layer point of the same row, that wont be reset. Here are the images so you ca…

---

## [Rounding issues](https://forums.moddingtree.com/t/rounding-issues/1475)

<div class="topic-metadata">

**Author:** [@accmadeforquestions](https://forums.moddingtree.com/u/accmadeforquestions)\
**Replies:** 3\
**Last updated:** [September 7, 2024, 4:19pm UTC](https://forums.moddingtree.com/t/rounding-issues/1475 "2024-09-07T16:19:00Z")

</div>

I was just making my 5 Modding tree game ideas, and then I found something weird, it was telling me to buy the buyable for X.0000000… or X.999999999 pieces instead of rounding it to X:

---

## [Hello guys, how do I do this](https://forums.moddingtree.com/t/hello-guys-how-do-i-do-this/1437)

<div class="topic-metadata">

**Author:** [@accmadeforquestions](https://forums.moddingtree.com/u/accmadeforquestions)\
**Replies:** 5\
**Last updated:** [May 30, 2024, 11:26am UTC](https://forums.moddingtree.com/t/hello-guys-how-do-i-do-this/1437 "2024-05-30T11:26:13Z")

</div>

Hello, I made this account just for this one question, how do I make a upgrade force a layer reset (like respec)? I’m making this so you can’t cheat by going far into the run before you have it.

---

## [Can't seem to call use this.effect() or alternative](https://forums.moddingtree.com/t/cant-seem-to-call-use-this-effect-or-alternative/1426)

<div class="topic-metadata">

**Author:** [@BanaCubed](https://forums.moddingtree.com/u/BanaCubed)\
**Replies:** 1\
**Last updated:** [April 11, 2024, 5:33am UTC](https://forums.moddingtree.com/t/cant-seem-to-call-use-this-effect-or-alternative/1426 "2024-04-11T05:33:45Z")

</div>

For some reason when I try to call this.effect(), it causes error: Uncaught TypeError: this.effect is not a function Trying to use layers.C.effect() causes error: Uncaught TypeError: Cannot read properties of undefine…

---

## [passiveGeneration() not working correctly](https://forums.moddingtree.com/t/passivegeneration-not-working-correctly/1419)

<div class="topic-metadata">

**Author:** [@BanaCubed](https://forums.moddingtree.com/u/BanaCubed)\
**Replies:** 6\
**Last updated:** [April 7, 2024, 9:11pm UTC](https://forums.moddingtree.com/t/passivegeneration-not-working-correctly/1419 "2024-04-07T21:11:07Z")

</div>

As far as I am aware, it only seems to change the visual saying “you are gaining x prestige points per second”, but the automate() function also seems to have broken for me so idk if passiveGeneration() normally generate…

---

## [How to make an upgrade show when the other upgrade is buyed?](https://forums.moddingtree.com/t/how-to-make-an-upgrade-show-when-the-other-upgrade-is-buyed/1411)

<div class="topic-metadata">

**Author:** [@blazindude365forever](https://forums.moddingtree.com/u/blazindude365forever)\
**Replies:** 1\
**Last updated:** [March 19, 2024, 7:19pm UTC](https://forums.moddingtree.com/t/how-to-make-an-upgrade-show-when-the-other-upgrade-is-buyed/1411 "2024-03-19T19:19:25Z")

</div>

@RTLF2024 can you preformat this? plz…

---

## [Layer Reset doesn't add points](https://forums.moddingtree.com/t/layer-reset-doesnt-add-points/1371)

<div class="topic-metadata">

**Author:** [@tekpixels](https://forums.moddingtree.com/u/tekpixels)\
**Replies:** 3\
**Last updated:** [March 2, 2024, 8:31am UTC](https://forums.moddingtree.com/t/layer-reset-doesnt-add-points/1371 "2024-03-02T08:31:12Z")

</div>

My game has 6 layers in 3 rows. Whenever I do a Row 3 reset, the points do not go anywhere. The points do not go into the buyable either. I reset, get 3 milestone notifications, and still have 0 of my currency. I’ve trie…

---

## [How to generate layer points?](https://forums.moddingtree.com/t/how-to-generate-layer-points/1397)

<div class="topic-metadata">

**Author:** [@iiiaaa123](https://forums.moddingtree.com/u/iiiaaa123)\
**Replies:** 3\
**Last updated:** [March 1, 2024, 12:47am UTC](https://forums.moddingtree.com/t/how-to-generate-layer-points/1397 "2024-03-01T00:47:31Z")

</div>

Title says it all. To reformulate the question: How would one start generation of prestige points, not points, using an upgrade?

---

## [How to change the currency for a buyable purchase](https://forums.moddingtree.com/t/how-to-change-the-currency-for-a-buyable-purchase/1393)

<div class="topic-metadata">

**Author:** [@Daide](https://forums.moddingtree.com/u/Daide)\
**Replies:** 1\
**Last updated:** [February 21, 2024, 12:22am UTC](https://forums.moddingtree.com/t/how-to-change-the-currency-for-a-buyable-purchase/1393 "2024-02-21T00:22:16Z")

</div>

Please, help. I’m stuck when changing the currency. I check docs, but found nothing

---

## [Why does my buyable effect not work](https://forums.moddingtree.com/t/why-does-my-buyable-effect-not-work/1349)

<div class="topic-metadata">

**Author:** [@rhavir\_Gabriel](https://forums.moddingtree.com/u/rhavir_Gabriel)\
**Replies:** 1\
**Last updated:** [January 31, 2024, 12:44am UTC](https://forums.moddingtree.com/t/why-does-my-buyable-effect-not-work/1349 "2024-01-31T00:44:33Z")

</div>

buyables: { 11: { title: “test”, unlocked() { return hasUpgrade(“N”, 21) }, cost(x) { return new Decimal(2000).mul(Decimal.pow(2, x)) }, canAfford() { return player\[this.layer\].points.gte(this.cost()) }, buy() …

---

## [How to boost Layer 2 by Layer 1 Points?](https://forums.moddingtree.com/t/how-to-boost-layer-2-by-layer-1-points/1369)

<div class="topic-metadata">

**Author:** [@iiiaaa123](https://forums.moddingtree.com/u/iiiaaa123)\
**Replies:** 1\
**Last updated:** [January 31, 2024, 12:30am UTC](https://forums.moddingtree.com/t/how-to-boost-layer-2-by-layer-1-points/1369 "2024-01-31T00:30:58Z")

</div>

Trying to make my own Modding Tree mod, and i’m trying to make an upgrade that boosts Layer 2’s points (slightly) by Layer 1’s points, but I havent been able to figure it out myself. I’ve got this code in the upgrade: e…

---

## [The if on my upgrade has an syntax error! how do i fix it?](https://forums.moddingtree.com/t/the-if-on-my-upgrade-has-an-syntax-error-how-do-i-fix-it/1237)

<div class="topic-metadata">

**Author:** [@frenchbaguettememesi](https://forums.moddingtree.com/u/frenchbaguettememesi)\
**Replies:** 3\
**Last updated:** [October 30, 2023, 1:48pm UTC](https://forums.moddingtree.com/t/the-if-on-my-upgrade-has-an-syntax-error-how-do-i-fix-it/1237 "2023-10-30T13:48:24Z")

</div>

i was peacefuly making my mod until i had an syntax error on the if on my upgrade! there is any way to fix it? notice: i already readed the tutorial on how to add upgrades on a layer.

---

## [How do i change the currency of the cost of an upgrade?](https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236)

<div class="topic-metadata">

**Author:** [@frenchbaguettememesi](https://forums.moddingtree.com/u/frenchbaguettememesi)\
**Replies:** 1\
**Last updated:** [October 29, 2023, 8:07pm UTC](https://forums.moddingtree.com/t/how-do-i-change-the-currency-of-the-cost-of-an-upgrade/1236 "2023-10-29T20:07:06Z")

</div>

title says it all. hehehe…

---

## [How do i create my own upgrade for a certain layer?](https://forums.moddingtree.com/t/how-do-i-create-my-own-upgrade-for-a-certain-layer/1235)

<div class="topic-metadata">

**Author:** [@frenchbaguettememesi](https://forums.moddingtree.com/u/frenchbaguettememesi)\
**Replies:** 2\
**Last updated:** [October 29, 2023, 7:48pm UTC](https://forums.moddingtree.com/t/how-do-i-create-my-own-upgrade-for-a-certain-layer/1235 "2023-10-29T19:48:34Z")

</div>

im making my own TMT mod, thanks to @thepaperpilot, but i dont know how to make a upgrade! heres the upgrade: name = start effect: starts producing 1 point/s cost: 1 prestige point layer: prestige

---

## [I cant find index.html on my file explorer](https://forums.moddingtree.com/t/i-cant-find-index-html-on-my-file-explorer/1233)

<div class="topic-metadata">

**Author:** [@frenchbaguettememesi](https://forums.moddingtree.com/u/frenchbaguettememesi)\
**Replies:** 9\
**Last updated:** [October 29, 2023, 7:10pm UTC](https://forums.moddingtree.com/t/i-cant-find-index-html-on-my-file-explorer/1233 "2023-10-29T19:10:42Z")

</div>

im using windows 11, the most recent windows version, of course, im having some problems making my own mod, and yes, i read using your repository but im stuck at step 1, can someone please help me?

---

## [How to get the difference in time between this tick and last tick](https://forums.moddingtree.com/t/how-to-get-the-difference-in-time-between-this-tick-and-last-tick/1178)

<div class="topic-metadata">

**Author:** [@nameunavailable866](https://forums.moddingtree.com/u/nameunavailable866)\
**Replies:** 2\
**Last updated:** [October 8, 2023, 2:16pm UTC](https://forums.moddingtree.com/t/how-to-get-the-difference-in-time-between-this-tick-and-last-tick/1178 "2023-10-08T14:16:38Z")

</div>

i tried diff and deltaTime but they throw a reference error

---

## [Is there a way to disable :D being turned into an emoji?](https://forums.moddingtree.com/t/is-there-a-way-to-disable-d-being-turned-into-an-emoji/841)

<div class="topic-metadata">

**Author:** [@Jme](https://forums.moddingtree.com/u/Jme)\
**Replies:** 6\
**Last updated:** [October 1, 2023, 1:26am UTC](https://forums.moddingtree.com/t/is-there-a-way-to-disable-d-being-turned-into-an-emoji/841 "2023-10-01T01:26:06Z")

</div>

Or really all the faces (:slight\_smile: /:), :smiley: /:D, :frowning: /:(). Is there any way to disable auto-conversion? Without using code tags?

---

## [Subcurrency problem](https://forums.moddingtree.com/t/subcurrency-problem/1180)

<div class="topic-metadata">

**Author:** [@Anthony\_Carrion](https://forums.moddingtree.com/u/Anthony_Carrion)\
**Replies:** 0\
**Last updated:** [September 23, 2023, 12:16am UTC](https://forums.moddingtree.com/t/subcurrency-problem/1180 "2023-09-23T00:16:30Z")

</div>

Hello, I’m decent at coding however I seem to have gotten stuck, I wanted two achieve two things, one a bar that when it reach 1 it generates 1 spacial dust, and two defining “s” or spacial dust as a sub currency inside …

---

## [CSS broke on me](https://forums.moddingtree.com/t/css-broke-on-me/1082)

<div class="topic-metadata">

**Author:** [@TopHatClan\_YT](https://forums.moddingtree.com/u/TopHatClan_YT)\
**Replies:** 2\
**Last updated:** [August 20, 2023, 6:45pm UTC](https://forums.moddingtree.com/t/css-broke-on-me/1082 "2023-08-20T18:45:43Z")

</div>

I was in the middle of making an upgrade when my index.html stopped working, I deleted the things I added and now nothing appears, here are photos of the code. I have more photos if needed

---

## [How to make points boost their own generation](https://forums.moddingtree.com/t/how-to-make-points-boost-their-own-generation/826)

<div class="topic-metadata">

**Author:** [@TopHatClan\_YT](https://forums.moddingtree.com/u/TopHatClan_YT)\
**Replies:** 4\
**Last updated:** [August 20, 2023, 6:37pm UTC](https://forums.moddingtree.com/t/how-to-make-points-boost-their-own-generation/826 "2023-08-20T18:37:41Z")

</div>

I tried making a self-synergy upgrade by using the equasion Math.pow(log(points + 1) + 1) but that didnt work, anyone have an equasion that works?

---

## [Are there any subtab/microtab code i can copy into my tree? thanks](https://forums.moddingtree.com/t/are-there-any-subtab-microtab-code-i-can-copy-into-my-tree-thanks/995)

<div class="topic-metadata">

**Author:** [@13trfrgedgfeg](https://forums.moddingtree.com/u/13trfrgedgfeg)\
**Replies:** 2\
**Last updated:** [August 20, 2023, 6:34pm UTC](https://forums.moddingtree.com/t/are-there-any-subtab-microtab-code-i-can-copy-into-my-tree-thanks/995 "2023-08-20T18:34:03Z")

</div>

the documentation isnt of any help to me because i dont code edit: i have decided that i dont care and i am going to use a new layer

[Previous page](https://forums.moddingtree.com/c/modding-help/5.md)

[Next page](https://forums.moddingtree.com/c/modding-help/5.md?page=2)
