Golf

by Ohead

Adds golf to the game. Craftable clubs, golf balls, and golf holes. Comes with a nine hole golf course scenario (My best score is 52, with the par total being 32). Rebindable walking toggle to line up shots more accurately (LCTRL by default). Does NOT work in multiplayer, it'll crash the game! (I'm working to fix this)

Content
1 year, 3 months ago
1.1
95

b Crash without a character

1 year, 3 months ago

Hi! While your mod was active (haven't actually used it yet), I turned on editor mode and got this crash after a while:

The mod Golf (0.1.2) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event golf::walk-input (ID 194)
No character.
stack traceback:
  [C]: in function '__newindex'
  __golf__/control.lua:501: in function <__golf__/control.lua:487>

It seems that changing line 490 of control.lua from

if (not player.valid) then return end

to

if not (player and player.valid and player.character and player.character.valid) then return end

will fix this.

New response