# Modding Developers

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

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

**Page:** 3

---

## [Why does Decimal think that 10^-1 and 100^(-1/2) equal 1?](https://forums.moddingtree.com/t/why-does-decimal-think-that-10-1-and-100-1-2-equal-1/1127)

<div class="topic-metadata">

**Author:** [@nameunavailable866](https://forums.moddingtree.com/u/nameunavailable866)\
**Replies:** 3\
**Last updated:** [August 15, 2023, 9:08pm UTC](https://forums.moddingtree.com/t/why-does-decimal-think-that-10-1-and-100-1-2-equal-1/1127 "2023-08-15T21:08:04Z")

</div>

---

## [Help with added player data](https://forums.moddingtree.com/t/help-with-added-player-data/1133)

<div class="topic-metadata">

**Author:** [@pixelperfect12\_h](https://forums.moddingtree.com/u/pixelperfect12_h)\
**Replies:** 1\
**Last updated:** [August 10, 2023, 11:04pm UTC](https://forums.moddingtree.com/t/help-with-added-player-data/1133 "2023-08-10T23:04:12Z")

</div>

player.iron is defined to be a Decimal with the value of 1. However, it is called as a non Decimal with value of 0. How do I fix this?

---

## [My layer isn't unlocking! what do i do?](https://forums.moddingtree.com/t/my-layer-isnt-unlocking-what-do-i-do/988)

<div class="topic-metadata">

**Author:** [@CO2](https://forums.moddingtree.com/u/CO2)\
**Replies:** 12\
**Last updated:** [June 4, 2023, 11:11pm UTC](https://forums.moddingtree.com/t/my-layer-isnt-unlocking-what-do-i-do/988 "2023-06-04T23:11:43Z")

</div>

i have multiply starting enabled but the layer isnt showing. only the stellaris layer! help. I tried making a tree but the only thing i see is the first layer - #21 by thepaperpilot

---

## [I tried making a tree but the only thing i see is the first layer](https://forums.moddingtree.com/t/i-tried-making-a-tree-but-the-only-thing-i-see-is-the-first-layer/980)

<div class="topic-metadata">

**Author:** [@CO2](https://forums.moddingtree.com/u/CO2)\
**Replies:** 23\
**Last updated:** [April 1, 2023, 7:39pm UTC](https://forums.moddingtree.com/t/i-tried-making-a-tree-but-the-only-thing-i-see-is-the-first-layer/980 "2023-04-01T19:39:24Z")

</div>

proof here: https://raw.githack.com/ohmyshapez/The-Modding-Tree/master/index.html

---

## [Why isn't this layer unlocking?](https://forums.moddingtree.com/t/why-isnt-this-layer-unlocking/487)

<div class="topic-metadata">

**Author:** [@unp\_gged](https://forums.moddingtree.com/u/unp_gged)\
**Replies:** 3\
**Last updated:** [February 19, 2022, 11:57pm UTC](https://forums.moddingtree.com/t/why-isnt-this-layer-unlocking/487 "2022-02-19T23:57:45Z")

</div>

So, I was planning to make some sort of meta-layer that would reset most things in the normal tree when you reset it, and I wanted it to be based off of how many upgrades you had. I wanted it to unlock when I had 10 upgr…

---

## [How to use Decimals](https://forums.moddingtree.com/t/how-to-use-decimals/117)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 4:24pm UTC](https://forums.moddingtree.com/t/how-to-use-decimals/117 "2022-12-30T16:24:41Z")

</div>

TMT uses Decimals almost everywhere a numeric value is needed. They are different from normal Numbers in that they can go much, much higher, but are objects instead of a primitive. That means handling them is a little …

---

## [Why do people use githack links?](https://forums.moddingtree.com/t/why-do-people-use-githack-links/824)

<div class="topic-metadata">

**Author:** [@Jme](https://forums.moddingtree.com/u/Jme)\
**Replies:** 3\
**Last updated:** [December 30, 2022, 12:30am UTC](https://forums.moddingtree.com/t/why-do-people-use-githack-links/824 "2022-12-30T00:30:28Z")

</div>

Why do people use githack links? It seems rather pointless to me given that you can easily set up github pages and it even updates faster than githack. Is there an advantage to using githack I don’t know?

---

## [How do you make buyables a different color?](https://forums.moddingtree.com/t/how-do-you-make-buyables-a-different-color/865)

<div class="topic-metadata">

**Author:** [@Jme](https://forums.moddingtree.com/u/Jme)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 12:19am UTC](https://forums.moddingtree.com/t/how-do-you-make-buyables-a-different-color/865 "2022-12-30T00:19:58Z")

</div>

\*a different color than the layer color

---

## [How to share your TMT mod with Github](https://forums.moddingtree.com/t/how-to-share-your-tmt-mod-with-github/136)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [August 5, 2021, 9:14pm UTC](https://forums.moddingtree.com/t/how-to-share-your-tmt-mod-with-github/136 "2021-08-05T21:14:04Z")

</div>

This guide gives you several (completely free!) options for how to share your game with others, if it’s currently inside a github repo. The easiest and recommended way is sharing a githack link, but you may be interest…

---

## [Why can't i buy this upgrade?](https://forums.moddingtree.com/t/why-cant-i-buy-this-upgrade/498)

<div class="topic-metadata">

**Author:** [@unp\_gged](https://forums.moddingtree.com/u/unp_gged)\
**Replies:** 3\
**Last updated:** [November 22, 2022, 11:45pm UTC](https://forums.moddingtree.com/t/why-cant-i-buy-this-upgrade/498 "2022-11-22T23:45:58Z")

</div>

11: { title: "Multiplier VI", description: "Boosts' gain to boost gain is boosted by itself", cost: new Decimal(1e3), unlocked() {return true} }, For some reason, with and wit…

---

## [How to make a layer boost things](https://forums.moddingtree.com/t/how-to-make-a-layer-boost-things/202)

<div class="topic-metadata">

**Author:** [@gapples2](https://forums.moddingtree.com/u/gapples2)\
**Replies:** 3\
**Last updated:** [September 13, 2022, 12:22am UTC](https://forums.moddingtree.com/t/how-to-make-a-layer-boost-things/202 "2022-09-13T00:22:36Z")

</div>

Making the effect You should already have a layer, if you don't then make one. Add an effect() function to your layer. It should look like this: effect(){ }, You’ll have to return a Decimal in the effect function. If y…

---

## [How can i publish a mod in the forum?](https://forums.moddingtree.com/t/how-can-i-publish-a-mod-in-the-forum/746)

<div class="topic-metadata">

**Author:** [@ryan27367](https://forums.moddingtree.com/u/ryan27367)\
**Replies:** 1\
**Last updated:** [August 29, 2022, 6:23pm UTC](https://forums.moddingtree.com/t/how-can-i-publish-a-mod-in-the-forum/746 "2022-08-29T18:23:54Z")

</div>

What can i do to publish a mod in here?

---

## [How do i do automation](https://forums.moddingtree.com/t/how-do-i-do-automation/668)

<div class="topic-metadata">

**Author:** [@nalmedirdovertinx123](https://forums.moddingtree.com/u/nalmedirdovertinx123)\
**Replies:** 2\
**Last updated:** [July 23, 2022, 11:46am UTC](https://forums.moddingtree.com/t/how-do-i-do-automation/668 "2022-07-23T11:46:39Z")

</div>

automate() doesnt work for some reason

---

## [Two Layers. 1 Cost Increase](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571)

<div class="topic-metadata">

**Author:** [@alezman](https://forums.moddingtree.com/u/alezman)\
**Replies:** 2\
**Last updated:** [July 20, 2022, 7:05pm UTC](https://forums.moddingtree.com/t/two-layers-1-cost-increase/571 "2022-07-20T19:05:39Z")

</div>

I got a question. I want to make it so after I purchase an upgrade, it unlocks two layers. Layer 1 provides with challenges, while Layer 2 provides with buyables. Now, I understand how to make the layers, and make their…

---

## [Changing point generation when first starting the game](https://forums.moddingtree.com/t/changing-point-generation-when-first-starting-the-game/624)

<div class="topic-metadata">

**Author:** [@pentaxis93](https://forums.moddingtree.com/u/pentaxis93)\
**Replies:** 2\
**Last updated:** [July 19, 2022, 5:34pm UTC](https://forums.moddingtree.com/t/changing-point-generation-when-first-starting-the-game/624 "2022-07-19T17:34:43Z")

</div>

Hi everyone, this is my first post here. I love what all of you have done with TMT. What would be the best way to change the point generation when starting the game after a hard reset? For example, how could one set it …

---

## [Common Mistakes and How to Fix Them](https://forums.moddingtree.com/t/common-mistakes-and-how-to-fix-them/47)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [July 30, 2021, 1:17pm UTC](https://forums.moddingtree.com/t/common-mistakes-and-how-to-fix-them/47 "2021-07-30T13:17:20Z")

</div>

This is a wiki post that will grow as more common mistakes (and their solutions) are submitted. If you don't have the trust to edit this yet, feel free to propose changes in a post. If you're confused about anything, a…

---

## [Randomizing values](https://forums.moddingtree.com/t/randomizing-values/434)

<div class="topic-metadata">

**Author:** [@alezman](https://forums.moddingtree.com/u/alezman)\
**Replies:** 6\
**Last updated:** [February 9, 2022, 3:59am UTC](https://forums.moddingtree.com/t/randomizing-values/434 "2022-02-09T03:59:53Z")

</div>

(this is a continuation of my last thread jsyk) How to make it so after two variables match, their values are randomized within a range of 1-10, and also they add +X to prestige points? pls answer

---

## [How can I make a bar that shows the distance between one variable and another](https://forums.moddingtree.com/t/how-can-i-make-a-bar-that-shows-the-distance-between-one-variable-and-another/433)

<div class="topic-metadata">

**Author:** [@alezman](https://forums.moddingtree.com/u/alezman)\
**Replies:** 4\
**Last updated:** [February 8, 2022, 2:29am UTC](https://forums.moddingtree.com/t/how-can-i-make-a-bar-that-shows-the-distance-between-one-variable-and-another/433 "2022-02-08T02:29:27Z")

</div>

be it in progress or be it in percentage im fine with either (or both)

---

## [How to use doReset()](https://forums.moddingtree.com/t/how-to-use-doreset/205)

<div class="topic-metadata">

**Author:** [@gapples2](https://forums.moddingtree.com/u/gapples2)\
**Replies:** 1\
**Last updated:** [February 6, 2022, 7:58pm UTC](https://forums.moddingtree.com/t/how-to-use-doreset/205 "2022-02-06T19:58:13Z")

</div>

The Basics If you don't have doReset() in your layer then add it. doReset(layer){ // put code here }, Generally you don’t want a layer to reset another layer on the same row. You definitely don’t want your layer to be…

---

## [The Ultimate Guide to the Internal Code of TMT](https://forums.moddingtree.com/t/the-ultimate-guide-to-the-internal-code-of-tmt/108)

<div class="topic-metadata">

**Author:** [@TheMKeyHolder](https://forums.moddingtree.com/u/TheMKeyHolder)\
**Replies:** 1\
**Last updated:** [February 6, 2022, 2:51pm UTC](https://forums.moddingtree.com/t/the-ultimate-guide-to-the-internal-code-of-tmt/108 "2022-02-06T14:51:21Z")

</div>

Made by TheMKeyHolder! technical/break\_eternity.js You probably don’t want to touch this. At all! But if you do: Switching number library Replace the code with the code of another library, and add Decimal = OmegaNum …

---

## [I need a bit of help](https://forums.moddingtree.com/t/i-need-a-bit-of-help/415)

<div class="topic-metadata">

**Author:** [@hooman](https://forums.moddingtree.com/u/hooman)\
**Replies:** 5\
**Last updated:** [January 31, 2022, 1:26am UTC](https://forums.moddingtree.com/t/i-need-a-bit-of-help/415 "2022-01-31T01:26:24Z")

</div>

so, after i logged in, i didnt get my copy of the modding tree. can someone send me a download or help me get one?

---

## [Javascript Tutorials and References](https://forums.moddingtree.com/t/javascript-tutorials-and-references/365)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 0\
**Last updated:** [December 23, 2021, 6:02pm UTC](https://forums.moddingtree.com/t/javascript-tutorials-and-references/365 "2021-12-23T18:02:58Z")

</div>

The MDN is a really helpful website for web development, from the creators of Firefox. It has incredibly thorough tutorials and references for basically every aspect of web development, and I use it very regularly whil…

---

## [Are large numbers really useful in late game?](https://forums.moddingtree.com/t/are-large-numbers-really-useful-in-late-game/322)

<div class="topic-metadata">

**Author:** [@ajchen](https://forums.moddingtree.com/u/ajchen)\
**Replies:** 3\
**Last updated:** [November 20, 2021, 3:07am UTC](https://forums.moddingtree.com/t/are-large-numbers-really-useful-in-late-game/322 "2021-11-20T03:07:37Z")

</div>

Okey, so as I review some ducdat’s tree, I realize an problem: I do not care the “point” in late game, but rather focus on some other resucues (which boost point gain by crazy amount). But they are really laging my com…

---

## [How to make upgrade costs go up](https://forums.moddingtree.com/t/how-to-make-upgrade-costs-go-up/318)

<div class="topic-metadata">

**Author:** [@Rasp\_Donut](https://forums.moddingtree.com/u/Rasp_Donut)\
**Replies:** 1\
**Last updated:** [October 28, 2021, 11:26am UTC](https://forums.moddingtree.com/t/how-to-make-upgrade-costs-go-up/318 "2021-10-28T11:26:04Z")

</div>

Hey, I’ve been trying to make it so that, when you buy an upgrade, the price of 2 other upgrades go up, but it seems like price can’t be changed, or something like that, anyone knows how to change the price of an upgrade…

---

## [Should upgrades have names?](https://forums.moddingtree.com/t/should-upgrades-have-names/279)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 1\
**Last updated:** [September 17, 2021, 2:02pm UTC](https://forums.moddingtree.com/t/should-upgrades-have-names/279 "2021-09-17T14:02:24Z")

</div>

I was thinking about Kronos, and some feedback I’d gotten from a friend who very much didn’t like how the upgrades were named. For those unaware, in the current mechanical prototype (which has none of the story) the upgr…

---

## [Offline mechanics](https://forums.moddingtree.com/t/offline-mechanics/245)

<div class="topic-metadata">

**Author:** [@Acamaeda](https://forums.moddingtree.com/u/Acamaeda)\
**Replies:** 2\
**Last updated:** [September 5, 2021, 1:32am UTC](https://forums.moddingtree.com/t/offline-mechanics/245 "2021-09-05T01:32:01Z")

</div>

These offline-based bonus systems have a number of problems. First off, they encourage the player to spend a bunch of time offline before actually playing the game. And secondly, they mess up the balance of the game if t…

---

## [How to use softcaps](https://forums.moddingtree.com/t/how-to-use-softcaps/155)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 1\
**Last updated:** [August 7, 2021, 4:27am UTC](https://forums.moddingtree.com/t/how-to-use-softcaps/155 "2021-08-07T04:27:47Z")

</div>

Note: It’s always a possibility to just not use softcaps! Softcaps can make formulas harder for players to follow along with, which can have some serious drawbacks. It may be better to fix the inflation by using formula…

---

## [7 Git Commands That Saved My Life Atleast Once](https://forums.moddingtree.com/t/7-git-commands-that-saved-my-life-atleast-once/135)

<div class="topic-metadata">

**Author:** [@thepaperpilot](https://forums.moddingtree.com/u/thepaperpilot)\
**Replies:** 1\
**Last updated:** [August 5, 2021, 5:29pm UTC](https://forums.moddingtree.com/t/7-git-commands-that-saved-my-life-atleast-once/135 "2021-08-05T17:29:31Z")

</div>

This is an interesting article with some git commands you may find useful if you get stuck. Git’s complicated! Feel free to ask any other questions on git below, and I’ll try to answer them.

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