Forged Alliance Forever Forged Alliance Forever Forums 2014-06-12T06:05:27+02:00 /feed.php?f=41&t=7589 2014-06-12T06:05:27+02:00 2014-06-12T06:05:27+02:00 /viewtopic.php?t=7589&p=75175#p75175 <![CDATA[Re: Modding - Is This What I Need to Learn First?]]> Statistics: Posted by Crazy Cossack — 12 Jun 2014, 06:05


]]>
2014-06-11T15:14:06+02:00 2014-06-11T15:14:06+02:00 /viewtopic.php?t=7589&p=75129#p75129 <![CDATA[Re: Modding - Is This What I Need to Learn First?]]>
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


]]>
2014-06-11T14:41:29+02:00 2014-06-11T14:41:29+02:00 /viewtopic.php?t=7589&p=75124#p75124 <![CDATA[Re: Modding - Is This What I Need to Learn First?]]>
For a basic unit change like HP or whatever, juts use a basic blueprint merge. For unit script changes you could use a do/end merge, but personally at that point I juts do a hard overwrite of the entire unit. It makes the file bigger, but it gets rid of any possibility of errors.

Statistics: Posted by IceDreamer — 11 Jun 2014, 14:41


]]>
2014-06-11T05:54:43+02:00 2014-06-11T05:54:43+02:00 /viewtopic.php?t=7589&p=75098#p75098 <![CDATA[Re: Modding - Is This What I Need to Learn First?]]>
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.

2. What are the methods of hooking? Which is the best method and how should I implement it?

Statistics: Posted by Crazy Cossack — 11 Jun 2014, 05:54


]]>
2014-06-09T13:30:38+02:00 2014-06-09T13:30:38+02:00 /viewtopic.php?t=7589&p=74976#p74976 <![CDATA[Re: Modding - Is This What I Need to Learn First?]]> http://rogercpress.wordpress.com/2012/0 ... -tutorial/

Statistics: Posted by IceDreamer — 09 Jun 2014, 13:30


]]>
2014-06-09T08:24:48+02:00 2014-06-09T08:24:48+02:00 /viewtopic.php?t=7589&p=74961#p74961 <![CDATA[Modding - Is This What I Need to Learn First?]]>
1. I need to learn Lua. Fortunately, my son (3rd year electrical and software engineering) can program Python among other languages. He took one look at Lua and understood 99% of it straight away. Now, I just have to bribe him to teach me and help me. I used to program Borland Turbo Pascal many years ago so I understand basic programming concepts. But I am as rusty as hell and I haven't used object oriented langauages or modern script languages like Lua.

2. I need to learn where all the relevant files and scripts are in the GPG directory. Is there a guide or a tool or both for finding the relevant files, scripts and data as needed?

3. I need to understand the best development and testing environment for my mod, not to mention file housekeeping and backups. Any hints or guides to this kind of thing?

4. I need to fully understand what hooking is (destructive and non-destructive is that right?). Any good descriptions of this?

5. Which version should I actually mod? The last GPG version or should I mod FAF SC? I can see advantages to modding FAF SC. If Zep has fixed many bugs (and I am sure he has) that were in last GPG version then I guess I want to mod FAF's more de-bugged version. Am i right or not about this?

I will appreciate any helpful comments and then I will go away and study how to do this. No more silly questions until I have learnt something.

Statistics: Posted by Crazy Cossack — 09 Jun 2014, 08:24


]]>