FLHook Development

no description available
192 Topics 1.5k Posts
  • Traversing an EquipDescVector

    Locked
    4
    0 Votes
    4 Posts
    6k Views

    Well, I used it to check if a certain item was defined in a loadout. It would be useful anywhere an EquipDescVector is used.

  • BaseDestroyed event

    Locked
    3
    0 Votes
    3 Posts
    5k Views

    oh, right.
    That’s great, thanks 🙂

  • FLHook and server banners

    Locked
    5
    0 Votes
    5 Posts
    6k Views

    ;D … so let me add a little hint:

    ….
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ; socket settings
    ; Activated: must be set in order to enable socket listening
    ; Port: port that FLHook should listen to (ascii)
    ; WPort: port that FLHook should listen to (unicode), you will also need to send your commands in unicode
    ; PassX: password
    ; RightsX: rights for that password (see the rights section in FLHook Readme.txt)
    ; you can have multiple passwords with their distinctive right settings
    ; they must be numbered serially with passX/rightX
    [Socket]
    Activated=yes
    Port=1918 ;<–---- THIS IS YOUR PORT TO SEND CD COMMANDS 2 FLHOOK
    WPort=1919 ;NoNoNo - do NOT sent to this one.

    If you use ‘Port’ CD should work fine.

    @Mindhunter:
    TY - glad 2 have you as free secretary
    Could need 3 of you.
    ;D

  • FLhook drope mod

    Locked
    7
    0 Votes
    7 Posts
    8k Views

    ja Syd das meinte ich danke^^

    Thanks for the note Cannon,
    I look at the plugin times

  • FL hook is needed here?

    Locked
    10
    0 Votes
    10 Posts
    8k Views

    Yeah, that would be fairly easy to implement.

    What can I say… THANKS!!! 🙂

  • 0 Votes
    11 Posts
    12k Views

    Don’t get me wrong

    i just tried 2 tell, i prefer FLHook instead of FLShell for beaming.

    😉
    No offence against any of those FlHook versions around.

  • Ini-file modding

    Locked
    36
    0 Votes
    36 Posts
    25k Views

    Some excellent points as usual melwoc but i think we’re simply going to have to agree to disagree on various points you’ve raised.

    I stand by the NOT having to inform players of the dangers for one thing. In my case because i’m using a payware product, it’s not up to me to to make the product secure, but the developer. It’s his responsibilty as a software programmer to ensure this is the case, hence the reason i pay the man. This argument is also solid regarding ANY payware item as we all click on the EULA agreement that comes with said software and keep our fingers crossed it does what it says on the tin. Should this not be the case, then we all have a valid case, so we can all call our respective lawyers and cry foul.

    The point i think i’m also trying to make here is that we simply can’t forecast any form of hacker attack due to exploited code. You’ve made the point yourself that if someone is capable enough to exploit code then they will, no matter if it’s an FL related item or the Ministry of Defence mainframe. It therefore follows that even if we did give out warnings, they wouldn’t make a blind bit of difference as the dedicated hacker will simply get past any potential safeguards.

    It’s the same with anything that is open to abuse, we take driving lessons so we can drive cars, still doesn’t stop us having accidents. By the same token, we use computers knowing that there are risks involved, common sense simply has to take over at some point, we can’t warn evryone about all associated dangers of using any product, otherwise we’d all starve to death for worrying about the dangers of opening a tin can and wouldn’t go outside for fear of something happening. It’s like putting a sign at the top of a ladder that says stop, we know not to go any further. The same with software you’re not happy using, if you’re concerned about using it, then don’t use it, it really is as simple as that.

  • Noob flhook qustions/possibilities.

    Locked
    4
    0 Votes
    4 Posts
    6k Views

    @Cannon:

    AI teleporting/formation:

    Might be possible but no source code examples of how to do it. The Flak mod has player controlled NPCs or something like them but I don’t know how this is done.

    If you’re referencing the AI wingmen, this is accomplished via stock FL modding techniques; no FLHook work is involved (a tutorial can be found at http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=977.0). However, M0tah has made some recent discoveries which may shed some light on this, but I’m not 100% sure on that.

  • Getting a CEqObj from a IObjRW

    Locked
    3
    0 Votes
    3 Posts
    5k Views

    Nice, thx! Let’s just hope this gets not deleted, like my topic about how to send chat via clienthooking was.

    Edit: I was told it has been moved to private section - well at least I know now ^^

  • Bank system

    Locked
    6
    0 Votes
    6 Posts
    7k Views

    If I remember correctly, this is the way banking works in CD 1.31:
    you’ll need the following command specified in messageboarddb.ini:

    [Command] Type = ESB Cmd = esbtransfer

    Then you can type /info esbtransfer <player><amount>, <amount>will be transferred to <player>and 5% (?) of <amount>to [ESB]Manhattan_Zentrale (you’ve probably come accross an error message about this character not existing when you start CD)… our bank used to be called ESB, therefore the names… you could give the command another identifier though in the ini (e.g. Cmd = transfer), but I’m pretty sure that the character’s name is hardcoded.

    Note: This will result in the transferring player getting kicked, and the recipient will get a message that the next time he logs in he’ll find some more cash on himself

    (For some weird reason my CD in my virtualbox isn’t working again, so I can’t test it atm, but I’m pretty sure the above is correct)</amount></player></amount></amount></player>

  • Creating Items from materials?

    Locked
    14
    0 Votes
    14 Posts
    10k Views

    @foxUnit01:

    Editing cargo (and equipped items) can be done real-time, however I’m not as sure about changing ships.

    Changing ships is possible in real time as long as you are docked at a base.

    Also, a basic system to do what you are describing would be fairly easy to implement with FLHook assuming you have someone that knows what they’re doing.

  • A really needed addition: the restart command!

    Locked
    50
    0 Votes
    50 Posts
    36k Views

    Just a heads up….

    Your restart plugin dosnt seem to like numbers being in the restart commands name…

    We have been using FLShell for restarts, in combination with FLHook, about 2.5 years for clan chars and RP events.

    I scrambled the restart names and added a few numbers so players couldnt guess clan restarts and steal equipment, etc…

    We moved to a Core2 setup with Server03 and switched to the FLHook 1.6.0 plugin and dropped FLShell as you all know it dosnt play well with a 64 bit setup. I could not get restarts recognized if they had a number in thier name…

    Other than that it seems to work perfectly, thanks for the excellent plugins. 🙂

  • Microsoft Research: Detours library

    Locked
    16
    0 Votes
    16 Posts
    15k Views

    No this cannot be correct, discourse without flames!!

    🙂

  • Request: NPC item donation

    Locked
    4
    0 Votes
    4 Posts
    5k Views

    Hey, AI are a huge part of Flak. Without friendlies of some sort at your side - player or AI - it is tough to last until the end of a fight, so anything I can do to extend the service life of wingmen would be a huge improvement. =P (two ships with 12 Nanos each is much more effective than one ship with 24)

    Plus, I’ve gotta imagine this would be an improvement for player-player donations in the middle of combat (instead of using trade or jettisoning to space).

  • MOVED: plugin

    Locked
    1
    0 Votes
    1 Posts
    4k Views
    No one has replied
  • Building flhook

    Locked
    10
    0 Votes
    10 Posts
    11k Views

    right ok yea

  • How to make new hooks

    Locked
    8
    0 Votes
    8 Posts
    7k Views

    Er… anybody here? 🙂

  • Decoding the account ID in 'name' file

    Locked
    10
    0 Votes
    10 Posts
    8k Views

    For my VB.NET Brothers (a deadly silence) oh well:

    Dim strAccountIDFilePath as string = "C:\Documents and Settings\Us\My Documents\My Games\Freelancer\\Accts\MultiPlayer\23-0b447705\name" Dim fs as Filestream = System.IO.File.OpenRead(strAccountIDFilePath) Dim buf as Byte() = New Byte(fs.Length) Dim accountID as string = Nothing fs.Read(buf,0,fs.Length) fs.Close() For i As Integer = 0 To buf.Length - 1 Step 2 Select Case buf(i) Case &H43 accountID += "-"c Exit Select Case &Hf accountID += "a"c Exit Select Case &Hc accountID += "b"c Exit Select Case &Hd accountID += "c"c Exit Select Case &Ha accountID += "d"c Exit Select Case &Hb accountID += "e"c Exit Select Case &H8 accountID += "f"c Exit Select Case &H5e accountID += "0"c Exit Select Case &H5f accountID += "1"c Exit Select Case &H5c accountID += "2"c Exit Select Case &H5d accountID += "3"c Exit Select Case &H5a accountID += "4"c Exit Select Case &H5b accountID += "5"c Exit Select Case &H58 accountID += "6"c Exit Select Case &H59 accountID += "7"c Exit Select Case &H56 accountID += "8"c Exit Select Case &H57 accountID += "9"c Exit Select Case Else accountID += "?"c Exit Select End Select Next

    This has not been tested properly but it should work…:P

  • New FLHook Idea (To keep you busy :P)

    Locked
    13
    0 Votes
    13 Posts
    10k Views

    I’ve had two reports of bugs in the /transfer command I wrote, so I’m not going to make a plugin until I fix the issues.

  • Cant get a working cloak for v 1.6.0

    Locked
    9
    0 Votes
    9 Posts
    8k Views

    I’ll be releasing some plugins soon, among them a cloak plugin 😉 (and I got your PM, F!R :)). Just finished updating flak_common so I’ll likely work on the cloak plugin later today, depending on the state of FLHook 1.6.2.