Author Topic: Changing .cs files  (Read 2000 times)

I've opened a .cs file in notepad, the horse to be more specific.
I've changed around some stuff, like increasing speed and jump height, but when I save it as "Vehicle_SuperHorse" and than tick it in the add ons menu, it still doesn't show up when I try to spawn it, it's not in the vehicle list when I wrench it.
What am I doing wrong?

Did you get rid of the uiname = "blah"; bit?

You need uiName = SuparHorse; in the Vehicle dataBlock for it to show up in the wrench menu.

And are you sure it's not just overwriting the original Horse?

Replace all instances of "Horse" in the script with "superHorse". (Except for the DTS, of course)

BUMP.
I still can't get it to work, I've changed the Vehicle_horse.cs file, and I changed the ui name = "blah" line, and I renamed the file to Vehicle_SuperHorse when saving it, and I ticked it in the addons box, but it won't show up when I wrench the special vehicle brick.
What am I doing wrong?  :panda:

Badspot

  • Administrator
You also need to rename the datablock. 

Thanks.
so I would have to have two .dts files, each one for each separate Horse?



Sorry, but you should be ashamed of what you just said...
Go check that .cs file again and search for a datablock, you'll see what it is.
« Last Edit: May 24, 2007, 05:23:04 PM by E_net4 »


did you turn it on in the Add-ons menu befor you host your game......

A datablock is a block of data basically. A datablock can be of any name, only the contents make it an emmiter or a player datablock. I think.

I think he figured it out by now.

did you turn it on in the Add-ons menu befor you host your game......
Are you loving handicapped? Did you check the date, you also didn't bother reading the FIRST post that said
but when I save it as "Vehicle_SuperHorse" and than tick it in the add ons menu,