Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I figured out the Money adding problem, this code under is the fix


func _on_add_money_pressed():

PlayerData.addMoney(int(moneyAmt.text))

#PlayerData.force_unequip("underwear")

#PlayerData.p_data["underwear"]["messy"]=true

#PlayerData.p_data["underwear_messy"] = true

#PlayerData.p_data["underwear_current"] = 20

and the old code was 

func _on_add_money_pressed():

#PlayerData.addMoney(int(moneyAmt.text))

PlayerData.force_unequip("underwear")

#PlayerData.p_data["underwear"]["messy"]=true

#PlayerData.p_data["underwear_messy"] = true

#PlayerData.p_data["underwear_current"] = 20

You had The hastag for Add money and Unequip swapped. Its a simple fix!

when I try to do this, the game gives me an error.

It does it, You gotta delete the game because you prob changed another part of the code on accident, So re install the game and be weary

Hi! I have tried doing this fix a few times now, but every time I do I get an error "couldn't load project data at "."" -- I thought that it meant maybe I had saved it as a new file type, but everything seems to match up perfectly. 

Do you have any ideas on how to fix that? :) Also good catch on the code, such a simple fix but so easy to overlook.