LUA and purebasic - help please :)

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

LUA and purebasic - help please :)

Post by SFSxOI »

I got the PB LUA libarary found here but I seem to not be doing something right. I'm kinda new to the unreal engine and I wanted to try my hand at building a mod, then I found out that I would need to build my own SDK. So I built an SDK generator in an LUA script that would dump any .u files so I could look at them. It works if its compiled with C++ to a .dll and then injected. And thats how i'm doing this to dump the .u files, injecting a .dll, and it works fine. But I kinda wanted to do this in PureBasic also but having a heck of a time. This is the SDK generator LUA script. I don't seem to be able to get the function to call using the PB LUA library, so its back to the drawing board to start over and I want to seek guidance to do this with the PB LUA library.

Code: Select all

function Tick(DeltaTime, ViewPort)
	If Not bDump then
		bDump = true
		For i = 0, #Engine.UObjects - 1 do
			local UObject = Engine.UObjects[i]
			If UObject And string.find(Engine.FullName(UObject), "Class ") == 1 then
				Engine.Dump(Engine.FullName(UObject))
			End
		End
	End
End
Anyone have any experience or even a line or two of code possibly, they might wish to share doing this with the PB LUA library?

Thank You
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.