Tutorial Request –----- How to install and setup FLhook with a modded server.
-
I’d like to request a tutorial on how to install and set up flhook.
Especialy since the new flhook utilizes the “plug-in” format, I’ve been messing with it, and even had success for a short period of time lastnight.
(I verified it was functional, did a couple FTL jumps, docked. Then I zipped up the folder, and turned it into a FLmod. Then I installed the new mod and activated it, started a new character,…. when I got to the MP nexus there was only one npc there when there should have been a dozen. Wierdest error I’ve ever seen. )
I’ve uninstalled, cleaned, reinstalled, updated, and checked everything I can think of. I either get “error hooking content.dll”, or it won’t let me log on and coughs up this list of errors (from flhook.txt )
[13.02.2009 17:46:27] Exception in HkIServerImpl::Login
[13.02.2009 17:46:37] Exception in HkIServerImpl::CharacterSelect
[13.02.2009 18:02:38] Exception in HkIServerImpl::Login
[13.02.2009 18:02:45] Exception in HkIServerImpl::CharacterSelect
[13.02.2009 18:03:22] Exception in HkIServerImpl::CharacterSelect
[13.02.2009 18:10:22] Exception in HkIServerImpl::SubmitChat
[13.02.2009 18:10:22] Exception in Server.SubmitChat
[13.02.2009 18:14:45] Exception in HkIServerImpl::Login
[13.02.2009 18:15:06] Exception in HkIServerImpl::CharacterSelect
[13.02.2009 18:15:09] Exception in HkIServerImpl::CharacterSelect
[13.02.2009 18:15:49] Exception in HkIServerImpl::SubmitChat
[13.02.2009 18:15:49] Exception in Server.SubmitChat
[13.02.2009 18:21:22] Exception in HkIServerImpl::SubmitChat
[13.02.2009 18:21:22] Exception in Server.SubmitChat
[13.02.2009 18:21:35] Exception in HkIServerImpl::SubmitChat
[13.02.2009 18:21:35] Exception in Server.SubmitChat
[13.02.2009 18:22:15] Exception in HkTimerUpdateLossData
[13.02.2009 18:22:15] Exception in HkTimerUpdatePingData
[13.02.2009 18:22:16] Exception in HkTimerUpdatePingData
[13.02.2009 18:22:17] Exception in HkTimerUpdatePingData
[13.02.2009 18:22:18] Exception in HkTimerUpdatePingDataSo obviously I’m doing something wrong, but I have no idea where to even begin (other than the obvious,…. uninstall and reinstall everything to start with a clean folder and try again.)
Special thanks to anyone who decides to take on this tutorial.
Karr
-
;D I too “second” that request… will so many hooks/.dlls and plugins all for v6… its really
confusing for us “old” v5.5 users to get a handle on any of the new stuff…]In fact a “all in one” would probaly be better… but i know im asking too much there… ::)
each day i try somthing different… and each day i get “error hooking content.dll” no matter what i try…
and im not “new” to this either… its just very confusing… next to say. v5 wich just worked!..I’ve got a working V6… with basic plugins… so why cant i add “others” … this is what i mean by “confusing”…
“I” know why… but alota ppl don’t… and it still don’t work for me… (new cloak / dockrestrict / ect…) -
Do you have reshack? I’ll pass on the link to the modified flserver.exe that sushi sent me. I"m not sure what he had to do to it, but I’ve successfully used it to get past the “error hooking content.dll”. You will need reshack to change the version number to whatever your mod version is.
http://files.filefront.com/FLServerexe/;12683910;/fileinfo.html
I can now get the flhook to load without crashing, but it doesn’t work.
I type “/rename test” and nothing happens. If I type “/rename” it give the appropriate instructions on how to use it.
I type “/sftl” and nothing at all happens. so I’m closer, but still not working right.While I like the standard flhook features (sendcash, rename, ping, etc….) what I realy want is Mobile Proxy Bases(cap ship docking) and FTL (jump/hyperdrive). Anything other than those two things is bonus/gravy.
-
Possible problems/solutions:
-
You do not have the 1.1 patch installed. It is okay to a have modified dlls/exe but they need to be based on the 1.1 patch set. This applies to content.dll, remoteclient.dll, server.dll, FLServer.exe and maybe one or two others.
-
Make sure you’ve got the mscrt libraries installed. They come with the flhook-plugin. I can’t remember what goes wrong if you don’t have them but it just might be what you are describing.
-
Sometimes plugins have bugs that cause startup problems. When starting the flhook-plugin version remove all plugins to start with. Once you’ve got flhook running then add plugins one at a time until you find the trouble maker. Sometimes the startup order of the plugins needs to be changed. Do this by renaming the plugin ini file. Put a number in front of the plugin name. The plugins will be started in order of name as displayed in explorer (i think but haven’t checked this)
What version of flhook are you using? (If you’re using flhook-plugin, then the rename syntax is “/renameme” for user character renames and the sendcash command is /givecash.) I figure that you are using a different version.
If you send me your server.dll, remoteclient.dll, content.dll and FLserver.exe, I will check to see if they are the right versions.
One thing I like about the plugins is that I don’t need take down the server to add or remove a plugin which makes the players happier.
BTW: An FTL plugin is on its way.
-
-
;D I too “second” that request… will so many hooks/.dlls and plugins all for v6… its really
confusing for us “old” v5.5 users to get a handle on any of the new stuff…]In fact a “all in one” would probaly be better… but i know im asking too much there… ::)
each day i try somthing different… and each day i get “error hooking content.dll” no matter what i try…
and im not “new” to this either… its just very confusing… next to say. v5 wich just worked!..I’ve got a working V6… with basic plugins… so why cant i add “others” … this is what i mean by “confusing”…
“I” know why… but alota ppl don’t… and it still don’t work for me… (new cloak / dockrestrict / ect…)?
I dont know what version you are using?
The FLHook Plugin version doesnt report that error message… -
oh it works fine untill i try and change anything or add the cloak .dll or anything else… a sec and i’ll get the ver #
F L Â H O O K
version: 1.6.0 plugin
and that’s with
CONDATA.DLL
MESSAGE.DLL
TEMPBAN.DLLas plugins… very basic stuff…
That all works fine… but when i try to “change” my FLhook (remove all traces and install “another”)… it just no worky… and i have to revert back to “this” basic (but working fine) setup… Flak’s / F!R’s Hooks just dont work… and im updated to 1.1 too… have been since day 1… trying a “different” content.dll … just causes even more problems…
What im specificaly asking for (for me and those in same boat) is plugins that work with “this” version… and not Flak / WTS / or any other servers “special” version… just a basic … working… plugable hook ;D that can do all the “new” stuff without me having to go and get a degrre in C++ to make my own… lol wich would just mean “another version” and more confusion fro the “new guys”…
-
Here is the FLhook I’m trying to use: http://files.filefront.com/FLHook+FTL+Regenzip/;12692901;/fileinfo.html
Here are the files you requested: http://files.filefront.com/flhook+dllszip/;13296904;/fileinfo.html
I’ve double made sure that I’ve installed the 1.1 update. (the second time it just says " flupdate is allready installed"
How do I install the mscrt files. I haven’t done that so it could be the problem, although I did have it up and running for a brief period of time without those files.
I’m including the zipped up copy of the mod (that was working till I zipped it up and tried to install as a mod) incase you care to poke arround in it. Well, I was going to add it, but filefront upload is currently unavailable. I’ll post it when they come back up.
Thanks for the assistance.
Possible problems/solutions:
-
You do not have the 1.1 patch installed. It is okay to a have modified dlls/exe but they need to be based on the 1.1 patch set. This applies to content.dll, remoteclient.dll, server.dll, FLServer.exe and maybe one or two others.
-
Make sure you’ve got the mscrt libraries installed. They come with the flhook-plugin. I can’t remember what goes wrong if you don’t have them but it just might be what you are describing.
-
Sometimes plugins have bugs that cause startup problems. When starting the flhook-plugin version remove all plugins to start with. Once you’ve got flhook running then add plugins one at a time until you find the trouble maker. Sometimes the startup order of the plugins needs to be changed. Do this by renaming the plugin ini file. Put a number in front of the plugin name. The plugins will be started in order of name as displayed in explorer (i think but haven’t checked this)
What version of flhook are you using? (If you’re using flhook-plugin, then the rename syntax is “/renameme” for user character renames and the sendcash command is /givecash.) I figure that you are using a different version.
If you send me your server.dll, remoteclient.dll, content.dll and FLserver.exe, I will check to see if they are the right versions.
One thing I like about the plugins is that I don’t need take down the server to add or remove a plugin which makes the players happier.
BTW: An FTL plugin is on its way.
-
-
While I like the standard flhook features (sendcash, rename, ping, etc….)
None of these features are standard FLHook features.
Here is the FLhook I’m trying to use: http://files.filefront.com/FLHook+FTL+Regenzip/;12692901;/fileinfo.html
This looks like it is a version Koascid made, which is based off of v1.6.0 of Flak’s (my) FLHook, which is itself based off of FLHook 1.5.5 with w0dk4’s cloaking code. However, I can’t be sure of it’s origins because it’s lacking a readme. I’ve taken a look at the source, and it seems like the code for hooking content.dll has been commented out, so I dunno why you would be getting an error regarding that unless the source is wrong. The commands not working points to an exception being thrown somewhere, especially if the command you typed is not suppressed and shown in the chat. Aside from a change Koascid made that broke the code, I don’t know what could be causing this.
How do I install the mscrt files. I haven’t done that so it could be the problem, although I did have it up and running for a brief period of time without those files.
If you’ve gotten it to work without installing the runtime libraries then it shouldn’t be the problem.
-
Yes, its KOSACIDS version, I got a copy of it before he put in the fuel requirement, since its not cannon to star wars. It never did have a readme, (at least not the version I got ahold of).
I was gonna upload a copy of the mod, but filefront tells me that it will take more than 10 hrs, so I’ll have to wait till I have a better upload rate. (not that i’d blame you if you didn’t wanna download a 670meg mod file)
-
I tried a while with different versions of FlHook
and that’s what i learned:– most of the problems were caused by my incompetence
– the order in which the plugin version (1.6.0) loads the plugins (sorted by name) seems 2 matter
(you might want to try w0dk4’s stuff coming with the plugin version 1st, than ‘flak common’ 2nd, than the rest.
And if you wonder: that was found out by trying according w0dk4’s suggestion above )
– you should not keep any other stuff in the directory of the plugins than the plugins + inis in use
– you should not rename M0tah’s plugins
– the plugin version causes a little additional load on the server (about 5+ms on an old dual p3 667)– we use M0tah’s 88flak 1.6.0 on the main server (mostly due 2 lag of time 4 more testing / configuration)
and it works fine with FlShell and CheatersDeath 1.3.1 (with active message board since 2day)
– we also see the ‘hooking content’ error
(i don’t c any back draw besides that message and i wasn’t able to completely try those hints
due 2 lag of time 4 testing - but my 1st attempts made it worse, possibly so i tried in a hurry.)– there is no special WTS flhook thing
The only restriction i found with the plugin version 1.6.0 is,
that the dock_restrict plugin seemed only to support 1 line / 1 restriction.So a big TY 2 Cannon, M0tah + W0dk4
and all others, who improved those great stuff. -
I have the plugin version of 1.60 working and stable.
Except, chat no longer works for some reason.
-
I have the plugin version of 1.60 working and stable.
…. ;D … time 2 write a tutorial about.
-
Ummm,……
Well, try this version.
http://files.filefront.com/flhook160+pluginrar/;13305799;/fileinfo.htmlCopy everything in the BIN folder of the RAR file into the exe folder:
Files should include:
flhook_plugins folder, FLHookWString.dll, FLHook.ini, FLHook.dll.Then edit the flhook.ini, replacing the bases with the ones from your game. (the info can be pulled from the mbases.ini)
(you only need to do this if your mod has new or different systems. Vanilla servers don’t need this change)To be able to enter commands from the chat box in game you need to change the “socket activated = yes” as shown in red below.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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 readme.txt)
; you can have multiple passwords with their distinctive right settings
; they must be numbered serially with passX/rightX
[Socket]
Activated=yes
Port=1919
WPort=1920
Pass0=test
Rights0=superadmin
Pass1=low
Rights1=cash,beamBe sure to change the passwords from the default. (as shown above in orange)
Its stable for me, but when running chat does not function.
If anyone would like to give us a link for a better version of 1.6.0 it would be much appreciated, I’m having problems finding download sources.
-
^^ looks like the one im using… ;D ^^
Yes a tutorial based around “one” hook would be great!..
or just a “consolidated” hook… i’ve basicly given up… im gonna code my own…
not my desired outcome… but its easyer than trying to fight all the different versions vs .content.dll
problems … more dam headache than its worth ATM… be nice if it was alot simpler… some of us don’t
want to kill our mods just so we can “dock with ouselves” <<–hehe i just want the cloaks… as thats been a dream
of mine since i first saw the nomads… all those years ago… and now they work with “penaltys” its perfect…If i get any good at the stuff… I’ll make a tut… and a uberhook for u all… but that may take a week or 2 to know if im “anygood”…
fingers crossin’ ;D -
what about this one
http://forge.the-starport.net/gf/download/user/106/90/flhook1.6.0_plugin-e1.7z -
A wee note - the ‘e’ in that stands for experimental…as it compiles under Visual Studio C++ 2008 Express. This is not an official release.
Coding a consolidated hook would be nice but might not help as it’ll be hard for other people to contribute to it.
The plugin version has solved the contribution problem - wodka made it - Motah and myself added plugins for it. It was written to provide some way to incorporate all of the features different developers provided in various flhook branches. (and I know of other plugin developers)
The main problem I see is one of a “critical mass of people” - if everyone uses, just for example, the flhook-plugin version then we’ll build a big enough user and developer base to solve and/or have tutorials for most problems.
Another flhook branch might not have that critical mass of people - the flhook-plugin version barely does but it is getting close as there are at least three developers for it and at least 5 servers using it.
Now, don’t let what I have said stop you - if you want to do it - go for it and have fun coding.
FYI - I have another 3 plugins on my “to be released” list and will release these as soon as I find some free time - Rep’Ninja, FTL, and LootMod.
-
A wee note - the ‘e’ in that stands for experimental…as it compiles under Visual Studio C++ 2008 Express. This is not an official release.
This might attract more coders, or even starting coders or people who are willing to learn to code.
The express editions are free availeble, the original compiler wasn’t, infact wasn’t even sold anymore, wich made it much harder for people to learn the code.Here is the link to the express editions from Microsoft. http://www.microsoft.com/express/product/default.aspx
This is a huge leap forward for FLhook. And please look at the codes and that soon the DEV tag can be removed?
Apreciate all the freetime and skills you lot put into it.
-
The express editions are free availeble, the original compiler wasn’t, infact wasn’t even sold anymore, wich made it much harder for people to learn the code.
Actually, the original VC++ 2003 compiler is freely available in the VC++ 2003 Toolkit. It just doesn’t come with an IDE and will only build release versions (not debug).