Integrate Torch7 into LÖVE?

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
User avatar
SirRanjid
Prole
Posts: 39
Joined: Sun Nov 19, 2017 1:44 pm
Contact:

Integrate Torch7 into LÖVE?

Post by SirRanjid »

Hello I just started using löve which is super easy however I have no clue how to build a new love.exe with torch(http://torch.ch/) included.

I followed "https://love2d.org/wiki/Building_L%C3%96VE" as far as possible (win 8 x64). So I got the löve and the torch source (both 64bit luajit (löve c++, torch c)).

I noticed the CMakeList.txt with all the source contents of löve. Do I have to edit it manually and how to? Where to put torch?
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Integrate Torch7 into LÖVE?

Post by bartbes »

I don't think you need to compile torch into love, just stick the dll (compiled for lua 5.1) next to the exe and require torch.
josip
Prole
Posts: 21
Joined: Tue Oct 03, 2017 1:55 pm

Re: Integrate Torch7 into LÖVE?

Post by josip »

I'm really curious what you want to use Torch for? Combining ML and gamedev gets my imagination running wild.
User avatar
SirRanjid
Prole
Posts: 39
Joined: Sun Nov 19, 2017 1:44 pm
Contact:

Re: Integrate Torch7 into LÖVE?

Post by SirRanjid »

josip wrote: Tue Nov 28, 2017 1:26 pm I'm really curious what you want to use Torch for? Combining ML and gamedev gets my imagination running wild.
Mine too c:

At first I just wanna play around. Maybe gui improvements. But mostly the enemy AI player... I wanna let 2 AI's compete for long enough to get a decent bot. The pro side is every action has the same computing time.

Another thing I have in mind are Zombie-AIs since they are not very intelligent. I could use some of them and alter each zombies ai by applying some jitter to the weigths... many many possibilities.

My problem is still how to get the lua functions into the game but I delayed it til my game is at that state^^
Post Reply

Who is online

Users browsing this forum: Hydrogen Maniac and 43 guests