Hi,
I'm trying to run a very simply Python script, but it's saying that's it's missing he 'Main Class'.
I used @Wulf's Python example, with a few changes, but still errors out. (http://oxidemod.org/threads/javascript-python-and-luajit-oh-my.6451/)Code:[Error] Failed to load plugin sayHi2: (Exception: Plugin is missing main class)
Just wondering if I should be naming my 'Main Class' anything specific.
Probably pretty easy to fix, but I can't get my head around it.Code:def Init(self): command.AddChatCommand(cmd, self.Plugin, 'sayHi_CMD') def playerlist_CMD(self, args): print ("Hi") obj = Rust.DamageTypeList() print (obj.Total())
Apologise for being such a noob. ;(
Also, if there's a better section to post questions like this, please let me know, I feel like I'm spamming. ;l
Thanks,
Amos.
Solved [Python] Plugin is missing Main Class?
Discussion in 'Rust Development' started by MrAmos123, Feb 19, 2015.