Game Development Community

connection to executable failed

by Duncan Perham · in Torsion · 10/22/2010 (11:08 pm) · 27 replies

I am a noob at torque, I have tgb, and am trying to use torsion to debug scripts, but I just get connection to exe failed. I noticed a little connect window pop up and disaper first, its trying to connect to 127.0.0.1, port 6060. my local ips are in the 192.168.0.X range, so it has no chance of connecting to anything???. What is it trying to do...
I just downloaded the latest versions of torque and torsion (demo at moment). Remember I am a noob, so any, "grab this file put it here" etc, please be noob friendly :). (ps I dont have the pro version)

Ok, after a bit more messing arround and reading and loss of hair, im still none the wiser.

So here it is in a nut shell.
I open tgb, choose new project.
Select adventurekit as my template, and call it adventure1.
it then creates a folder in C:/adventure1 (I have put it in other places with the same effect, I just put it into C: as its easier to explain the paths)

amoungst other things i now have
C:/Adventure1/adventure1/project.t2dProj
C:/Adventure1/adventure1/adventure1.exe
C:/Adventure1/adventure1/Game.torsion

I double click Game.torsion and torsion loads, sets up somthing then gives me a list of files and folders.
common (folder)
game (folder)
consol.log
main.cs
project.t2dProj

At this point I hit F5. and it comes back with an error screen,
"connection to executable failed".

Please reply for a total noob.

also how can I add a picture to this post, (says a thousand words, so they say)
Page «Previous 1 2
#1
10/22/2010 (11:23 pm)
Sorry about that Duncan, I thought my reply to you in the other thread went through before my browser crashed.

Make sure that there are configurations set up for the project. I don't believe TGB projects have that done automatically. In Torision with the project open, go to Project->Properties. Click on the configuration tab, create a new configuration and call it release, in the executable field browse to location of your game's exe and select it and click ok. Click ok to save the configuration and you should be all set.

If there already is a configuration present check it to make sure it's pointing at the correct exe, if it is then you may need to open up that port on your computer.

The 127.0.0.1 address is correct also. That's the loopback address of the localhost, in other words your computer. The debugger connects to your computer locally to run a debug session with the game.
#2
10/23/2010 (10:31 am)
Sorry, still no further advanced.
*****************************************
Project settings are:
Project.
Name:Adventure1
Base Directory:C:/Adventure1/Adventure1/
Entry Script:main.cs

Debugging
Address:127.0.0.1
Password:password
Port:6060
Reload Modified Scripts:True
Hook Codedbg:SetParameters( #port#, "#password#", true );
**************************************************
Configurations

Release (this was already here and all set up like this)
Name:Release
Executable:C:/Adventure1/adventure1/adventure1.exe
Arguments:(nothing)
Debugging
Enable Precompile:True
Enable setModPaths:False
OneClick Debugging:True
ScriptSense
Build Exports:True

After some testing, i have noticed the following.
The first time you hit F5, it loads the connect screen, then nothing. If at this point you look at the task manager list (processes)it has an adventure1.exe running, but no cpu usage, and it dosent show up on the applications tab.
If you then hit F5 again, Briefly you see another adventure1.exe appear on the task manager processes list, then it says cant connect to exe.
if you end process on the idle adventure1, then in torsion hit F5, it will connect then appear to do nothing, this kind of makes sense as the program should be halted on the first line so that you can debug it, but I see no marker on torsion to say that the program has run to this point, and if you then step F11, it comes up with cant connect to exe.
sometimes if you hit F5 enough times the game will load (so you have two on the task list) but its not in debug mode.

I dont have any firewall running (just the default on my router).

The first adventure1.exe on the list is only using about 6mb and does nothing.

When the game does actually load (but no effect in debugger) its using 32mb.

Just to clarify, do you need tgb running to debug?
Also, can I put pictures in this text, I seen some others doing it.
If so, how???
Thanks

Update: Ive just installed tgb, adventure pack and torsion on another computer, did exactly what I did here, and had exactly the same results???
#3
10/24/2010 (4:20 pm)
I'm having the same results also. Followed advise here, but my TGB HAD created the project config, just did not have a path to the exe. so I corrected that but still wont work.
#4
10/24/2010 (7:07 pm)
Without a debugger it would be almost impossible to program any reasonable sized game, whilst doing one of the tuts It took me about ten minutes to work out why somthing was not working, turned out that I had named one of the dynamic varibles wrong, I had put upper case at the start of it, then I discovered that infact it was the editor putting the capitol and not me. I am a seasoned programmer and knew to look for such things, but a real noob would not and may be there for quite sometime.
#5
10/25/2010 (7:05 pm)
Sorry I couldn't answer your questions over the weekend guys. I don't have internet at my new place yet.

I ran a quick test with TGB without any issue earlier, I'll need to scare up the Adventure Kit installer to help troubleshoot with it better.

What OS are you both running on by the way?

@Duncan
I missed it in your first post, but if you click the "MarkupLite is enabled" above the comment box it has instructions for posting images.
#6
10/26/2010 (10:14 pm)
Im running XP, on both the machines I tried it on, the only other OS that I would use is win7.
I suggest that you try it on a clean instal of xp sp3, since that is what we are all doing :). Oh yes, one more thing, torsion is a demo, which may make a big difference. (obviously im not going to buy it till i see it working :) )
#7
10/27/2010 (12:58 am)
any more advance on this yet??? I am quite keen to get on with disasembling the adventure kit, but I cant really do it to well without the debugger so I can step through it.
#8
10/27/2010 (5:14 pm)
I'm running win7 on my machine and xp sp3 on my sons. They both do it. I own several of the engines and plan on buying torsion but not with it not working.

I have note that if I reboot and clean everything up it will try to run the first time. Just sits there. No error. Look in processes and I see my eye running. End task. Try again. Now you get the connect error until you clean up, reboot and repeat.
#9
10/29/2010 (1:10 am)
I tried to debug just the basic tuts like the fish one, no joy. My guess would be that most poeple have compilers installed, somwhere along the line the torison debugger is using one of those files. Im off work till wedesday, but when I go back I have dozens of machines I can try it on, including one that has a complier on it. But hopfully there will be an answer by then. Is there an older version of torison we can try, maybe its just a missing file in the new version, but those who upgraded have the file, or maybe its just a bug, surley lots of people r having this problem?
#10
11/03/2010 (9:47 am)
Well its wednesday now, so still no help?. At work,installed torsion and torque on a pc with a compiler on it, didnt even install adventure game, just fish game, and its still does the same, also tried it on another pc, same. So it is definatly a bug in torison, why dont you guys get a clean machine, download, install and try to debug the fish demo...

Just installed torquedev, it does a very similar thing, but gives no errors, program runs, exe is running in task list but there is no break point in the debugger.... (despite putting in loads of them and telling it to stop)
#11
11/04/2010 (9:31 am)
???
#12
11/04/2010 (4:09 pm)
@Duncan

Did you try applying this fix yet? You never said in that thread whether you tried it or not. That fix should be included in the latest installer though. Unfortunately I've been unable to replicate your issue thus far, and no Torsion doesn't rely on any files installed by way of Visual Studio or other compilers. Torsion uses a telnet debugger which is built in to the engine.
#13
11/04/2010 (5:50 pm)
of course I looked at that thread, thats where this all started, if you remember I posted there first, but I cant do that as I dont have pro version.

There is somthing really wrong here, Ive tried it on 5 computers, just straight tgb, it dosent work, I aslo tried torquedev, and it dosent work either. Did you try downloading it and installing on a clean computer, because I have 5 times on 5 machines and it just does not work...

You never clarified if you need to have the torque builder engine running (I do) when you debug, or not have it running.

The only thing common on all the machines was xp home sp3.
dont you have some kind of debug log or somthing that i can send.

Please try the following, on a clean computer,
download tgb
download torsion
install them
create a new project (fish demo)
run the torsion file and debug. >>> dosent work, Im not doing anything stupid here.

ive ran it on single core and duel core machines (so its not a core issue)
its not hardware as all five machines were vastly diferent, only cominality was that they all had geforce graphics (not that that should have any effect).

Ive also used various c debuggers for the last 15 years, I know how they are meant to work, click debug, program stops with an insertion point, then u step through, I dont get that at all.

As i said, does torsion have a debug log file, maybe that will help, lets you know where its getting hung up.

please reply fairly soonish as its very annoying talking to oneself :)
#14
11/04/2010 (10:36 pm)
There's a binary version of the fix in that posted by Sven Bergstrom, and the link is still active, which why I asked to rule it out.

Are you checking the Copy Game Executable to Game Path box? It sounds like you're skipping that step and that is needed in order for the game to run outside of the editor. Also, no the editor does not need to be running in order for debugging to work.
#15
11/04/2010 (11:16 pm)
on a clean system.
download: tgb 1.7.5 - win from http://www.torquepowered.com/products/download/96.
download: torsion from http://www.torquepowered.com/products/download/106
move both files to desktop
run: Torque_Game_Builder-1.7.5-Win from destop
hit return x3 all the defaults for install, close explorer popup, finish installer. close explorer popup.
run:TorsionInstall_1_1_3.exe from destop, hit return, accept agreement,6xreturn, hit try it.

now run Torque Game Builder 1.7.5 shortcut from destop
for now i dont enter my key, click create
template = checkers, yes to copy exe, everything else is default. click close to popup. close tgb.
from this path ...My Documents/MyGames/MyGame/Game.torsion run this file.
torsion imports somthing. hit f5, and nothing. at this point it should stop at the begining of program.

the exe is partially running in tasklist, but torsion is stuck just before it puts in the cursor.

now you repeat this exactly on a clean machine and what happens, ive done this on 5 computers. Im starting to feel like a hampster on a wheel here, now if you repeat on a clean machine and it works, then you tell me why its not working on any computer i put it on????

since there is no one else on this forum and this is no longer an adventure issue id like to open a new thread in tgb its self, more heads to think about the problem.
#16
11/04/2010 (11:31 pm)
Duncan, please generate a dxdiag report(Run->dxdiag->Save All Information) for the machine you're trying this on and email it to the email in my profile. You shouldn't be having any problems running it at this point. There's something going on at the system level of your machine and that may give me a clue as to what it is.
#17
11/04/2010 (11:37 pm)
not ok, email bounced, but remember ive done this on 5 machines and even installed torquedev and nothing works. have you tried it on a clean machine.
#18
11/04/2010 (11:41 pm)
Yes I've tested it on a clean machine.
#19
11/04/2010 (11:43 pm)
email just bounces, scottb@nulltorquepowered.com <<< hang on, took the null out, should be ok now

#20
11/04/2010 (11:47 pm)
Yeah, the null is a security feature of our site to keep spambots from copying emails from profiles.
Page «Previous 1 2