[SOLVED] The Epicly Stupid Bug

ohai der.
In my bug there is an stupid mod,

“If you click to bring up the menu during game development and even if you don’t click on the “Announce Game Name” it does it any way.”

“Everytime i click to open a menu while i’m developing a game even when i do not click the anounce game it still anounces the game”

I ( and @DzjengisKhan ) were trying to fix this, but we can’t D:
If someone is a pro, then HELP, that really eats your money (In the game).

You can find the code there: https://www.dropbox.com/s/c20wfn9la8vckh7/Dem%20Code.txt

2 Likes

LOL i think it should be the other way around

Yeah, I know lol,
I have wrote like that and saw it, but… just was to lazy to correct it
lololololololololololololol

2 Likes

This code:

        game = GameManager.company.currentGame;         {             if (GameManager.company.isCurrentlyDevelopingGame() && game.gameSize == "small")             {                 hype = GameManager.company.adjustHype(12 + 18 * GameManager.company.getRandom());                 cost = GameManager.company.adjustCash(-30000, "Game Announcement");                 fans = GameManager.company.adjustFans(2 + 8 * GameManager.company.getRandom());             }         };         if (GameManager.company.isCurrentlyDevelopingGame() && game.gameSize == "medium")         {             hype = GameManager.company.adjustHype(22 + 28 * GameManager.company.getRandom());             cost = GameManager.company.adjustCash(-85000, "Medium Game Announcement");             fans = GameManager.company.adjustFans(5 + 12 * GameManager.company.getRandom());         }         if (GameManager.company.isCurrentlyDevelopingGame() && game.gameSize == "large")         {             hype = GameManager.company.adjustHype(45 + 50 * GameManager.company.getRandom());             cost = GameManager.company.adjustCash(-250000, "Large Game Announcement");             fans = GameManager.company.adjustFans(22 + 25 * GameManager.company.getRandom());         }         if (GameManager.company.isCurrentlyDevelopingGame() && game.gameSize == "aaa")         {             hype = GameManager.company.adjustHype(80 + 82 * GameManager.company.getRandom());             cost = GameManager.company.adjustCash(-1000000, "AAA Game Announcement");             fans = GameManager.company.adjustFans(40 + 60 * GameManager.company.getRandom());         }

has to be moved to the “action” function of the menu item. Otherwise it will execute the code whenever you open the menu.

Also, since GameManager.company.adjustHype, GameManager.company.adjustCash, and GameManager.company.adjustFans don’t return anything, setting your hype, cost, and fans variables doesn’t have any effect. :wink:

2 Likes

Thanks! Will try it.
And the hype, cash, fans variables aren’t there anymore, this is a bit older code :wink:

Thanks!
Now it works.

1 Like