Author Topic: defenses wont fire!  (Read 4182 times)

Zoythrus

  • Guest
defenses wont fire!
« on: 18 November 2009, 01:20:27 »
when i begin a game (with GAE 3.2.2, the newest), the defense unit starts at "attack off", so i turn it on and it doesnt fire! why not? (it just sits there like a brick)

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #1 on: 18 November 2009, 01:51:59 »
Well, are any enemies within the attack range?
Egypt Remastered!

Proof: Owner of glest@mail.com

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #2 on: 18 November 2009, 01:53:44 »
yes, my defense towers do nothing as a bunch of swordman attack them

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #3 on: 18 November 2009, 01:54:18 »
Maybe you're just not seeing a particle effect.
Egypt Remastered!

Proof: Owner of glest@mail.com

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #4 on: 18 November 2009, 01:55:37 »
no, they dont die (or even get injured), this bug makes defenses a waste of resources

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #5 on: 18 November 2009, 02:13:58 »
Well, I don't know then.
Man, I was just about to try GAE 2.12a for the 15th thousand time, and probably fail, I'm going to wait until they fix this.
Egypt Remastered!

Proof: Owner of glest@mail.com

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: defenses wont fire!
« Reply #6 on: 18 November 2009, 16:51:10 »
Did you modify the XMLs by any chance?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #7 on: 19 November 2009, 15:18:42 »
no

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #8 on: 30 November 2009, 23:03:27 »
besides the defenses not firing, the units will not attack or do anything automatically even if they can! i think the problems are related

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #9 on: 30 November 2009, 23:26:31 »
Have you upgraded to 0.2.12b?
Egypt Remastered!

Proof: Owner of glest@mail.com

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #10 on: 1 December 2009, 00:00:21 »
yes...right when it came out

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #11 on: 1 December 2009, 00:48:45 »
Then, it's your computer, I've never had that problem.
Egypt Remastered!

Proof: Owner of glest@mail.com

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #12 on: 1 December 2009, 01:40:47 »
it acts up when it wants too, sometimes it does it, sometimes it doesnt

kris9700

  • Guest
Re: defenses wont fire!
« Reply #13 on: 5 April 2010, 03:09:00 »
Well you should look at the XML files and see if anything is missing. If not i don't know whats happening.

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: defenses wont fire!
« Reply #14 on: 5 April 2010, 12:17:43 »
Kris, I'm very sure that he's already done that... ;)

Maybe it could be a problem of low ram caused by that worker pathfinding bug, that probably uses a lot of ram?
Egypt Remastered!

Proof: Owner of glest@mail.com

Gabbe

  • Guest
Re: defenses wont fire!
« Reply #15 on: 26 April 2010, 18:25:51 »
or just ask, how much ram do you have?

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #16 on: 26 April 2010, 20:48:59 »
2GB

Gabbe

  • Guest
Re: defenses wont fire!
« Reply #17 on: 26 April 2010, 20:59:43 »
Same as my laptop, should work, you bether ask arch...

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #18 on: 27 April 2010, 03:26:45 »
it has been working now, ever since i got megaglest...but now and then it doesnt work, that's why i tell all my turrets to fire (as opposed to "attack off")

jda

  • Guest
Re: defenses wont fire!
« Reply #19 on: 27 April 2010, 16:26:03 »
This thread is old but Zoythrus never said it was fixed so...

1. Defense buildings with "Attack off" and "Attack on" commands will always (in a working game) fire when  attacked.
The difference is:
- The Attack On command will make it fire whenever it sees an oposing unit in attack range.
- The Attack Off command will only attack after it's been attacked at least once. Then it will automatically switch to "Attack on" mode and fire at the attacking foe. There is an option in the XML (which you can see ingame by hovering over the Attack Off button) called "Reaction time". This is the time (see Silnarm's explanation on Glest cycles for infos on how this time is "measured") the defense building will take between being attacked and switching to Attack On mode.
The purpose of the Attack Off mode is to hide your base from being discovered by the enemy. As defense buildings usually have higher sight range than movable units, an enemy foe might go by it without actually seeing you. But if the defense tower attacks that "blind" foe... well, the enemy will then get a good tip on your location, won't it...? ;)

2. In any circumstance, the defense building would aloways attack an enemy unit that had attacked it already unless:
- The attacker has a higher range than that of the defense building (if I remember correctly, the Elf archer, at least on Elves 0.8 would be able to beat the range of a Tech Defense tower). But you said your defense building was being attacked by swordmen so... that's not it in this case. :P
- The defense building has a very very very high Reaction time, even on Attack On mode (there's one such option for this command too, I believe). But you said you didn't touch the XML's so... (you are talking about Tech, aren't you?)
- The defense tower has a very very very low attack damage value. If smaller than the attacked unit's armor, it will never take a single HP off of it. :P A very low attack speed or attack delay value might also make it (look) unusable. Again... XML had to have been changed.

3. Either GAE or MG use their own modified Magitech, it's not the original vanilla Glest Magitech in either case!
I would doubt it was this the cause but...
... When you installed GAE (which BTW never had a 3.2.2 version, that's the last vanilla Glest version number :P), did you also install the data package (including the modified Magitech) or just the binaries? Do note the binaries package does include a modified data folder but the tecjs are NOT in there, in no flavour of glest! :P
Regarding MegaGlest that you're using now... could it be it seems like they're not attacking because of the Reaction times...? But then eventually they do attack...? Could it be it in your current megaglest?  :look:
« Last Edit: 27 April 2010, 16:27:52 by jda »

Zoythrus

  • Guest
Re: defenses wont fire!
« Reply #20 on: 27 April 2010, 16:53:07 »
it appears to be a vanilla glest bug, but it was fixed in MG. the problem is solved, so i will lock this thread.

 

anything