.obj -> .sur converter
-
Actually I added the option just because of crash reports. See it as a quick fix until I can include real geometry. My hope was to avoid this step, but it seems to be unavoidable
-
Damn. Just so you know, these were the hpid hardpoint sections I was adding, in general, to the hitboxes. Might have been a bit excessive.
Capital Ships
HpMount HpCockpit HpShield01 HpShield02 HpShield03 HpShield04 HpShield05 HpShield06 HpCM01 HpTractor_Source HpTractor01 HpThruster01 HpTorpedo01 HpTorpedo02 HpWeapon01 HpWeapon02 HpEngine01 HpEngine02 HpEngine03 HpEngine04 HpEngine05 HpEngine06 HpEngine07 HpEngine08 HpEngine09 HpPower01 HpPower02 HpPower03 HpTurret01 HpTurret02 HpTurret03 HpTurret04 HpTurret05 HpTurret06 HpTurret07 HpTurret08 HpTurret09 HpTurret10 HpTurret11 HpTurret12 HpTurret13 HpTurret14 HpTurret15 HpTurret16 HpTurret17 HpTurret18 HpTurret19 HpTurret20 HpTurret21 HpTurret22 HpTurret23 HpTurret24 HpTurret25 HpTurret26 HpTurret27 HpTurret28 HpTurret29 HpTurret30 HpTurret31 HpTurret32
Starfighters
HpMount HpCockpit HpShield01 HpCM01 HpTractor_Source HpThruster01 HpTorpedo01 HpTorpedo02 HpWeapon01 HpWeapon02 HpWeapon03 HpWeapon04 HpEngine01 HpEngine02 HpEngine03 HpEngine04
-
Canāt remember which hardpoint was causing crashes for Startrader but iāve only been adding in HpThruster01, HpCM01, HpMine01 to my ships.
On bases, maybe why iāve been able to hit my turrets, i donāt add any hardpoints at all in the sur, no problems so far.
-
Iām guessing that Schmack is right and that this really is just used to speed up calculations, whereas if you just donāt specify them the game reverts to the actual, more complex turret SURs.
Does make me wonder whether those turret SURs are used at all if you list them in the hardpoints list. Maybe they get used for calculations if and only if the simple turret is hit?
-
FriendlyFire wrote:
Iām guessing that Schmack is right and that this really is just used to speed up calculations, whereas if you just donāt specify them the game reverts to the actual, more complex turret SURs.Does make me wonder whether those turret SURs are used at all if you list them in the hardpoints list. Maybe they get used for calculations if and only if the simple turret is hit?
I think it works this way: If a beam is inside the general sur radius, the overall sur gets checked. Now, every hardpoint āroughā geometry is checked. If the beam intersects one, the actual sur of the equipment mounted at that hardpoint is checked.
So, if all your equipment is simply a sphere or a very simple geometry, I think there is basically no speed-up. But as soon as you have a lot of equipment that is rather complex, I think there can be quite a speedup.
-
Actually the speedup would be there in any case, because of the BSP tree. Thatās why I think it made perfectly sense for the developers to also include simple geometry for the hardpoints. You just navigate through the tree until you hit one and after that look what is actually mounted there.
-
Adding hardpoints is a mistake, for me, I didnāt use this featur yet, but if itās done the same thing that vanilla models, the doms you can see on station, Iām sure you canāt hit turrets on your ship. Iām probably wrong, if Iām, can you tell e where? Please, cause Iām not an expert of modding.
-
SilentAssassin82 wrote:
Hmm, I created a hitbox for this base using the converter.http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
I actually had to splice the parts together because the doors where animated. In doing this I deleted the HPIDs section of the sur and all the turrets do register hits. I dunno why but the turrets on that model are fine ingame.
How did you āsplice the parts togetherā? What tools / method did you use?
-
http://i352.photobucket.com/albums/r330/SilentAssassin82/Untitled-5.png
What version of HardCMP is that? I want it.
-
Looks like 1.0.0.23 to me
-
You can use this for parts with only 1 mesh in them.
http://www.gamefront.com/files/20193523/SURSpliceForOBJCon.rar
But if itās a complex mesh like the rings in that model there, then you will have to do it by hand. That model I posted, every part except the 2 donut shaped rings where just a single mesh. So all I done was make 2 simpler SURs to start with only a single mesh and then replaced them myself with the more complex ones.
-
Nice, thanks!
-
The only difference between the two versions (sur_splice by Devast8or and SURSplice by anonymous) is the HPID tag - sur_splice always adds an empty list; SURSplice always removes it. Iāve made an update that defines the hardpoints in the input file itself. Itās not clear, but the hardpoints work per part. Not having the original example model (not that it really mattered, I guess), I didnāt update the input file, so perhaps someone would like to contribute a new example (and perhaps update the doc describing the process, if necessary). I also havenāt mentioned it in the readme, but this version determines the ābitsā radius and scale values automatically (and assumes the center is already right).
-
After Sushi posted the video of his turret issues, i decided to do a test myself on a custom asteroid base model iām using where i made a sur using the OBJ converter. No hardpoints added on this model and can confirm the turrets (standard vanilla base turrets) are taking hits with the base parts also taking seperate hits.
Certainly seems on bases at least, no hardpoints required for the sur.
Can post video if required
-
WOW.
Iāve been gone for 6 months and we are still on this?
Looking good though, it must be if StarTrader is ok with it
-
Waiting with bated breath for the next release.
Could change me back into a cuddly rabbitā¦
ā¦ or into a dynosaur meaner than the croc!
Youāll have to wait and seeā¦
-
StarTrader wrote:
Waiting with bated breath for the next release.Could change me back into a cuddly rabbitā¦
ā¦ or into a dynosaur meaner than the croc!
Youāll have to wait and seeā¦
I call shenanigans!
-
FriendlyFire recently found out a fatal flaw in the .sur creation tool, sadly. I had added all the hardpoints of each ship into the HPID portion. With mass testing underway on our mod, we were getting these very odd CTDs. Before the CTD, in our fw-tow-client log we have setup, we would have this error:
[25.05.2011 00:43:50] void __thiscall IServerHook::SPObjCollision(const struct SSPObjCollisionInfo &,unsigned int)
We also noticed that when players collided, there was a tremendous amount of lag created. Sometimes freezing the screen for 5-10 seconds or crashing the game immediately.
FF had a hunch it might be related to the HPID. I removed them from all the hitboxes and we donāt have this issue anymore. There is no longer any delay when ships collide.
Can anyone else confirm this?
-
To add to this, my thinking is that most of our guns have no SURs whatsoever, which could make FL bug out when the gun is collided with. The HPID collision sphere would get triggered, but when looking for a full SUR for whatās attached to the hardpoint, the game would find nothing, which would make it bug out.
-
So is the problem the sur tool, or the lack of an sur for the weapons in your mod?