I have been modding Homeworld 2 since its release in 2003 as a hobby. For the last year or so I have been spending serious time (6 - 12 hrs a day) in creating a new mod that I plan upon releasing to the community. This morning, at 0300, I inexplicably ran into an error while loading the mod and I cannot for the life of me figure out what the problem is. I am hoping that someone here can help. This is the first time I have asked for help regarding my mod on any forum.
The error, as it appears in the hw2.log:
parameter: attempt to call global `ClassInitialize' (a nil value) stack traceback: 1: function `oninit' at line 90 [string ""] CPUPLAYER -- error in CPUPlayer: oninit() function was not found in CPU script -- FATAL EXIT
The dumpfile only repeats this error with no further info.
The āClassInitializeā call referred to is located in default.lua and refers (or used to refer) to the ClassInitialize function in classdef.lua via a dofilepath. I cannot imagine why there is an error at all as I have touched neither the default nor classdef files since last successfully loading the game. The files that I was tweaking, just prior to the error, were hgn_mothership_parade.lua, build.lua, research.lua and my modās ādeathmatchā lua gamefile. Although I have attempted to āundoā all changes I have made, the error remains.
I know that there are some real experts here that are far more knowledgable than I. Might someone assist me in troubleshooting this difficulty?