Crazy Cossack wrote:
Thanks Ice for message. I have that document and it is very useful. However I have more questions.
1. Which version do I mod? Do I mod the FAF version? Maybe not the last GPG version as that will lack useful fixes and balances that Zep has done? On the other hand, if I am going to extensively change the game anyway maybe the modding last GPG version is best as it in itself is now un-changing.
If you want FAF-players to play with your mods, obviously you'll need to mod the FAF version.
FAF is very 'un-changing' (stable?) as well. All the changes can be easily seen on bitbucket, so keeping up shouldn't be a major concern.
Crazy Cossack wrote:
2. What are the methods of hooking? Which is the best method and how should I implement it?
A few. Unless you want to mess with the lobby or certain other lua files, all you need is to use the common method of hooking.
You simply put files in a directory called 'hook' in your mod, with names corresponding to the files from the game you want to hook into.
At load-time, you file is simply appended to the game file before it's run. This means that in order to hook a function from a file, and have other code run your version of the function, you need to keep a reference to the old function, and call it first thing in your new function, which then overrides the old variable.
Searching around will yield more modding resources that I suggest reading as well.Statistics: Posted by Sheeo — 11 Jun 2014, 15:14
]]>