Player control plugin
-
Greetings mates
I’m a member of the FFS team, Gordon’s server.
Before, thanks to Cannon for this PlayerControl Plugin. This is the beginning of an answer that we seek. There are no bugs in there, please excuse Gordon.But as Gordon has said, we need to know if there is a plugin for :
- a player also loses his ammunition, nanobots and shield batteries when he dies.
- or to separate the drop percentage between each element of the cargo : unmounted weapons, goods, ammunition, batteries and nanobots and shield batteries
If nothing exists, we try to find a way to code this by ourselves.
Anyway, thank you for what you do and for your valuable responses.
-
Well… I try to do it myself but I failed. I’m a beginner in C++.
If I remember, on Discovery server, when a player dies, he loses all his cargo, including ammo, nano and shields batteries.
I know I ask much… but Is it possible to have the code wich is doing that, and explain to me the place where I have to add it ?Thanks a lot for help
I know I have very little to offer you in return. But I find two things recently :
- make a mod wich isn’t readable with FLexplorer, FLcompanion, FLdatastorm and Flstats
- make a mod where commercial viability is the same for all goods around Sirius, whatever the distance. I made it with FLcompanion commod by commod. So, on our server, there is trading activity everywhere.
If anyone is interested, write me a pm.
-
=Alex= wrote:
There’s lines in FLHook.ini that control what cargo is lost (I think).And hiding stuff from FLCompanion? Don’t do it.
Why’s that? I like to think people would never use that, but since this is utopic, I’d settle for making it as hard as possible.
-
Yes, I agree with you FriendlyFire. Without the help of these programs for players, we really can hide clan bases, wrecks, best trade routes… And we can put some NPC on bases with hints in rumors to find them. More fun.
What I do to do this is simple : I changed the name of freelancer.ini and I changed this name with an hexa editor in Freelancer.exe
So, when FLexplorer, FLcompanion, FLstats and FLDatastorm are looking for Freelancer.ini, they crash.
I can explain that better with screenshots if you need this.Anyway… there’s no line for cargo loot in FLhook.ini (I use FLhook plugin).
-
To Cannon :
Greetings and happy new year !
Just a message to see if you had read what I said recently in this topic because you were absent for a while.
We tried to modify the source code of player control plugin, but we are unable to compile it. Is it something to do to configure Microsoft VC + + 2008 to do this?
Is it possible to know how you do on Discovery for players who die lose all their cargo, ammunition, shield batteries and nanobots included?
Is it possible to obtain this code or help us do this with player control plugin?Sorry to insist, but we currently have no other options. Thanks for your answer.
-
The plugin requires that freelancer.ini exists so that it can find information from the ini files. If you have renamed ‘freelancer.ini’ then you need to make a copy of it named ‘freelancer.ini’ so that the plugin can find it.
@Syd: What problem are you having and can you provide the full text of the error message?
-
@Syd : You need to install Freelancer SDK before using FLPlayerControl. (Can be found HERE )
Cannon, we really don’t want to be boring, but there’s still something we need to know :
The compilation has been passed with success using Microsoft Visual C++ Express (in it’s latest version). InGame, the plugin seems to be working quite well (commands like /stuck, /dice, or /pos are working perfectly). But for unknown reasons, human players don’t loot nothing…
When we just replace our half-working DLL with the one in the ZIP archive, all is working.
So here are my guesses :
- We are using VC++ with bad compilation options (or bad version ?)
- We need to add something in the linker or somewhere else (like FlakCommon.lib ? even if we already tried), or some headers or .cpp files
- There might be a problem with the .cpp files given in the archive.
Could you help us ?
Thanks in advance,
Kid -
Cannon wrote:
The plugin requires that freelancer.ini exists so that it can find information from the ini files. If you have renamed ‘freelancer.ini’ then you need to make a copy of it named ‘freelancer.ini’ so that the plugin can find it.No, that’s not our problem. Because we rename ‘freelancer.ini’ only in the client version of the mod, but not in the server version
Renaming ‘freelancer.ini’ works perfectly : players can’t use Flexplorer, companion, data storm… And we started making RP quests with hiding depots or wrecks in the mod. The only way to find these objects… visit NPC with rumors. As I say, more funFor our problem with player control plugin, always the same thing : a dead player doesn’t lose nanobots, shield batteries and ammo in his cargo after death.
Edit : It seems that you used Visual studio 7 (or Visual studio .NET 2002) to code ‘player control plugin’, right ?
-
Finaly, we did it.
This is our modification of Cannon’s player control plugin :
- when a player dies, he loses all ammos, nanobots and shield batteries. No cheat with double cargo.
- additionnal commodities : 1 escape pod and some scrap metal.
- all lootcrates have their specific design in space, not only one.
- a command /pvp. When a player does that command, and fights against another player who does the same thing, they don’t drop anything and don’t lose ammo, nanobots and shield batteries. But if a player commits a suicide (selfkills include) with /pvp, he drops his cargo and loses all of it anyway.
When a ‘pvp’ player attacks a ‘nopvp’ player, he couldn’t do any damage to this player.
When a ‘nopvp’ player attacks a ‘pvp’ player, a message tells it to players around, and the /pvp command is removed. - in the original player control plugin, the number of cargo dropped is based on the quantity that the player had at its last backup (entry system, off a base …). Our version does a calculation based on the amount at the time of death of the player. It’s better for chasing a player who just stoled weapons on wrecks.
Thanks to Kidsquale who did that great job. And, of course, Thanks to M0tah, V0dka and Cannon who develop FLHook plugin !
If someone wants some information, or wants to try our modified version of player control plugin, just ask. -
we found another problem that disturbs us a little bit in our work on FLSES, you can’t access any of your admin commands via telnet.
Take a look at thefollowing tempban plugin functions on how to do it:
EXPORT bool ExecuteCommandString_Callback(CCmds* classptr, wstring wscCmd) { returncode = NOFUNCTIONCALL; // flhook needs to care about our return code if(IS_CMD("tempban")) { returncode = SKIPPLUGINS_NOFUNCTIONCALL; // do not let other plugins kick in since we now handle the command CmdTempBan(classptr, classptr->ArgCharname(1), classptr->ArgInt(2)); return true; } return false; }
and for an entry in the consoles help command:
EXPORT void CmdHelp_Callback(CCmds* classptr) { returncode = DEFAULT_RETURNCODE; classptr->Print(L"tempban <charname>\n"); }</charname>
we may include that to our version on Sirius Hegemonia, and send it to you
EDIT: Sorry haven’t seen it’s in V1.0 of your plugin