Dock Groups & Mount Groups?
-
I was wondering… I’m pretty sure I already heard about mount groups and dock groups being implemented for FLHook, but I never could find anything about it around here.
Basically, what we need are ways to disallow docking based on what ship you fly. The best would be to have it so you can define these allowed/disallowed “groups” of ships to be defined directly in Shiparch.ini and Universe.ini so that, when defining a ship, you can also say it’ll be able to dock on bases MINING_FACILITIES and LARGE_DOCKS, but not SMALL_BASES, for instance. Each base would then be listed under these (and if no group was defined for a base, it would default to allowing anyone).
In a similar way, mount groups only let certain ships mount certain equipment. For instance, NOMAD_EQUIPMENT can only be mounted on ships of the group NOMAD_SHIP. This effectively circumvents the limitation in the HP types we can have.
Could it be flak88’s FLHook? I’m asking because we’ll end up building it otherwise, but if we could base ourselves off previous work (doesn’t necessarily have to be a plugin), we’d probably have an easier time.
-
The dock_restrict plugin can almost be used to do this. It checks for the presence of an equipment/cargo item before allowing docking. This could be used as is or with a small change it could be changed to check the ship type to allow/disallow docking. I understand that Motah ported this feature from Flak88 flhook.
The player control plugin be used to prohibit the purchase of particularly goods from specified bases. This was introduced to temporarily to people from exploiting some economy bugs. It would be easy to modify it to stop people buying stuff based on cargo/equipment or ship type. I suspect that it would d also be easy to modify it to prohibit/allow equipment mounting based on ship type, etc. When I get a free moment, I’ll add this…although if you want to, you know where the code is.
-
In a similar way, mount groups only let certain ships mount certain equipment. For instance, NOMAD_EQUIPMENT can only be mounted on ships of the group NOMAD_SHIP. This effectively circumvents the limitation in the HP types we can have.
Flak’s FLHook has this but only for internal equipment.
-
Did anything ever get done about these 2 options. As we are currently switching from FLAC to FLHook as FLAC refuses to run on our new 64 bit server. I could really do with these options as we have a lot of mount groups already set in our mod and we would really like to keep it that way if possible.
If it hasnt been done is it possible for someone to do it, id love to try myself but i havent got the foggiest idea as to how.
-
I nearly finished exactly that as a plugin. The mount groups are still not working, but I haven’t had a lot of time to work on that lately.
I think Cannon is looking at it.
-
Dragnite_MU wrote:
As we are currently switching from FLAC to FLHook as FLAC refuses to run on our new 64 bit server.Our UnderVerse 2.24 beta server is running on 64 bit dual core without a problem. Check to make sure that FlHook.Dll is properly referenced in dacomsrv.ini Library section. Ensure that FLMM 1.3 is set to activate without making the folder read-only.
edit…hmm, at least I ‘think’ it is 64 bit. It is a teammates computer. The stats are listed as: AMD Athlon 64 X2 Dual Core Processor. It is possible that it is running a 32 bit OS, I will have to ask when I see him next.
-
Np FF we may get FLAC running again in the mean time but thanks for the work you put in when you can