of course there'll be multiple references to taskforce size, all will have to be found and adjusted just as usualPeter1981 wrote:just an off the cuff thought but wouldn't larger task forces need some consideration of the auto-battle at least and maybe the battle calculations as well? or does trek.exe not care about the individual ships in a task force but its combined overall stats
disassembler help/energy screen project
Moderator: thunderchero
- Flocke
- BORG Trouble Maker
- Posts: 3178
- Joined: Sun Apr 27, 2008 2:00 am
- Location: Hamburg, Germany
- Contact:
Re: disassembler help/energy screen project
- QuasarDonkey
- Code Analyst
- Posts: 433
- Joined: Tue Jul 26, 2011 8:29 pm
- Location: Ireland
Re: disassembler help/energy screen project
I don't think would matter that much in the end. See it's all done through arrays and loops, so in C programming language it might like this:Peter1981 wrote:just an off the cuff thought but wouldn't larger task forces need some consideration of the auto-battle at least and maybe the battle calculations as well? or does trek.exe not care about the individual ships in a task force but its combined overall stats
Code: Select all
struct TaskForce_t { // (sizeof=0x6C)
int fleetId;
int shipCount;
int shipIDs[9];
int mission;
...
int cloaked;
}
Code: Select all
for (i = 0; i < 9; i++) {
id = taskForce.shipIDs[i];
...
}
Code: Select all
cmp eax, 9
But we'd also need to move the shipId's array within the TaskForce structure, here's how we'd expand it to 18 ships:
Code: Select all
struct TaskForce_t { // (sizeof=0x6C + 18*4)
int fleetId;
int shipCount;
int oldShipIDs[9]; // NO LONGER USED
int mission;
...
int cloaked;
int newShipIDs[18]; // <- ship id's are moved to the end of the structure
}
I've done some basic research into this mod, and it seems to be possible, but at the very least it would break compatibility with save games, i.e. you couldn't use modded save games with an unmodded version of Trek.exe and vice versa. A small price to pay.
Though I wouldn't hold my breath waiting for this mod, I can't guarantee it will work, there are far more complications than the Energy Screen Project. But I'll try.
- Tethys
- Past Administrator
- Posts: 2392
- Joined: Fri Jul 18, 2008 2:00 am
- Location: Your mom's bed ;)
- Contact:
Re: disassembler help/energy screen project
Might I add in that since you are diving into the ship side of things now, if you can look into creating more ship types such as Cruiser, Destroyer, etc. IF you dont stumble across it no worries, but this would just be nice for AI improvement (considering the AI adapting or more patching)
You are my hero
You are my hero
Re: disassembler help/energy screen project
fair point if its arraies QD just a few values and some (read lots) of codeing.