Game Development Community

running Torsion with WineBottler

by john m ingato · in iTorque 2D · 02/10/2010 (3:08 am) · 10 replies

Hi. I read this post about running windows applications in OSX. I'm trying to yet Torsion running using the mentioned software, but I'm having issues. I am able to get it installed ok, but it won't debug. When I click debug, it says connecting and looks like it;s about to work, but the game never opens. I am able to select run without debugging and it opens it just fine. Also, if I uncheck the one click debugging option I am able to get it to open when pressing debug, but it doesn't stop at any breakpoints.

There is another issue I am having with it. When I am able to get it to start the game, the right third of the game gets cut off and replaced with garbage. Any idea why? See the below pic.

www.mypcmechanics.com/misc/torsion.png
Thanks.

-John

#1
02/10/2010 (3:20 am)
Debug will work but you need to insert the correct IP in the settings. the default is loopback
#2
02/10/2010 (5:25 am)
It would appear that the game is running in portait but is using landscape instead, how does it show on the simulator?
#3
02/10/2010 (12:23 pm)
Yeah, it does look like that. I didn't even think of that. It runs fine in the simulator and on the iphone. It also runs fine running the app on the desktop. The executable I'm using is iTorque2DGame_debug.exe. If I run that exe directly it opens with winebottler also and looks the same as the above picture.

also, I went to the iphoneExample project that's under myProjects. If I run TGBGame.app the game looks fine. If I rune iTorque2DGame.exe it looks cut off like mine. I booted into windows and ran the same exe file and the game looks fine.

as for the ip address issue. It had 127.0.0.1 as the ip to connect to. I tried changing it to the local ip address on my computer, but that didn't help either. What am I supposed to change it to?
#4
02/10/2010 (1:47 pm)
Well, it seems that I can now get it to debug. It just takes a few tries before it works. I don't know why. I have to start debugging it and then press restart to get it going. It still looks messed up though.
#5
02/10/2010 (5:14 pm)
I would not use the exe on osx. oyu have the osx ones and they will be the ones that reflect reality much better, because osx is significantly closer to the iphone os than windows is even at its best day :)
#6
02/10/2010 (6:50 pm)
Yeah. That's what I figured, but torsion won't let you select that to use with the debugger
#7
02/10/2010 (7:35 pm)
There is nothing it has to let you select.

you can start the program and hook in the debugger if you configured the ip correctly in the settings.

you can then debug the osx player, the simulator or the real device
#8
02/10/2010 (7:40 pm)
Wait...you can debug with torsion on the device? Man, that would be awesome. I guess I'm probably doing this wrong. What I did was choose the exe to launch under the configurations settings. Is there anything I need to add scriptwise before connecting your way?

Thanks
#9
02/10/2010 (8:17 pm)
what you need to do is start the torque game either on osx, simu or device and then use the manual debug connection (-> debug-connect) from torsion
#10
02/10/2010 (11:14 pm)
cool, Worked like a charm!

Thanks