Skip to content

Lua Scripting for BGE#17

Open
oneillsimon wants to merge 14 commits intoskooter500:masterfrom
oneillsimon:lua
Open

Lua Scripting for BGE#17
oneillsimon wants to merge 14 commits intoskooter500:masterfrom
oneillsimon:lua

Conversation

@oneillsimon
Copy link
Copy Markdown

No description provided.

@skooter500
Copy link
Copy Markdown
Owner

Hey Simon

When I merge this pull request, I find that the project folders are gone in Visual STudio and also there seems to be a few extra files in the build that dont seem to be in git:

FBO.cpp and FBO.h
gmk.py

The project compiles anyway, but it crashes when I run it.. It usually stays alive for a few seconds and then crashes...

Any ideas?

Bryan

@oneillsimon
Copy link
Copy Markdown
Author

That's weird, I have those files on my build but they're in the BGE folder
with all the other .h and .cpp files. They have nothing to do with Lua so
maybe I was working on an older version of BGE?
On 21 Dec 2014 18:24, "Bryan Duggan" notifications@github.com wrote:

Hey Simon

When I merge this pull request, I find that the project folders are gone
in Visual STudio and also there seems to be a few extra files in the build
that dont seem to be in git:

FBO.cpp and FBO.h
gmk.py

The project compiles anyway, but it crashes when I run it.. It usually
stays alive for a few seconds and then crashes...

Any ideas?

Bryan


Reply to this email directly or view it on GitHub
#17 (comment).

@skooter500
Copy link
Copy Markdown
Owner

Yea its possibly an older version of BGE, but I dont think thats the
problem. Even if I checkout the branch of your repo to a new folder:

git clone -b lua https://github.com/oneillsimon/BGE.git

And open the project I get those issues. Can you that and see if you get
them too?

Bryan

On Sun, Dec 21, 2014 at 6:31 PM, oneillsimon notifications@github.com
wrote:

That's weird, I have those files on my build but they're in the BGE folder
with all the other .h and .cpp files. They have nothing to do with Lua so
maybe I was working on an older version of BGE?
On 21 Dec 2014 18:24, "Bryan Duggan" notifications@github.com wrote:

Hey Simon

When I merge this pull request, I find that the project folders are gone
in Visual STudio and also there seems to be a few extra files in the
build
that dont seem to be in git:

FBO.cpp and FBO.h
gmk.py

The project compiles anyway, but it crashes when I run it.. It usually
stays alive for a few seconds and then crashes...

Any ideas?

Bryan


Reply to this email directly or view it on GitHub
#17 (comment).


Reply to this email directly or view it on GitHub
#17 (comment).

Dr. Bryan Duggan

School of Computing
DIT Kevin St
Dublin 8

Phone: + 353 1 4024788
Email: bryan.duggan@dit.ie
Twitter: @ditcomputing
Web: http://bryanduggan.org http://bryanduggan.org
Web: http://tunepal.org

@oneillsimon
Copy link
Copy Markdown
Author

I cloned the branch and when I set up the dependencies it built fine.
However when I ran it it threw errors to the console about not being able
to load the generated .lua files. If this is the same problem your getting
you can fix it by making a folder called gen inside the scripts folder
('Content\scripts').

I'm guessing git ignored it since its an empty directory when the program
isn't running.

@skooter500
Copy link
Copy Markdown
Owner

Yep thats it!

Bryan

On Sun, Dec 21, 2014 at 7:19 PM, oneillsimon notifications@github.com
wrote:

I cloned the branch and when I set up the dependencies it built fine.
However when I ran it it threw errors to the console about not being able
to load the generated .lua files. If this is the same problem your getting
you can fix it by making a folder called gen inside the scripts folder
('Content\scripts').

I'm guessing git ignored it since its an empty directory when the program
isn't running.


Reply to this email directly or view it on GitHub
#17 (comment).

Dr. Bryan Duggan

School of Computing
DIT Kevin St
Dublin 8

Phone: + 353 1 4024788
Email: bryan.duggan@dit.ie
Twitter: @ditcomputing
Web: http://bryanduggan.org http://bryanduggan.org
Web: http://tunepal.org

@oneillsimon
Copy link
Copy Markdown
Author

Glad to hear it. If you want to change where the scripts are generated
there's a variable called SCRIPT_GEN you can change at the top of
ScriptManager.cpp.

Let me know if there are any other issues.
On 21 Dec 2014 23:12, "Bryan Duggan" notifications@github.com wrote:

Yep thats it!

Bryan

On Sun, Dec 21, 2014 at 7:19 PM, oneillsimon notifications@github.com
wrote:

I cloned the branch and when I set up the dependencies it built fine.
However when I ran it it threw errors to the console about not being
able
to load the generated .lua files. If this is the same problem your
getting
you can fix it by making a folder called gen inside the scripts folder
('Content\scripts').

I'm guessing git ignored it since its an empty directory when the
program
isn't running.


Reply to this email directly or view it on GitHub
#17 (comment).

Dr. Bryan Duggan

School of Computing
DIT Kevin St
Dublin 8

Phone: + 353 1 4024788
Email: bryan.duggan@dit.ie
Twitter: @ditcomputing
Web: http://bryanduggan.org http://bryanduggan.org
Web: http://tunepal.org


Reply to this email directly or view it on GitHub
#17 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants