Hey guys,
a few days ago I started modding FA and I already ran into a bunch of problems I can't solve.
I'm not new to modding itself but I'm not familiar with how FA works, so please go easy on me.
I'm currently working on the basics to get a new resource - research points - into the game. Somewhat similar to SC2, I'd like a research station to produce this new resource. I managed to get some ugly UI elements into the game which display the current points and offer the possibility to open a new window which should be used to unlock tech.
The major problem I am facing right now is how UI and Sim are connected. Without really knowing what I'm doing I managed to slap some code together so that every time a player builds a wall a number gets incremented in my GUI. So that worked in a way but I don't really understand what I am doing.
I figured that Domino is for SupCom what Zerted is for SWBF2 and took a look at his mods. The CTF mode is quite close to what I need (I think) but boy, no idea whats going on there. Without an IT background I have a hard time understanding anything from those scripts. Unfortunately the forums.gaspowered site seems to be offline and Google cache isn't really helpful...
Could someone help me understand the basics?
1) I'd need a rough understand on how UserSync and SimSync work. Taking a look at the source files wasn't really helpful to me, there's too much I don't understand yet.
Or would it be easier, instead of putting a function in the building script itself, to have a global script which counts all research stations on the map and calculates the point income based on that? If so, where would I start?
2) I somehow need to count the points for each player separately. Is it correct that "army" is the word I need to look for in the scripts?
Are there simple mods you could suggest as learning examples?
3) In the campaign new units get unlocked all the time. I haven't really looked for it yet but I think that should work in multiplayer too, right? Is it also possible to unlock new abilities? I believe a cheaty solution would be to lock the old unit and unlock a new one in the factory but would it be also possible for all units that are already on the field?
Thanks,
Locutus