Forums Gallery Downloads LOGIN |REGISTER

Creating a custom vehicle and script in Cryengine 3 SDK

Help others by sharing your tutorials here.


 

User avatar
Richmar1
Database Support
Database Support
 
Posts: 654
Member since: 31.08.2011, 11:17
Location: Manchester, New Hampshire, United States of America
Likes: 376

Creating a custom vehicle and script in Cryengine 3 SDK

Postby Richmar1 » 02.02.2012, 18:55

My tutorial on the matter, enjoy!!! and a three minute update FIX
Havoc89
Just getting started
Just getting started
 
Posts: 5
Member since: 18.08.2011, 21:33
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby Havoc89 » 15.02.2012, 19:19

Hey I've been trying to follow this tutorial, however when I go to save the max file or open the HMMWV script file, there are only a few folders in the game folder. There was no objects or scripts folder. I tried to make my own folder, and extracted the script from the .pak file in the game folder via winrar, however when I tried to hit reload scripts inside the editor, and even restarting the editor, the entity did not show up. I am using the latest available version of CE3 SDK.

Any ideas?
User avatar
Richmar1
Database Support
Database Support
 
Posts: 654
Member since: 31.08.2011, 11:17
Location: Manchester, New Hampshire, United States of America
Likes: 376

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby Richmar1 » 15.02.2012, 21:29

Havoc89 wrote:Hey I've been trying to follow this tutorial, however when I go to save the max file or open the HMMWV script file, there are only a few folders in the game folder. There was no objects or scripts folder. I tried to make my own folder, and extracted the script from the .pak file in the game folder via winrar, however when I tried to hit reload scripts inside the editor, and even restarting the editor, the entity did not show up. I am using the latest available version of CE3 SDK.

Any ideas?


not a hundred percent sure without seeing your setup but this is most likely caused by your scripts not finding your car model (.cga) you need to have your script file in:
"YOURCRYENGINEROOTDIR\Game\Scripts\Entities\Vehicles\Implementations\Xml\yourscriptname.xml" and your model (yourcarname.cga) any where in the "Game" folder or subfolders of GAME. But the script (YOURSCRIPT.xml) has to tell the engine where to find the model(YOURCARNAME.cga) for example: if my Model (YOURCARNAME.cga) is in "MyCryengineRootDir\Game\My_Files\Objects\Vehicles\" then my script will look like this: <Animated filename="My_Files/Objects/Vehicles/mycar.cga" filenameDestroyed="objects/vehicles/mycar/mycar_damaged.cga"/>

Your "CryengineRootDir" And "Game" are already known to the scripts so you need to put just the filepath to (YOURCARNAME.cga) after the "Game" folder and they need to be forward slashes "/" not back slashes"\"
so "folder1\folder2\folder3\YourCarName.cga" would be written "folder1/folder2/folder3/YourCarName.cga"

hope this helps :)
Havoc89
Just getting started
Just getting started
 
Posts: 5
Member since: 18.08.2011, 21:33
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby Havoc89 » 16.02.2012, 05:40

I am not sure what happened, I did a fresh install, copied all the old files over, and it worked for some odd reason.

However now I have a weird problem... After I get into my vehicle, it doesn't drive at all (and yes I'm in the driver seat). It just turns very very very very slowly in the same spot. Any ideas?

Thanks
User avatar
NeoLegends
Producer
Producer
 
Posts: 1731
Member since: 21.10.2011, 23:50
Likes: 8

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby NeoLegends » 12.03.2012, 19:04

Havoc89 wrote:I am not sure what happened, I did a fresh install, copied all the old files over, and it worked for some odd reason.

However now I have a weird problem... After I get into my vehicle, it doesn't drive at all (and yes I'm in the driver seat). It just turns very very very very slowly in the same spot. Any ideas?

Thanks

Open your Vehicle in the Vehicle editor and check for errors and make it more fast.^^

Maybe your missing script was in a PAK file?
dannondarko
Just getting started
Just getting started
 
Posts: 9
Member since: 15.08.2012, 11:57
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby dannondarko » 22.08.2012, 10:40

how do you add texture/material to the vehicle?
xHochex
Just getting started
Just getting started
 
Posts: 20
Member since: 21.08.2012, 20:36
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby xHochex » 25.08.2012, 20:51

Can you scripting this car in c++ ? Would be awesome when you can do this and then make a new tutorial for c++ :)
User avatar
ceylonfarmer
Senior Developer
Senior Developer
 
Posts: 845
Member since: 11.11.2011, 07:36
Location: Asia
Likes: 2

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby ceylonfarmer » 26.08.2012, 06:26

I really needed this for my mod :))Can you make a tut on how to make a drivable Boat ?
Image
Role :Texture artist
My skills : Level Designer|Game Designer|Sound Designer|3D Artist|2D Artist|
n3at0
Just getting started
Just getting started
 
Posts: 1
Member since: 27.08.2012, 13:36
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby n3at0 » 27.08.2012, 13:40

Richmar1 Thanks man.

Your tutorial helped me with some projects I have. Maybe in the future you will do some more.

xHochex wrote:Can you scripting this car in c++ ? Would be awesome when you can do this and then make a new tutorial for c++ :)


C++ isn't a scripting language. :P

Thanks.
Conduc bestii pe 4 roti pe cel mai frumos site de jocuri cu masini de pe internet, gaseste-ti pe cujocuri ocupatie.
xHochex
Just getting started
Just getting started
 
Posts: 20
Member since: 21.08.2012, 20:36
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby xHochex » 27.08.2012, 14:53

Sorry. It's a programming language but is it possible?
User avatar
Richmar1
Database Support
Database Support
 
Posts: 654
Member since: 31.08.2011, 11:17
Location: Manchester, New Hampshire, United States of America
Likes: 376

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby Richmar1 » 27.08.2012, 20:20

xHochex wrote:Sorry. It's a programming language but is it possible?


to program a whole new vehicl class? yes it is . BUT it is very complex to do this :)
xHochex
Just getting started
Just getting started
 
Posts: 20
Member since: 21.08.2012, 20:36
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby xHochex » 28.08.2012, 00:56

good to know
kbs_griffen
Just getting started
Just getting started
 
Posts: 37
Member since: 29.06.2012, 03:16
Location: Ontario, Canada
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby kbs_griffen » 28.08.2012, 07:56

Used this tutorial to bring my LAV III model into CE3, great tut Rich!
firewall200
Just getting started
Just getting started
 
Posts: 10
Member since: 26.03.2013, 18:51
Likes: 0

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby firewall200 » 27.03.2013, 21:53

I like your tutorial, but is there a way to do it with a pre-made model, since I want a nice looking one but can't quite make it myself
Alpha2000
Just getting started
Just getting started
 
Posts: 82
Member since: 30.01.2013, 21:40
Location: Germany
Likes: 1

Re: Creating a custom vehicle and script in Cryengine 3 SDK

Postby Alpha2000 » 29.03.2013, 20:40

firewall200 wrote:I like your tutorial, but is there a way to do it with a pre-made model, since I want a nice looking one but can't quite make it myself


Yes it is posibile but you must modify the model (with blender or 3dmax) to the same parameters like this tutorial(rename the model add the wheels). if you habe no idee to handels this programmes there is no chance.


 
Connect and collaborate with CRYENGINE developers in the official Forums.
Visit the Gallery to share what you have created and be inspired by what others are creating with CRYENGINE.
Community