Currently the developers are putting their own money into JC2-MP to keep the servers online.

Please take a few seconds of your time and disable your AdBlock plugin for our website.

Ad revenue is not going to developers, it is used purely for covering our hosting costs.

 

You are also free to donate, which removes all ads from our website!

Patch 0.3 was just released! Full changelog here: https://t.co/4A50m6IKen

2 years ago

Advertisement
July 18, 2019, 03:05:29 pm

Author Topic: Buy Menu Errors  (Read 1190 times)

Biotic

  • Newbie
  • *
  • Posts: 1
    • View Profile
Buy Menu Errors
« on: December 05, 2015, 10:45:19 am »
Hey,
I have just started to run a Just Cause 2 Multiplayer Server and I recently got the Buy Menu (All Free) from http://www.gaveroid.com/downloads/. I have been getting errors every time I start the server and they are all coming from the buy menu. This is the log file:
Code: [Select]
09:39:58 | [info ] | Loading module buymenu-allfree
09:39:58 | [info ] | Loading script "shared\buymenu.lua"
09:39:58 | [info ] | Loading script "server\buymenu.lua"
09:39:58 | [error] | Failed to run file buymenu.lua in module buymenu-allfree:
09:39:58 | [error] |   ...icated Server\scripts\buymenu-allfree\server\buymenu.lua:25: attempt to call method 'Register' (a nil value)
09:39:58 | [error] |   Callstack:
09:39:58 | [error] |     API function: in method Register
09:39:58 | [error] |     server\buymenu.lua:25: in function <server\buymenu.lua:11>
09:39:58 | [error] |     API function: in global BuyMenu
09:39:58 | [error] |     server\buymenu.lua:203: in main chunk
Any Help?
Thanks

JasonMRC

  • Donator
  • Hero Member
  • *****
  • Posts: 601
    • View Profile
Re: Buy Menu Errors
« Reply #1 on: December 05, 2015, 07:14:40 pm »
That is an old script calling a now removed function. I believe it was replaced with 'Fire'

If the line says "Events:Register" try changing it to "Events:Fire"

If that doesn't work please post the code line giving the error.