Chaosforge Forum

  • October 08, 2024, 13:07
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Enemies don't respawn if killed on edge of map  (Read 5833 times)

2birds1stone

  • Platinum Supporter
  • Alpha Supporter
  • Sergeant
  • *
  • *
  • Offline Offline
  • Posts: 75
  • Lost Soul
    • View Profile
Enemies don't respawn if killed on edge of map
« on: October 10, 2013, 01:35 »

On Phobos Base Entry, N! AoMC, I killed an enemy on the edge of the map like so:



After quite a lot of combat, I noticed he hadn't respawned yet, and found it odd. After waiting around the door so I could kill them all in it, I went outside to take their ammo, and noticed he was still dead. I experimentally waited for something like 20 000 turns, and he still hadn't respawned. I asked the sacred Google, and found no mention of this.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #1 on: October 10, 2013, 03:44 »

Once again, I can't see your picture right now from this network I'm on, but will do so when I have the chance.

Thanks for the report.
Logged
I computed, therefore I was.

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #2 on: October 10, 2013, 06:57 »

Okay I just had a look at the picture -- and I realised it's too small to actually see what's going on.

Which side of the edge of the map are we looking at?
Logged
I computed, therefore I was.

Eyro

  • Sergeant
  • *
  • Offline Offline
  • Posts: 92
  • Self replenishing superheated material thrower. <3
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #3 on: October 10, 2013, 09:10 »

Bottom edge; Pic is huge for me.
Logged

thelaptop

  • Chaos Fanatic!
  • Grand Inquisitor
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 2530
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #4 on: October 10, 2013, 18:48 »

Alright, I officially hate my ISPs.  I'll take a look at the code and see what gives.  It's probably one of those off-by-one stuff every programmer is famous for doing.
Logged
I computed, therefore I was.

MaiZure

  • Marketing/PR Ops Lead
  • Greater Elder
  • Major General
  • *
  • *
  • Offline Offline
  • Posts: 827
  • Retired 1-Star General (.993)
    • View Profile
    • Project repository
Re: Enemies don't respawn if killed on edge of map
« Reply #5 on: October 11, 2013, 04:59 »

It's probably one of those off-by-one stuff every programmer is famous for doing.

Seriously, Who starts counting at ZERO anyway??
Logged
Hell Knight 1st Lt. (.997)
[22/13/9/2/0]

Mader Levap

  • Private FC
  • *
  • Offline Offline
  • Posts: 11
  • Lost Soul
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #6 on: October 11, 2013, 14:02 »

Seriously, Who starts counting at ZERO anyway??
Programmers. And it makes actually sense in this contex.
Logged

shark20061

  • Programmer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 266
    • View Profile
Re: Enemies don't respawn if killed on edge of map
« Reply #7 on: October 11, 2013, 16:02 »

The area checked for respawn specifically ignores the edge of the map.  That's an easy change.

Past versions got away with this because every level had an indestructible border around it.  Currently, there are a few levels that don't, Phobos Entry being one of them.

Edit: And now fixed in repo.
« Last Edit: October 11, 2013, 16:12 by shark20061 »
Logged
Hell Knight Warrant Officer (0.9.9.4)  [26!/8/3/1/0]

Mancubus 2nd Lieutenant (0.9.9.6)  [22/12/3/0/0]
M:16 S:43 (126) A:17
Pages: [1]