Data Realms Fan Forums http://45.55.195.193/ |
|
Silly 40K Metagame Bug http://45.55.195.193/viewtopic.php?f=4&t=31112 |
Page 1 of 2 |
Author: | Arcalane [ Tue Jun 05, 2012 7:48 am ] |
Post subject: | Silly 40K Metagame Bug |
So, I'm doing some test runs on the metagame to make sure everything runs smoothly, right? Finding my own stupid typos and errors the hard way, mostly. I have a nice (autobuilt) fortress set up in Yskely Mountain, with a pair of sniper Scouts up top overlooking the approaches, some dudes downstairs keeping the brain happy. I see one of the Scouts taking aim, so I go and see what he's trying to shoot at. Incoming dropship with brain. Okay. Take control (because the AI has no hope of compensating for flight time at that range) and take the shot myself. The bullet comes flying out just as you'd expect, but so does an entire Lascannon beam. Line up a straight shot on the main body, fire. Another lascannon beam, so it's not just a one-off. The dropship explodes and takes the brainbot along with it. End mission. End of Lascannon Rifles? No. In all following defenses of that base, the Scouts shoot Lascannon beams and bullets from their Sniper Rifles. This does not occur on any other map with Scouts possessing Rifles, nor does anything appear to be wrong in the metagame save .ini itself. I guess CC got some wires crossed somewhere? |
Author: | Malamo999 [ Tue Jun 05, 2012 12:35 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Arcalane wrote: [...]No. In all following defenses of that base, the Scouts shoot Lascannon beams and bullets from their Sniper Rifles. This does not occur on any other map with Scouts possessing Rifles[...] Which direction are they shooting in? |
Author: | DDR [ Thu Jun 07, 2012 3:36 am ] |
Post subject: | Re: Silly 40K Metagame Bug |
I had something sort of similar. One of my soldiers listened to my keyboard input, regardless of who I was actually *controlling* at the time... including the editor. |
Author: | MrC121989 [ Thu Jun 07, 2012 11:06 am ] |
Post subject: | Re: Silly 40K Metagame Bug |
Same happened to me in tutorial mission. |
Author: | Arcalane [ Thu Jun 07, 2012 12:55 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Malamo999 wrote: Which direction are they shooting in? I'm not sure how that's relevant at all, since it occurred regardless of the direction they were shooting in, but never occurs on any other maps. The simple fact of the matter is those weapons do not load those scripts under normal circumstances. They have their own scripts that do other things. I've checked the scripts they normally load, both in terms of making sure they point to the right script in the .ini and that the script itself has nothing wrong with it. Everything is fine there. Yet, apparently on those maps, they're not fine and load the wrong scripts. Any instance of them did, regardless of whether the actor was newly placed or whatever. On other maps they were just fine and behaved normally. I checked the save files, and the weapons in the inventories of the actors aren't being pointed to the wrong scripts either. It's an error somewhere in Cortex Command itself, possibly a result of relying on a centralized 'Scripts' directory (with subfolders) for my mod rather than splitting the files up and placing them up all over the place. |
Author: | Malamo999 [ Thu Jun 07, 2012 7:32 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Arcalane wrote: Malamo999 wrote: Which direction are they shooting in? Sometimes they try to shoot at crafts coming down, but if it's persistent then that's probably a bug... |
Author: | Bad Boy [ Thu Jun 07, 2012 8:31 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
It's not exactly the same but I've gotten something like what Arc's getting, I've had the coa shotgun put out the uber cannon's aiming sight: |
Author: | Arcalane [ Thu Jun 07, 2012 9:31 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Malamo999 wrote: Sometimes they try to shoot at crafts coming down, but if it's persistent then that's probably a bug... ...what the hell would the direction they're firing in or the fact they're shooting at dropships have to do with the fact the weapon they're using is apparently using entirely the wrong script? But hey, maybe it is relevant. Bugs are funky like that. -- Bad Boy wrote: It's not exactly the same but I've gotten something like what Arc's getting, I've had the coa shotgun put out the uber cannon's aiming sight. How strange. Good to know it's not isolated to my mod at least. |
Author: | Bad Boy [ Thu Jun 07, 2012 10:21 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Just clued into the fact that this might be another breakage due to the MOID count, at least assuming ours was the same bug. My MOID count was 255 in the first pic, which could easily be any other number since the counter seems to break when it gets to 255 sometimes. Though the problem didn't fix itself when the MOID count went back down below 255 and it may have been happening before the MOID count was at 255 too, I'm really not sure. Still, do you know if yours was over the limit too? |
Author: | Arcalane [ Thu Jun 07, 2012 11:14 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
No idea. I've completed both of the campaigns it occurred in now so I can't really test it, but I'll keep my eyes open I guess. |
Author: | Lizardheim [ Fri Jun 08, 2012 10:36 am ] |
Post subject: | Re: Silly 40K Metagame Bug |
It's most likely something with the MOID counter, as previously speculated. Considering there's only 255 pointers, when it goes above this the Lua pointers get voided and weird ♥♥♥♥ starts happening. Will bug data to remove moid limit, although that'd remove crab bombs too... |
Author: | The Gunslinger [ Fri Jun 08, 2012 5:07 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Question; if the MOID overload is causing LUA to crash, would the lascannon script be the first one (or possibly the immediate next after the one it's supposed to be running) CC would find in your file structure? What I'm saying is if the first script (or script next after the sniper rifle) is that of a Storm Bolter, would it behave like that instead? |
Author: | Arcalane [ Fri Jun 08, 2012 5:39 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Nope. All the las weapon scripts are in their own folder, as are the scope scripts. Since there were ~2 dozen scripts between the files even if I were to not use folders to split the scripts directory up, it's not just a case of skipping to the next file in line or anything like that. |
Author: | Bad Boy [ Fri Jun 08, 2012 7:20 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Lizardheim wrote: It's most likely something with the MOID counter, as previously speculated. Considering there's only 255 pointers, when it goes above this the Lua pointers get voided and weird ♥♥♥♥ starts happening. Will bug data to remove moid limit, although that'd remove crab bombs too... Anyway, for anyone who doesn't like having the ai break the moid limit I'd suggest replacing line 738 of Metafight.lua (in base.rte/Activities) with the following: Code: if self:PlayerActive(player) and not self:PlayerHuman(player) and self.TeamAIActive[self:GetTeamOfPlayer(player)] and self:GetPlayerBrain(player) and MovableMan:GetMOIDCount() <= rte.MOIDCountMax then |
Author: | Lizardheim [ Fri Jun 08, 2012 9:15 pm ] |
Post subject: | Re: Silly 40K Metagame Bug |
Didn't say it'd be easy. |
Page 1 of 2 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |