Animation & Trackview

View unanswered posts | View active topics


Post a new topicPost a reply
Previous topic | Next topic 

  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Self-made car enterable but not drivable, SDK crashes a lot
PostPosted 10.11.2011, 22:11 
I've been looking into this for days now and I can't find what's wrong, so I'm hoping anybody here could help me out on this one.

I am in a team which is making a game in CryEngine3, and it will have vehicles in it. I've managed to import a self-made sports car into CE3, but that is as far as I can go. The car does behave to things like that rocket launcher the character is equipped with, and when standing near it, I can enter it. However, I can NOT drive the vehicle. Throttle/braking, reverse and steering don't work at all. The only thing I can do while I am ''using'' the vehicle is changing camera's.

I have made the whole XML 3 times over, using both the CookBook of CE3, as looking to the XML file of the Humvee. Nothing works though, some changes which I take from the Humvee file (which do not mention any specific filenames) even remove the car from the Entities > Vehicle list of CE3 to put vehicles in the scene.

Does anybody know if something might have been missed? Do I have to pay attention to an unmentioned function or something?

I've copied the content of the XML file into a text file so one who would like to analyze can go ahead.
Attachments:

CLR - Content of the XML file.txt
[5.2 KiB]
Downloaded 40 times


Last edited by CLR on 18.11.2011, 13:20, edited 1 time in total.

User avatar   Trainee TraineeMember since: 20.04.2009, 10:12Posts: 194Location: Earth Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 11.11.2011, 03:47 
Greetings CLR,

I don't have a direct answer for you, however I have been working on setting up vehicles for about 2 years now and even so I still run into problems. So here is a link to a thread that has been running for over a year about setting up vehicles.
http://www.crydev.net/viewtopic.php?f=284&t=62363
Here you will find a lot of info for setting up vehicles. I believe your problem is that you didn't export the base XML from one of the default vehicles in the engine from the Vehicle editor. Every time I have created a vehicle this is the first step. Once you have exported one of the stock vehicles it is register with the engine so it will show up once you close and restart the sandbox. There also is more code going on than just the base XML. there is the LUA. file for the Engine to recognize the vehicle's as one of it own as well a a Generic LUA file for all vehicle behaviors. Then inside the vehicle editor there is a host of controls for vehicle assets including things such as seating, turrets, wheels, lights, mass boxes, hull damage, particles etc...
Hope this helps.
KAKUBOT


In this world that you have entered, Things are rarely as they seem.

http://www.kirknowak.com
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 11.11.2011, 12:25 
Thanks for the advice. I'll take a look at that topic and what you typed to see if I can fix it. If it won't work, I'll give a shout here again. :))



EDIT1: I can't get passed the step of opening the vehicle in the Vehicle Editor. It says:

''VehicleXmlLoad for R666 failed''

Clicking the OK button in that screen gives a new error message:

''Spawn of prototype failed, please inform Code!''
User avatar   Trainee TraineeMember since: 20.04.2009, 10:12Posts: 194Location: Earth Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 11.11.2011, 20:26 
Greetings CLR,

Ok try this.
1. Drag a vehicle you want to base your vehicle on into your level.
2. Open the Vehicle Editor
3. Click open selected
4. Then save as I.E (my vehicle) or what ever name you like
5. You should get a message that the new vehicle will be registered the next time you open sandbox.
6. Close and Re-open sandbox
7. Under the Entities drop down your new vehicle should be listed.
8. Drag your vehicle into your level
9. Back in the Vehicle Editor click on open selected
10. In the Structure menu click on Body or Hull depending on the type of vehicle you choose to use.
11. Under Animated click on file name, find your vehicle model on your drive. Click save.
12. Your vehicle model should now replaced the stock vehicle.

KAKUBOT


In this world that you have entered, Things are rarely as they seem.

http://www.kirknowak.com
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 12.11.2011, 20:51 
I can't get through step 11, CE3 keeps on crashing with a huge Crash Handler list of things going wrong....

What happens is that when I click Filename to browse for the cga file of my custom vehicle, this browser window shows up to let me search the custom car, but as soon as I put my cursor on that window, the whole engine crashes....

Quote:
Call Stack Trace:
80) function=0x0000000000000013
79) function=0x0000000060179A4E
78) function=0x0000000065173E30
77) function=0x0000000065156E9F
76) function=0x0000000065156F88
75) function=0x00000000651545EA
74) function=0x00000000651559BF
73) function=0x0000000065154FD4
72) function=0x00000000651531A4
71) function=0x0000000065153551
70) function=0x0000000065150503
69) function=0x0000000076C98971
68) function=0x0000000076C96AA8
67) function=0x0000000076C96BAD
66) function=0x000007FEFB84566F
65) function=0x000007FEFB84380A
64) function=0x000007FEFB84528C
63) function=0x000007FEFB82B612
62) function=0x0000000076C99BD1
61) function=0x0000000076C93BFC
60) function=0x0000000076CC28FB
59) function=0x00000000602F3B37
58) function=0x0000000060301453
57) function=0x00000000603025DF
56) function=0x0000000076C99BD1
55) function=0x0000000076C93BFC
54) function=0x0000000076CC28FB
53) function=0x00000000602F2389
52) function=0x00000000651541F4
51) function=0x0000000065154FEC
50) function=0x00000000651531A4
49) function=0x0000000065153551
48) function=0x0000000065150503
47) function=0x0000000076C99BD1
46) function=0x0000000076C96AA8
45) function=0x0000000076C8D398
44) function=0x0000000060178846
43) function=0x0000000065155A36
42) function=0x000000006015BA03
41) function=0x0000000065154FD4
40) function=0x00000000651531A4
39) function=0x0000000065153551
38) function=0x0000000065150503
37) function=0x0000000076C99BD1
36) function=0x0000000076C998DA
35) function=0x0000000076C967C2
34) function=0x0000000076CD32E2
33) function=0x000000006519367B
32) function=0x0000000065159B9C
31) function=0x000000006517ABCE
30) function=0x0000000065156E0E
29) function=0x00000000651AD837
28) function=0x00000000651AD89F
27) function=0x00000000651AD6F2
26) function=0x00000000651AD73B
25) function=0x0000000065159C98
24) function=0x000000006517B617
23) function=0x000000003724FA4E
22) function=0x0000000037250814
21) function=0x000000003714DF0D
20) function=0x000000003714161E
19) function=0x0000000065194BAC
18) function=0x0000000065194E14
17) function=0x00000000651570C9
16) function=0x0000000065157000
15) function=0x0000000065173C10
14) function=0x0000000065156E9F
13) function=0x0000000065156F88
12) function=0x0000000065155F45
11) function=0x000000006515506F
10) function=0x0000000065154FD4
9) function=0x00000000651531A4
8) function=0x0000000065153551
7) function=0x0000000065150503
6) function=0x0000000076C99BD1
5) function=0x0000000076C96AA8
4) function=0x0000000076C96BAD
3) function=0x000007FEFB820BBF
2) function=0x000007FEFB8247FE
1) function=0x0000000076C99BD1


Suspended thread (Particles):
10) function=0x0000000076C99BD1
9) function=0x0000000076C93BFC
8) function=0x0000000076CC28FB
7) function=0x00000000602F2389
6) function=0x00000000651541F4
5) function=0x0000000065154FEC
4) function=0x00000000651531A4
3) function=0x0000000065153551
2) function=0x0000000065150503
1) function=0x0000000076C99BD1


Suspended thread (Physics):
9) function=0x0000000076C99BD1
8) function=0x0000000076C998DA
7) function=0x00000000651AD70A
6) function=0x00000000651ADFD7
5) function=0x000000006516502C
4) function=0x000000003779A9A3
3) function=0x0000000076B7652D
2) function=0x0000000076DAC521
1) function=0x0000000076DAC521


Suspended thread (WaterUpdate):
2) function=0x0000000076DAC521
1) function=0x0000000076DAC521

User avatar   Trainee TraineeMember since: 20.04.2009, 10:12Posts: 194Location: Earth Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 14.11.2011, 07:01 
Greeting CLR,
Wow not sure what would be causing this kind of error. Are you using the newest version of the C3Engine? I would create a new post including this error report and see if someone has an idea why this maybe happening.
Sorry Mate

KAKUBOT


In this world that you have entered, Things are rarely as they seem.

http://www.kirknowak.com
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 16.11.2011, 00:38 
Don't ask how, but after a whole evening of copying ALL content from the Humvee XML, and adding it into my R666-DC_Finale.XML (the car's called Torrudo R666-DC Finale), I managed to get the car moving after I accidentally pressed the ''1'' in the numberbutton row above the letters.

But now, I get another huge list of errors, apparently the game doesn't WANT to have me drive it.

Quote:
Call Stack Trace:
34) function=0x0000000035159B3E
33) function=0x0000000035159BEC
32) function=0x0000000035159BEC
31) function=0x0000000035159BEC
30) function=0x0000000035159BEC
29) function=0x0000000035159C03
28) function=0x0000000035159C03
27) function=0x0000000035159C03
26) function=0x0000000035159BEC
25) function=0x0000000035159C03
24) function=0x0000000035159C03
23) function=0x0000000035159C03
22) function=0x0000000035159BEC
21) function=0x0000000035159C03
20) function=0x0000000035159C03
19) function=0x0000000035159BEC
18) function=0x0000000035159C03
17) function=0x0000000035159C03
16) function=0x000000003515D3B5
15) function=0x00000000351E7FF6
14) function=0x000000003511ED41
13) function=0x00000000350D662B
12) function=0x0000000035088476
11) function=0x00000000350965E0
10) function=0x000000003655B194
9) function=0x000000003655AF1F
8) function=0x000000003664F57B
7) function=0x000000003664F6C5
6) function=0x00000000366527E7
5) function=0x000000006B7E2FDF
4) function=0x000000006B7E3080
3) function=0x0000000076D4652D
2) function=0x0000000076E7C521
1) function=0x0000000076E7C521

Suspended thread (Main):
2) function=0x0000000076E7C521
1) function=0x0000000076E7C521

Suspended thread (Particles):
2) function=0x0000000076E7C521
1) function=0x0000000076E7C521

Suspended thread (WaterUpdate):
2) function=0x0000000076E7C521
1) function=0x0000000076E7C521
User avatar   Crytek Staff Member Crytek Staff MemberMember since: 20.07.2011, 10:22Posts: 489Location: Frankfurt am Main Likes: 1
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 16.11.2011, 10:57 
What type of sound output do you have? 2/2.1 / 5.1 / 7.1 ?
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 16.11.2011, 19:50 
I have two speakers so it'll be 2.1.
User avatar   Crytek Staff Member Crytek Staff MemberMember since: 20.07.2011, 10:22Posts: 489Location: Frankfurt am Main Likes: 1
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 17.11.2011, 11:10 
Although you say you have 2.1, I still have the feeling somehow that it's this problem viewtopic.php?f=326&t=77693
User avatar   Superstar Dolphin Superstar DolphinMember since: 16.08.2004, 10:46Posts: 9513Location: Finland Likes: 39
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 17.11.2011, 11:58 
Quote by CLR:
Don't ask how, but after a whole evening of copying ALL content from the Humvee XML, and adding it into my R666-DC_Finale.XML (the car's called Torrudo R666-DC Finale), I managed to get the car moving after I accidentally pressed the ''1'' in the numberbutton row above the letters.

That sounds like you entered the driver's seat (default key is 1) - obviously you can't steer the car from any other seat. :)
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car does is not controllable, but is enterable
PostPosted 17.11.2011, 14:32 
Changing to another sound setup did not work unfortunately.

I'm now at the point that I can sit in the custom car, I can damage and blow up the custom car, I'm learning how to tweak positions of helpers, effects, and viewers in the custom car, and I can actually steer the wheels of the custom car.

But that's where it stops. When I apply throttle, the wheels immediately get blurred so it seems the engine does know it should move forward, but I only see this less than 0.1 sec. Then the engine crashes again with another list of stack trace errors:

Quote:
Call Stack Trace:
34) function=0x0000000035159B3E
33) function=0x0000000035159BEC
32) function=0x0000000035159BEC
31) function=0x0000000035159BEC
30) function=0x0000000035159BEC
29) function=0x0000000035159C03
28) function=0x0000000035159C03
27) function=0x0000000035159C03
26) function=0x0000000035159BEC
25) function=0x0000000035159C03
24) function=0x0000000035159C03
23) function=0x0000000035159C03
22) function=0x0000000035159BEC
21) function=0x0000000035159C03
20) function=0x0000000035159C03
19) function=0x0000000035159BEC
18) function=0x0000000035159C03
17) function=0x0000000035159C03
16) function=0x000000003515D3B5
15) function=0x00000000351E7FF6
14) function=0x000000003511ED41
13) function=0x00000000350D662B
12) function=0x0000000035088476
11) function=0x00000000350965E0
10) function=0x000000003655B194
9) function=0x000000003655AF1F
8) function=0x000000003664F57B
7) function=0x000000003664F6C5
6) function=0x00000000366527E7
5) function=0x000000006C612FDF
4) function=0x000000006C613080
3) function=0x0000000076D3652D
2) function=0x0000000076F6C521
1) function=0x0000000076F6C521

Suspended thread (Main):
2) function=0x0000000076F6C521
1) function=0x0000000076F6C521

Suspended thread (Particles):
2) function=0x0000000076F6C521
1) function=0x0000000076F6C521

Suspended thread (WaterUpdate):
2) function=0x0000000076F6C521
1) function=0x0000000076F6C521


Soooooo cloooooooossseee, it's not fair xD
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car enterable but not drivable, SDK crashes a
PostPosted 18.11.2011, 13:16 
Just to make an additional post showing how helpless we are now: I have the best machine of the team I'm developing a game with, nonetheless the others have also tried to get through the different steps of getting the custom vehicle R666-DC_Finale working. I have also tried the Vehicle Editor steps in both 64-bit as 32-bit Editor.exe's, and both simply crash when the Explorerwindow pops up to manually browse for the cga file.

I have repeated the methods with a very simple model only consisting of a body and bodyproxy, 4 wheels and a driverseat dummy, non-textured though, and using the HMMVV XML file, but also this new custom simple vehicle is impossible to import, due to the unstableness of the Editor, crashing every time when I want to browse for the cga file. Polycount on the complexer set-up R666 is just under that of the HMMVV, and the more simple second vehicle I imported doesn't even reach 8000 polies.

I'm using the latest version of the SDK, version 3.3.7 2572.

Here are my specs, I think I should have included these earlier:

CPU: Intel i7 2600 Quad-core 3.4 GHz
MB: MSI P67A-GD65
RAM: Corsair 8 GB (2 x 4) DDR3-1333
GPU: MSI Hawk GTX460 1GB GDDR5
HDD: 2 TB (2 x Samsung HD105SI 1 TB)
OS: Windows 7 Ultimate 64-bit
Sound: n-board RealTek High Definition Audio, ALC892 or something.

DirectX 11 latest version
.NET Framework latest version
CryENGINE SDK v3.3.7 2572




Somebody please help me out on this one. If we can't get this solved, we see no other option than to switch to another engine. :\
User avatar   Crytek Staff Member Crytek Staff MemberMember since: 20.07.2011, 10:22Posts: 489Location: Frankfurt am Main Likes: 1
 

 Post Topic: Re: Self-made car enterable but not drivable, SDK crashes a
PostPosted 21.11.2011, 12:53 
I did a test and for me it seems that browsing for the CGA works fine, no crash.
You could try to edit the xml manually in a text editor like Notepad in order to avoid crashes...
  Beginner BeginnerMember since: 10.11.2011, 21:59Posts: 43 Likes: 0
 

 Post Topic: Re: Self-made car enterable but not drivable, SDK crashes a
PostPosted 21.11.2011, 13:21 
But that's what I've done from the start... From the start I copied all contents from the HMMVV xml to my custom xml and only changed values which did not have to do with driving but with the files.

I've said that in the very first post of the topic that I used both the Cookbook as the Humvee xml to compose the custom one.


Last chance, the ball is now at the CryDev team, if they can't respond to my email with some solution I'm afraid we have to change engine.