NodFan Posted June 16, 2011 Share Posted June 16, 2011 Yes I actually did review your excel, I forgot I had it ;D. Im just having trouble with some variables and understanding the codes a little bit, but I was fooling around with the conditions, and was able to uncover some things.With the AI, Im not 100% on it. I found some things that altered their gameplay. In the beginning of each AI section you will notice the side (i.e 02:ordos), AI activation (00-non active 01-active) the after FF, youll notice 01 after 2 bytes. When I was fooling around with these I notice that when switching the first two 00's before it enables Skirmish AI. There is alot more that I fooled around with, Id rather type up a text doc. and send it too you, if you'd like. And thanks again for the excel doc, Im gonna try and work with it. I just wanna know, how do you make a trigger repeat? (i.e mercenaries receiving reinforcements via starport in o7,8 and 9)?EDITNEVERMIND:Ive located it. At the end of the condition i placed 00 03 00 03 this repeats the trigger. Thanks to your excel doc!!Thats one thing out of the way :)even if I do this the AI still doesnt buildbase only units :( Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted June 16, 2011 Share Posted June 16, 2011 even if I do this the AI still doesnt buildbase only units :(read the whole topic and try what it says, I have seen it work myself. Quote Link to comment Share on other sites More sharing options...
NodFan Posted June 16, 2011 Share Posted June 16, 2011 read the whole topic and try what it says, I have seen it work myself.lol I read it for 10 whole mins and I know which offsets he is talking about but whatever I try the AI is still not building bases :( only units Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted June 17, 2011 Share Posted June 17, 2011 lol I read it for 10 whole mins and I know which offsets he is talking about but whatever I try the AI is still not building bases :( only unitsAgain, it worked fine for me, so read through the whole topic, not just his posts. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 2, 2011 Author Share Posted August 2, 2011 Found a new event code for spawning units (so not a carryal reinforcement but units that are spawned at start.) I've also figured out how to specify the exact units that are spawned (and in reinforcements). For example I wanted to spawn 16 different units and this is the result:More updates soon. Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted August 2, 2011 Share Posted August 2, 2011 Using me and MVI's research, created this:Most credit goes to MVI, but I certainly helped! Quote Link to comment Share on other sites More sharing options...
mvi Posted August 2, 2011 Author Share Posted August 2, 2011 Does anyone have any ideas on what is contained in the AI code? From what I'm being told it must contain the build order for each AI player. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 2, 2011 Author Share Posted August 2, 2011 Screenshot of the current raw condition/event editing I'm using to track down some of these specs: Quote Link to comment Share on other sites More sharing options...
mvi Posted August 2, 2011 Author Share Posted August 2, 2011 Discovered what event index 4 does xD. When this event is activated it causes all AI units to attack you. For example in A2V1, when you destroy the Hark base, all Hark units that are left will attack your base. I changed the conditions for this event to be true as soon as the game starts, and then just as it should, all the Hark units on the map come straight to attack me. Quote Link to comment Share on other sites More sharing options...
Feda Posted August 2, 2011 Share Posted August 2, 2011 Good job, keep up with good work ! :)i hope that there will be a tutorial or something that would show us how to use, it looks a bit complicated (i mean the conditions/triggers)and btw when will it be ready? xD Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted August 2, 2011 Share Posted August 2, 2011 Discovered what event index 4 does xD. When this event is activated it causes all AI units to attack you. For example in A2V1, when you destroy the Hark base, all Hark units that are left will attack your base. I changed the conditions for this event to be true as soon as the game starts, and then just as it should, all the Hark units on the map come straight to attack me.Clever bastards! Quote Link to comment Share on other sites More sharing options...
mvi Posted August 9, 2011 Author Share Posted August 9, 2011 The interval condition was pretty simple to work out, interval is a tick count (so multiply by 60 (Hz) to encode or divide by 60 to decode) oddly this is stored twice, after that is an interval count which controls how many times the interval is carried out. In the picture above I changed the first reinforcement in O1V1 from being 50 seconds in to 5 seconds in and told it to run 5 times rather than once. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 9, 2011 Author Share Posted August 9, 2011 Looks like there is a dummy condition (condition code 9) which sole purpose is to be enabled and disabled by events as a simple boolean pseudo variable as well as a condition enabling/disabling event (event code 19)An example use for these is with harvester replacement, when your harvester exists a dummy condition is enabled. When you don't have a harvester but this condition is true it knows that you've lost a harvester and dispatches a new one, it also disables the dummy condition. This means that event is not being constantly fired until a harvester arrives. Once the harvester arrives as previously mentioned a harvester now exists so the dummy condition is reenabled. If you can get your head around what I said you shouldn't find mission condition/event editing too hard :) Quote Link to comment Share on other sites More sharing options...
mvi Posted August 9, 2011 Author Share Posted August 9, 2011 When DaxxXyrax found the time limits in the mission files, he added a note not to edit the two bytes in front of them as they could crash the game. Finally found out what they are, the first (at 0x10728) is the event count and the second (at 0x10729) is the condition count. This is very important as I was trying to add a condition to a mission and couldn't until I also increased the condition count. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 9, 2011 Author Share Posted August 9, 2011 Isolated the reveal map event, here I've moved it in A4V1 and changed the radius to 1 tile Quote Link to comment Share on other sites More sharing options...
mvi Posted August 11, 2011 Author Share Posted August 11, 2011 Max number of units delivered by one carryal is 25 (e.g. 25 infantry from one carryal) Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted August 12, 2011 Share Posted August 12, 2011 Max number of units delivered by one carryal is 25 (e.g. 25 infantry from one carryal)Not that you would want that many delivered, its very slow to do it through 1 carryall. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 12, 2011 Author Share Posted August 12, 2011 Not that you would want that many delivered, its very slow to do it through 1 carryall.Depends on the mission requirements :) Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted August 13, 2011 Share Posted August 13, 2011 Depends on the mission requirements :)Objective: Escort the dangerously over stuffed carryal of missile tanks. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 15, 2011 Author Share Posted August 15, 2011 Objective: Escort the dangerously over stuffed carryal of missile tanks.Well it is technically possible, you could have say 5 minutes before the carryal delivery and have to take out enemy rocket turrets. If you built enough rocket turrets you could guarantee that the carryal wouldn't get past them. Quote Link to comment Share on other sites More sharing options...
Gruntlord6 Posted August 15, 2011 Share Posted August 15, 2011 Well it is technically possible, you could have say 5 minutes before the carryal delivery and have to take out enemy rocket turrets. If you built enough rocket turrets you could guarantee that the carryal wouldn't get past them.Except they are invulnerable until they make the delivery. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 15, 2011 Author Share Posted August 15, 2011 Well then its technically impossible ;-) Quote Link to comment Share on other sites More sharing options...
Klofkac Posted August 16, 2011 Share Posted August 16, 2011 As far as I know, the carryalls that make harvester or reinforcement delivery are NOT destructible at all. For example one carryall delivered me a harvester and while it was leaving the map, many enemy rocket tanks and turrets shot at it but it was not destroyed.And I'd like to ask when the mis file editor will be done, respectively what all still remains for the research (how many events or conditions). I think researching AI is not very important now and the editor can be released just after all (important) events and conditions are done.Anyway very nice work so far, it's very interesting to see you research. Good luck. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 16, 2011 Author Share Posted August 16, 2011 The conditions and events are just about done, there's still a couple of unknowns but they can be tackled in a future release, really it's just a case of writing the actual editor now which shouldn't take long. I'm a bit busy at the moment as I'm bringing a Facebook game to release, but hopefully I'll get round to it soon. I'm not planning on having AI editing in this release. Quote Link to comment Share on other sites More sharing options...
mvi Posted August 16, 2011 Author Share Posted August 16, 2011 Anyone fancy doing some testing of the mission editor before I release it into the wild? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.