Game Development Community

Importing models

by Jordan · in Game Design and Creative Issues · 10/21/2007 (9:33 am) · 9 replies

Hi i just perchased the soldier pack and I'm haveing a hard time putting it into my game. How do I put the soldier into my game?

Thanks

#1
10/21/2007 (11:19 am)
While I don't have any specific knowledge of the soldier pack, the basic steps are,

- Place the model files (DST, textures, etc.) in an apporpriate directory
such as (yourgame)\data\shapes\player\(soldier)

- There should be a .cs file for it. Place that in (yourgame)\server\scripts

- There are several lines at the top of (yourgame)\server\scripts\game.cs
that load other .cs files. Add just under Player.cs, your soldier's .cs file.

- There's two lines in that same file that define the player model.

// Create the player object
%player = new Player() {
dataBlock = PlayerBody;

You'll have to look in the soldier's .cs file to find the proper variables to put
in place of Player() and PlayerBody.

I would think there would be step by step directions included with the soldier
model to get it going like this.

Hope this helps.
#2
10/21/2007 (4:57 pm)
Thanks. I got it in... Now my only problem is is that it won't load. It gets to the loading objects part, fills up, then it just doesn't access it.

Im stumped!
Jordan
#3
10/21/2007 (5:08 pm)
You are probably missing a texture, a dts object, etc. Take a look at your console log and look for a "Could not locate texture: demo/data//texture/sometexture" or something(s) like that. It should be pretty close to the end and should indicate why it won't finish loading.
#4
10/21/2007 (6:19 pm)
I'm sorry, im a newbie. Whats a console log?
#5
10/21/2007 (6:23 pm)
Sorry I know what a console log is... It says this: ITS HUGE!

Could not locate texture: demo/client/ui/buttons/features
Could not locate texture: demo/client/ui/buttons/features_d
Could not locate texture: demo/client/ui/buttons/features_i
Could not locate texture: demo/client/ui/buttons/walkthrough
Could not locate texture: demo/client/ui/buttons/walkthrough_d
Could not locate texture: demo/client/ui/buttons/walkthrough_i
Could not locate texture: demo/client/ui/buttons/tpg
Could not locate texture: demo/client/ui/buttons/tpg_d
Could not locate texture: demo/client/ui/buttons/tpg_i
Could not locate texture: demo/client/ui/arrows/arrow_left
Could not locate texture: demo/client/ui/arrows/arrow_left_d
Could not locate texture: demo/client/ui/arrows/arrow_left_i
Could not locate texture: demo/client/ui/arrows/arrow_right
Could not locate texture: demo/client/ui/arrows/arrow_right_d
Could not locate texture: demo/client/ui/arrows/arrow_right_i
Could not locate texture: demo/client/ui/buttons/home
Could not locate texture: demo/client/ui/buttons/home_d
Could not locate texture: demo/client/ui/buttons/home_i
Could not locate texture: demo/client/ui/buttons/website
Could not locate texture: demo/client/ui/buttons/website_d
Could not locate texture: demo/client/ui/buttons/website_i
Could not locate texture: demo/client/ui/buttons/purchase
Could not locate texture: demo/client/ui/buttons/purchase_d
Could not locate texture: demo/client/ui/buttons/purchase_i
Could not locate texture: demo/client/ui/buttons/options
Could not locate texture: demo/client/ui/buttons/options_d
Could not locate texture: demo/client/ui/buttons/options_i
Could not locate texture: demo/client/ui/buttons/exit
Could not locate texture: demo/client/ui/buttons/exit_d
Could not locate texture: demo/client/ui/buttons/exit_i
Missing file: demo/client/scripts/envAudioProfiles.cs!
Missing file: demo/client/scripts/camera.cs!
Missing file: demo/client/scripts/markers.cs!
Missing file: demo/client/scripts/triggers.cs!
Missing file: demo/client/scripts/inventory.cs!
Missing file: demo/client/scripts/shapeBase.cs!
Missing file: demo/client/scripts/item.cs!
Missing file: demo/client/scripts/environment.cs!
Missing file: demo/client/scripts/health.cs!
Missing file: demo/client/scripts/staticShape.cs!
Missing file: demo/client/scripts/weapon.cs!
Missing file: demo/client/scripts/radiusDamage.cs!
Missing file: demo/client/scripts/crossbow.cs!
Missing file: demo/client/scripts/environment.cs!
Missing file: demo/client/scripts/m16.cs!
Missing file: demo/client/scripts/soldier_accessories.cs!
Missing file: demo/client/scripts/player.cs!
Missing file: demo/client/scripts/chimneyfire.cs!
Missing file: demo/client/scripts/aiPlayer.cs!
Missing file: demo/client/scripts/sgExamples.cs!
//AND.............
Could not locate texture: demo/client/ui/arrows/arrow_left
Could not locate texture: demo/client/ui/arrows/arrow_left_d
Could not locate texture: demo/client/ui/arrows/arrow_left_i
Could not locate texture: demo/client/ui/arrows/arrow_right
Could not locate texture: demo/client/ui/arrows/arrow_right_d
Could not locate texture: demo/client/ui/arrows/arrow_right_i
Could not locate texture: demo/client/ui/buttons/home
Could not locate texture: demo/client/ui/buttons/home_d
Could not locate texture: demo/client/ui/buttons/home_i
Could not locate texture: demo/client/ui/buttons/website
Could not locate texture: demo/client/ui/buttons/website_d
Could not locate texture: demo/client/ui/buttons/website_i
Could not locate texture: demo/client/ui/buttons/purchase
Could not locate texture: demo/client/ui/buttons/purchase_d
Could not locate texture: demo/client/ui/buttons/purchase_i
Could not locate texture: demo/client/ui/buttons/options
Could not locate texture: demo/client/ui/buttons/options_d
Could not locate texture: demo/client/ui/buttons/options_i
Could not locate texture: demo/client/ui/buttons/exit
Could not locate texture: demo/client/ui/buttons/exit_d
Could not locate texture: demo/client/ui/buttons/exit_i





WHAT THE HELL DO I DO???
#6
10/21/2007 (6:25 pm)
I checked it all its right in the folders its suppossed to be in!!
What do I do to change all of these???
Its gonna be long I can tell...

Jordan
#7
10/21/2007 (6:55 pm)
Missing file: demo/client/scripts/envAudioProfiles.cs!
Missing file: demo/client/scripts/camera.cs!
Missing file: demo/client/scripts/markers.cs!
Missing file: demo/client/scripts/triggers.cs!
Missing file: demo/client/scripts/inventory.cs!
Missing file: demo/client/scripts/shapeBase.cs!
Missing file: demo/client/scripts/item.cs!
Missing file: demo/client/scripts/environment.cs!
Missing file: demo/client/scripts/health.cs!
Missing file: demo/client/scripts/staticShape.cs!
Missing file: demo/client/scripts/weapon.cs!
Missing file: demo/client/scripts/radiusDamage.cs!
Missing file: demo/client/scripts/crossbow.cs!
Missing file: demo/client/scripts/environment.cs!
Missing file: demo/client/scripts/m16.cs!
Missing file: demo/client/scripts/soldier_accessories.cs!
Missing file: demo/client/scripts/player.cs!
Missing file: demo/client/scripts/chimneyfire.cs!
Missing file: demo/client/scripts/aiPlayer.cs!
Missing file: demo/client/scripts/sgExamples.cs!

This is your problem.
Those files are exec'd in "demo/client/init.cs"
Check there to make sure those files are listed. If they are, delete the init.dso file and start your game again.
The missing button textures are normal. No need to worry about them.

A good thing to do is to look in the example folder and click on the DeleteDSOs.bat file. It will delete all your compiled dso files.
#8
10/22/2007 (3:57 pm)
I did the DeleteDSOs.bat file like you said but it still won't load. What is the problem?
#9
10/23/2007 (6:29 am)
Did you copy the files to the place where they are supposed to be? I know it seems like a simple question, but copied them into the wrong directory the first time I did it. I went through the directions with someone else about a month back and they had done the same thing.