How to increase mass to dynamic asteroids?
-
Awesome. I didn’t know it did that. I’ll have to give this a whirl then
-
So, I’ve tried using LS’s tool for the .3db and, in game, it doesn’t attached the .sur to the model. I tried making it for our new missiles/torpedos.
Can anyone confirm they work for .3db models?
-
Hm. When I attach them to missile/torps that are released from craft there are no attached .surs with them.
-
Sushi, you are confusing me.
What do you mean “attach”?
You don’t attach any sur. It must just have exactly the same name as the .3db, and must be in the same folder, that is all:
e.g. asteroid1.3db; asteroid1.sur
e.g. mybigbadship.cmp; mybigbadship.sur
e.g. myblastermissile.3db; myblastermissile.sur
-
Yes, I realize that. By attach I mean in the game the missiles are without a hitbox even though there is an appropriate .sur file made. That means, to me, while in game the freelancer engine isn’t joining the .3db and .sur, for some reason, whether this be my error or not.
-
Ah, OK now I understand. (I’m easily confused these days as you all know!) lol
I guess it’s because you want to be able to destroy them with gunfire as they fly?
All missiles in the game use the li_rad_missile.3db and li_rad_missile.sur file, and torpedoes use ge_torpedo.3db and ge_torpedo.sur
Mines can be destroyed, I’ve done that, but I’m not sure about missiles, I’ve not tried that. Try giving your missiles the standard 3db and sur files and if that works you should be able to replace them with yours. Let us know what happens.
-
Vital wrote:
You can’t destroy your own missiles. Only those launched by(npcs for example).And this was the winning answer. Good to know
Thanks for all the help everyone!
-
Quick&Dirty variant:
asteroidarch.ini
[DynamicAsteroid]
nickname = badlands_large1
DA_archetype = solar\asteroids\models\badlands_large.3db
material_library = solar\ast_badlands.mat
explosion_arch = dast_asteroid_explosion
…explosions.ini
[explosion]
nickname = dast_asteroid_explosion
…
process = none
num_child_pieces = 1
…
innards_debris_num = 1
innards_debris_radius = 1
…
innards_debris_object = simple_badlands_large1[Simple]
nickname = simple_badlands_large1
DA_archetype = solar\asteroids\models\badlands_large.3db
material_library = solar\ast_badlands.mat
Mass = 10000 ; <-Our massDunno why, but despite the same DA_archetype parameters this “simple” visually bigger than asteroid itself!
P.S. More intresting - HP, not mass.
-
To the original title, I simply increased the mass in the sur file. Once I did that the dynamic asteroid behaved different…
-
Original question was “How?” but not “It works?”
-
When you export a sur you put in the mass you want. I don’t know where the value is stored in the sur file to change it with a hex editor - it could be the X, Y and Z inertia values? - anyone know?
-
Cannon writes Intertia …
How about milkshape sur import and then sur export?
There is a mass value in the form. -
mass = inertial mass, thats what I changed, I simply increased it
-
I know that “mass” value must be changed and it is simple. But wich util or method - i don’t know.
I will try again: Utf editor does not show sur contents, sur dump does not show mass.
-
Have you actually tried adding “mass = whatever” to the [DynamicAsteroid] section? It should be read (it’s part of every object), but I don’t know if it’s actually used.
To edit the mass (inertia) values in the sur, use SurDump with the -o option. That will give you the hexadecimal offset which you can plug into your hex editor.
surdump -o \Games\Freelancer\DATA\SOLAR\ASTEROIDS\MODELS\ast_ice_dynamic.sur |fgrep inertia 00040 inertia: 0.670761, 0.631842, 0.429650
-
Interesting! Will try both variants
-
@ Sushi, Gibbon can get them to work on his 3db’s because they were made with the cmp exporter, which gives them the cmp internal structure, but a regular 3db (vanilla or from the 3db exporter) has a different internal structure, which means a regular sur is of no use as FL can’t “attach” a sur with a Root to something that doesn’t have one. Use FLMT to chamge the sur type to 2 or 3 and then hex edit it to change all instances of 12688F2D or 2D8F6812 to 00000000 (can’t remember which way round the hex for Root is listed), then it should “attach” in game.